this.lastRenderedRow)&&this.doNotUnVirtualiseRow(e)&&t.push(n)};for(let e of Object.values(this.rowCtrlsByRowIndex))i(e);if(e)for(let t of Object.values(e))i(t);t.sort((e,t)=>e-t);let a=[];for(let e=0;e{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:`displayedRowsChanged`,afterScroll:e})}onDisplayedColumnsChanged(){let{visibleCols:e}=this.beans,t=e.isPinningLeft(),n=e.isPinningRight();(this.pinningLeft!==t||n!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=n,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){let e=[];for(let t of this.getFullWidthRowCtrls()){let n=t.rowNode.rowIndex;e.push(n.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){let t=Xj(e);return this.getAllRowCtrls().filter(e=>{if(!e.isFullWidth())return!1;let n=e.rowNode;return!(t!=null&&!Zj(n,t))})}createOrUpdateRowCtrl(e,t,n,r){let i,a=this.rowCtrlsByRowIndex[e];if(a||(i=this.rowModel.getRow(e),B(i)&&B(t)&&t[i.id]&&i.alreadyRendered&&(a=t[i.id],t[i.id]=null)),!a)if(i||=this.rowModel.getRow(e),B(i))a=this.createRowCon(i,n,r);else return;i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a}destroyRowCtrls(e,t){let n=[];if(e){for(let r of Object.values(e))if(r){if(this.cachedRowCtrls&&r.isCacheable()){this.cachedRowCtrls.addRow(r);continue}if(r.destroyFirstPass(!t),t){let e=r.instanceId;this.zombieRowCtrls[e]=r,n.push(()=>{r.destroySecondPass(),delete this.zombieRowCtrls[e]})}else r.destroySecondPass()}}t&&(n.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(let e of n)e()},qj))}getRowBuffer(){return this.gos.get(`rowBuffer`)}getRowBufferInPixels(){return this.getRowBuffer()*ng(this.beans)}workOutFirstAndLastRowsToRender(){let{rowContainerHeight:e,pageBounds:t,rowModel:n}=this;e.updateOffset();let r,i;if(!n.isRowsToRender())r=0,i=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),r=t.getFirstRow(),i=t.getLastRow();else{let a=this.getRowBufferInPixels(),o=this.ctrlsSvc.getScrollFeature(),s=this.gos.get(`suppressRowVirtualisation`),c=!1,l,u;do{let n=t.getPixelOffset(),{pageFirstPixel:r,pageLastPixel:i}=t.getCurrentPagePixelRange(),d=e.divStretchOffset,f=o.getVScrollPosition(),p=f.top,m=f.bottom;s?(l=r+d,u=i+d):(l=Math.max(p+n-a,r)+d,u=Math.min(m+n+a,i)+d),this.firstVisibleVPixel=Math.max(p+n,r)+d,this.lastVisibleVPixel=Math.min(m+n,i)+d,c=this.ensureAllRowsInRangeHaveHeightsCalculated(l,u)}while(c);let d=n.getRowIndexAtPixel(l),f=n.getRowIndexAtPixel(u),p=t.getFirstRow(),m=t.getLastRow();dm&&(f=m),r=d,i=f}let a=Xh(this.gos,`normal`),o=this.gos.get(`suppressMaxRenderedRowRestriction`),s=Math.max(this.getRowBuffer(),500);a&&!o&&i-r>s&&(i=r+s);let c=r!==this.firstRenderedRow,l=i!==this.lastRenderedRow;(c||l)&&(this.firstRenderedRow=r,this.lastRenderedRow=i,this.eventSvc.dispatchEvent({type:`viewportChanged`,firstRow:r,lastRow:i}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,hm(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:`firstDataRendered`,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){let n=this.pinnedRowModel?.ensureRowHeightsValid(),r=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:i,rowModel:a}=this,o=a.ensureRowHeightsValid(e,t,i.getFirstRow(),i.getLastRow());return(o||r)&&this.eventSvc.dispatchEvent({type:`recalculateRowBounds`}),r||o||n?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){let t=e.rowNode,n=this.focusSvc.isRowFocused(t.rowIndex,t.rowPinned),r=this.editSvc?.isEditing(e),i=t.detail;return n||r||i?!!this.isRowPresent(t):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,n){let r=this.cachedRowCtrls?.getRow(e)??null;if(r)return r;let i=n&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new Tj(e,this.beans,t,i,this.printLayout)}getRenderedNodes(){let e=Object.values(this.rowCtrlsByRowIndex).map(e=>e.rowNode),t=this.getStickyTopRowCtrls().map(e=>e.rowNode),n=this.getStickyBottomRowCtrls().map(e=>e.rowNode);return[...t,...e,...n]}getRowByPosition(e){let t,{rowIndex:n}=e;switch(e.rowPinned){case`top`:t=this.topRowCtrls[n];break;case`bottom`:t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find(e=>e.rowNode.rowIndex===n)||null,t||=this.getStickyBottomRowCtrls().find(e=>e.rowNode.rowIndex===n)||null)}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;let n=e>this.lastRenderedRow;return!(tthis.maxCount){let e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}}getRow(e){if(e?.id==null)return null;let t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode==e?t:null):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){let t=e.id,n=this.entriesMap[t];delete this.entriesMap[t],$g(this.entriesList,n)}removeFromCache(e){let t=e.rowNode.id;delete this.entriesMap[t],$g(this.entriesList,e)}getEntries(){return this.entriesList}};function Xj(e){if(!e)return;let t={top:{},bottom:{},normal:{}};for(let n of e){let e=n.id;switch(n.rowPinned){case`top`:t.top[e]=n;break;case`bottom`:t.bottom[e]=n;break;default:t.normal[e]=n}}return t}function Zj(e,t){let n=e.id;switch(e.rowPinned){case`top`:return t.top[n]!=null;case`bottom`:return t.bottom[n]!=null;default:return t.normal[n]!=null}}var Qj=class extends W{constructor(){super(...arguments),this.beanName=`rowNodeSorter`}postConstruct(){let{gos:e}=this;this.isAccentedSort=e.get(`accentedSort`),this.primaryColumnsSortGroups=cg(e),this.addManagedPropertyListener(`accentedSort`,e=>this.isAccentedSort=e.currentValue),this.addManagedPropertyListener(`autoGroupColumnDef`,()=>this.primaryColumnsSortGroups=cg(e))}doFullSort(e,t){let n=e.map((e,t)=>({currentPos:t,rowNode:e}));return n.sort(this.compareRowNodes.bind(this,t)),n.map(e=>e.rowNode)}compareRowNodes(e,t,n){let r=t.rowNode,i=n.rowNode;for(let t=0,n=e.length;tthis.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{let e=this.gos.get(`columnDefs`);e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){let{colModel:t,rowModel:n}=this.beans;t.setColumnDefs(e??[],`gridInitializing`),n.start()}gridReady(){let{eventSvc:e,gos:t}=this;e.dispatchEvent({type:`gridReady`}),sh(t,`initialised successfully, enterprise = ${t.isModuleRegistered(`EnterpriseCore`)}`)}setColumnDefs(e){let t=this.gos.get(`columnDefs`);if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,p_(e.source))}}};function nM(e){e.valueCache?.expire()}function rM(e,t){let{colKey:n,rowNode:r,useFormatter:i}=t,a=e.colModel.getColDefCol(n)??e.colModel.getCol(n);if(V(a))return null;let o=e.valueSvc.getValueForDisplay(a,r,i);return i?o.valueFormatted??Yf(o.value):o.value}var iM=`paste`,aM=class extends W{constructor(){super(...arguments),this.beanName=`changeDetectionSvc`,this.clientSideRowModel=null}postConstruct(){let{gos:e,rowModel:t}=this.beans;Jh(e,t)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){let{gos:t,rowRenderer:n}=this.beans;if(e.source===iM||t.get(`suppressChangeDetection`))return;let r=e.node,i=[r],a=this.clientSideRowModel,o=a?.rootNode;if(o&&!r.isRowPinned()){let n=new AE(t.get(`aggregateOnlyChangedColumns`),o);n.addParentNode(r.parent,[e.column]),a.doAggregate(n),n.forEachChangedNodeDepthFirst(e=>{i.push(e),e.sibling&&i.push(e.sibling)})}n.refreshCells({rowNodes:i})}},oM=class extends W{constructor(){super(...arguments),this.beanName=`expressionSvc`,this.cache={}}evaluate(e,t){if(typeof e==`string`)return this.evaluateExpression(e,t);q(15,{expression:e})}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(n){return q(16,{expression:e,params:t,e:n}),null}}createExpressionFunction(e){let t=this.cache;if(t[e])return t[e];let n=this.createFunctionBody(e),r=Function(`x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup`,n);return t[e]=r,r}createFunctionBody(e){return e.includes(`return`)?e:`return `+e+`;`}},sM={moduleName:`ValueCache`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`valueCache`,this.cacheVersion=0}postConstruct(){let e=this.gos;this.active=e.get(`valueCache`),this.neverExpires=e.get(`valueCacheNeverExpires`)}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){if(this.active){let r=this.cacheVersion;e.__cacheVersion!==r&&(e.__cacheVersion=r,e.__cacheData={}),e.__cacheData[t]=n}}getValue(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]}}],apiFunctions:{expireValueCache:nM}},cM={moduleName:`Expression`,version:G,beans:[oM]},lM={moduleName:`ChangeDetection`,version:G,beans:[aM]},uM={moduleName:`CellApi`,version:G,apiFunctions:{getCellValue:rM}},dM={moduleName:`CommunityCore`,version:G,beans:[jk,ZT,VO,rv,Kj,KD,wk,dA,G_,Aj,kj,Jj,class extends W{constructor(){super(...arguments),this.beanName=`valueSvc`,this.hasEditSvc=!1,this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.hasEditSvc=!!e.editSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=Yh(this.gos),this.cellExpressions=this.gos.get(`enableCellExpressions`),this.isTreeData=this.gos.get(`treeData`),this.initialised=!0;let e=e=>this.callColumnCellValueChangedHandler(e);this.eventSvc.addListener(`cellValueChanged`,e,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener(`cellValueChanged`,e,!0)),this.addManagedPropertyListener(`treeData`,e=>this.isTreeData=e.currentValue)}getValueForDisplay(e,t,n=!1,r=!1,i=`ui`){let{showRowGroupColValueSvc:a}=this.beans,o=!e&&t.group,s=e?.colDef.showRowGroup,c=!this.isTreeData||t.footer;if(a&&c&&(o||s)){let i=a.getGroupValue(t,e);if(i==null)return{value:null,valueFormatted:null};if(!n)return{value:i.value,valueFormatted:null};let o=a.formatAndPrefixGroupColValue(i,e,r);return{value:i.value,valueFormatted:o}}if(!e)return{value:t.key,valueFormatted:null};let l=t.leafGroup&&this.colModel.isPivotMode(),u=t.group&&t.expanded&&!t.footer&&!l,d=this.gos.get(`groupSuppressBlankHeader`)||!t.sibling,f=u&&!d,p=this.getValue(e,t,f,i);return{value:p,valueFormatted:n&&!(r&&e.colDef.useValueFormatterForExport===!1)?this.formatValue(e,t,p):null}}getValue(e,t,n=!1,r=`ui`){if(this.initialised||this.init(),!t)return;let i=e.getColDef(),a=i.field,o=e.getColId(),s=t.data;if(this.hasEditSvc&&r===`ui`){let n=this.editSvc;if(n.isEditing()){let r=n.getCellDataValue({rowNode:t,column:e},!0);if(r!==void 0)return r}}let c,l=i.showRowGroup;if(typeof l==`string`&&(this.beans.rowGroupColsSvc?.getColumnIndex(l)??-1)>t.level)return null;let u=typeof l!=`string`||!t.group,d=t.groupData&&o in t.groupData,f=!n&&t.aggData&&t.aggData[o]!==void 0,p=this.isSsrm&&n&&!!i.aggFunc,m=this.isSsrm&&t.footer&&t.field&&(i.showRowGroup===!0||i.showRowGroup===t.field);if(this.isTreeData&&f)c=t.aggData[o];else if(this.isTreeData&&i.valueGetter)c=this.executeValueGetter(i.valueGetter,s,e,t);else if(this.isTreeData&&a&&s)c=wO(s,a,e.isFieldContainsDots());else if(d)c=t.groupData[o];else if(f)c=t.aggData[o];else if(i.valueGetter&&!p){if(!u)return c;c=this.executeValueGetter(i.valueGetter,s,e,t)}else if(m)c=wO(s,t.field,e.isFieldContainsDots());else if(a&&s&&!p){if(!u)return c;c=wO(s,a,e.isFieldContainsDots())}if(this.cellExpressions&&typeof c==`string`&&c.indexOf(`=`)===0){let n=c.substring(1);c=this.executeValueGetter(n,s,e,t)}return c}parseValue(e,t,n,r){let i=e.getColDef(),a=i.valueParser;if(B(a)){let o=J(this.gos,{node:t,data:t?.data,oldValue:r,newValue:n,colDef:i,column:e});return typeof a==`function`?a(o):this.expressionSvc?.evaluate(a,o)}return n}getDeleteValue(e,t){return B(e.getColDef().valueParser)?this.parseValue(e,t,``,this.getValueForDisplay(e,t).value)??null:null}formatValue(e,t,n,r,i=!0){let{expressionSvc:a}=this.beans,o=null,s,c=e.getColDef();if(r?s=r:i&&(s=c.valueFormatter),s){let r=t?t.data:null,i=J(this.gos,{value:n,node:t,data:r,colDef:c,column:e});o=typeof s==`function`?s(i):a?a.evaluate(s,i):null}else if(c.refData)return c.refData[n]||``;return o==null&&Array.isArray(n)&&(o=n.join(`, `)),o}setValue(e,t,n,r){let i=this.colModel.getColDefCol(t);if(!e||!i)return!1;V(e.data)&&(e.data={});let{field:a,valueSetter:o}=i.getColDef();if(V(a)&&V(o))return K(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(i,n))return K(135),!1;let s=J(this.gos,{node:e,data:e.data,oldValue:this.getValue(i,e,void 0,r),newValue:n,colDef:i.getColDef(),column:i});s.newValue=n;let c;if(c=B(o)?typeof o==`function`?o(s):this.expressionSvc?.evaluate(o,s):this.setValueUsingField(e.data,a,n,i.isFieldContainsDots()),c===void 0&&(c=!0),!c)return!1;e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();let l=this.getValue(i,e);return this.dispatchCellValueChangedEvent(e,s,l,r),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,s,l,r),!0}dispatchCellValueChangedEvent(e,t,n,r){this.eventSvc.dispatchEvent({type:`cellValueChanged`,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:n,value:n,source:r})}callColumnCellValueChangedHandler(e){let t=e.colDef.onCellValueChanged;typeof t==`function`&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,n,r){if(!t)return!1;let i=!1;if(!r)i=e[t]===n,i||(e[t]=n);else{let r=t.split(`.`),a=e;for(;r.length>0&&a;){let e=r.shift();r.length===0?(i=a[e]===n,i||(a[e]=n)):a=a[e]}}return!i}executeValueGetterWithValueCache(e,t,n,r){let i=n.getColId(),a=this.valueCache.getValue(r,i);if(a!==void 0)return a;let o=this.executeValueGetterWithoutValueCache(e,t,n,r);return this.valueCache.setValue(r,i,o),o}executeValueGetterWithoutValueCache(e,t,n,r){let i=J(this.gos,{data:t,node:r,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,r)}),a;return a=typeof e==`function`?e(i):this.expressionSvc?.evaluate(e,i),a}getValueCallback(e,t){let n=this.colModel.getColDefCol(t);return n?this.getValue(n,e):null}getKeyForNode(e,t){let n=this.getValue(e,t),r=e.getColDef().keyCreator,i=n;return r&&(i=r(J(this.gos,{value:n,colDef:e.getColDef(),column:e,node:t,data:t.data}))),typeof i==`string`||i==null?i:(i=String(i),i===`[object Object]`&&K(121),i)}},kk,Sk,Ak,UO,tM,LO,RO,SA],icons:{selectOpen:`small-down`,smallDown:`small-down`,colorPicker:`color-picker`,smallUp:`small-up`,checkboxChecked:`small-up`,checkboxIndeterminate:`checkbox-indeterminate`,checkboxUnchecked:`checkbox-unchecked`,radioButtonOn:`radio-button-on`,radioButtonOff:`radio-button-off`,smallLeft:`small-left`,smallRight:`small-right`},apiFunctions:{getGridId:QT,destroy:$T,isDestroyed:eE,getGridOption:tE,setGridOption:nE,updateGridOptions:rE,isModuleRegistered:iE},dependsOn:[NO,wD,jD,eM,yA,YD,bA,Gj,lM,xA,Oj,Nj,Pj,CA,BO,PO,cM,$D,Lj]},fM={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1},pM=[`TextFilter`,`NumberFilter`,`DateFilter`,`SetFilter`,`MultiFilter`,`GroupFilter`,`CustomFilter`],mM={EditCore:[`TextEditor`,`NumberEditor`,`DateEditor`,`CheckboxEditor`,`LargeTextEditor`,`SelectEditor`,`RichSelect`,`CustomEditor`],CheckboxCellRenderer:[`AllCommunity`],ClientSideRowModelHierarchy:[`RowGrouping`,`Pivot`,`TreeData`],ColumnFilter:pM,ColumnGroupHeaderComp:[`AllCommunity`],ColumnGroup:[`AllCommunity`],ColumnHeaderComp:[`AllCommunity`],ColumnMove:[`AllCommunity`],ColumnResize:[`AllCommunity`],CommunityCore:[`AllCommunity`],CsrmSsrmSharedApi:[`ClientSideRowModelApi`,`ServerSideRowModelApi`],RowModelSharedApi:[`ClientSideRowModelApi`,`ServerSideRowModelApi`],EnterpriseCore:[`AllEnterprise`],FilterCore:[...pM,`QuickFilter`,`ExternalFilter`,`AdvancedFilter`],GroupCellRenderer:[`RowGrouping`,`Pivot`,`TreeData`,`MasterDetail`,`ServerSideRowModel`],KeyboardNavigation:[`AllCommunity`],LoadingCellRenderer:[`ServerSideRowModel`],MenuCore:[`ColumnMenu`,`ContextMenu`],MenuItem:[`ColumnMenu`,`ContextMenu`,`MultiFilter`,`IntegratedCharts`,`ColumnsToolPanel`],Overlay:[`AllCommunity`],PinnedColumn:[`AllCommunity`],SharedAggregation:[`RowGrouping`,`Pivot`,`TreeData`,`ServerSideRowModel`],SharedDragAndDrop:[`AllCommunity`],SharedMasterDetail:[`MasterDetail`,`ServerSideRowModel`],SharedMenu:[...pM,`ColumnMenu`,`ContextMenu`],SharedPivot:[`Pivot`,`ServerSideRowModel`],SharedRowGrouping:[`RowGrouping`,`ServerSideRowModel`],SharedRowSelection:[`RowSelection`,`ServerSideRowModel`],SkeletonCellRenderer:[`ServerSideRowModel`],Sort:[`AllCommunity`],SsrmInfiniteSharedApi:[`InfiniteRowModel`,`ServerSideRowModelApi`],SharedTreeData:[`TreeData`,`ServerSideRowModel`]},hM={InfiniteRowModel:`infinite`,ClientSideRowModelApi:`clientSide`,ClientSideRowModel:`clientSide`,ServerSideRowModelApi:`serverSide`,ServerSideRowModel:`serverSide`,ViewportRowModel:`viewport`};function gM(e,t){let n=[];for(let r of Array.isArray(e)?e:[e]){let e=mM[r];if(e)for(let r of e){let e=hM[r];(!e||e===t)&&n.push(r)}else n.push(r)}return n}var _M=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
+
+ import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
+
+ ModuleRegistry.registerModules([ AllCommunityModule ]);
+ `,vM=e=>{let t=e.map(e=>`import { ${yM(e)} } from '${fM[e]?`ag-grid-enterprise`:`ag-grid-community`}';`);return e.some(e=>e===`IntegratedCharts`||e===`Sparklines`)&&t.push(`import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';`),`import { ModuleRegistry } from 'ag-grid-community';
+${t.join(`
+`)}
+
+ModuleRegistry.registerModules([ ${e.map(e=>yM(e,!0)).join(`, `)} ]);
+
+For more info see: ${Mh}/modules/`};function yM(e,t=!1){return t&&(e===`IntegratedCharts`||e===`Sparklines`)?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function bM(e,t){let n=t.filter(e=>e===`IntegratedCharts`||e===`Sparklines`),r=``;return!globalThis?.agCharts&&n.length>0?r=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
+`:t.some(e=>fM[e])&&(r+=`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
+`),r}function xM({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var SM=({reasonOrId:e,moduleName:t,gridScoped:n,gridId:r,rowModelType:i,additionalText:a,isUmd:o})=>{let s=gM(t,i),c=typeof e==`string`?e:DM[e];if(o)return bM(c,s);let l=s.filter(e=>e===`IntegratedCharts`||e===`Sparklines`),u=l.length>0?`${l.map(e=>yM(e)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:``;return`${`Unable to use ${c} as ${s.length>1?`one of `+s.map(e=>yM(e)).join(`, `):yM(s[0])} is not registered${n?` for gridId: `+r:``}. ${u} Check if you have registered the module:
+`}
+${vM(s)}`+(a?`
+
+${a}`:``)},CM=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.
+
+import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
+import { ModuleRegistry } from 'ag-grid-community';
+import { ${e} } from 'ag-grid-enterprise';
+
+ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
+ `,wM=e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,TM={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>`Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.`,4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>[`Could not find data item as object was not found.`,e,` Consider using getRowId to help the Grid find matching row data`],6:()=>`'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'`,7:()=>`Pivoting is not supported with aligned grids as it may produce different columns in each grid.`,8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>`No gridOptions provided to createGrid`,12:({colKey:e})=>[`column `,e,` not found`],13:()=>`Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.`,14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>[`value should be either a string or a function`,e],16:({expression:e,params:t,e:n})=>[`Processing of the expression failed`,`Expression = `,e,`Params = `,t,`Exception = `,n],17:()=>`you need either field or valueSetter set on colDef for editing to work`,18:()=>`alignedGrids contains an undefined option.`,19:()=>`alignedGrids - No api found on the linked grid.`,20:()=>`You may want to configure via a callback to avoid setup race conditions:
+ "alignedGrids: () => [linkedGrid]"`,21:()=>`pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.`,22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>`row height must be a number if not using standard row model`,25:({id:e})=>[`The getRowId callback must return a string. The ID `,e,` is being cast to a string.`],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.
+ Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
+ To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>`setRowCount cannot be used while using row grouping.`,29:()=>`tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?`,30:({toIndex:e})=>[`tried to insert columns in invalid location, toIndex = `,e,`remember that you should not count the moving columns when calculating the new index`],31:()=>`infinite loop in resizeColumnSets`,32:()=>`applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.`,33:()=>`stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.`,34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>`Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.`,36:({t:e})=>`colDef.type '`+e+`' does not correspond to defined gridOptions.columnTypes`,37:()=>`Changing the column pinning status is not allowed with domLayout='print'`,38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>`Applying column order broke a group where columns should be married together. Applying new order has been discarded.`,40:({e,method:t})=>`${e}
+${wM(t)}`,41:()=>`Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.`,42:()=>`Browser does not support document.execCommand('copy') for clipboard operations`,43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>`Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.`,45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>`The "baseDataType" property of a data type definition must match that of its parent.`,47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>`Export cancelled. Export is not allowed as per your configuration.`,52:()=>"There is no `window` associated with the current `document`",53:()=>`unknown value type during csv conversion`,54:()=>`Could not find document body, it is needed for drag and drop and context menu.`,55:()=>`addRowDropZone - A container target needs to be provided`,56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>`unable to show popup filter, filter instantiation failed`,58:()=>`no values found for select cellEditor`,59:()=>`cannot select pinned rows`,60:()=>`cannot select node until it has finished loading`,61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>`filter missing setModel method, which is needed for setFilterModel`,66:()=>`filter API missing getModel method, which is needed for getFilterModel`,67:()=>`Filter is missing isFilterActive() method`,68:()=>`Column Filter API methods have been disabled as Advanced Filters are enabled.`,69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>`debounceMs is ignored when apply button is present`,72:({keys:e})=>[`ignoring FilterOptionDef as it doesn't contain one of `,e],73:()=>`invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'`,74:()=>`no filter options for filter`,75:()=>`Unknown button type specified`,76:({filterModelType:e})=>[`Unexpected type of filter "`,e,`", it looks like the filter was configured with incorrect Filter Options`],77:()=>`Filter model is missing 'conditions'`,78:()=>`Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.`,79:()=>`"filterParams.maxNumConditions" must be greater than or equal to zero.`,80:()=>`"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.`,81:()=>`"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".`,82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>`DateFilter minValidYear should be <= maxValidYear`,84:()=>`DateFilter minValidDate should be <= maxValidDate`,85:()=>`DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.`,86:()=>`DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.`,87:()=>`DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.`,88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>`A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)`,90:()=>`datasource is missing getRows method`,91:()=>`Filter is missing method doesFilterPass`,92:()=>`AnimationFrameService called but animation frames are off`,93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:n,pageSizeOptions:r})=>`'paginationPageSize=${e}'${t?``:` (default value)`}, but ${e} is not included in${n?``:` the default`} paginationPageSizeSelector=[${r?.join(`, `)}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>[`Duplicate ID`,e,`found for pinned row with data`,t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>`popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.`,99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:n,jsComps:r})=>{let i=[],a=by({inputValue:t,allSuggestions:[...Object.keys(n??[]).filter(e=>![`agCellEditor`,`agGroupRowRenderer`,`agSortIndicator`].includes(e)),...Object.keys(r??[]).filter(e=>!!r[e])],hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return i.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
+`),a.length>0&&i.push(` Did you mean: [${a.slice(0,3)}]?
+`),i.push(`If using a custom component check it has been registered correctly.`),i},102:()=>`selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'`,103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>[`chart rendering failed`,e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${Mh}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>[`chart update failed`,e],109:({inputValue:e,allSuggestions:t})=>{let n=by({inputValue:e,allSuggestions:t,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return[`Could not find '${e}' aggregate function. It was configured as "aggFunc: '${e}'" but it wasn't found in the list of registered aggregations.`,n.length>0?` Did you mean: [${n.slice(0,3)}]?`:``,`If using a custom aggregation function check it has been registered correctly.`].join(`
+`)},110:()=>`groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup`,111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>`Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values`,114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>`selectAll must be of boolean type.`,118:()=>`Infinite scrolling must be enabled in order to set the row count.`,119:()=>`Unable to instantiate filter`,120:()=>`MultiFloatingFilterComp expects MultiFilter as its parent`,121:()=>`a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key`,122:()=>`could not find the document, document is empty`,123:()=>`Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.`,124:()=>`No active charts to update.`,125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>`unable to restore chart as no chart model is provided`,127:({allRange:e})=>`unable to create chart as ${e?`there are no columns in the grid`:`no range is selected`}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>`cannot multi select unless selection mode is "multiRow"`,132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>`Data type of the new value does not match the cell data type of the column`,136:()=>`Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.`,137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>`cross filtering with row grouping is not supported.`,142:()=>`cross filtering is only supported in the client side row model.`,143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>`'seriesChartTypes' are required when the 'customCombo' chart type is specified.`,151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>[`unable to find group(s) for supplied groupIds:`,e],158:()=>`can not expand a column item that does not represent a column group header`,159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>`Export cancelled. Export is not allowed as per your configuration.`,161:()=>`The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'`,162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.
+ Please turn off ${e} to enable Excel table exports.`,164:()=>`Unable to add data table to Excel sheet: A table already exists.`,165:()=>`Unable to add data table to Excel sheet: Missing required parameters.`,166:({unrecognisedGroupIds:e})=>[`unable to find groups for these supplied groupIds:`,e],167:({unrecognisedColIds:e})=>[`unable to find columns for these supplied colIds:`,e],168:()=>`detailCellRendererParams.template should be function or string`,169:()=>`Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.`,170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>`could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions`,172:()=>`could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData`,173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>`valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.`,178:({colId:e})=>`column ${e} is not visible`,179:()=>`totalValueGetter should be either a function or a string (expression)`,180:()=>`agRichSelectCellEditor requires cellEditorParams.values to be set`,181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>`you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data`,183:()=>`Group Column Filter only works on group columns. Please use a different filter.`,184:({parentGroupData:e,childNodeData:t})=>[`duplicate group keys for row data, keys should be unique`,[e,t]],185:({data:e})=>[`getDataPath() should not return an empty path`,[e]],186:({rowId:e,rowData:t,duplicateRowsData:n})=>[`duplicate group keys for row data, keys should be unique`,e,t,...n??[]],187:({rowId:e,firstData:t,secondData:n})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,`first instance`,t,`second instance`,n],188:e=>`getRowId callback must be provided for Server Side Row Model ${e?.feature||`selection`} to work correctly.`,189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>[`null and undefined values are not allowed for server side row model keys`,e?`column = ${e}`:``,`data is `,t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?`current page`:`filtered`} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:SM,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>`Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.`,204:()=>`Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.`,205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>`getRowId callback must be implemented for transactions to work. Transaction was ignored.`,207:()=>`The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.`,208:()=>`Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.`,209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${Mh}/filter-set-filter-list/#filter-value-types`,210:()=>`Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?`,211:()=>`property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.`,212:()=>`please review all your toolPanel components, it seems like at least one of them doesn't have an id`,213:()=>`Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.`,214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(`,`)}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>[`unable to find grid columns for the supplied colDef(s):`,e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>`agAggregationComponent should only be used with the client and server side row model.`,222:()=>`agFilteredRowCountComponent should only be used with the client side row model.`,223:()=>`agSelectedRowCountComponent should only be used with the client and server side row model.`,224:()=>`agTotalAndFilteredRowCountComponent should only be used with the client side row model.`,225:()=>`agTotalRowCountComponent should only be used with the client side row model.`,226:()=>`viewport is missing init method.`,227:()=>`menu item icon must be DOM node or string`,228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,229:({index:e})=>[`invalid row index for ensureIndexVisible: `,e],230:()=>`detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/`,231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>`Using both rowData and v-model. rowData will be ignored.`,233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>`Group Column Filter does not work with the colDef property "field". This property will be ignored.`,235:()=>`Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.`,236:()=>`Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.`,237:()=>`Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.`,238:()=>`setRowCount can only accept a positive row count.`,239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>`Failed to deserialize state - each provided state object must be an object.`,244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule.
+Please rebuild the selection state and reapply it.`,248:()=>`SetFloatingFilter expects SetFilter as its parent`,249:()=>`Must supply a Value Formatter in Set Filter params when using a Key Creator`,250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows.
+Your code probably called a grid API method while the grid was in the render stage.
+To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0).
+To see what part of your code that caused the refresh check this stacktrace.`,253:({version:e})=>[`Illegal version string: `,e],254:()=>`Cannot create chart: no chart themes available.`,255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>`Unable to initialise. See validation error, or load ValidationModule if missing.`,257:()=>CM(`IntegratedChartsModule`),258:()=>CM(`SparklinesModule`),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:n,gridId:r,rowModelType:i})=>SM({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:Bk[t],gridId:r,gridScoped:n,rowModelType:i}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>`As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.`,263:()=>`As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.`,264:()=>`As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.`,265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${Mh}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>`As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.`,267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>`Transactions aren't supported with tree data when using treeDataChildrenField`,269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>_M(),273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case`maxComponentCreationTimeMs`:t+=` This property is no longer required and so will be removed in a future version.`;break;case`setGridApi`:t+=` This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api `;break;case`children`:t+=` For multiple versions AgGridReact does not support children.`}return t},275:xM,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>`License Key being set multiple times with different values. This can result in an incorrect license key being used,`,292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`};function EM(e,t){let n=TM[e];if(!n)return[`Missing error text for error id ${e}!`];let r=n(t),i=`
+See ${Hh(e,t)}`;return Array.isArray(r)?r.concat(i):[r,i]}var DM={1:`Charting Aggregation`,2:`pivotResultFields`,3:`setTooltip`},OM=new WeakMap,kM=new WeakMap;function AM(e,t,n){if(!t)return q(11),{};let r=n,i;if(!r?.setThemeOnGridDiv){let t=Zx({tag:`div`});t.style.height=`100%`,e.appendChild(t),e=t,i=()=>e.remove()}return new MM().create(e,t,t=>{let n=new KT(e);t.createBean(n)},void 0,n,i)}var jM=1,MM=class{create(e,t,n,r,i,a){let o=rh.applyGlobalGridOptions(t),s=o.gridId??String(jM++),c=this.getRegisteredModules(i,s,o.rowModelType),l=this.createBeansList(o.rowModelType,c,s),u=this.createProvidedBeans(e,o,i);if(!l)return;let d=new nx({providedBeanInstances:u,beanClasses:l,id:s,beanInitComparator:AT,beanDestroyComparator:jT,derivedBeans:[OT],destroyCallback:()=>{kM.delete(f),OM.delete(e),bh(s),a?.()}});this.registerModuleFeatures(d,c),n(d),d.getBean(`syncSvc`).start(),r?.(d);let f=d.getBean(`gridApi`);return OM.set(e,f),kM.set(f,e),f}getRegisteredModules(e,t,n){return yh(dM,void 0,!0),e?.modules?.forEach(e=>yh(e,t)),Ch(t,NM(n))}registerModuleFeatures(e,t){let n=e.getBean(`registry`),r=e.getBean(`apiFunctionSvc`);for(let e of t){n.registerModule(e);let t=e.apiFunctions;if(t){let e=Object.keys(t);for(let n of e)r?.addFunction(n,t[n])}}}createProvidedBeans(e,t,n){let r=n?n.frameworkOverrides:null;V(r)&&(r=new DT);let i={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:n?n.globalListener:null,globalSyncListener:n?n.globalSyncListener:null,frameworkOverrides:r};return n?.providedBeanInstances&&Object.assign(i,n.providedBeanInstances),i}createBeansList(e,t,n){let r={clientSide:`ClientSideRowModel`,infinite:`InfiniteRowModel`,serverSide:`ServerSideRowModel`,viewport:`ViewportRowModel`},i=NM(e),a=r[i];if(!a){Wh(201,{rowModelType:i},`Unknown rowModelType ${i}.`);return}if(!Th()){Wh(272,void 0,_M());return}if(!e){let e=Object.entries(r).filter(([e,t])=>xh(t,n,e));if(e.length==1){let[t,n]=e[0];if(t!==i){let e={moduleName:n,rowModelType:t};Wh(275,e,xM(e));return}}}if(!xh(a,n,i)){Wh(200,{reasonOrId:`rowModelType = '${i}'`,moduleName:a,gridScoped:Sh(),gridId:n,rowModelType:i},`Missing module ${a}Module for rowModelType ${i}.`);return}let o=new Set;for(let e of t)for(let t of e.beans??[])o.add(t);return Array.from(o)}};function NM(e){return e??`clientSide`}function PM(e){let t=e.rowModel;return t.getType()===`clientSide`?t:void 0}function FM(e){let t=e.rowModel;return t.getType()===`infinite`?t:void 0}function IM(e){let t=e.rowModel;return t.getType()===`serverSide`?t:void 0}var LM=class extends W{constructor(){super(...arguments),this.beanName=`localeSvc`}getLocaleTextFunc(){let e=this.gos,t=e.getCallback(`getLocaleText`);return t?zm(t):Bm(e.get(`localeText`))}};function RM(e,t=!1){let n=[],r=[],i=[],a=[],o=[],s=[],c=[],l=[],u=[],d=0;for(let t=0;te!=null)}function BM(e){let t=[];for(let{groupId:n,open:r}of e)r&&t.push(n);return t.length?{openColumnGroupIds:t}:void 0}var VM=class{wrap(e,t,n,r){let i=this.createWrapper(e,r);for(let e of t??[])this.createMethod(i,e,!0);for(let e of n??[])this.createMethod(i,e,!1);return i}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&K(49,{methodName:t}),null)}}};function HM(e){return e.get(`tooltipShowMode`)===`whenTruncated`}function UM(e,t){if(typeof e!=`number`)return``;let n=t(),r=n(`thousandSeparator`,`,`),i=n(`decimalSeparator`,`.`);return e.toString().replace(`.`,i).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${r}`)}var WM=class extends W{getFileName(e){let t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(`.`)?e:`${e}.${t}`}getData(e){let t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},GM=class{constructor(e){let{colModel:t,rowGroupColsSvc:n,colNames:r,valueSvc:i,gos:a,processCellCallback:o,processHeaderCallback:s,processGroupHeaderCallback:c,processRowGroupCallback:l}=e;this.colModel=t,this.rowGroupColsSvc=n,this.colNames=r,this.valueSvc=i,this.gos=a,this.processCellCallback=o,this.processHeaderCallback=s,this.processGroupHeaderCallback=c,this.processRowGroupCallback=l}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??``}extractRowCellValue(e,t,n,r,i){let a=t===0&&fg(this.gos,i,this.colModel.isPivotMode());if(this.processRowGroupCallback&&(this.gos.get(`treeData`)||i.group)&&(e.isRowGroupDisplayed(i.rowGroupColumn?.getColId()??``)||a))return{value:this.processRowGroupCallback(J(this.gos,{column:e,node:i}))??``};if(this.processCellCallback)return{value:this.processCellCallback(J(this.gos,{accumulatedRowIndex:n,column:e,node:i,value:this.valueSvc.getValueForDisplay(e,i,void 0,void 0).value,type:r,parseValue:t=>this.valueSvc.parseValue(e,i,t,this.valueSvc.getValue(e,i,void 0)),formatValue:t=>this.valueSvc.formatValue(e,i,t)??t}))??``};let o=this.gos.get(`treeData`),s=this.valueSvc,c=i.level===-1&&i.footer,l=e.colDef.showRowGroup===!0&&(i.group||o);if(!c&&(a||l)){let t=``,n=i;for(;n&&n.level!==-1;){let{value:r,valueFormatted:i}=s.getValueForDisplay(a?void 0:e,n,!0,!0);t=` -> ${i??r??``}${t}`,n=n.parent}return{value:t,valueFormatted:t}}let{value:u,valueFormatted:d}=s.getValueForDisplay(e,i,!0,!0);return{value:u??``,valueFormatted:d}}getHeaderName(e,t){return e?e(J(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,`csv`,!0)}};function KM(e,t){let n=document.defaultView||window;if(!n){K(52);return}let r=document.createElement(`a`),i=n.URL.createObjectURL(t);r.setAttribute(`href`,i),r.setAttribute(`download`,e),r.style.display=`none`,document.body.appendChild(r),r.dispatchEvent(new MouseEvent(`click`,{bubbles:!1,cancelable:!0,view:n})),r.remove(),n.setTimeout(()=>{n.URL.revokeObjectURL(i)},0)}var qM={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},JM=`clientSide`,YM=`serverSide`,XM=`infinite`,ZM={onGroupExpandedOrCollapsed:[JM],refreshClientSideRowModel:[JM],isRowDataEmpty:[JM],forEachLeafNode:[JM],forEachNodeAfterFilter:[JM],forEachNodeAfterFilterAndSort:[JM],resetRowHeights:[JM,YM],applyTransaction:[JM],applyTransactionAsync:[JM],flushAsyncTransactions:[JM],getBestCostNodeSelection:[JM],getServerSideSelectionState:[YM],setServerSideSelectionState:[YM],applyServerSideTransaction:[YM],applyServerSideTransactionAsync:[YM],applyServerSideRowData:[YM],retryServerSideLoads:[YM],flushServerSideAsyncTransactions:[YM],refreshServerSide:[YM],getServerSideGroupLevelState:[YM],refreshInfiniteCache:[XM],purgeInfiniteCache:[XM],getInfiniteRowCount:[XM],isLastRowIndexKnown:[XM,YM],expandAll:[JM,YM],collapseAll:[JM,YM],onRowHeightChanged:[JM,YM],setRowCount:[XM,YM],getCacheBlockState:[XM,YM]},QM={showLoadingOverlay:{version:`v32`,message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:`v32.2`,message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:`v32.2`,old:`getInfiniteRowCount()`,new:`getDisplayedRowCount()`},selectAllFiltered:{version:`v33`,old:`selectAllFiltered()`,new:`selectAll("filtered")`},deselectAllFiltered:{version:`v33`,old:`deselectAllFiltered()`,new:`deselectAll("filtered")`},selectAllOnCurrentPage:{version:`v33`,old:`selectAllOnCurrentPage()`,new:`selectAll("currentPage")`},deselectAllOnCurrentPage:{version:`v33`,old:`deselectAllOnCurrentPage()`,new:`deselectAll("currentPage")`}};function $M(e,t,n){let r=QM[e];if(r){let{version:n,new:i,old:a,message:o}=r,s=a??e;return(...e)=>{let r=i?`Please use ${i} instead. `:``;return ch(`Since ${n} api.${s} is deprecated. ${r}${o??``}`),t.apply(t,e)}}let i=ZM[e];return i?(...r)=>{let a=n.rowModel.getType();if(!i.includes(a)){lh(`api.${e} can only be called when gridOptions.rowModelType is ${i.join(` or `)}`);return}return t.apply(t,r)}:t}var eN={detailCellRendererCtrl:`SharedMasterDetail`,dndSourceComp:`DragAndDrop`,fillHandle:`CellSelection`,groupCellRendererCtrl:`GroupCellRenderer`,headerFilterCellCtrl:`ColumnFilter`,headerGroupCellCtrl:`ColumnGroup`,rangeHandle:`CellSelection`,tooltipFeature:`Tooltip`,highlightTooltipFeature:`Tooltip`,tooltipStateManager:`Tooltip`,groupStrategy:`RowGrouping`,treeGroupStrategy:`TreeData`,rowNumberRowResizer:`RowNumbers`,singleCell:`EditCore`,fullRow:`EditCore`,agSetColumnFilterHandler:`SetFilter`,agMultiColumnFilterHandler:`MultiFilter`,agGroupColumnFilterHandler:`GroupFilter`,agNumberColumnFilterHandler:`NumberFilter`,agDateColumnFilterHandler:`DateFilter`,agTextColumnFilterHandler:`TextFilter`},tN={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1},nN={chart:`MenuCore`,cancel:`EnterpriseCore`,first:`Pagination`,previous:`Pagination`,next:`Pagination`,last:`Pagination`,linked:`IntegratedCharts`,loadingMenuItems:`MenuCore`,unlinked:`IntegratedCharts`,menu:`ColumnHeaderComp`,legacyMenu:`ColumnMenu`,filter:`ColumnFilter`,filterActive:`ColumnFilter`,filterAdd:`NewFiltersToolPanel`,filterCardCollapse:`NewFiltersToolPanel`,filterCardExpand:`NewFiltersToolPanel`,filterCardEditing:`NewFiltersToolPanel`,filterTab:`ColumnMenu`,filtersToolPanel:`FiltersToolPanel`,columns:[`MenuCore`],columnsToolPanel:[`ColumnsToolPanel`],maximize:`EnterpriseCore`,minimize:`EnterpriseCore`,save:`MenuCore`,columnGroupOpened:`ColumnGroupHeaderComp`,columnGroupClosed:`ColumnGroupHeaderComp`,accordionOpen:`EnterpriseCore`,accordionClosed:`EnterpriseCore`,accordionIndeterminate:`EnterpriseCore`,columnSelectClosed:[`ColumnsToolPanel`,`ColumnMenu`],columnSelectOpen:[`ColumnsToolPanel`,`ColumnMenu`],columnSelectIndeterminate:[`ColumnsToolPanel`,`ColumnMenu`],columnMovePin:`SharedDragAndDrop`,columnMoveHide:`SharedDragAndDrop`,columnMoveMove:`SharedDragAndDrop`,columnMoveLeft:`SharedDragAndDrop`,columnMoveRight:`SharedDragAndDrop`,columnMoveGroup:`SharedDragAndDrop`,columnMoveValue:`SharedDragAndDrop`,columnMovePivot:`SharedDragAndDrop`,dropNotAllowed:`SharedDragAndDrop`,ensureColumnVisible:[`ColumnsToolPanel`,`ColumnMenu`],groupContracted:`GroupCellRenderer`,groupExpanded:`GroupCellRenderer`,setFilterGroupClosed:`SetFilter`,setFilterGroupOpen:`SetFilter`,setFilterGroupIndeterminate:`SetFilter`,setFilterLoading:`SetFilter`,close:`EnterpriseCore`,check:`MenuItem`,colorPicker:`CommunityCore`,groupLoading:`LoadingCellRenderer`,menuAlt:`ColumnHeaderComp`,menuPin:`MenuCore`,menuValue:`MenuCore`,menuAddRowGroup:[`MenuCore`,`ColumnsToolPanel`],menuRemoveRowGroup:[`MenuCore`,`ColumnsToolPanel`],clipboardCopy:`MenuCore`,clipboardCut:`MenuCore`,clipboardPaste:`MenuCore`,pivotPanel:[`ColumnsToolPanel`,`RowGroupingPanel`],rowGroupPanel:[`ColumnsToolPanel`,`RowGroupingPanel`],valuePanel:`ColumnsToolPanel`,columnDrag:`EnterpriseCore`,rowDrag:[`RowDrag`,`DragAndDrop`],csvExport:`MenuCore`,excelExport:`MenuCore`,smallDown:`CommunityCore`,selectOpen:`CommunityCore`,richSelectOpen:`RichSelect`,richSelectRemove:`RichSelect`,smallLeft:`CommunityCore`,smallRight:`CommunityCore`,subMenuOpen:`MenuItem`,subMenuOpenRtl:`MenuItem`,panelDelimiter:`RowGroupingPanel`,panelDelimiterRtl:`RowGroupingPanel`,smallUp:`CommunityCore`,sortAscending:[`MenuCore`,`Sort`],sortDescending:[`MenuCore`,`Sort`],sortUnSort:[`MenuCore`,`Sort`],advancedFilterBuilder:`AdvancedFilter`,advancedFilterBuilderDrag:`AdvancedFilter`,advancedFilterBuilderInvalid:`AdvancedFilter`,advancedFilterBuilderMoveUp:`AdvancedFilter`,advancedFilterBuilderMoveDown:`AdvancedFilter`,advancedFilterBuilderAdd:`AdvancedFilter`,advancedFilterBuilderRemove:`AdvancedFilter`,advancedFilterBuilderSelectOpen:`AdvancedFilter`,chartsMenu:`IntegratedCharts`,chartsMenuEdit:`IntegratedCharts`,chartsMenuAdvancedSettings:`IntegratedCharts`,chartsMenuAdd:`IntegratedCharts`,chartsColorPicker:`IntegratedCharts`,chartsThemePrevious:`IntegratedCharts`,chartsThemeNext:`IntegratedCharts`,chartsDownload:`IntegratedCharts`,checkboxChecked:`CommunityCore`,checkboxIndeterminate:`CommunityCore`,checkboxUnchecked:`CommunityCore`,radioButtonOn:`CommunityCore`,radioButtonOff:`CommunityCore`,rowPin:`PinnedRow`,rowUnpin:`PinnedRow`,rowPinBottom:`PinnedRow`,rowPinTop:`PinnedRow`},rN=new Set([`colorPicker`,`smallUp`,`checkboxChecked`,`checkboxIndeterminate`,`checkboxUnchecked`,`radioButtonOn`,`radioButtonOff`,`smallDown`,`smallLeft`,`smallRight`]),iN=class extends W{constructor(){super(...arguments),this.beanName=`validation`}wireBeans(e){this.gridOptions=e.gridOptions,Nh(EM)}warnOnInitialPropertyUpdate(e,t){e===`api`&&qM[t]&&K(22,{key:t})}processGridOptions(e){this.processOptions(e,sA())}validateApiFunction(e,t){return $M(e,t,this.beans)}missingUserComponent(e,t,n,r){let i=Bk[t];i?this.gos.assertModuleRegistered(i,`AG Grid '${e}' component: ${t}`):K(101,{propertyName:e,componentName:t,agGridDefaults:n,jsComps:r})}missingDynamicBean(e){let t=eN[e];return t?Kh(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){oN.has(e)&&K(10,{eventType:e})}validateIcon(e){if(rN.has(e)&&K(43,{iconName:e}),tN[e])return;let t=nN[e];if(t){q(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:Sh(),gridId:this.beans.context.getId(),rowModelType:this.gos.get(`rowModelType`),additionalText:`Alternatively, use the CSS icon name directly.`});return}K(134,{iconName:e})}isProvidedUserComp(e){return!!Bk[e]}validateColDef(e){this.processOptions(e,qk())}processOptions(e,t){let{validations:n,deprecations:r,allProperties:i,propertyExceptions:a,objectName:o,docsUrl:s}=t;i&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...a??[],...Object.keys(r)],i,o,s);let c=new Set;if(Object.keys(e).forEach(t=>{let i=r[t];if(i){let{message:e,version:n}=i;c.add(`As of v${n}, ${String(t)} is deprecated. ${e??``}`)}let a=e[t];if(a==null||a===!1)return;let o=n[t];if(!o)return;let{dependencies:s,validate:l,supportedRowModels:u,expectedType:d}=o;if(d){let e=typeof a;if(e!==d){c.add(`${String(t)} should be of type '${d}' but received '${e}' (${a}).`);return}}if(u){let e=this.gridOptions.rowModelType??`clientSide`;if(!u.includes(e)){c.add(`${String(t)} is not supported with the '${e}' row model. It is only valid with: ${u.join(`, `)}.`);return}}if(s){let n=this.checkForRequiredDependencies(t,s,e);if(n){c.add(n);return}}if(l){let t=l(e,this.gridOptions,this.beans);if(t){c.add(t);return}}}),c.size>0)for(let e of c)ch(e)}checkForRequiredDependencies(e,t,n){let r=Object.entries(t).filter(([e,t])=>{let r=n[e];return!t.required.includes(r)});return r.length===0?null:r.map(([t,n])=>`'${String(e)}' requires '${t}' to be one of [${n.required.map(e=>e===null?`null`:e===void 0?`undefined`:e).join(`, `)}]. ${n.reason??``}`).join(`
+ `)}checkProperties(e,t,n,r,i){let a=aN(Object.getOwnPropertyNames(e),[`__ob__`,`__v_skip`,`__metadata__`,...t,...n],n),o=Object.keys(a);for(let e of o){let t=`invalid ${r} property '${e}' did you mean any of these: ${a[e].slice(0,8).join(`, `)}.`;n.includes(`context`)&&(t+=`
+If you are trying to annotate ${r} with application data, use the '${r}.context' property instead.`),ch(t)}o.length>0&&i&&ch(`to see all the valid ${r} properties please check: ${this.beans.frameworkOverrides.getDocLink(i)}`)}};function aN(e,t,n){let r={},i=e.filter(e=>!t.some(t=>t===e));if(i.length>0)for(let e of i)r[e]=by({inputValue:e,allSuggestions:n}).values;return r}var oN=new Set([`firstChildChanged`,`lastChildChanged`,`childIndexChanged`]),sN={moduleName:`Validation`,version:G,beans:[iN]};function cN(e){let t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var lN=class extends W{constructor(){super(...arguments),this.beanName=`filterStage`,this.step=`filter`,this.refreshProps=[`excludeChildrenWhenTreeDataFiltering`]}wireBeans(e){this.filterManager=e.filterManager}execute(e){let{changedPath:t}=e;this.filter(t)}filter(e){let t=!!this.filterManager?.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){let n=(t,n)=>{t.childrenAfterFilter=t.hasChildren()&&e&&!n?t.childrenAfterGroup.filter(e=>{let t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,n=e.data&&this.filterManager.doesRowPassFilter({rowNode:e});return t||n}):t.childrenAfterGroup,cN(t)};if(this.doingTreeDataFiltering()){let e=(t,r)=>{if(t.childrenAfterGroup)for(let i=0;ie(t,!1))}else t.forEachChangedNodeDepthFirst(e=>n(e,!1),!0)}doingTreeDataFiltering(){return this.gos.get(`treeData`)&&!this.gos.get(`excludeChildrenWhenTreeDataFiltering`)}},uN=class extends yw{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,n,r,i){this.comp=e;let a=q_(this,this.beans.context,i);this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r,this.setGui(t,a),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(a),this.setupLeft(a),this.setupHover(a),this.setupFocus(a),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(a),this.setupUi(),a.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(a);let o=()=>this.onColDefChanged(a);a.addManagedListeners(this.column,{colDefChanged:o}),a.addManagedEventListeners({filterSwitched:({column:e})=>{e===this.column&&o()}}),a.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){let{column:e,beans:t}=this,n=e.colDef;return J(t.gos,{colDef:n,column:e,floatingFilter:!0})}setupActive(){let e=this.column.getColDef(),t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass(`ag-floating-filter-full-body`,this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass(`ag-floating-filter-body`,!this.suppressFilterButton),!this.active||this.iconCreated)return;let e=Fw(`filter`,this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new TS(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){let e=this.getLocaleTextFunc();dp(this.eButtonShowMainFilter,e(`ariaFilterMenuOpen`,`Open Filter Menu`))}onTabKeyDown(e){let{beans:t}=this;if(H(t)===this.eGui)return;let n=My(t,this.eGui,null,e.shiftKey);if(n){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),n.focus();return}let r=this.findNextColumnWithFloatingFilter(e.shiftKey);r&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:r},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){let t=this.beans.visibleCols,n=this.column;do if(n=e?t.getColBefore(n):t.getColAfter(n),!n)break;while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);let t=this.getWrapperHasFocus();switch(e.key){case Z.UP:case Z.DOWN:case Z.LEFT:case Z.RIGHT:if(t)return;SS(e);case Z.ENTER:t&&jy(this.eGui)&&e.preventDefault();break;case Z.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;let t=!!e.relatedTarget&&!e.relatedTarget.classList.contains(`ag-floating-filter`),n=!!e.relatedTarget&&Vp(e.relatedTarget,`ag-floating-filter`);if(t&&n&&e.target===this.eGui){let e=this.lastFocusEvent,t=!!(e&&e.key===Z.TAB);if(e&&t){let t=e.shiftKey;jy(this.eGui,t)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){let t=new gw(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!Fg(this.gos)}setupUserComp(){if(!this.active)return;let e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){let e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:`floatingFilter`,positionBy:`button`})}setupSyncWithFilter(e){if(!this.active)return;let{beans:{colFilter:t},column:n,gos:r}=this,i=e=>{if(e?.source===`filterDestroyed`&&(!this.isAlive()||!t?.isAlive()))return;let i=this.comp.getFloatingFilterComp();i&&i.then(i=>{if(i){if(r.get(`enableFilterHandlers`)){let t=e,n=`filter`;t?.afterFloatingFilter?n=`ui`:t?.afterDataChange?n=`dataChanged`:e?.source===`api`&&(n=`api`),this.updateFloatingFilterParams(this.userCompDetails,n);return}let a=t?.getCurrentFloatingFilterParentModel(n),o=e?{...e,columns:e.columns??[],source:e.source===`api`?`api`:`columnFilter`}:null;i.onParentModelChanged(a,o)}})};[this.destroySyncListener]=e.addManagedListeners(n,{filterChanged:i}),t?.isFilterActive(n)&&i(null)}setupWidth(e){let t=()=>{let e=`${this.column.getActualWidth()}px`;this.comp.setWidth(e)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){let e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle(`ag-filter-active`,this.column.isFilterActive())}}onColDefChanged(e){let t=this.active;this.setupActive();let n=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());let r=this.beans.colFilter,i=this.active?r?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,a=this.comp.getFloatingFilterComp();!a||!i?this.updateCompDetails(e,i,n):a.then(t=>{!t||r?.areFilterCompsDifferent(this.userCompDetails??null,i)?this.updateCompDetails(e,i,n):this.updateFloatingFilterParams(i,`colDef`)})}updateCompDetails(e,t,n){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),n&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let n=e.params;this.comp.getFloatingFilterComp()?.then(e=>{typeof e?.refresh==`function`&&(this.gos.get(`enableFilterHandlers`)&&(n={...n,model:Xx(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),e.refresh(n))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function dN(e,t){let n=e.colModel.getCol(t);if(!n){q(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:n,positionBy:`auto`})}function fN(e){e.menuSvc?.hidePopupMenu()}var pN={moduleName:`SharedMenu`,version:G,beans:[Tw],apiFunctions:{showColumnMenu:dN,hidePopupMenu:fN}},mN={moduleName:`Popup`,version:G,beans:[class extends _x{postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridCtrl=e.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getDefaultPopupParent(){return this.gridCtrl.getGui()}positionPopupForMenu(e){let{eventSource:t,ePopup:n,event:r}=e,i=t.getBoundingClientRect(),a=this.getParentRect();this.setAlignedTo(t,n);let o=!1;this.positionPopup({ePopup:n,keepWithinBounds:!0,updatePosition:()=>{let e=this.keepXYWithinBounds(n,i.top-a.top,0),t=n.clientWidth>0?n.clientWidth:200;o||=(n.style.minWidth=`${t}px`,!0);let r=a.right-a.left-t,s;return this.gos.get(`enableRtl`)?(s=l(),s<0&&(s=c(),this.setAlignedStyles(n,`left`)),s>r&&(s=0,this.setAlignedStyles(n,`right`))):(s=c(),s>r&&(s=l(),this.setAlignedStyles(n,`right`)),s<0&&(s=0,this.setAlignedStyles(n,`left`))),{x:s,y:e};function c(){return i.right-a.left-2}function l(){return i.left-a.left-t}},postProcessCallback:()=>this.callPostProcessPopup(e,`subMenu`,n,t,r instanceof MouseEvent?r:void 0)})}callPostProcessPopup(e,t,n,r,i){let a=this.gos.getCallback(`postProcessPopup`);if(a){let{column:o,rowNode:s}=e;a({column:o,rowNode:s,ePopup:n,type:t,eventSource:r,mouseEvent:i})}}getActivePopups(){return this.popupList.map(e=>e.element)}handleThemeChange(e){if(e.themeChanged){let e=this.beans.environment;for(let t of this.popupList)e.applyThemeClasses(t.wrapper)}}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return CS(e)}}]},hN=`.ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}`;function gN(e){let t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function _N(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function vN(e,t){let n=e.colModel.getColDefCol(t);if(n)return e.colFilter?.destroyFilter(n,`api`)}function yN(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function bN(e){return e.filterManager?.getFilterModel()??{}}function xN(e,t,n){let{gos:r,colModel:i,colFilter:a}=e;n&&!r.get(`enableFilterHandlers`)&&(K(288),n=!1);let o=i.getColDefCol(t);return o?a?.getModelForColumn(o,n)??null:null}function SN(e,t,n){return e.filterManager?.setColumnFilterModel(t,n)??Promise.resolve()}function CN(e,t){let n=e.colModel.getCol(t);if(!n){q(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:n,containerType:`columnFilter`,positionBy:`auto`})}function wN(e){e.menuSvc?.hideFilterMenu()}function TN(e,t){let n=e.colModel.getCol(t);if(!n){q(12,{colKey:t});return}return e.colFilter?.getHandler(n,!0)}function EN(e,t){let{colModel:n,colFilter:r,gos:i}=e;if(!i.get(`enableFilterHandlers`)){K(287);return}let{colId:a,action:o}=t;if(a){let e=n.getColById(a);e&&r?.updateModel(e,o)}else r?.updateAllModels(o)}var DN={filterHandler:()=>({doesFilterPass:()=>!0})},ON=class extends W{constructor(){super(...arguments),this.beanName=`colFilter`,this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...Ux},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});let e=this.gos,t={...e.get(`initialState`)?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get(`enableFilterHandlers`)||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded(`rowDataUpdated`)}setModel(e,t=`api`,n){let{colModel:r,dataTypeSvc:i,filterManager:a}=this.beans;if(i?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}let o=[],s=this.getModel(!0);if(e){let t=new Set(Object.keys(e));this.allColumnFilters.forEach((n,r)=>{let i=e[r];o.push(this.setModelOnFilterWrapper(n,i)),t.delete(r)}),t.forEach(t=>{let n=r.getColDefCol(t)||r.getCol(t);if(!n){K(62,{colId:t});return}if(!n.isFilterAllowed()){K(63,{colId:t});return}let i=this.getOrCreateFilterWrapper(n,!0);if(!i){K(64,{colId:t});return}o.push(this.setModelOnFilterWrapper(i,e[t],!0))})}else this.model={},this.allColumnFilters.forEach(e=>{o.push(this.setModelOnFilterWrapper(e,null))});ev.all(o).then(()=>{let e=this.getModel(!0),r=[];this.allColumnFilters.forEach((t,n)=>{Gf(s?s[n]:null,e?e[n]:null)||r.push(t.column)}),r.length>0?a?.onFilterChanged({columns:r,source:t}):n&&this.updateActive(`filterChanged`)})}getModel(e){let t={},{allColumnFilters:n,initialModel:r,beans:{colModel:i}}=this;if(n.forEach((e,n)=>{let r=this.getModelFromFilterWrapper(e);B(r)&&(t[n]=r)}),!e)for(let e of Object.keys(r)){let a=r[e];B(a)&&!n.has(e)&&i.getCol(e)?.isFilterAllowed()&&(t[e]=a)}return t}setState(e,t,n=`api`){if(this.state.clear(),t)for(let e of Object.keys(t)){let n=t[e];this.state.set(e,{model:Xx(this.model,e),state:n})}this.setModel(e,n,!0)}getState(){let e=this.state;if(!e.size)return;let t={},n=!1;return e.forEach((e,r)=>{let i=e.state;i!=null&&(n=!0,t[r]=i)}),n?t:void 0}getModelFromFilterWrapper(e){let t=e.column.getColId();if(e.isHandler)return Xx(this.model,t);let n=e.filter;return n?typeof n.getModel==`function`?n.getModel():(K(66),null):Xx(this.initialModel,t)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};let{allColumnFilters:e}=this;return e.size?(e.forEach(e=>this.disposeFilterWrapper(e,`advancedFilterEnabled`)),!0):!1}updateActiveFilters(){let e=e=>e?e.isFilterActive?e.isFilterActive():(K(67),!1):!1,{colModel:t,gos:n}=this.beans,r=!!lg(n),i=e=>{if(!e.isPrimary())return!0;let n=!t.isPivotActive();return!e.isValueActive()||!n?!1:t.isPivotMode()?!0:r},a=[],o=[],s=(e,t,n)=>{t&&(i(e)?a.push(n):o.push(n))},c=[];return this.allColumnFilters.forEach(t=>{let n=t.column,r=n.getColId();if(t.isHandler)c.push(ev.resolve().then(()=>{s(n,this.isHandlerActive(n),{colId:r,isHandler:!0,handler:t.handler,handlerParams:t.handlerParams})}));else{let i=Gx(t);i&&c.push(i.then(t=>{s(n,e(t),{colId:r,isHandler:!1,comp:t})}))}}),ev.all(c).then(()=>{this.activeAggregateFilters=a,this.activeColumnFilters=o})}updateFilterFlagInColumns(e,t){let n=[];return this.allColumnFilters.forEach(r=>{let i=r.column;if(r.isHandler)n.push(ev.resolve().then(()=>{this.setColFilterActive(i,this.isHandlerActive(i),e,t)}));else{let a=Gx(r);a&&n.push(a.then(n=>{this.setColFilterActive(i,n.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),ev.all(n)}doFiltersPass(e,t,n){let{data:r,aggData:i}=e,a=n?this.activeAggregateFilters:this.activeColumnFilters,o=n?i:r,s=this.model;for(let n=0;n{this.isAlive()&&n?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(r,0):r()}updateBeforeFilterChanged(e={}){let{column:t,additionalEventAttributes:n}=e,r=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns(`filterChanged`,n).then(()=>{this.allColumnFilters.forEach(e=>{let{column:t,isHandler:n}=e;r!==t.getColId()&&(n&&e.handler.onAnyFilterChanged?.(),Gx(e,n)?.then(e=>{typeof e?.onAnyFilterChanged==`function`&&e.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get(`allowShowChangeAfterFilter`)??!1)&&this.processingFilterChange}onNewRowsLoaded(e){let t=[];this.allColumnFilters.forEach(e=>{let n=e.isHandler;n&&e.handler.onNewRowsLoaded?.();let r=Gx(e,n);r&&t.push(r.then(e=>{e.onNewRowsLoaded?.()}))}),ev.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){let{filterValueSvc:n,colModel:r}=this.beans;return(i,a)=>{let o=a?r.getCol(a):e;return o?n.getValue(o,i,t):void 0}}isFilterActive(e){let t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);let n=t?.filter;return n?n.isFilterActive():Xx(this.initialModel,e.getColId())!=null}isHandlerActive(e){let t=B(Xx(this.model,e.getColId()));if(t)return t;let n=this.beans.groupFilter;return n?.isGroupFilter(e)?n.isFilterActive(e):!1}getOrCreateFilterUi(e){let t=this.getOrCreateFilterWrapper(e,!0);return t?Gx(t):null}getFilterUiForDisplay(e){let t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;let n=Gx(t);return n?n.then(e=>({comp:e,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){let n=this.getOrCreateFilterWrapper(e,t);return n?.isHandler?n.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let n=this.cachedFilter(e);return!n&&t&&(n=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,n)),n}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return Pg(this.gos)?t?`agSetColumnFloatingFilter`:`agSetColumnFilter`:gS(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,n,r,i,a){let o=()=>{let o=r(this.createFilterCompParams(e,i,a),i);return Pv(this.beans.userCompFactory,t,o,n)},s=o();return s?{compDetails:s,createFilterUi:e=>(e?o():s).newAgStackInstance()}:null}createFilterInstance(e,t,n,r){let i=this.beans.selectableFilter;i?.isSelectable(t)&&(t=i.getFilterDef(e,t));let{handler:a,handlerParams:o,handlerGenerator:s}=this.createHandler(e,t,n)??{},c=this.createFilterComp(e,t,n,r,!!a,`init`);if(!c)return{compDetails:null,createFilterUi:null,handler:a,handlerGenerator:s,handlerParams:o};let{compDetails:l,createFilterUi:u}=c;return this.isGlobalButtons&&(l.params?.buttons?.length||K(281,{colId:e.getColId()})),{compDetails:l,handler:a,handlerGenerator:s,handlerParams:o,createFilterUi:u}}createBaseFilterParams(e,t){let{filterManager:n,rowModel:r}=this.beans;return J(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:t=>n?.doesRowPassOtherFilters(e.getColId(),t)??!0,rowModel:r})}createFilterCompParams(e,t,n,r){let i=this.filterChangedCallbackFactory(e),a=this.createBaseFilterParams(e,r);if(a.filterChangedCallback=i,a.filterModifiedCallback=r?()=>{}:t=>this.filterModified(e,t),t){let t=a,r=e.getColId(),o=Xx(this.model,r);t.model=o,t.state=this.state.get(r)??{model:o},t.onModelChange=(t,n)=>{this.updateStoredModel(r,t),this.refreshHandlerAndUi(e,t,`ui`,!1,n).then(()=>{i({...n,source:`columnFilter`})})},t.onStateChange=t=>{this.updateState(e,t),this.updateOrRefreshFilterUi(e)},t.onAction=(t,n,r)=>{this.updateModel(e,t,n),this.dispatchLocalEvent({type:`filterAction`,column:e,action:t,event:r})},t.getHandler=()=>this.getHandler(e,!0),t.onUiChange=t=>this.filterUiChanged(e,t),t.source=n}return a}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,n){let r=t(),i={created:!0,create:t,filterParams:e.params,compDetails:e,promise:r};return r.then(n),i}createFilterWrapper(e){let{compDetails:t,handler:n,handlerGenerator:r,handlerParams:i,createFilterUi:a}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),e=>e),o=e.getColId();if(n)return delete this.initialModel[o],n.init?.({...i,source:`init`,model:Xx(this.model,o)}),{column:e,isHandler:!0,handler:n,handlerGenerator:r,handlerParams:i,filterUi:this.createFilterUiForHandler(t,a)};if(a){let n={column:e,filterUi:null,isHandler:!1};return n.filterUi=this.createFilterUiLegacy(t,a,e=>{n.filter=e??void 0}),n}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,n){let{gos:r,frameworkOverrides:i,registry:a}=this.beans,o,s=e=>{let t=e.filter;return Q_(t)?t.handler||(o=t.doesFilterPass,o?()=>({doesFilterPass:o}):void 0):typeof t==`string`?t:void 0},c=r.get(`enableFilterHandlers`),l=c?s(t):void 0,u=e=>()=>this.createBean(a.createDynamicBean(e,!0)),d,f;if(typeof l==`string`){let e=r.get(`filterHandlers`)?.[l];e==null?Wx.has(l)&&(d=u(l),f=l):d=e}else d=l;if(!d){let e,{compName:r,jsComp:a,fwComp:o}=Bv(i,t);r?e=r:a==null&&o==null&&t.filter===!0&&(e=n),f=this.handlerMap[e],f&&(d=u(f))}return d?{filterHandler:d,handlerNameOrCallback:o??f}:c?(Jh(r)&&K(277,{colId:e.getColId()}),DN):void 0}createHandler(e,t,n){let r=this.createHandlerFunc(e,t,n);if(!r)return;let i=Vv(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,`init`)),{handlerNameOrCallback:a,filterHandler:o}=r,{handler:s,handlerParams:c}=this.createHandlerFromFunc(e,o,i);return{handler:s,handlerParams:c,handlerGenerator:a??o}}createHandlerFromFunc(e,t,n){let r=e.getColDef();return{handler:t(J(this.gos,{column:e,colDef:r})),handlerParams:this.createHandlerParams(e,n)}}createHandlerParams(e,t){let n=e.getColDef(),r=e.getColId(),i=this.filterChangedCallbackFactory(e);return J(this.gos,{colDef:n,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:e=>this.beans.filterManager?.doesRowPassOtherFilters(r,e)??!0,onModelChange:(t,n)=>{this.updateStoredModel(r,t),this.refreshHandlerAndUi(e,t,`handler`,!1,n).then(()=>{i({...n,source:`columnFilter`})})},filterParams:t})}onColumnsChanged(){let e=[],{colModel:t,filterManager:n,groupFilter:r}=this.beans;this.allColumnFilters.forEach((n,r)=>{let i;i=n.column.isPrimary()?t.getColDefCol(r):t.getCol(r),!(i&&i===n.column)&&(e.push(n.column),this.disposeFilterWrapper(n,`columnChanged`),this.disposeColumnListener(r))});let i=r&&e.every(e=>r.isGroupFilter(e));e.length>0&&!i&&n?.onFilterChanged({columns:e,source:`api`})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;let t=this.beans.groupFilter;return!t?.isGroupFilter(e)||t.isFilterAllowed(e)}getFloatingFilterCompDetails(e,t){let{userCompFactory:n,frameworkOverrides:r,selectableFilter:i}=this.beans,a=t=>{this.getOrCreateFilterUi(e)?.then(e=>{t(Hv(e))})},o=e.getColDef(),s=i?.isSelectable(o)?i.getFilterDef(e,o):o,c=OS(r,s,()=>this.getDefaultFloatingFilter(e))??`agReadOnlyFloatingFilter`,l=this.gos.get(`enableFilterHandlers`),u=Vv(n,s,this.createFilterCompParams(e,l,`init`,!0)),d=J(this.gos,{column:e,filterParams:u,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:a,showParentFilter:t});if(l){let t=d,n=e.getColId(),r=this.filterChangedCallbackFactory(e);t.onUiChange=t=>this.floatingFilterUiChanged(e,t),t.model=Xx(this.model,n),t.onModelChange=(t,i)=>{this.updateStoredModel(n,t),this.refreshHandlerAndUi(e,t,`floating`,!0,i).then(()=>{r({...i,source:`columnFilter`})})},t.getHandler=()=>this.getHandler(e,!0),t.source=`init`}return zv(n,o,d,c)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,n,r){let i=`paramsUpdated`;if(e.isHandler){let a=t.getColId();delete this.initialModel[a],this.state.delete(a);let o=e.filterUi;e.filterUi=this.createFilterUiForHandler(n,r);let s=this.eventSvc;o?.created?o.promise.then(e=>{this.destroyBean(e),s.dispatchEvent({type:`filterDestroyed`,source:i,column:t})}):s.dispatchEvent({type:`filterHandlerDestroyed`,source:i,column:t})}else this.destroyFilter(t,i)}destroyFilter(e,t=`api`){let n=e.getColId(),r=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialModel[n],r&&this.disposeFilterWrapper(r,t).then(t=>{t&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:`api`})})}disposeColumnListener(e){let t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let n=!1,{column:r,isHandler:i,filterUi:a}=e,o=r.getColId();i&&(n=this.isHandlerActive(r),this.destroyBean(e.handler),delete this.model[o],this.state.delete(o));let s=()=>{this.setColFilterActive(r,!1,`filterDestroyed`),this.allColumnFilters.delete(o),this.eventSvc.dispatchEvent({type:`filterDestroyed`,source:t,column:r})};if(a){if(a.created)return a.promise.then(e=>(n=i?n:!!e?.isFilterActive(),this.destroyBean(e),s(),n));s()}return ev.resolve(n)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??`columnFilter`})}}filterParamsChanged(e,t=`api`){let n=this.allColumnFilters.get(e);if(!n)return;let r=this.beans,i=n.column,a=i.getColDef(),o=i.isFilterAllowed(),s=this.getDefaultFilter(i),c=r.selectableFilter,l=c?.isSelectable(a)?c.getFilterDef(i,a):a,u=o?this.createHandlerFunc(i,l,this.getDefaultFilter(i)):void 0,d=!!u,f=n.isHandler;if(f!=d){this.destroyFilter(i,`paramsUpdated`);return}let{compDetails:p,createFilterUi:m}=(o?this.createFilterComp(i,l,s,e=>e,d,`colDef`):null)??{compDetails:null,createFilterUi:null},h=p?.params??Vv(r.userCompFactory,l,this.createFilterCompParams(i,d,`colDef`));if(f){let r=u?.handlerNameOrCallback??u?.filterHandler,a=Xx(this.model,e);if(n.handlerGenerator!=r){let o=n.handler,{handler:s,handlerParams:c}=this.createHandlerFromFunc(i,u.filterHandler,h);n.handler=s,n.handlerParams=c,n.handlerGenerator=r,delete this.model[e],s.init?.({...c,source:`init`,model:null}),this.destroyBean(o),a!=null&&this.beans.filterManager?.onFilterChanged({columns:[i],source:t})}else{let e=this.createHandlerParams(i,p?.params);n.handlerParams=e,n.handler.refresh?.({...e,source:`colDef`,model:a})}}if(this.areFilterCompsDifferent(n.filterUi?.compDetails??null,p)||!n.filterUi||!p){this.destroyFilterUi(n,i,p,m);return}n.filterUi.filterParams=h,Gx(n,f)?.then(e=>{(!e?.refresh||e.refresh(h))===!1?this.destroyFilterUi(n,i,p,m):this.dispatchLocalEvent({type:`filterParamsChanged`,column:i,params:h})})}refreshHandlerAndUi(e,t,n,r,i){let a=this.cachedFilter(e);if(!a)return r&&this.getOrCreateFilterWrapper(e,!0),ev.resolve();if(!a.isHandler)return ev.resolve();let{filterUi:o,handler:s,handlerParams:c}=a;return Kx(()=>{if(o){let{created:e,filterParams:t}=o;if(e)return o.promise.then(e=>e?{filter:e,filterParams:t}:void 0);o.refreshed=!0}return ev.resolve(void 0)},s,c,t,this.state.get(e.getColId())??{model:t},n,i)}setColumnFilterWrapper(e,t){let n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(n)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;let{componentClass:n}=e,{componentClass:r}=t;return!(n===r||n?.render&&r?.render&&n.render===r.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(e=>e.getColDef().floatingFilter)}getFilterInstance(e){let t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);let n=this.getOrCreateFilterUi(t);return n?new Promise(e=>{n.then(t=>{e(Hv(t))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:n})=>{this.setModelForColumn(e,t).then(()=>n())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){let{state:t,model:n}=this,r=e.getColId(),i=t.get(r);return i?i.model??null:Xx(n,r)}let n=this.cachedFilter(e);return n?this.getModelFromFilterWrapper(n):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let n=()=>{},r=new Promise(e=>{n=e});return this.columnModelUpdates.push({key:e,model:t,resolve:n}),r}return new Promise(n=>{this.setModelForColumnLegacy(e,t).then(e=>n(e))})}getStateForColumn(e){return this.state.get(e)??{model:Xx(this.model,e)}}setModelForColumnLegacy(e,t){let n=this.beans.colModel.getColDefCol(e),r=n?this.getOrCreateFilterWrapper(n,!0):null;return r?this.setModelOnFilterWrapper(r,t):ev.resolve()}setColDefPropsForDataType(e,t,n){let r=e.filter,i=r===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):r;if(typeof i!=`string`)return;let a,o,s=this.beans,{filterParams:c,filterValueGetter:l}=e;i===`agMultiColumnFilter`?{filterParams:a,filterValueGetter:o}=s.multiFilter?.getParamsForDataType(c,l,t,n)??{}:{filterParams:a,filterValueGetter:o}=pS(i,c,l,t,n,s,this.getLocaleTextFunc()),e.filterParams=a,o&&(e.filterValueGetter=o)}setColFilterActive(e,t,n,r){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent(`filterActiveChanged`,n)),e.dispatchColEvent(`filterChanged`,n,r)}setModelOnFilterWrapper(e,t,n){return new ev(r=>{if(e.isHandler){let i=e.column,a=i.getColId(),o=this.model[a];if(this.updateStoredModel(a,t),n&&t===o){r();return}this.refreshHandlerAndUi(i,t,`api`).then(()=>r());return}let i=Gx(e);if(i){i.then(e=>{if(typeof e?.setModel!=`function`){K(65),r();return}(e.setModel(t)||ev.resolve()).then(()=>r())});return}r()})}updateStoredModel(e,t){B(t)?this.model[e]=t:delete this.model[e];let n={model:t,state:this.state.get(e)?.state};this.state.set(e,n)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(n=>{this.eventSvc.dispatchEvent({type:`filterModified`,column:e,filterInstance:n,...t})})}filterUiChanged(e,t){this.gos.get(`enableFilterHandlers`)&&this.eventSvc.dispatchEvent({type:`filterUiChanged`,column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get(`enableFilterHandlers`)&&this.eventSvc.dispatchEvent({type:`floatingFilterUiChanged`,column:e,...t})}updateModel(e,t,n){let r=e.getColId(),i=this.cachedFilter(e),a=()=>i?.filterUi;Yx(t,a,()=>Xx(this.model,r),()=>this.state.get(r),t=>this.updateState(e,t),e=>a()?.filterParams?.onModelChange(e,n),i?.isHandler?i.handler.processModelToApply?.bind(i.handler):void 0)}updateAllModels(e,t){let n=[];this.allColumnFilters.forEach((t,r)=>{let i=this.beans.colModel.getColDefCol(r);i&&Yx(e,()=>t.filterUi,()=>Xx(this.model,r),()=>this.state.get(r),e=>this.updateState(i,e),t=>{this.updateStoredModel(r,t),this.dispatchLocalEvent({type:`filterAction`,column:i,action:e}),n.push(this.refreshHandlerAndUi(i,t,`ui`))},t?.isHandler?t.handler.processModelToApply?.bind(t.handler):void 0)}),n.length&&ev.all(n).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:`columnFilter`,additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){let t=e.getColId();Jx(()=>this.cachedFilter(e)?.filterUi,()=>Xx(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:`filterStateChanged`,column:e,state:t})}canApplyAll(){let{state:e,model:t,activeFilterComps:n}=this;for(let e of n)if(e.source===`COLUMN_MENU`)return!1;let r=!1;for(let n of e.keys()){let i=e.get(n);if(i.valid===!1)return!1;(i.model??null)!==Xx(t,n)&&(r=!0)}return r}hasUnappliedModel(e){let{model:t,state:n}=this;return(n.get(e)?.model??null)!==Xx(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:`filterGlobalButtons`,isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t===`newFiltersToolPanel`)return!0;let n=this.beans.filterPanelSvc;return n?.isActive?!!n.getState(e.getColId()):!1}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,`gridDestroyed`)),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function kN(e){return!!e.filterManager?.isAnyFilterPresent()}function AN(e,t=`api`){e.filterManager?.onFilterChanged({source:t})}var jN=class extends W{constructor(){super(...arguments),this.beanName=`filterManager`,this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){let e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:e})=>this.onAdvFilterEnabledChanged(e),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners([`isExternalFilterPresent`,`doesExternalFilterPass`],()=>{this.onFilterChanged({source:`api`})}),this.updateAggFiltering(),this.addManagedPropertyListener(`groupAggFiltering`,()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:`quickFilter`})});let{gos:n}=this;this.alwaysPassFilter=n.get(`alwaysPassFilter`),this.addManagedPropertyListener(`alwaysPassFilter`,()=>{this.alwaysPassFilter=n.get(`alwaysPassFilter`),this.onFilterChanged({source:`api`})})}isExternalFilterPresentCallback(){let e=this.gos.getCallback(`isExternalFilterPresent`);return typeof e==`function`&&e({})}doesExternalFilterPass(e){let t=this.gos.get(`doesExternalFilterPass`);return typeof t==`function`&&t(e)}setFilterState(e,t,n=`api`){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,n)}setFilterModel(e,t=`api`,n){if(this.isAdvFilterEnabled()){n||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:`advancedFilter`}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:`advancedFilter`}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){lg(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){let{source:t,additionalEventAttributes:n,columns:r=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):ev.resolve()).then(()=>{let e={source:t,type:`filterChanged`,columns:r};n&&eh(e,n),this.eventSvc.dispatchEvent(e),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!lg(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get(`applyQuickFilterBeforePivotOrAgg`)}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){let{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){let{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterAllowed(e){return!this.isAdvFilterEnabled()&&!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t=`api`){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:`advancedFilter`})}hasFloatingFilters(){return!this.isAdvFilterEnabled()&&!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){K(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return+!!this.isAdvFilterHeaderActive()}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(let e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}},MN=class extends W{constructor(){super(...arguments),this.beanName=`filterMenuFactory`}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,n,r){e&&!e.isColumn||this.showPopup(e,r=>{this.popupSvc?.positionPopupUnderMouseEvent({column:e,type:n,mouseEvent:t,ePopup:r})},n,t.target,Fg(this.gos),r)}showMenuAfterButtonClick(e,t,n,r){if(e&&!e.isColumn)return;let i=-1,a=`left`,o=Fg(this.gos);!o&&this.gos.get(`enableRtl`)&&(i=1,a=`right`);let s=o?void 0:4*i,c=o?void 0:4;this.showPopup(e,r=>{this.popupSvc?.positionPopupByComponent({type:n,eventSource:t,ePopup:r,nudgeX:s,nudgeY:c,alignSide:a,keepWithinBounds:!0,position:`under`,column:e})},n,t,o,r)}showPopup(e,t,n,r,i,a){let o=e?this.createBean(new oS(e,`COLUMN_MENU`)):void 0;if(this.activeMenu=o,!o?.hasFilter()||!e){q(57);return}let s=Zx({tag:`div`,cls:`ag-menu${i?``:` ag-filter-menu`}`,role:`presentation`});[this.tabListener]=this.addManagedElementListeners(s,{keydown:e=>this.trapFocusWithin(e,s)}),s.appendChild(o?.getGui());let c,l=()=>o?.afterGuiDetached(),u=Ig(this.gos)?r??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,d=t=>{Ew(e,!1,`contextMenu`);let i=t instanceof KeyboardEvent;this.tabListener&&=this.tabListener(),i&&r&&$p(r)&&Ny(r)?.focus({preventScroll:!0}),l(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,n,e),a?.()},f=this.getLocaleTextFunc(),p=i&&n!==`columnFilter`?f(`ariaLabelColumnMenu`,`Column Menu`):f(`ariaLabelColumnFilter`,`Column Filter`),m=this.popupSvc?.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:d,positionCallback:()=>t(s),anchorToElement:u,ariaLabel:p});m&&(this.hidePopup=c=m.hideFunc),o.afterInit().then(()=>{t(s),o.afterGuiAttached({container:n,hidePopup:c})}),Ew(e,!0,`contextMenu`),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==Z.TAB||e.defaultPrevented||My(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),jy(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){this.eventSvc.dispatchEvent({type:`columnMenuVisibleChanged`,visible:e,switchingTab:!1,key:t,column:n??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??[`filterMenuTab`]).includes(`filterMenuTab`)}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},NN=class extends W{constructor(){super(...arguments),this.beanName=`filterValueSvc`}getValue(e,t,n){if(!t)return;let r=e.getColDef(),{selectableFilter:i,valueSvc:a}=this.beans,o=n??i?.getFilterValueGetter(e.getColId())??r.filterValueGetter;return o?this.executeFilterValueGetter(o,t.data,e,t,r):a.getValue(e,t)}executeFilterValueGetter(e,t,n,r,i){let{expressionSvc:a,valueSvc:o}=this.beans,s=J(this.gos,{data:t,node:r,column:n,colDef:i,getValue:o.getValueCallback.bind(o,r)});return typeof e==`function`?e(s):a?.evaluate(e,s)}},PN={tag:`div`,cls:`ag-floating-filter-input`,role:`presentation`,children:[{tag:`ag-input-text-field`,ref:`eFloatingFilterText`}]},FN=class extends X{constructor(){super(PN,[Uy]),this.eFloatingFilterText=null}init(e){this.params=e;let t=this.beans.colNames.getDisplayNameForColumn(e.column,`header`,!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()(`ariaFilterInput`,`Filter Input`)}`),this.gos.get(`enableFilterHandlers`)){let t=e,n=t.getHandler();if(n.getModelAsString){let e=n.getModelAsString(t.model);this.eFloatingFilterText.setValue(e)}}}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue(``);return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){let n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})}refresh(e){this.init(e)}},IN=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){let n=e.filterOptions??t;this.filterOptions!==n&&(this.filterOptions=n,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){let{filterOptions:e}=this;if(e){for(let t of e)if(typeof t!=`string`){if(![[`displayKey`],[`displayName`],[`predicate`,`test`]].every(e=>e.some(e=>t[e]!=null)?!0:(K(72,{keys:e}),!1))){this.filterOptions=e.filter(e=>e===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}}getDefaultItem(e){let{filterOptions:t}=this;if(e)return e;if(t.length>=1){let e=t[0];if(typeof e==`string`)return e;if(e.displayKey)return e.displayKey;K(73)}else K(74)}getCustomOption(e){return this.customFilterOptions[e]}};function LN(e,t,n){return n==null?e.splice(t):e.splice(t,n)}function RN(e){return e==null||typeof e==`string`&&e.trim().length===0}function zN(e){return e===`AND`||e===`OR`?e:`AND`}function BN(e,t,n){if(e==null)return;let{predicate:r}=e;if(r!=null&&!t.some(e=>e==null))return r(t,n)}function VN(e,t){let n=e.length;return n>t&&(e.splice(t),K(78),n=t),n}function HN(e,t){let n=t.getCustomOption(e);if(n){let{numberOfInputs:e}=n;return e??1}return e&&[`empty`,`notBlank`,`blank`].indexOf(e)>=0?0:e===`inRange`?2:1}var UN=class extends ES{constructor(e,t,n){super(e,`simple-filter`),this.mapValuesFromModel=t,this.defaultOptions=n,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);let t=new IN;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=zN(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions();let t=this.getGui();this.isReadOnly()?t.setAttribute(`tabindex`,`-1`):t.removeAttribute(`tabindex`)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(`immediately`,!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,n)=>{let r=n===0?e:this.optionsFactory.defaultOption;t.setValue(r,!0)})}getModelFromUi(){let e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){let{eJoinOrs:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?`OR`:`AND`}areNonNullModelsEqual(e,t){let n=!e.operator,r=!t.operator;if(!n&&r||n&&!r)return!1;let i;if(n){let n=e,r=t;i=this.areSimpleModelsEqual(n,r)}else{let n=e,r=t;i=n.operator===r.operator&&Zg(n.conditions,r.conditions,(e,t)=>this.areSimpleModelsEqual(e,t))}return i}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),ev.resolve();if(e.operator){let t=e,n=t.conditions;n??(n=[],K(77));let r=VN(n,this.maxNumConditions),i=this.getNumConditions();if(ri)for(let e=i;ee.setValue(!a,!0)),this.eJoinOrs.forEach(e=>e.setValue(a,!0)),n.forEach((e,t)=>{this.eTypes[t].setValue(e.type,!0),this.setConditionIntoUi(e,t)})}else{let t=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(t.type,!0),this.setConditionIntoUi(t,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),ev.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(K(79),t=1),this.maxNumConditions=t;let n=e.numAlwaysVisibleConditions??1;n<1&&(K(80),n=1),n>t&&(K(81),n=t),this.numAlwaysVisibleConditions=n}createOption(){let e=this.getGui(),t=this.createManagedBean(new rb);this.eTypes.push(t),t.addCss(`ag-filter-select`),e.appendChild(t.getGui());let n=this.createEValue();this.eConditionBodies.push(n),e.appendChild(n),this.putOptionsIntoDropdown(t),this.resetType(t);let r=this.getNumConditions()-1;this.forEachPositionInput(r,e=>this.resetInput(e)),this.addChangedListeners(t,r)}createJoinOperatorPanel(){let e=Zx({tag:`div`,cls:`ag-filter-condition`});this.eJoinPanels.push(e);let t=this.createJoinOperator(this.eJoinAnds,e,`and`),n=this.createJoinOperator(this.eJoinOrs,e,`or`);this.getGui().appendChild(e);let r=this.eJoinPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,i),this.resetJoinOperatorOr(n,r,i),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){let r=this.createManagedBean(new Vy);e.push(r);let i=`ag-filter-condition-operator`;return r.addCss(i),r.addCss(`${i}-${n}`),t.appendChild(r.getGui()),r}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e==`string`?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){let{filterListOptions:t}=this;for(let n of t)e.addOption(n);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){let{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){let e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let n=0;n0&&this.removeConditionsAndOperators(n,r),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((t,n)=>{let r=this.isConditionDisabled(n,e);t.setDisabled(r||this.filterListOptions.length<=1),n===1&&(Bp(this.eJoinPanels[0],r),this.eJoinAnds[0].setDisabled(r),this.eJoinOrs[0].setDisabled(r))}),this.eConditionBodies.forEach((e,t)=>{U(e,this.isConditionBodyVisible(t))});let n=(t??this.getJoinOperator())===`OR`;for(let e of this.eJoinAnds)e.setValue(!n,!0);for(let e of this.eJoinOrs)e.setValue(n,!0);this.forEachInput((t,n,r,i)=>{this.setElementDisplayed(t,n=this.getNumConditions())return;let{eTypes:n,eConditionBodies:r,eJoinPanels:i,eJoinAnds:a,eJoinOrs:o}=this;this.removeComponents(n,e,t),this.removeElements(r,e,t),this.removeEValues(e,t);let s=Math.max(e-1,0);this.removeElements(i,s,t),this.removeComponents(a,s,t),this.removeComponents(o,s,t)}removeElements(e,t,n){let r=LN(e,t,n);for(let e of r)Zp(e)}removeComponents(e,t,n){let r=LN(e,t,n);for(let e of r)Zp(e.getGui()),this.destroyBean(e)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let e;if(!this.isReadOnly()){let t=this.getInputs(0)[0];e=t instanceof Ry&&this.isConditionBodyVisible(0)?t.getInputElement():this.eTypes[0]?.getFocusableElement()}(e??this.getGui()).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();let e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column))return;e.onStateChange({model:e.model});let t=-1,n=-1,r=!1,i=this.getJoinOperator();for(let e=this.getNumConditions()-1;e>=0;e--)if(this.isConditionUiComplete(e))t===-1&&(t=e,n=e);else{let i=e>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(e-1),a=e{if(!(t instanceof Ry))return;let a=n===0&&i>1?`inRangeStart`:n===0?`filterOoo`:`inRangeEnd`,o=n===0&&i>1?e(`ariaFilterFromValue`,`Filter from value`):n===0?e(`ariaFilterValue`,`Filter Value`):e(`ariaFilterToValue`,`Filter to Value`);t.setInputPlaceholder(this.getPlaceholderText(a,r)),t.setInputAriaLabel(o)})}setElementValue(e,t,n){e instanceof Ry&&e.setValue(t==null?null:String(t),!0)}setElementDisplayed(e,t){J_(e)&&U(e.getGui(),t)}setElementDisabled(e,t){J_(e)&&Bp(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Ry&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,n)=>{this.forEachPositionTypeInput(n,t,e)})}forEachPositionInput(e,t){let n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){let r=HN(t,this.optionsFactory),i=this.getInputs(e);for(let t=0;tt+1}isConditionBodyVisible(e){return HN(this.getConditionType(e),this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)===`empty`||this.getValues(e).some(e=>e==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){let e=[];for(let t=0;tthis.resetType(e)),this.eJoinAnds.forEach((e,t)=>this.resetJoinOperatorAnd(e,t,this.joinOperatorId+t)),this.eJoinOrs.forEach((e,t)=>this.resetJoinOperatorOr(e,t,this.joinOperatorId+t)),this.joinOperatorId++,this.forEachInput(e=>this.resetInput(e)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){let t=this.getLocaleTextFunc()(`ariaFilteringOperator`,`Filtering operator`);e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(t).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator===`AND`,this.translate(`andCondition`),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator===`OR`,this.translate(`orCondition`),n)}resetJoinOperator(e,t,n,r,i){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${i}`).setLabel(r),t)}updateJoinOperatorsDisabled(){let e=(e,t)=>this.updateJoinOperatorDisabled(e,t);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){let n=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((e,r,i)=>{i===t&&this.setElementValue(e,n[r]==null?null:n[r])})}setValueFromFloatingFilter(e){this.forEachInput((t,n,r)=>{this.setElementValue(t,n===0&&r===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,e=>{this.attachElementOnChange(e,this.listener)}))}hasInvalidInputs(){return!1}isReadOnly(){return!!this.params.readOnly}},WN=class{constructor(e,t,n,r,i,a){this.alive=!0,this.context=e,this.eParent=i;let o=Fv(t,n,r);o&&o.newAgStackInstance().then(t=>{if(!this.alive){e.destroyBean(t);return}if(this.dateComp=t,!t)return;i.appendChild(t.getGui()),t?.afterGuiAttached?.();let{tempValue:n,disabled:r}=this;n&&t.setDate(n),r!=null&&t.setDisabled?.(r),a?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){let t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){let t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){U(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}},GN=[`equals`,`notEqual`,`lessThan`,`greaterThan`,`inRange`,`blank`,`notBlank`];function KN(e,t){let{dateFrom:n,dateTo:r,type:i}=e||{};return[n&&yy(n,void 0,!0)||null,r&&yy(r,void 0,!0)||null].slice(0,HN(i,t))}var qN=1e3,JN=1/0,YN=class extends UN{constructor(){super(`dateFilter`,KN,GN),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=qN,this.maxValidYear=JN,this.minValidDate=null,this.maxValidDate=null,this.filterType=`date`}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);let t=(t,n)=>{let r=e[t];if(r!=null)if(isNaN(r))K(82,{param:t});else return r==null?n:Number(r);return n},n=t(`minValidYear`,qN),r=t(`maxValidYear`,JN);this.minValidYear=n,this.maxValidYear=r,n>r&&K(83);let{minValidDate:i,maxValidDate:a}=e,o=i instanceof Date?i:yy(i);this.minValidDate=o;let s=a instanceof Date?a:yy(a);this.maxValidDate=s,o&&s&&o>s&&K(84)}createDateCompWrapper(e){let{beans:{userCompFactory:t,context:n,gos:r},params:i}=this,a=new WN(n,t,i.colDef,J(r,{onDateChanged:()=>this.onUiChanged(),filterParams:i,location:`filter`}),e);return this.addDestroyFunc(()=>a.destroy()),a}setElementValue(e,t){e.setDate(t)}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){let e=Zx({tag:`div`,cls:`ag-filter-body`});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,`from`),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,`to`),e}createFromToElement(e,t,n,r){let i=Zx({tag:`div`,cls:`ag-filter-${r} ag-filter-date-${r}`});t.push(i),e.appendChild(i),n.push(this.createDateCompWrapper(i))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),LN(this.eConditionPanelsFrom,e,t),LN(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,n){let r=LN(e,t,n);for(let e of r)e.destroy()}isValidDateValue(e){if(e===null)return!1;let{minValidDate:t,maxValidDate:n,minValidYear:r,maxValidYear:i}=this;if(t){if(en)return!1}else if(e.getUTCFullYear()>i)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachInput((n,r,i,a)=>{i!==e||!t||r>=a||(t&&=this.isValidDateValue(n.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){let t=this.getConditionType(e),n={},r=this.getValues(e),i=this.params.useIsoSeparator?`T`:` `;return r.length>0&&(n.dateFrom=dy(r[0],!0,i)),r.length>1&&(n.dateTo=dy(r[1],!0,i)),{dateFrom:null,dateTo:null,filterType:this.filterType,type:t,...n}}resetPlaceholder(){let e=this.getLocaleTextFunc(),t=this.translate(`dateFormatOoo`),n=e(`ariaFilterValue`,`Filter Value`);this.forEachInput(e=>{e.setInputPlaceholder(t),e.setInputAriaLabel(n)})}getInputs(e){let{dateConditionFromComps:t,dateConditionToComps:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){let t=[];return this.forEachPositionInput(e,(e,n,r,i)=>{nthis.individualConditionPasses(e,t,a))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??``}validateModel(e){let{model:t,filterParams:{filterOptions:n,maxNumConditions:r}}=e;if(t==null)return;let i=DS(t)?t.conditions:[t],a=n?.map(e=>typeof e==`string`?e:e.displayKey)??this.defaultOptions;if(!(!i||i.every(e=>a.find(t=>t===e.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let o=!1,s=this.filterType;if((i&&!i.every(e=>e.filterType===s)||t.filterType!==s)&&(i=i.map(e=>({...e,filterType:s})),o=!0),typeof r==`number`&&i&&i.length>r&&(i=i.slice(0,r),o=!0),o){let n=i.length>1?{...t,filterType:s,conditions:i}:{...i[0],filterType:s};this.params={...e,model:n},e.onModelChange(n)}}individualConditionPasses(e,t,n){let r=this.optionsFactory,i=this.mapValuesFromModel(t,r);return BN(r.getCustomOption(t.type),i,n)??(n==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(i,n,t,e))}},ZN=class extends XN{evaluateNullValue(e){let{includeBlanksInEquals:t,includeBlanksInNotEqual:n,includeBlanksInGreaterThan:r,includeBlanksInLessThan:i,includeBlanksInRange:a}=this.params.filterParams;switch(e){case`equals`:if(t)return!0;break;case`notEqual`:if(n)return!0;break;case`greaterThan`:case`greaterThanOrEqual`:if(r)return!0;break;case`lessThan`:case`lessThanOrEqual`:if(i)return!0;break;case`inRange`:if(a)return!0;break;case`blank`:return!0;case`notBlank`:return!1}return!1}evaluateNonNullValue(e,t,n){let r=n.type;if(!this.isValid(t))return r===`notEqual`||r===`notBlank`;let i=this.comparator(),a=e[0]==null?0:i(e[0],t);switch(r){case`equals`:return a===0;case`notEqual`:return a!==0;case`greaterThan`:return a>0;case`greaterThanOrEqual`:return a>=0;case`lessThan`:return a<0;case`lessThanOrEqual`:return a<=0;case`inRange`:{let n=i(e[1],t);return this.params.filterParams.inRangeInclusive?a>=0&&n<=0:a>0&&n<0}case`blank`:return RN(t);case`notBlank`:return!RN(t);default:return K(76,{filterModelType:r}),!0}}},QN={equals:`Equals`,notEqual:`NotEqual`,greaterThan:`GreaterThan`,greaterThanOrEqual:`GreaterThanOrEqual`,lessThan:`LessThan`,lessThanOrEqual:`LessThanOrEqual`,inRange:`InRange`},$N={contains:`Contains`,notContains:`NotContains`,equals:`TextEquals`,notEqual:`TextNotEqual`,startsWith:`StartsWith`,endsWith:`EndsWith`,inRange:`InRange`},eP=class extends W{constructor(e,t,n){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=n}getModelAsString(e,t){let n=this.getLocaleTextFunc(),r=t===`filterToolPanel`;if(!e)return r?tS(this,`filterSummaryInactive`):null;if(e.operator!=null){let n=e,r=(n.conditions??[]).map(e=>this.getModelAsString(e,t)),i=n.operator===`AND`?`andCondition`:`orCondition`;return r.join(` ${tS(this,i)} `)}if(e.type===`blank`||e.type===`notBlank`)return r?tS(this,e.type===`blank`?`filterSummaryBlank`:`filterSummaryNotBlank`):n(e.type,e.type);{let t=e,{displayKey:i,displayName:a,numberOfInputs:o}=this.optionsFactory.getCustomOption(t.type)||{};return i&&a&&o===0?n(i,a):this.conditionToString(t,r,t.type===`inRange`||o===2,i,a)}}updateParams(e){let{optionsFactory:t,filterParams:n}=e;this.optionsFactory=t,this.filterParams=n}conditionForToolPanel(e,t,n,r,i,a){let o,s=this.getTypeKey(e);return s&&(o=tS(this,s)),i&&a&&(o=this.getLocaleTextFunc()(i,a)),o==null?null:t?`${o} ${tS(this,`filterSummaryInRangeValues`,[n(),r()])}`:`${o} ${n()}`}getTypeKey(e){let t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){let t=this.valueFormatter;return t?t(e??null)??``:String(e)}},tP=class extends eP{constructor(e,t){super(e,t,e=>{let{dataTypeSvc:n,valueSvc:r}=this.beans,i=t.column,a=n?.getDateFormatterFunction(i),o=a?a(e??void 0):e;return r.formatValue(i,null,o)}),this.filterTypeKeys=QN}conditionToString(e,t,n,r,i){let{type:a}=e,o=yy(e.dateFrom),s=yy(e.dateTo),c=this.filterParams.inRangeFloatingFilterDateFormat,l=t?this.formatValue.bind(this):e=>gy(e,c),u=()=>o===null?`null`:l(o),d=()=>s===null?`null`:l(s);if(t){let e=this.conditionForToolPanel(a,n,u,d,r,i);if(e!=null)return e}return n?`${u()}-${d()}`:o==null?`${a}`:l(o)}};function nP(e,t){let n=t;return ne)}var rP=class extends ZN{constructor(){super(KN,GN),this.filterType=`date`,this.FilterModelFormatterClass=tP}comparator(){return this.params.filterParams.comparator??nP}isValid(e){let t=this.params.filterParams.isValidDate;return!t||t(e)}},iP=class extends X{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}let t=e.operator,n;n=t?e.conditions[0]:e,this.lastType=n.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;let t=e;return this.isTypeEditable(t.type)}init(e){this.params=e;let t=this.gos.get(`enableFilterHandlers`);if(this.reactive=t,this.setParams(e),t){let t=e;this.onModelUpdated(t.model)}}setParams(e){let t=new IN;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){let n=this.optionsFactory.defaultOption;t||(this.lastType=n),this.readOnly=!!e.filterParams.readOnly;let r=this.isTypeEditable(n);this.setEditable(r)}refresh(e){this.params=e;let t=e,n=this.reactive;if((!n||t.source===`colDef`)&&this.updateParams(e),n){let{source:e,model:n}=t;if(e===`dataChanged`||e===`ui`)return;this.onModelUpdated(n)}}updateParams(e){let t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}hasSingleInput(e){let t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return t==null||t==1}isTypeEditable(e){return!!e&&!this.readOnly&&this.hasSingleInput(e)&&[`inRange`,`empty`,`blank`,`notBlank`].indexOf(e)<0}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e.column,`header`,!0)} ${this.getLocaleTextFunc()(`ariaFilterInput`,`Filter Input`)}`}},aP={tag:`div`,cls:`ag-floating-filter-input`,role:`presentation`,children:[{tag:`ag-input-text-field`,ref:`eReadOnlyText`},{tag:`div`,ref:`eDateWrapper`,cls:`ag-date-floating-filter-wrapper`}]},oP=class extends iP{constructor(){super(aP,[Uy]),this.eReadOnlyText=null,this.eDateWrapper=null,this.FilterModelFormatterClass=tP,this.filterType=`date`,this.defaultOptions=GN}setParams(e){super.setParams(e),this.createDateComponent();let t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t(`ariaDateFilterInput`,`Date Filter Input`))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){let t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){let t=e?yy(e.dateFrom):null;this.dateComp.setDate(t),this.eReadOnlyText.setValue(``)}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){U(this.eDateWrapper,e),U(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){let e=this.dateComp.getDate();if(this.reactive){let t=this.params;t.onUiChange();let n=t.model,r=dy(e),i=r==null?null:{...n??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:r};t.onModelChange(i,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){let{filterParams:e}=this.params,t=nS(e,this.defaultDebounceMs);return J(this.gos,{onDateChanged:Ym(this,this.onDateChanged.bind(this),t),filterParams:e,location:`floatingFilter`})}createDateComponent(){let{beans:{context:e,userCompFactory:t},eDateWrapper:n,params:r}=this;this.dateComp=new WN(e,t,r.column.getColDef(),this.getDateComponentParams(),n,e=>{e.setInputAriaLabel(this.getAriaLabel(r))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},sP={tag:`div`,cls:`ag-filter-filter`,children:[{tag:`ag-input-text-field`,ref:`eDateInput`,cls:`ag-date-filter`}]},cP=class extends X{constructor(){super(sP,[Uy]),this.eDateInput=null,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);let t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(e){let t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&Qv();let{minValidYear:r,maxValidYear:i,minValidDate:a,maxValidDate:o,buttons:s,includeTime:c,colDef:l}=e.filterParams||{},u=this.beans.dataTypeSvc,d=c??u?.getDateIncludesTimeFlag?.(l.cellDataType)??!1;if(n?d?(t.type=`datetime-local`,t.step=`1`):t.type=`date`:t.type=`text`,a&&r&&K(85),o&&i&&K(86),a&&o){let[e,t]=[a,o].map(e=>e instanceof Date?e:yy(e));e&&t&&e.getTime()>t.getTime()&&K(87)}a?t.min=a instanceof Date?gy(a):a:r&&(t.min=`${r}-01-01`),o?t.max=o instanceof Date?gy(o):o:i&&(t.max=`${i}-12-31`),this.isApply=e.location===`floatingFilter`&&!!s?.includes(`apply`)}refresh(e){this.params=e,this.setParams(e)}getDate(){return yy(this.eDateInput.getValue())}setDate(e){let t=this.params.filterParams.colDef.cellDataType,n=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(dy(e,n))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}},lP=[`equals`,`notEqual`,`greaterThan`,`greaterThanOrEqual`,`lessThan`,`lessThanOrEqual`,`inRange`,`blank`,`notBlank`];function uP(e){let{allowedCharPattern:t}=e??{};return t??null}function dP(e){return e==null||isNaN(e)?null:e}function fP(e,t){let{filter:n,filterTo:r,type:i}=e||{};return[dP(n),dP(r)].slice(0,HN(i,t))}var pP=class extends UN{constructor(){super(`numberFilter`,fP,lP),this.eValuesFrom=[],this.eValuesTo=[],this.filterType=`number`,this.defaultDebounceMs=500}setElementValue(e,t,n){let{numberFormatter:r}=this.params,i=!n&&r?r(t??null):t;super.setElementValue(e,i)}createEValue(){let e=uP(this.params),t=Zx({tag:`div`,cls:`ag-filter-body`,role:`presentation`});return this.createFromToElement(t,this.eValuesFrom,`from`,e),this.createFromToElement(t,this.eValuesTo,`to`,e),t}createFromToElement(e,t,n,r){let i=this.createManagedBean(r?new Hy({allowedCharPattern:r}):new Gy);i.addCss(`ag-filter-${n}`),i.addCss(`ag-filter-filter`),t.push(i),e.appendChild(i.getGui())}removeEValues(e,t){let n=n=>this.removeComponents(n,e,t);n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){let t=[];return this.forEachPositionInput(e,(e,n,r,i)=>{n0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}getInputs(e){let{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>{t.getInputElement().validity.valid||(e=!0)}),e}},mP=class extends eP{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=QN}conditionToString(e,t,n,r,i){let{filter:a,filterTo:o,type:s}=e,c=this.formatValue.bind(this);if(t){let e=this.conditionForToolPanel(s,n,()=>c(a),()=>c(o),r,i);if(e!=null)return e}return n?`${c(a)}-${c(o)}`:a==null?`${s}`:c(a)}},hP=class extends ZN{constructor(){super(fP,lP),this.filterType=`number`,this.FilterModelFormatterClass=mP}comparator(){return(e,t)=>e===t?0:e{}}setupGui(e){this.eInput=this.createManagedBean(new Hy(this.params?.config));let t=this.eInput.getGui();e.appendChild(t);let n=e=>this.onValueChanged(e);this.addManagedListeners(t,{input:n,keydown:n})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t}){let{eInput:n}=this;n.setInputAriaLabel(e),t!==void 0&&n.setAutoComplete(t)}};function _P(e){let t=e?.trim();return t===``?e:t}function vP(e,t){let{filter:n,filterTo:r,type:i}=e||{};return[n||null,r||null].slice(0,HN(i,t))}var yP={tag:`div`,ref:`eFloatingFilterInputContainer`,cls:`ag-floating-filter-input`,role:`presentation`},bP=class extends iP{constructor(){super(...arguments),this.eFloatingFilterInputContainer=null,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(yP)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){let t=e.browserAutoComplete??!1,{inputSvc:n,defaultDebounceMs:r,readOnly:i}=this;if(n.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:t}),this.applyActive=rS(e.filterParams),!i){let t=nS(e.filterParams,r),i=Ym(this,this.syncUpWithParentFilter.bind(this),t);n.setValueChangedListener(i)}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){let{inputSvc:t}=this,n=t.getValue();Xp(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(n,!0)}syncUpWithParentFilter(e){let t=e.key===Z.ENTER,n=this.reactive;if(n&&this.params.onUiChange(),this.applyActive&&!t)return;let{inputSvc:r,params:i,lastType:a}=this,o=r.getValue();if(i.filterParams.trimInput&&(o=_P(o),r.setValue(o,!0)),n){let e=i,t=e.model,n=this.convertValue(o),r=n==null?null:{...t??{filterType:this.filterType,type:a??this.optionsFactory.defaultOption},filter:n};e.onModelChange(r,{afterFloatingFilter:!0})}else i.parentFilterInstance(e=>{e?.onFloatingFilterChanged(a||null,o||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},xP=class extends W{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new Gy),this.eTextInput=this.createManagedBean(new Hy),this.eTextInput.setDisabled(!0);let t=this.eNumberInput.getGui(),n=this.eTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,e=>this.onValueChanged(e)),this.setupListeners(n,e=>this.onValueChanged(e))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},SP=class extends bP{constructor(){super(...arguments),this.FilterModelFormatterClass=mP,this.filterType=`number`,this.defaultOptions=lP}updateParams(e){uP(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=uP(e.filterParams),this.allowedCharPattern?this.createManagedBean(new gP({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new xP)}convertValue(e){return e?Number(e):null}},CP=[`contains`,`notContains`,`equals`,`notEqual`,`startsWith`,`endsWith`,`blank`,`notBlank`],wP=class extends UN{constructor(){super(`textFilter`,vP,CP),this.filterType=`text`,this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){let t=this.getConditionType(e),n={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){let{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){let t=[];return this.forEachPositionInput(e,(e,n,r,i)=>{nthis.removeComponents(n,e,t),{eValuesFrom:r,eValuesTo:i}=this;n(r),n(i)}},TP=class extends eP{constructor(){super(...arguments),this.filterTypeKeys=$N}conditionToString(e,t,n,r,i){let{filter:a,filterTo:o,type:s}=e;if(t){let e=e=>()=>tS(this,`filterSummaryTextQuote`,[e]),t=this.conditionForToolPanel(s,n,e(a),e(o),r,i);if(t!=null)return t}return n?`${a}-${o}`:a==null?`${s}`:`${a}`}},EP=({filterOption:e,value:t,filterText:n})=>{if(n==null)return!1;switch(e){case`contains`:return t.includes(n);case`notContains`:return!t.includes(n);case`equals`:return t===n;case`notEqual`:return t!=n;case`startsWith`:return t.indexOf(n)===0;case`endsWith`:{let e=t.lastIndexOf(n);return e>=0&&e===t.length-n.length}default:return!1}},DP=e=>e,OP=e=>e==null?null:e.toString().toLowerCase(),kP=class extends XN{constructor(){super(vP,CP),this.filterType=`text`,this.FilterModelFormatterClass=TP}updateParams(e){super.updateParams(e);let t=e.filterParams;this.matcher=t.textMatcher??EP,this.formatter=t.textFormatter??(t.caseSensitive?DP:OP)}evaluateNullValue(e){return e?[`notEqual`,`notContains`,`blank`].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,n,r){let i=e.map(e=>this.formatter(e))||[],a=this.formatter(t),{api:o,colDef:s,column:c,context:l,filterParams:{textFormatter:u}}=this.params;if(n.type===`blank`)return RN(t);if(n.type===`notBlank`)return!RN(t);let d={api:o,colDef:s,column:c,context:l,node:r.node,data:r.data,filterOption:n.type,value:a,textFormatter:u};return i.some(e=>this.matcher({...d,filterText:e}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){let t=e=>{let t={...e},{filter:n,filterTo:r}=e;return n&&(t.filter=_P(n)??null),r&&(t.filterTo=_P(r)??null),t};return DS(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},AP=class extends bP{constructor(){super(...arguments),this.FilterModelFormatterClass=TP,this.filterType=`text`,this.defaultOptions=CP}createFloatingFilterInputService(){return this.createManagedBean(new gP)}};function jP(e){return!!e.quickFilter?.isFilterPresent()}function MP(e){return e.quickFilter?.getText()}function NP(e){e.quickFilter?.resetCache()}var PP=class extends W{constructor(){super(...arguments),this.beanName=`quickFilter`,this.quickFilter=null,this.quickFilterParts=null}postConstruct(){let e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get(`includeHiddenColumnsInQuickFilter`)||this.resetCache()}}),this.addManagedPropertyListener(`quickFilterText`,e=>this.setFilter(e.currentValue)),this.addManagedPropertyListeners([`includeHiddenColumnsInQuickFilter`,`applyQuickFilterBeforePivotOrAgg`],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get(`quickFilterText`)),this.parser=t.get(`quickFilterParser`),this.matcher=t.get(`quickFilterMatcher`),this.setFilterParts(),this.addManagedPropertyListeners([`quickFilterMatcher`,`quickFilterParser`],()=>this.setParserAndMatcher())}refreshCols(){let{autoColSvc:e,colModel:t,gos:n,pivotResultCols:r}=this.beans,i=t.isPivotMode(),a=e?.getColumns(),o=t.getColDefCols(),s=(i&&!n.get(`applyQuickFilterBeforePivotOrAgg`)?r?.getPivotResultCols()?.list:o)??[];a&&(s=s.concat(a)),this.colsToUse=n.get(`includeHiddenColumnsInQuickFilter`)?s:s.filter(e=>e.isVisible()||e.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){let t=this.gos.get(`cacheQuickFilter`);return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(n=>t?this.doesRowPassCache(e,n):this.doesRowPassNoCache(e,n))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get(`quickFilterText`)}setFilterParts(){let{quickFilter:e,parser:t}=this;this.quickFilterParts=e?t?t(e):e.split(` `):null}parseFilter(e){return B(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!=`string`){K(70,{newFilter:e});return}let t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:`quickFilterChanged`}))}setParserAndMatcher(){let e=this.gos.get(`quickFilterParser`),t=this.gos.get(`quickFilterMatcher`),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setFilterParts(),this.dispatchLocalEvent({type:`quickFilterChanged`}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:`quickFilterChanged`})}doesRowPassNoCache(e,t){return this.colsToUse.some(n=>{let r=this.getTextForColumn(n,e);return B(r)&&r.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let n;e?(this.checkGenerateAggText(t),n=t.quickFilterAggregateText):n=this.getAggText(t);let{quickFilterParts:r,matcher:i}=this;return i(r,n)}checkGenerateAggText(e){e.quickFilterAggregateText||=this.getAggText(e)}getTextForColumn(e,t){let n=this.beans.filterValueSvc.getValue(e,t),r=e.getColDef();if(r.getQuickFilterText){let i=J(this.gos,{value:n,node:t,data:t.data,column:e,colDef:r});n=r.getQuickFilterText(i)}return B(n)?n.toString().toUpperCase():null}getAggText(e){let t=[];for(let n of this.colsToUse){let r=this.getTextForColumn(n,e);B(r)&&t.push(r)}return t.join(`
+`)}},FP={moduleName:`FilterCore`,version:G,beans:[jN],apiFunctions:{isAnyFilterPresent:kN,onFilterChanged:AN},css:[hN],dependsOn:[{moduleName:`ClientSideRowModelFilter`,version:G,rowModels:[`clientSide`],beans:[lN]}]},IP={moduleName:`FilterValue`,version:G,beans:[NN]},LP={moduleName:`ColumnFilter`,version:G,beans:[ON,MN],dynamicBeans:{headerFilterCellCtrl:uN},icons:{filter:`filter`,filterActive:`filter`},apiFunctions:{isColumnFilterPresent:gN,getColumnFilterInstance:_N,destroyFilter:vN,setFilterModel:yN,getFilterModel:bN,getColumnFilterModel:xN,setColumnFilterModel:SN,showColumnFilter:CN,hideColumnFilter:wN,getColumnFilterHandler:TN,doFilterAction:EN},dependsOn:[FP,mN,IP,pN]},RP={moduleName:`CustomFilter`,version:G,userComponents:{agReadOnlyFloatingFilter:FN},dependsOn:[LP]},zP={moduleName:`TextFilter`,version:G,dependsOn:[LP],userComponents:{agTextColumnFilter:{classImp:wP,params:{useForm:!0}},agTextColumnFloatingFilter:AP},dynamicBeans:{agTextColumnFilterHandler:kP}},BP={moduleName:`NumberFilter`,version:G,dependsOn:[LP],userComponents:{agNumberColumnFilter:{classImp:pP,params:{useForm:!0}},agNumberColumnFloatingFilter:SP},dynamicBeans:{agNumberColumnFilterHandler:hP}},VP={moduleName:`DateFilter`,version:G,dependsOn:[LP],userComponents:{agDateColumnFilter:{classImp:YN,params:{useForm:!0}},agDateInput:cP,agDateColumnFloatingFilter:oP},dynamicBeans:{agDateColumnFilterHandler:rP}},HP={moduleName:`QuickFilter`,version:G,apiFunctions:{isQuickFilterPresent:jP,getQuickFilter:MP,resetQuickFilter:NP},dependsOn:[{moduleName:`QuickFilterCore`,version:G,rowModels:[`clientSide`],beans:[PP],dependsOn:[FP,IP]}]},UP={moduleName:`ExternalFilter`,version:G,dependsOn:[FP]},WP=`.ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}`,GP=(e,t,n)=>{let{editModelSvc:r}=e,i=r?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,a=r?.getRowValidationModel().getRowValidation(t)?.errorMessages,o=i||a;return o?.length?o.join(n(`tooltipValidationErrorSeparator`,`. `)):void 0},KP={moduleName:`Tooltip`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`tooltipSvc`}setupHeaderTooltip(e,t,n,r){e&&t.destroyBean(e);let i=this.gos,a=HM(i),{column:o,eGui:s}=t,c=o.getColDef();!r&&a&&!c.headerComponent&&(r=am(()=>s.querySelector(`.ag-header-cell-text`)));let l=`header`,u=this.beans.colNames.getDisplayNameForColumn(o,`header`,!0),d=n??u,f={getGui:()=>s,getLocation:()=>l,getTooltipValue:()=>n??c?.headerTooltipValueGetter?.(J(i,{location:l,colDef:c,column:o,value:d,valueFormatted:u}))??c?.headerTooltip,shouldDisplayTooltip:r,getAdditionalParams:()=>({column:o,colDef:o.getColDef()})},p=this.createTooltipFeature(f);return p&&(p=t.createBean(p),t.setRefreshFunction(`tooltip`,()=>p.refreshTooltip())),p}setupHeaderGroupTooltip(e,t,n,r){e&&t.destroyBean(e);let i=this.gos,a=HM(i),{column:o,eGui:s}=t,c=o.getColGroupDef();!r&&a&&!c?.headerGroupComponent&&(r=am(()=>s.querySelector(`.ag-header-group-text`)));let l=`headerGroup`,u=this.beans.colNames.getDisplayNameForColumnGroup(o,`header`),d=n??u,f={getGui:()=>s,getLocation:()=>l,getTooltipValue:()=>n??c?.headerTooltipValueGetter?.(J(i,{location:l,colDef:c,column:o,value:d,valueFormatted:u}))??c?.headerTooltip,shouldDisplayTooltip:r,getAdditionalParams:()=>{let e={column:o};return c&&(e.colDef=c),e}},p=this.createTooltipFeature(f);return p&&t.createBean(p)}enableCellTooltipFeature(e,t,n){let{beans:r}=this,{gos:i,editSvc:a}=r,{column:o,rowNode:s}=e,c=`cell`,l=()=>{let t=!a?.isEditing(e)&&GP(r,e,this.getLocaleTextFunc());if(t)return c=`cellEditor`,t;c=`cell`;let n=o.getColDef(),l=s.data;if(n.tooltipField&&B(l))return wO(l,n.tooltipField,o.isTooltipFieldContainsDots());let u=n.tooltipValueGetter;return u?u(J(i,{location:`cell`,colDef:o.getColDef(),column:o,rowIndex:e.cellPosition.rowIndex,node:s,data:s.data,value:e.value,valueFormatted:e.valueFormatted})):null},u=HM(i);n||=u&&!e.isCellRenderer()?()=>{let t=!!a?.isEditing(e);if(!t&&GP(r,e,this.getLocaleTextFunc()))return!0;if(!o.isTooltipEnabled())return!1;let n=am(()=>{let t=e.eGui;return t.children.length===0?t:t.querySelector(`.ag-cell-value`)});return!t&&n()}:()=>!a?.isEditing(e);let d={getGui:()=>e.eGui,getLocation:()=>c,getTooltipValue:t==null?l:()=>t,shouldDisplayTooltip:n,getAdditionalParams:()=>({column:o,colDef:o.getColDef(),rowIndex:e.cellPosition.rowIndex,node:s,data:s.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(d,r)}setupFullWidthRowTooltip(e,t,n,r){let i={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>n,getLocation:()=>`fullWidthRow`,shouldDisplayTooltip:r},a=this.beans,o=a.context;e&&t.destroyBean(e,o);let s=this.createTooltipFeature(i,a);if(s)return t.createBean(s,o)}setupCellEditorTooltip(e,t){let{beans:n}=this,{context:r}=n,i=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!i)return;let a=this.createTooltipFeature({getGui:()=>i,getTooltipValue:()=>GP(n,e,this.getLocaleTextFunc()),getLocation:()=>`cellEditor`,shouldDisplayTooltip:()=>{let{editModelSvc:e}=n,t=e?.getRowValidationModel()?.getRowValidationMap(),r=e?.getCellValidationModel()?.getCellValidationMap(),i=!!t&&t.size>0,a=!!r&&r.size>0;return i||a}},n);if(a)return e.createBean(a,r)}initCol(e){let{colDef:t}=e;e.tooltipEnabled=B(t.tooltipField)||B(t.tooltipValueGetter)||B(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean(`tooltipFeature`,!1,e,t)}}],dynamicBeans:{tooltipFeature:sx,highlightTooltipFeature:mx,tooltipStateManager:class extends px{createTooltipComp(e,t){Rv(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}}},userComponents:{agTooltipComponent:vx},dependsOn:[mN],css:[WP]},qP=class{constructor(e){this.cellValueChanges=e}},JP=class extends qP{constructor(e,t,n,r){super(e),this.initialRange=t,this.finalRange=n,this.ranges=r}},YP=10,XP=class{constructor(e){this.actionStack=[],this.maxStackSize=e||YP,this.actionStack=Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},ZP=class extends W{constructor(){super(...arguments),this.beanName=`undoRedo`,this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{let t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.activeCellEdit!==null&&vE(this.activeCellEdit,t),r=this.activeRowEdit!==null&&bE(this.activeRowEdit,t);if(!(n||r||this.isPasting||this.isRangeInAction))return;let{rowPinned:i,rowIndex:a,column:o,oldValue:s,value:c}=e,l={rowPinned:i,rowIndex:a,columnId:o.getColId(),newValue:c,oldValue:s};this.cellValueChanges.push(l)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){let{gos:e,ctrlsSvc:t}=this.beans;if(!e.get(`undoRedoCellEditing`))return;let n=e.get(`undoRedoCellEditingLimit`);if(n<=0)return;this.undoStack=new XP(n),this.redoStack=new XP(n),this.addListeners();let r=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:e=>{e.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:r,newColumnsLoaded:r,columnGroupOpened:r,columnRowGroupChanged:r,columnMoved:r,columnPinned:r,columnVisible:r,rowDragEnd:r}),t.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){let{eventSvc:t,undoStack:n,redoStack:r}=this;t.dispatchEvent({type:`undoStarted`,source:e});let i=this.undoRedo(n,r,`initialRange`,`oldValue`,`undo`);t.dispatchEvent({type:`undoEnded`,source:e,operationPerformed:i})}redo(e){let{eventSvc:t,undoStack:n,redoStack:r}=this;t.dispatchEvent({type:`redoStarted`,source:e});let i=this.undoRedo(r,n,`finalRange`,`newValue`,`redo`);t.dispatchEvent({type:`redoEnded`,source:e,operationPerformed:i})}undoRedo(e,t,n,r,i){if(!e)return!1;let a=e.pop();return a?.cellValueChanges?(this.processAction(a,e=>e[r],i),a instanceof JP?this.processRange(a.ranges||[a[n]]):this.processCell(a.cellValueChanges),t.push(a),!0):!1}processAction(e,t,n){for(let r of e.cellValueChanges){let{rowIndex:e,rowPinned:i,columnId:a}=r,o={rowIndex:e,rowPinned:i},s=CE(this.beans,o);s.displayed&&s.setDataValue(a,t(r),n)}}processRange(e){let t,n=this.beans.rangeSvc;n.removeAllCellRanges(!0),e.forEach((r,i)=>{if(!r)return;let a=r.startRow,o=r.endRow;i===e.length-1&&(t={rowPinned:a.rowPinned,rowIndex:a.rowIndex,columnId:r.startColumn.getColId()},this.setLastFocusedCell(t));let s={rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,rowEndIndex:o.rowIndex,rowEndPinned:o.rowPinned,columnStart:r.startColumn,columns:r.columns};n.addCellRange(s)})}processCell(e){let t=e[0],{rowIndex:n,rowPinned:r}=t,i={rowIndex:n,rowPinned:r},a=CE(this.beans,i),o={rowPinned:t.rowPinned,rowIndex:a.rowIndex,columnId:t.columnId};this.setLastFocusedCell(o)}setLastFocusedCell(e){let{rowIndex:t,columnId:n,rowPinned:r}=e,{colModel:i,focusSvc:a,rangeSvc:o}=this.beans,s=i.getCol(n);if(!s)return;let{scrollFeature:c}=this.gridBodyCtrl;c.ensureIndexVisible(t),c.ensureColumnVisible(s);let l={rowIndex:t,column:s,rowPinned:r};a.setFocusedCell({...l,forceBrowserFocus:!0}),o?.setRangeToCell(l)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{let e=new qP(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){let e=new qP(this.cellValueChanges);this.pushActionsToUndoStack(e)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{let e=new qP(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{let t=new JP(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e,{rangeSvc:t,gos:n}=this.beans;e=t&&xg(n)?new JP(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):new qP(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange(`batchEditing`),batchEditingStopped:({changes:e})=>this.stopBigChange(`batchEditing`,e),bulkEditingStarted:()=>this.startBigChange(`bulkEditing`),bulkEditingStopped:({changes:e})=>this.stopBigChange(`bulkEditing`,e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){e===`bulkEditing`?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if(e===`bulkEditing`&&!this.bulkEditing||e===`batchEditing`&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;let n=new qP(t??[]);this.pushActionsToUndoStack(n),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},QP=`.ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}`,$P={tag:`div`,cls:`ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit`,children:[{tag:`ag-checkbox`,ref:`eEditor`,role:`presentation`}]},eF=class extends Ow{constructor(){super($P,[By]),this.eEditor=null}initialiseEditor(e){let t=e.value??void 0,n=this.eEditor;n.setValue(t),n.getInputElement().setAttribute(`tabindex`,`-1`),this.setAriaLabel(t),this.addManagedListeners(n,{fieldValueChanged:e=>this.setAriaLabel(e.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){let t=this.getLocaleTextFunc(),n=Fp(t,e),r=t(`ariaToggleCellValue`,`Press SPACE to toggle cell value`);this.eEditor.setInputAriaLabel(`${r} (${n})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){let{params:e}=this,{getValidationErrors:t}=e,n=this.getValue();return t?t({value:n,internalErrors:null,cellEditorParams:e}):null}},tF=class extends Ow{constructor(e){super(),this.cellEditorInput=e,this.eEditor=null}initialiseEditor(e){let{cellEditorInput:t}=this;this.setTemplate({tag:`div`,cls:`ag-cell-edit-wrapper`,children:[t.getTemplate()]},t.getAgComponents());let{eEditor:n}=this,{cellStartedEdit:r,eventKey:i,suppressPreventDefault:a}=e;n.getInputElement().setAttribute(`title`,``),t.init(n,e);let o,s=!0;r?(this.focusAfterAttached=!0,i===Z.BACKSPACE||i===Z.DELETE?o=``:i&&i.length===1?a?s=!1:o=i:(o=t.getStartValue(),i!==Z.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,o=t.getStartValue()),s&&o!=null&&n.setStartValue(o),this.addGuiEventListener(`keydown`,e=>{let{key:t}=e;(t===Z.PAGE_UP||t===Z.PAGE_DOWN)&&e.preventDefault()})}afterGuiAttached(){let e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e(`ariaInputEditor`,`Input Editor`)),!this.focusAfterAttached)return;Qv()||t.getFocusableElement().focus();let n=t.getInputElement();this.highlightAllOnFocus?n.select():this.cellEditorInput.setCaret?.()}focusIn(){let{eEditor:e}=this,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},nF={tag:`ag-input-date-field`,ref:`eEditor`,cls:`ag-cell-editor`},rF=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return nF}getAgComponents(){return[qy]}init(e,t){this.eEditor=e,this.params=t;let{min:n,max:r,step:i,colDef:a}=t;n!=null&&e.setMin(n),r!=null&&e.setMax(r),i!=null&&e.setStep(i),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(a.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){let e=this.eEditor.getInputElement().valueAsDate,{params:t}=this,{min:n,max:r,getValidationErrors:i}=t,a=[],o=this.getLocaleTextFunc();if(e instanceof Date&&!isNaN(e.getTime())){if(n){let t=n instanceof Date?n:new Date(n);if(et){let e=t.toLocaleDateString();a.push(o(`maxDateValidation`,`Date must be before ${e}`,[e]))}}}return a.length||(a=null),i?i({value:e,cellEditorParams:t,internalErrors:a}):a}getValue(){let{eEditor:e,params:t}=this,n=e.getDate();return!B(n)&&!B(t.value)?t.value:n??null}getStartValue(){let{value:e}=this.params;if(e instanceof Date)return dy(e,this.includeTime??!1)}},iF=class extends tF{constructor(){super(new rF(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},aF={tag:`ag-input-date-field`,ref:`eEditor`,cls:`ag-cell-editor`},oF=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return aF}getAgComponents(){return[qy]}init(e,t){this.eEditor=e,this.params=t;let{min:n,max:r,step:i,colDef:a}=t;n!=null&&e.setMin(n),r!=null&&e.setMax(r),i!=null&&e.setStep(i),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(a.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){let{eEditor:e,params:t}=this,n=e.getInputElement().value,r=this.formatDate(this.parseDate(n??void 0)),{min:i,max:a,getValidationErrors:o}=t,s=[];if(r){let e=new Date(r),t=this.getLocaleTextFunc();if(i){let n=new Date(i);if(en){let e=n.toLocaleDateString();s.push(t(`maxDateValidation`,`Date must be before ${e}`,[e]))}}}return s.length||(s=null),o?o({value:this.getValue(),cellEditorParams:t,internalErrors:s}):s}getValue(){let{params:e,eEditor:t}=this,n=this.formatDate(t.getDate());return!B(n)&&!B(e.value)?e.value:e.parseValue(n??``)}getStartValue(){return dy(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){let t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):yy(e)??void 0}formatDate(e){let t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):dy(e??null,this.includeTime??!1)??void 0}},sF=class extends tF{constructor(){super(new oF(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},cF={tag:`div`,cls:`ag-large-text`,children:[{tag:`ag-input-text-area`,ref:`eEditor`,cls:`ag-large-text-input`}]},lF=class extends Ow{constructor(){super(cF,[Wy]),this.eEditor=null}initialiseEditor(e){let{eEditor:t}=this,{cellStartedEdit:n,eventKey:r,maxLength:i,cols:a,rows:o}=e;this.focusAfterAttached=n,t.getInputElement().setAttribute(`title`,``),t.setMaxLength(i||200).setCols(a||60).setRows(o||10);let s;n?(this.focusAfterAttached=!0,r===Z.BACKSPACE||r===Z.DELETE?s=``:r&&r.length===1?s=r:(s=this.getStartValue(e),r!==Z.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,s=this.getStartValue(e)),s!=null&&t.setValue(s,!0),this.addGuiEventListener(`keydown`,this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){let{value:t}=e;return t?.toString()??t}onKeyDown(e){let t=e.key;(t===Z.LEFT||t===Z.UP||t===Z.RIGHT||t===Z.DOWN||e.shiftKey&&t===Z.ENTER)&&e.stopPropagation()}afterGuiAttached(){let{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:n}=this,r=this.getLocaleTextFunc();e.setInputAriaLabel(r(`ariaInputEditor`,`Input Editor`)),t&&(e.getFocusableElement().focus(),n&&e.getInputElement().select())}getValue(){let{eEditor:e,params:t}=this,{value:n}=t,r=e.getValue();return!B(r)&&!B(n)?n:t.parseValue(r)}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){let{params:e}=this,{maxLength:t,getValidationErrors:n}=e,r=this.getLocaleTextFunc(),i=this.getValue(),a=[];return typeof i==`string`&&t!=null&&i.length>t&&a.push(r(`maxLengthValidation`,`Must be ${t} characters or fewer.`,[String(t)])),a.length||(a=null),n?n({value:i,internalErrors:a,cellEditorParams:e}):a}},uF={tag:`ag-input-number-field`,ref:`eEditor`,cls:`ag-cell-editor`},dF=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return uF}getAgComponents(){return[Ky]}init(e,t){this.eEditor=e,this.params=t;let{max:n,min:r,precision:i,step:a}=t;n!=null&&e.setMax(n),r!=null&&e.setMin(r),i!=null&&e.setPrecision(i),a!=null&&e.setStep(a);let o=e.getInputElement();t.preventStepping?e.addManagedElementListeners(o,{keydown:this.preventStepping}):t.showStepperButtons&&o.classList.add(`ag-number-field-input-stepper`)}getValidationErrors(){let{params:e}=this,{min:t,max:n,getValidationErrors:r}=e,i=this.eEditor.getInputElement().valueAsNumber,a=this.getLocaleTextFunc(),o=[];return typeof i==`number`&&(t!=null&&in&&o.push(a(`maxValueValidation`,`Must be less than or equal to ${n}.`,[String(n)]))),o.length||(o=null),r?r({value:i,cellEditorParams:e,internalErrors:o}):o}preventStepping(e){(e.key===Z.UP||e.key===Z.DOWN)&&e.preventDefault()}getValue(){let{eEditor:e,params:t}=this,n=e.getValue();if(!B(n)&&!B(t.value))return t.value;let r=t.parseValue(n);if(r==null)return r;if(typeof r==`string`){if(r===``)return null;r=Number(r)}return isNaN(r)?null:r}getStartValue(){return this.params.value}setCaret(){Qv()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},fF=class extends tF{constructor(){super(new dF(()=>this.getLocaleTextFunc()))}},pF={tag:`div`,cls:`ag-cell-edit-wrapper`,children:[{tag:`ag-select`,ref:`eEditor`,cls:`ag-cell-editor`}]},mF=class extends Ow{constructor(){super(pF,[ib]),this.eEditor=null,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;let{eEditor:t,valueSvc:n,gos:r}=this,{values:i,value:a,eventKey:o}=e;if(V(i)){K(58);return}this.startedByEnter=o!=null&&o===Z.ENTER;let s=!1;i.forEach(r=>{let i={value:r};i.text=n.formatValue(e.column,null,r)??r,t.addOption(i),s||=a===r}),s?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);let{valueListGap:c,valueListMaxWidth:l,valueListMaxHeight:u}=e;c!=null&&t.setPickerGap(c),u!=null&&t.setPickerMaxHeight(u),l!=null&&t.setPickerMaxWidth(l),r.get(`editType`)!==`fullRow`&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){let{params:e}=this,{values:t,getValidationErrors:n}=e,r=this.getValue(),i=[];if(t&&!t.includes(r)){let e=this.getLocaleTextFunc();i.push(e(`invalidSelectionValidation`,`Invalid selection.`))}else i=null;return n?n({value:r,internalErrors:i,cellEditorParams:e}):i}},hF={tag:`ag-input-text-field`,ref:`eEditor`,cls:`ag-cell-editor`},gF=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return hF}getAgComponents(){return[Uy]}init(e,t){this.eEditor=e,this.params=t;let n=t.maxLength;n!=null&&e.setMaxLength(n)}getValidationErrors(){let{params:e}=this,{maxLength:t,getValidationErrors:n}=e,r=this.getValue(),i=this.getLocaleTextFunc(),a=[];return t!=null&&typeof r==`string`&&r.length>t&&a.push(i(`maxLengthValidation`,`Must be ${t} characters or fewer.`,[String(t)])),a.length||(a=null),n?n({value:r,cellEditorParams:e,internalErrors:a}):a}getValue(){let{eEditor:e,params:t}=this,n=e.getValue();return!B(n)&&!B(t.value)?t.value:t.parseValue(n)}getStartValue(){let e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){Qv()&&this.eEditor.getInputElement().focus({preventScroll:!0});let e=this.eEditor,t=e.getValue(),n=B(t)&&t.length||0;n&&e.getInputElement().setSelectionRange(n,n)}},_F=class extends tF{constructor(){super(new gF(()=>this.getLocaleTextFunc()))}};function vF(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function yF(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function bF(e,t,n=`auto`){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,n),`ensureVisible`)}function xF(e,t,n){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,n),`ensureVisible`)}function SF(e,t,n=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,n),`ensureVisible`)}function CF(e){e.undoRedo?.undo(`api`)}function wF(e){e.undoRedo?.redo(`api`)}function TF(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function EF(e){let t=e.editModelSvc?.getEditMap(),n=[];return t?.forEach((e,t)=>{let{rowIndex:r,rowPinned:i}=t;e.forEach((e,t)=>{let{editorValue:a,pendingValue:o,sourceValue:s,state:c}=e,l=HA(e),u=a??o;u===RA&&(u=void 0);let d={newValue:u,oldValue:s,state:c,column:t,colId:t.getColId(),colKey:t.getColId(),rowIndex:r,rowPinned:i};(c===`editing`||c===`changed`&&l)&&n.push(d)})}),n}function DF(e,t=!1){let{editSvc:n}=e;if(n?.isBatchEditing()){if(t)for(let t of e.editModelSvc?.getEditPositions()??[])t.state===`editing`&&n.revertSingleCellEdit(t);else YA(e,{persist:!0});QA(e,void 0,{cancel:t})}else n?.stopEditing(void 0,{cancel:t,source:`edit`,forceStop:!t,forceCancel:t})}function OF(e,t){let n=$(e,t);return e.editSvc?.isEditing(n)??!1}function kF(e,t){let{key:n,colKey:r,rowIndex:i,rowPinned:a}=t,{editSvc:o,colModel:s}=e,c=s.getCol(r);if(!c){K(12,{colKey:r});return}let l=CE(e,{rowIndex:i,rowPinned:a||null,column:c});if(!l){K(290,{rowIndex:i,rowPinned:a});return}c.isCellEditable(l)&&(a??xF(e,i),bF(e,r),o?.startEditing({rowNode:l,column:c},{event:n?new KeyboardEvent(`keydown`,{key:n}):void 0,source:`api`}))}function AF(e){return e.editSvc?.validateEdit()||null}function jF(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function MF(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var NF={tag:`div`,cls:`ag-popup-editor`,attrs:{tabindex:`-1`}},PF=class extends Wv{constructor(e){super(NF),this.params=e}postConstruct(){ag(this.gos,this.getGui(),`popupEditorWrapper`,!0),this.addKeyDownListener()}addKeyDownListener(){let e=this.getGui(),t=this.params;this.addManagedElementListeners(e,{keydown:e=>{qS(this.gos,e,t.node,t.column,!0)||t.onKeyDown(e)}})}};function FF(e,{column:t},n,r,i=`ui`){if(n instanceof KeyboardEvent&&(n.key===Z.TAB||n.key===Z.ENTER||n.key===Z.F2||n.key===Z.BACKSPACE&&r))return!0;if(n?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;let a=t?.getColDef(),o=IF(e.gos,a),s=n?.type;return s===`click`&&n?.detail===1&&o===1||s===`dblclick`&&n?.detail===2&&o===2?!0:i===`api`?r??!1:!1}function IF(e,t){return e.get(`suppressClickEdit`)===!0?0:e.get(`singleClickEdit`)===!0||t?.singleClickEdit?1:2}function LF(e,{rowNode:t,column:n},r=`ui`){let i=n.getColDef().editable,a=e.editModelSvc;return n.isColumnFunc(t,i)||!!a&&a.hasEdits({rowNode:t,column:n},{withOpenEditor:!0})}function RF(e,t,n=`ui`){let r=LF(e,t,n);return r===!0||n===`ui`?r:e.colModel.getCols().some(r=>LF(e,{rowNode:t.rowNode,column:r},n))}var zF=(e,t=!1)=>{if(e!==void 0)return HA(e)||t&&e.state===`editing`};function BF(e,t,n=!1){return zF(e.editModelSvc?.getEdit(t),n)}var VF=(e,t,n)=>{if(e)for(let r=0,i=e.length;r{let t={rowNode:r,column:e};return BF(n,t,!0)||HF(n,t)||UF(n,t)});this.applyStyle(a,e);return}this.applyStyle(a)}applyStyle(e=!1,t=!1){let n=this.editSvc?.isBatchEditing()??!1,r=this.gos.get(`editType`)===`fullRow`;this.rowCtrl?.forEachGui(void 0,({rowComp:i})=>{i.toggleCss(`ag-row-editing`,r&&t),i.toggleCss(`ag-row-batch-edit`,r&&t&&n),i.toggleCss(`ag-row-inline-editing`,t),i.toggleCss(`ag-row-not-inline-editing`,!t),i.toggleCss(`ag-row-editing-invalid`,r&&t&&e)})}},KF=({rowModel:e,pinnedRowModel:t,editModelSvc:n},r)=>{let i=new Set;e.forEachNode(e=>r.has(e)&&i.add(e)),t?.forEachPinnedRow(`top`,e=>r.has(e)&&i.add(e)),t?.forEachPinnedRow(`bottom`,e=>r.has(e)&&i.add(e));for(let e of r)i.has(e)||n.removeEdits({rowNode:e});return i},qF=({editModelSvc:e},t,n)=>{for(let r of t)e?.getEditRow(r)?.forEach((t,i)=>!n.has(i)&&e.removeEdits({rowNode:r,column:i}))},JF=e=>()=>{let t=new Set(e.colModel.getCols()),n=e.editModelSvc.getEditMap(!0);qF(e,KF(e,new Set(n.keys())),t)},YF=new Set([`undo`,`redo`,`paste`,`bulk`,`rangeSvc`]),XF=new Set([`ui`,`api`]),ZF={paste:`api`,rangeSvc:`api`,fillHandle:`api`,cellClear:`api`,bulk:`api`},QF=new Set(Object.keys(ZF)),$F=new Set([`paste`,`rangeSvc`,`renderer`,`cellClear`,`redo`,`undo`]),eI={cancel:!0,source:`api`},tI={cancel:!1,source:`api`},nI={checkSiblings:!0},rI={force:!0,suppressFlash:!0},iI=class extends W{constructor(){super(...arguments),this.beanName=`editSvc`,this.batch=!1,this.stopping=!1,this.committing=!1}postConstruct(){let{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener(`editType`,({currentValue:e})=>{this.stopEditing(void 0,eI),this.createStrategy(e)});let t=JF(e),n=()=>{let t=this.model.getCellValidationModel().getCellValidationMap().size>0,n=this.model.getRowValidationModel().getRowValidationMap().size>0;return t||n?this.stopEditing(void 0,eI):this.isEditing()&&(this.isBatchEditing()?QA(e,this.model.getEditPositions()):this.stopEditing(void 0,tI)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:n,filterChanged:n,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}setBatchEditing(e){e?(this.batch=!0,this.stopEditing(void 0,eI)):(this.stopEditing(void 0,eI),this.batch=!1)}createStrategy(e){let{beans:t,gos:n,strategy:r}=this,i=oI(n,e);if(r){if(r.beanName===i)return r;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(i,!0))}destroyStrategy(){this.strategy&&=(this.strategy.destroy(),this.destroyBean(this.strategy))}shouldStartEditing(e,t,n,r=`ui`){let i=FF(this.beans,e,t,n,r);return i&&(this.strategy??=this.createStrategy()),i}shouldStopEditing(e,t,n=`ui`){return this.strategy?.shouldStop(e,t,n)??null}shouldCancelEditing(e,t,n=`ui`){return this.strategy?.shouldCancel(e,t,n)??null}validateEdit(){return aj(this.beans)}isEditing(e,t){return this.model.hasEdits(e,t??nI)}isRowEditing(e,t){return(e&&this.model.hasRowEdits(e,t))??!1}startEditing(e,t){let{startedEdit:n=!0,event:r=null,source:i=`ui`,ignoreEventKey:a=!1,silent:o}=t;if(this.strategy??=this.createStrategy(),!this.isCellEditable(e,`api`))return;let s=$(this.beans,e);if(s&&!s.comp){s.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}let c=this.shouldStartEditing(e,r,n,i);if(c===!1&&i!==`api`){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,i)&&!t.continueEditing&&this.stopEditing(void 0,{source:i}),c&&this.isBatchEditing()&&this.dispatchBatchEvent(`batchEditingStarted`,new Map),this.strategy.start({position:e,event:r,source:i,ignoreEventKey:a,startedEdit:n,silent:o})}stopEditing(e,t){let{event:n,cancel:r,source:i=`ui`,forceCancel:a,forceStop:o}=t||{},{beans:s,model:c}=this;if(QF.has(i)&&this.isBatchEditing())return this.bulkRefresh(e),!1;let l=this.committing?ZF[i]:i;if(!(this.committing||this.isEditing(e)||this.isBatchEditing()&&c.hasEdits(e,nI))||!this.strategy||this.stopping)return!1;this.stopping=!0;let u=$(s,e);u&&(u.onEditorAttachedFuncs=[]);let d=c.getEditMap(!0),f=!1,p=!r&&(!!this.shouldStopEditing(e,n,l)||this.committing&&!this.batch)||(o??!1),m=r&&!!this.shouldCancelEditing(e,n,l)||(a??!1);if(p||m){YA(s,{persist:!0,isCancelling:m||r,isStopping:p});let e=c.getEditMap(),t=this.processEdits(e,r,i);this.strategy?.stop(r,n);for(let e of t)c.clearEditValue(e);this.bulkRefresh(void 0,d);for(let t of c.getEditPositions(e)){let e=$(s,t),n=HA(t);e?.refreshCell({force:!0,suppressFlash:!n})}d=e,f||=p}else if(n instanceof KeyboardEvent&&this.batch&&this.strategy?.midBatchInputsAllowed(e)&&this.isEditing(e,{withOpenEditor:!0})){let{key:t}=n,r=t===Z.ENTER,i=t===Z.ESCAPE,a=t===Z.TAB;(r||a||i)&&(r||a?YA(s,{persist:!0}):i&&this.revertSingleCellEdit(u),this.isBatchEditing()?this.strategy?.cleanupEditors():QA(s,c.getEditPositions(),{event:n,cancel:i}),n.preventDefault(),this.bulkRefresh(e,d,{suppressFlash:!0}),d=c.getEditMap())}else YA(s,{persist:!0}),d=c.getEditMap();return f&&e&&this.model.removeEdits(e),this.navigateAfterEdit(t,u?.cellPosition),KA(s),this.model.hasEdits()||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap()),this.bulkRefresh(),m&&this.beans.rowRenderer.refreshRows({rowNodes:Array.from(d.keys())}),this.isBatchEditing()&&(this.beans.rowRenderer.refreshRows({suppressFlash:!0,force:!0}),f&&p&&this.dispatchBatchEvent(`batchEditingStopped`,d)),this.stopping=!1,f}navigateAfterEdit(e,t){if(!e||!t)return;let{event:n,suppressNavigateAfterEdit:r}=e;if(!(n instanceof KeyboardEvent)||r)return;let{key:i,shiftKey:a}=n,o=this.gos.get(`enterNavigatesVerticallyAfterEdit`);if(i!==Z.ENTER||!o)return;let s=a?Z.UP:Z.DOWN;this.beans.navigation?.navigateToNextCell(null,s,t,!1)}processEdits(e,t=!1,n){let r=Array.from(e.keys()),i=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,a=[];for(let o of r){let r=e.get(o);for(let e of r.keys()){let s=r.get(e),c={rowNode:o,column:e},l=HA(s);!t&&l&&!i&&(this.setNodeDataValue(o,e,s.pendingValue,void 0,n)||a.push(c))}}return a}setNodeDataValue(e,t,n,r,i=`edit`){let{beans:a}=this,o=$(a,{rowNode:e,column:t}),s=XF.has(i)?`edit`:i;o&&(o.suppressRefreshCell=!0),this.commitNextEdit();let c=e.setDataValue(t,n,s);return o&&(o.suppressRefreshCell=!1),r&&o?.refreshCell(rI),c}setEditMap(e,t){this.strategy??=this.createStrategy(),this.strategy?.setEditMap(e,t),this.bulkRefresh();let n=rI;t?.forceRefreshOfEditCellsOnly&&(n={...aI(e),...rI}),this.beans.rowRenderer.refreshCells(n)}dispatchEditValuesChanged({rowNode:e,column:t},n={}){if(!e||!t||!n)return;let{pendingValue:r,sourceValue:i}=n,{rowIndex:a,rowPinned:o,data:s}=e;this.beans.eventSvc.dispatchEvent({type:`cellEditValuesChanged`,node:e,rowIndex:a,rowPinned:o,column:t,source:`api`,data:s,newValue:r,oldValue:i,value:r,colDef:t.getColDef()})}bulkRefresh(e={},t,n={}){let{beans:r,gos:i}=this,{editModelSvc:a,rowModel:o}=r;Jh(i,o)&&(e.rowNode&&e.column?this.refCell(e,this.model.getEdit(e),n):t&&a?.getEditMap(!1)?.forEach((e,t)=>{for(let r of e.keys())this.refCell({rowNode:t,column:r},e.get(r),n)}))}refCell({rowNode:e,column:t},n,r={}){let{beans:i,gos:a}=this,o=new Set([e]),s=new Set,c=e.pinnedSibling;c&&o.add(c);let l=e.sibling;l&&s.add(l);let u=e.parent;for(;u;)u.sibling?.footer&&a.get(`groupTotalRow`)||!u.parent&&u.sibling&&a.get(`grandTotalRow`)?s.add(u.sibling):s.add(u),u=u.parent;for(let e of o)this.dispatchEditValuesChanged({rowNode:e,column:t},n);for(let e of o)$(i,{rowNode:e,column:t})?.refreshCell(r);for(let e of s)$(i,{rowNode:e,column:t})?.refreshCell(r)}stopAllEditing(e=!1,t=`ui`){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t=`ui`){let{rowNode:n}=e,{gos:r,beans:i}=this;if(n.group){if(r.get(`treeData`)){if(!n.data&&!r.get(`enableGroupEdit`))return!1}else if(!r.get(`enableGroupEdit`))return!1}let a=oI(r)===`fullRow`?RF(i,e,t):LF(i,e,t);return a&&(this.strategy??=this.createStrategy()),a}cellEditingInvalidCommitBlocks(){return this.gos.get(`invalidEditValueMode`)===`block`}checkNavWithValidation(e,t,n=!0){if(this.hasValidationErrors(e)){let r=$(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),n&&(!r?.hasBrowserFocus()&&r?.focusCell(),r?.comp?.getCellEditor()?.focusIn?.()),`block-stop`):(r&&this.revertSingleCellEdit(r),`revert-continue`)}return`continue`}revertSingleCellEdit(e,t=!1){let n=$(this.beans,e);n?.comp?.getCellEditor()&&(QA(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),UA(this.beans,e,{silent:!0}),rj(this.beans),n?.refreshCell(rI),t&&(n?.focusCell(),n?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){rj(this.beans);let t=$(this.beans,e);t&&(t.refreshCell(rI),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let n=!1;return e?.rowNode?(n||=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode}),e.column&&(n||=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column}))):(n||=this.model.getCellValidationModel().getCellValidationMap().size>0,n||=this.model.getRowValidationModel().getRowValidationMap().size>0),n}moveToNextCell(e,t,n,r=`ui`){let i,a=this.isEditing(),o=a&&this.checkNavWithValidation(void 0,n)===`block-stop`;return e instanceof bj&&a&&(i=this.strategy?.moveToNextEditingCell(e,t,n,r,o)),i===null?i:(i||=!!this.beans.focusSvc.focusedHeader,i===!1&&!o&&this.stopEditing(),i)}getCellDataValue({rowNode:e,column:t},n=!0){if(!e||!t)return;let r=this.model.getEdit({rowNode:e,column:t}),i=e.pinnedSibling;if(i){let e=this.model.getEdit({rowNode:i,column:t});e&&(r=e)}let a=n?r?.editorValue??r?.pendingValue:r?.pendingValue;return a===RA||!r?r?.sourceValue??this.valueSvc.getValue(t,e,!1,`api`):a}addStopEditingWhenGridLosesFocus(e){IA(this,this.beans,e)}createPopupEditorWrapper(e){return new PF(e)}commitNextEdit(){this.committing=!0}setDataValue(e,t,n){try{if((!this.isEditing()||this.committing)&&!$F.has(n))return;let{beans:r}=this;this.strategy??=this.createStrategy();let i=this.isBatchEditing()?`ui`:this.committing?n??`api`:`api`;if(!n||YF.has(n))return XA(r,e,t,n,void 0,{persist:!0}),this.setNodeDataValue(e.rowNode,e.column,t,!0,n);let a=this.model.getEdit(e);if(a){if(a.pendingValue===t)return!1;if(a.sourceValue!==t)return XA(r,e,t,n,void 0,{persist:!0}),this.stopEditing(e,{source:i,suppressNavigateAfterEdit:!0}),!0;if(a.sourceValue===t)return r.editModelSvc?.removeEdits(e),this.dispatchEditValuesChanged(e,{...a,pendingValue:t}),!0}return XA(r,e,t,n,void 0,{persist:!0}),this.stopEditing(e,{source:i,suppressNavigateAfterEdit:!0}),!0}finally{this.committing=!1}}handleColDefChanged(e){qA(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){if(!this.batch||!this.model.hasRowEdits(e.rowNode,nI))return;let{rowNode:n,column:r}=e,{compDetails:i,valueToDisplay:a}=t;if(i){let{params:e}=i;return e.data=this.model.getEditRowDataValue(n,nI),{compDetails:i}}let o=this.model.getEditRow(e.rowNode,nI);if(a!==void 0&&o?.has(r))return{valueToDisplay:this.valueSvc.getValue(r,n)}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,n,r){this.strategy?.dispatchCellEvent(e,t,n,r)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return J(this.gos,{type:e,...e===`batchEditingStopped`?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(e=>({rowIndex:e.rowNode.rowIndex,rowPinned:e.rowNode.rowPinned,columnId:e.column.getColId(),newValue:e.pendingValue,oldValue:e.sourceValue}))}applyBulkEdit({rowNode:e,column:t},n){if(!n||n.length===0)return;let{beans:r,rangeSvc:i,valueSvc:a}=this;YA(r,{persist:!0});let o=this.model.getEditMap(!0),s=o.get(e)?.get(t)?.pendingValue;this.batch||this.eventSvc.dispatchEvent({type:`bulkEditingStarted`}),n.forEach(e=>{if(i?.forEachRowInRange(e,t=>{let n=CE(r,t);if(n===void 0)return;let i=o.get(n)??new Map;for(let t of e.columns)if(t&&this.isCellEditable({rowNode:n,column:t},`api`)){let e=a.getValue(t,n,!0,`api`),r=a.parseValue(t,n??null,s,e);Number.isNaN(r)&&(r=null),i.set(t,{editorValue:void 0,pendingValue:r,sourceValue:e,state:`changed`,editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}i.size>0&&o.set(n,i)}),this.setEditMap(o),this.batch){this.cleanupEditors(),KA(r),this.bulkRefresh();return}this.commitNextEdit(),this.stopEditing(void 0,{source:`bulk`}),this.eventSvc.dispatchEvent({type:`bulkEditingStopped`,changes:this.toEventChangeList(o)})}),this.bulkRefresh();let c=$(r,{rowNode:e,column:t});c&&c.focusCell(!0)}createCellStyleFeature(e,t){return new WF(e,t)}createRowStyleFeature(e,t){return new GF(e,t)}setEditingCells(e,t){let{beans:n}=this,{colModel:r,valueSvc:i}=n,a=new Map;for(let{colId:o,column:s,colKey:c,rowIndex:l,rowPinned:u,newValue:d,state:f}of e){let e=o?r.getCol(o):c?r.getCol(c):s;if(!e)continue;let p=CE(n,{rowIndex:l,rowPinned:u});if(!p)continue;let m=i.getValue(e,p,!0,`api`);if(!t?.forceRefreshOfEditCellsOnly&&!HA({pendingValue:d,sourceValue:m})&&f!==`editing`)continue;let h=a.get(p);h||(h=new Map,a.set(p,h)),d===void 0&&(d=RA),h.set(e,{editorValue:void 0,pendingValue:d,sourceValue:m,state:f??`changed`,editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(a,t)}onCellFocused(e){let t=$(this.beans,e);if(!t||!this.isEditing(t,nI))return;let n=this.model.getEdit(t);if(!n||!HA(n))return;let r=this.getLocaleTextFunc()(`ariaPendingChange`,`Pending Change`);this.beans.ariaAnnounce?.announceValue(r,`pendingChange`)}allowedFocusTargetOnValidation(e){return $(this.beans,e)}};function aI(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(e=>Array.from(e.keys())))]:void 0}}function oI(e,t){return t??e.get(`editType`)??`singleCell`}var sI=class extends W{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t,n=e.previousParams,{editSvc:r,beans:i}=this,a=e.type===`cellFocused`?e.sourceEvent:null;n&&(t=$(i,n));let{gos:o,editModelSvc:s}=i,c=e.type===`cellFocusCleared`;if(r.isEditing(void 0,{withOpenEditor:!0})){let{column:t,rowIndex:l,rowPinned:u}=e,d={column:t,rowNode:CE(i,{rowIndex:l,rowPinned:u})},f=o.get(`invalidEditValueMode`)===`block`;if(f)return;let p=!f,m=!!s?.getCellValidationModel().hasCellValidation(d),h=p&&m;!(n||c)||r.stopEditing(void 0,{cancel:h,source:c&&p?`api`:void 0,event:a})||(r.isBatchEditing()?r.cleanupEditors():r.stopEditing(void 0,{source:`api`}))}t?.refreshCell({suppressFlash:!0,force:!0})}stop(e,t){let n=this.model.getEditPositions(),r={all:[],pass:[],fail:[]};for(let e of n){if(r.all.push(e),(this.model.getCellValidationModel().getCellValidation(e)?.errorMessages?.length??0)>0){r.fail.push(e);continue}r.pass.push(e)}if(e)for(let t of n)$A(this.beans,t,{cancel:e}),this.model.stop(t);else{let n=this.processValidationResults(r);if(n.destroy.length>0)for(let r of n.destroy)$A(this.beans,r,{event:t,cancel:e}),this.model.stop(r);if(n.keep.length>0)for(let e of n.keep){let t=$(this.beans,e);this.editSvc?.cellEditingInvalidCommitBlocks()||t&&this.editSvc.revertSingleCellEdit(t)}}return!0}cleanupEditors({rowNode:e}={},t){YA(this.beans,{persist:!1});let n=this.model.getEditPositions(),r=[];if(e)for(let t of n)t.rowNode!==e&&r.push(t);else for(let e of n)r.push(e);QA(this.beans,r),KA(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){let t=e.comp,n=t?.getCellEditor();if(n?.focusIn)n.focusIn();else{let n=this.beans.gos.get(`editType`)===`fullRow`;e.focusCell(n),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){let{event:t,ignoreEventKey:n=!1,startedEdit:r,position:i,cells:a=this.model.getEditPositions()}=e,o=t instanceof KeyboardEvent&&!n&&t.key||void 0;VA(this.beans,a,i,o,t,r)}dispatchCellEvent(e,t,n,r){let i=$(this.beans,e);i&&this.eventSvc.dispatchEvent({...i.createEvent(t??null,n),...r})}dispatchRowEvent(e,t,n){if(n)return;let r=PA(this.beans,e);r&&this.eventSvc.dispatchEvent(r.createRowEvent(t))}shouldStop(e,t,n=`ui`){let r=this.editSvc.isBatchEditing();return r&&n===`api`?!0:r&&(n===`ui`||n===`edit`)?!1:n===`api`?!0:t instanceof KeyboardEvent&&!r?t.key===Z.ENTER:null}shouldCancel(e,t,n=`ui`){let r=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!r&&t.key===Z.ESCAPE||r&&n===`api`||n===`api`)}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:`api`});let n=[];if(e.forEach((e,t)=>{e.forEach((e,r)=>{e.state===`editing`&&n.push({...e,rowNode:t,column:r})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),n.length>0){let e=n.at(-1),t=e.pendingValue===RA?void 0:e.pendingValue;this.start({position:e,event:new KeyboardEvent(`keydown`,{key:t}),source:`api`});let r=$(this.beans,e);r&&this.setFocusInOnEditor(r)}}destroy(){this.cleanupEditors(),super.destroy()}},cI={moduleName:`EditCore`,version:G,beans:[jA,iI],apiFunctions:{getEditingCells:EF,getEditRowValues:TF,getCellEditorInstances:BA,startEditingCell:kF,stopEditing:DF,isEditing:OF,validateEdit:AF},dynamicBeans:{singleCell:class extends sI{constructor(){super(...arguments),this.beanName=`singleCell`}shouldStop(e,t,n=`ui`){let r=super.shouldStop(e,t,n);if(r!==null)return r;let{rowNode:i,column:a}=e||{};return(!this.rowNode||!this.column)&&i&&a?null:this.rowNode!==i||this.column!==a}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){let{position:t,startedEdit:n,event:r,ignoreEventKey:i}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:n,event:r,ignoreEventKey:i})}dispatchRowEvent(e,t,n){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){return super.stop(e,t),this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){let{colModel:t,editSvc:n}=this.beans,{rowIndex:r,column:i,rowPinned:a}=e,o=CE(this.beans,{rowIndex:r,rowPinned:a}),s=LA(i),c=t.getCol(s),l=e.previousParams;if(l){let e=LA(l.column);if(l?.rowIndex===r&&e===s&&l?.rowPinned===a)return}n?.isEditing({rowNode:o,column:c},{withOpenEditor:!0})&&e.type===`cellFocused`||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,n,r=`ui`,i=!1){let a=this.beans.focusSvc.getFocusedCell();a&&(e=wE(this.beans,a)??e);let o=e.cellPosition,s,c=this.beans.gos.get(`editType`)===`fullRow`;c&&this.model.suspend(!0),i||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?`ui`:`api`,event:n}));try{s=this.beans.navigation?.findNextCellToFocusOn(o,{backwards:t,startEditing:!0})}finally{c&&this.model.suspend(!1)}if(s===!1)return null;if(s==null)return!1;let l=s.cellPosition,u=e.isCellEditable(),d=s.isCellEditable(),f=l&&o.rowIndex===l.rowIndex&&o.rowPinned===l.rowPinned;u&&!i&&this.setFocusOutOnEditor(e);let p=this.gos.get(`suppressStartEditOnTab`);if(!f&&!i&&(super.cleanupEditors(s,!0),p?s.focusCell(!0,n):this.editSvc.startEditing(s,{startedEdit:!0,event:n,source:r,ignoreEventKey:!0})),d&&!i){if(s.focusCell(!1,n),p)s.focusCell(!0,n);else if(!s.comp?.getCellEditor()){let e=this.editSvc?.isEditing(s,{withOpenEditor:!0});UA(this.beans,s,{event:n,cellStartedEdit:!0,silent:e}),this.setFocusInOnEditor(s),this.cleanupEditors(s)}}else d&&i&&this.setFocusInOnEditor(s),s.focusCell(!0,n);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},fullRow:class extends sI{constructor(){super(...arguments),this.beanName=`fullRow`,this.startedRows=[]}shouldStop(e,t,n=`ui`){let{rowNode:r}=e||{};if(!PA(this.beans,{rowNode:this.rowNode}))return!0;let i=super.shouldStop({rowNode:this.rowNode},t,n);return i===null?this.rowNode?r!==this.rowNode:!1:i}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){let{position:t,silent:n,startedEdit:r,event:i,ignoreEventKey:a}=e,{rowNode:o}=t;this.rowNode!==o&&super.cleanupEditors(t);let s=this.beans.visibleCols.allCols,c=[],l=[];for(let e of s)e.isCellEditable(o)&&l.push(e);if(l.length!=0){this.dispatchRowEvent({rowNode:o},`rowEditingStarted`,n),this.startedRows.push(o);for(let e of l){let t={rowNode:o,column:e};c.push(t),this.model.hasEdits(t)||this.model.start(t)}this.rowNode=o,this.setupEditors({cells:c,position:t,startedEdit:r,event:i,ignoreEventKey:a})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){let{rowNode:n}=this;if(n&&!this.model.hasRowEdits(n))return!1;let r=[];if(e||this.model.getEditMap().forEach((e,t)=>{if(!(!e||e.size===0)){for(let n of e.values())if(HA(n)){r.push(t);break}}}),rj(this.beans),!e&&this.editSvc?.checkNavWithValidation({rowNode:n})===`block-stop`)return!1;super.stop(e,t);for(let e of r)this.dispatchRowEvent({rowNode:e},`rowValueChanged`);return this.cleanupEditors({rowNode:n},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){let{rowIndex:t}=e,n=e.previousParams;if(n?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;let r=$(this.beans,n);this.gos.get(`invalidEditValueMode`)===`block`&&r&&(this.model.getCellValidationModel().getCellValidation(r)||this.model.getRowValidationModel().getRowValidation(r))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);for(let e of this.startedRows)this.dispatchRowEvent({rowNode:e},`rowEditingStopped`);this.startedRows.length=0}moveToNextEditingCell(e,t,n,r=`ui`,i=!1){let a=e.cellPosition,o;this.model.suspend(!0);try{o=this.beans.navigation?.findNextCellToFocusOn(a,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{this.model.suspend(!1)}if(o===!1)return null;if(o==null)return!1;let s=o.cellPosition,c=e.isCellEditable(),l=o.isCellEditable(),u=s&&a.rowIndex===s.rowIndex&&a.rowPinned===s.rowPinned;c&&this.setFocusOutOnEditor(e),this.restoreEditors();let d=this.gos.get(`suppressStartEditOnTab`);return l&&!i?d?o.focusCell(!0,n):(o.comp?.getCellEditor()||UA(this.beans,o,{event:n,cellStartedEdit:!0}),this.setFocusInOnEditor(o),o.focusCell(!1,n)):(l&&i&&this.setFocusInOnEditor(o),o.focusCell(!0,n)),!u&&!i&&(this.editSvc?.stopEditing({rowNode:e.rowNode},{event:n}),this.cleanupEditors(o,!0),d?o.focusCell(!0,n):this.editSvc.startEditing(o,{startedEdit:!0,event:n,source:r,ignoreEventKey:!0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){this.model.getEditMap().forEach((e,t)=>e.forEach(({state:e},n)=>{if(e!==`editing`)return;let r=$(this.beans,{rowNode:t,column:n});r&&!r.comp?.getCellEditor()&&UA(this.beans,r,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.length=0}}},dependsOn:[mN,KP],css:[QP]},lI={moduleName:`UndoRedoEdit`,version:G,beans:[ZP],apiFunctions:{undoCellEditing:CF,redoCellEditing:wF,getCurrentUndoSize:jF,getCurrentRedoSize:MF},dependsOn:[cI]},uI={moduleName:`TextEditor`,version:G,userComponents:{agCellEditor:_F,agTextCellEditor:_F},dependsOn:[cI]},dI={moduleName:`NumberEditor`,version:G,userComponents:{agNumberCellEditor:{classImp:fF}},dependsOn:[cI]},fI={moduleName:`DateEditor`,version:G,userComponents:{agDateCellEditor:iF,agDateStringCellEditor:sF},dependsOn:[cI]},pI={moduleName:`CheckboxEditor`,version:G,userComponents:{agCheckboxCellEditor:eF},dependsOn:[cI]},mI={moduleName:`SelectEditor`,version:G,userComponents:{agSelectCellEditor:mF},dependsOn:[cI]},hI={moduleName:`LargeTextEditor`,version:G,userComponents:{agLargeTextCellEditor:lF},dependsOn:[cI]},gI={moduleName:`CustomEditor`,version:G,dependsOn:[cI]},_I=class extends W{constructor(){super(...arguments),this.beanName=`selectionColSvc`}postConstruct(){this.addManagedPropertyListener(`rowSelection`,e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,p_(e.source))}),this.addManagedPropertyListener(`selectionColumnDef`,this.updateColumns.bind(this))}addColumns(e){let t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),f_(e))}createColumns(e,t){let n=()=>{a_(this.beans,this.columns?.tree),this.columns=null},r=e.treeDepth,i=(this.columns?.treeDepth??-1)==r,a=this.generateSelectionCols();if(d_(a,this.columns?.list??[])&&i)return;n();let{colGroupSvc:o}=this.beans,s=o?.findDepth(e.tree)??0,c=o?.balanceTreeForAutoCols(a,s)??[];this.columns={list:a,tree:c,treeDepth:s,map:{}},t(e=>{if(!e)return null;let t=e.filter(e=>!s_(e));return[...a,...t]})}updateColumns(e){let t=p_(e.source);for(let n of this.columns?.list??[]){let r=this.createSelectionColDef(e.currentValue);n.setColDef(r,null,t),I_(this.beans,{state:[{...r,colId:n.getColId()}]},t)}}getColumn(e){return this.columns?.list.find(t=>m_(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){let{gos:e,beans:t}=this,n=e.get(`rowSelection`);if(typeof n!=`object`||!Zh(e))return!1;let r=(t.autoColSvc?.getColumns()?.length??0)>0;if(n.checkboxLocation===`autoGroupColumn`&&r)return!1;let i=!!gg(n),a=_g(n);return i||a}createSelectionColDef(e){let{gos:t}=this,n=e??t.get(`selectionColumnDef`),r=t.get(`enableRtl`),{rowSpan:i,spanRows:a,...o}=n??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:r?`right`:`left`,comparator(e,t,n,r){let i=n.isSelected();return i===r.isSelected()?0:i?1:-1},editable:!1,suppressFillHandle:!0,pinned:null,...o,colId:n_,chartDataType:`excluded`}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];let e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);let n=new Gg(e,null,t,!1);return this.createBean(n),[n]}onSelectionOptionsChanged(e,t,n){let r=(t&&typeof t!=`string`?gg(t):void 0)!==(e&&typeof e!=`string`?gg(e):void 0),i=(t&&typeof t!=`string`?_g(t):void 0)!==(e&&typeof e!=`string`?_g(e):void 0),a=vg(e)!==vg(t);(r||i||a)&&this.beans.colModel.refreshAll(n)}destroy(){a_(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,n){if(!this.columns?.list.length)return;let r=e.length+t.length+n.length;if(r===0)return;let i=this.columns.list[0];i.isVisible()&&(this.beans.rowNumbersSvc?.getColumn(`ag-Grid-RowNumbersColumn`)?2:1)===r&&(()=>{let r;switch(i.pinned){case`left`:case!0:r=e;break;case`right`:r=n;break;default:r=t}r&&$g(r,i)})()}};function vI(e,t){if(!t.nodes.every(e=>e.rowPinned&&!lT(e)?(K(59),!1):e.id!==void 0||(K(60),!1)))return;let{nodes:n,source:r,newValue:i}=t;e.selectionSvc?.setNodesSelected({nodes:n,source:r??`api`,newValue:i})}function yI(e,t,n=`apiSelectAll`){e.selectionSvc?.selectAllRowNodes({source:n,selectAll:t})}function bI(e,t,n=`apiSelectAll`){e.selectionSvc?.deselectAllRowNodes({source:n,selectAll:t})}function xI(e,t=`apiSelectAllFiltered`){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:`filtered`})}function SI(e,t=`apiSelectAllFiltered`){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:`filtered`})}function CI(e,t=`apiSelectAllCurrentPage`){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:`currentPage`})}function wI(e,t=`apiSelectAllCurrentPage`){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:`currentPage`})}function TI(e){return e.selectionSvc?.getSelectedNodes()??[]}function EI(e){return e.selectionSvc?.getSelectedRows()??[]}var DI=class extends gT{constructor(){super(...arguments),this.beanName=`selectionSvc`,this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();let{gos:e}=this;this.mode=Eg(e),this.groupSelectsDescendants=Mg(e),this.groupSelectsFiltered=kg(e)===`filteredDescendants`,this.masterSelectsDetail=Ng(e)===`detail`,this.addManagedPropertyListeners([`groupSelectsChildren`,`groupSelectsFiltered`,`rowSelection`],()=>{let t=Mg(e),n=Eg(e),r=kg(e)===`filteredDescendants`;this.masterSelectsDetail=Ng(e)===`detail`,(t!==this.groupSelectsDescendants||r!==this.groupSelectsFiltered||n!==this.mode)&&(this.deselectAllRowNodes({source:`api`}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=r,this.mode=n)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,n){if(this.isRowSelectionBlocked(t))return 0;let r=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,n);if(r==null)return 0;if(this.selectionCtx.selectAll=!1,`select`in r)return r.reset?this.resetNodes():this.selectRange(r.deselect,!1,n),this.selectRange(r.select,!0,n);{let t=r.checkFilteredNodes?MI(r.node):r.newValue;return this.setNodesSelected({nodes:[r.node],newValue:t,clearSelection:r.clearSelection,keepDescendants:r.keepDescendants,event:e,source:n})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:n,nodes:r,event:i,source:a,keepDescendants:o=!1}){if(r.length===0)return 0;let{gos:s}=this;if(!Zh(s)&&e)return K(132),0;if(r.length>1&&!this.isMultiSelect())return K(130),0;let c=0;for(let t=0;t0&&(this.updateGroupsFromChildrenSelections(a),this.dispatchSelectionChanged(a))),c}selectRange(e,t,n){let r=0;return e.forEach(e=>{let i=OI(e);i.group&&this.groupSelectsDescendants||this.selectRowNode(i,t,void 0,n)&&r++}),r>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n)),r}selectChildren(e,t,n){let r=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return r?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:n,nodes:r}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){let e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){let t=new Map;this.selectedNodes.forEach((n,r)=>{e(n)&&t.set(r,n)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;let{gos:n,rowModel:r}=this.beans;if(!Jh(n,r))return!1;let i=r.rootNode;if(!i)return!1;t||(t=new AE(!0,i),t.active=!1);let a=!1;return t.forEachChangedNodeDepthFirst(t=>{if(t!==i){let n=this.calculateSelectedFromChildren(t);a=this.selectRowNode(t,n!==null&&n,void 0,e)||a}}),a}clearOtherNodes(e,t,n){let r=new Map,i=0;return this.selectedNodes.forEach(a=>{let o=a.id==e.id;if((!t||!jI(e,a))&&!o){let e=this.selectedNodes.get(a.id);i+=this.setNodesSelected({nodes:[e],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:n}),this.groupSelectsDescendants&&a.parent&&r.set(a.parent.id,a.parent)}}),r.forEach(e=>{let t=this.calculateSelectedFromChildren(e);this.selectRowNode(e,t!==null&&t,void 0,n)}),i}onRowSelected(e){let t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;let t=new Rx(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){let t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){let{gos:e,rowModel:t}=this.beans;if(!Jh(e,t))return;let n=t.getTopLevelNodes();if(n===null)return;let r=[];function i(e){for(let t=0,n=e.length;t{let n=this.selectRowNode(OI(t),!1,void 0,e);r||=n};if(t===`currentPage`||t===`filtered`){if(!n){q(102);return}this.getNodesToSelect(t).forEach(i)}else this.selectedNodes.forEach(i),this.reset(e);if(this.selectionCtx.selectAll=!1,n&&this.groupSelectsDescendants){let t=this.updateGroupsFromChildrenSelections(e);r||=t}r&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,n=0;return this.getNodesToSelect(e).forEach(e=>{this.groupSelectsDescendants&&e.group||(e.isSelected()?t++:e.selectable&&n++)}),{selectedCount:t,notSelectedCount:n}}getSelectAllState(e){let{selectedCount:t,notSelectedCount:n}=this.getSelectedCounts(e);return AI(t,n)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(e=>e.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];let t=[],n=e=>t.push(e);if(e===`currentPage`)return this.forEachNodeOnPage(e=>{if(!e.group){n(e);return}if(!e.expanded&&!e.footer){let t=e=>{n(e),e.childrenAfterFilter?.forEach(t)};t(e);return}this.groupSelectsDescendants||n(e)}),t;let r=this.beans.rowModel;return e===`filtered`?(r.forEachNodeAfterFilter(n),t):(r.forEachNode(n),t)}forEachNodeOnPage(e){let{pageBounds:t,rowModel:n}=this.beans,r=t.getFirstRow(),i=t.getLastRow();for(let t=r;t<=i;t++){let r=n.getRow(t);r&&e(r)}}selectAllRowNodes(e){let{gos:t,selectionCtx:n}=this;if(!Zh(t)){K(132);return}if(bg(t)&&!Dg(t)){K(130);return}if(!this.canSelectAll())return;let{source:r,selectAll:i}=e,a=!1;if(this.getNodesToSelect(i).forEach(e=>{let t=this.selectRowNode(OI(e),!0,void 0,r);a||=t}),n.selectAll=!0,Jh(t)&&this.groupSelectsDescendants){let e=this.updateGroupsFromChildrenSelections(r);a||=e}a&&this.dispatchSelectionChanged(r)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,n){if(e||=[],!Array.isArray(e)){q(103);return}let r=new Set(e),i=[];this.beans.rowModel.forEachNode(e=>{r.has(e.id)&&i.push(e)}),n&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:i,source:t})}canSelectAll(){return Jh(this.beans.gos)}updateSelectable(e){let{gos:t,rowModel:n}=this.beans;if(!Zh(t))return;let r=`selectableChanged`,i=e!==void 0,a=Jh(t)&&this.groupSelectsDescendants,o=[],s=e=>{if(!(i&&!e.group)){if(a&&e.group){let t=e.childrenAfterGroup?.some(e=>e.selectable)??!1;this.setRowSelectable(e,t,!0);return}!this.updateRowSelectable(e,!0)&&e.isSelected()&&o.push(e)}};if(a){if(e===void 0){let t=n.rootNode;e=t?new AE(!1,t):void 0}e?.forEachChangedNodeDepthFirst(s,!i,!i)}else n.forEachNode(s);o.length&&this.setNodesSelected({nodes:o,newValue:!1,source:r}),!i&&a&&this.updateGroupsFromChildrenSelections?.(r)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.(`rowGroupChanged`,e)&&this.dispatchSelectionChanged(`rowGroupChanged`)}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;let n=e.detailNode?.detailGridInfo?.api;if(!n)return;let r=kI(n);if(e.isSelected()!==r&&this.selectRowNode(e,r,t,`masterDetail`)&&this.dispatchSelectionChanged(`masterDetail`),!r){let t=this.detailSelection.get(e.id)??new Set;for(let e of n.getSelectedNodes())t.add(e.id);this.detailSelection.set(e.id,t)}}setDetailSelectionState(e,t,n){if(this.masterSelectsDetail){if(!Dg(t)){K(269);return}switch(e.isSelected()){case!0:n.selectAll();break;case!1:n.deselectAll();break;case void 0:{let t=this.detailSelection.get(e.id);if(t){let e=[];for(let r of t){let t=n.getRowNode(r);t&&e.push(t)}n.setNodesSelected({nodes:e,newValue:!0,source:`masterDetail`})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:`selectionChanged`,source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function OI(e){return lT(e)?e.pinnedSibling:e.footer?e.sibling:e}function kI(e){let t=0,n=0;return e.forEachNode(e=>{e.isSelected()?t++:e.selectable&&n++}),AI(t,n)}function AI(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function jI(e,t){let n=t.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}function MI(e){let t=e.isSelected()===!1,n=e.childrenAfterFilter?.some(MI)??!1;return t||n}var NI={moduleName:`RowSelection`,version:G,rowModels:[`clientSide`,`infinite`,`viewport`],beans:[DI],dependsOn:[{moduleName:`SharedRowSelection`,version:G,beans:[_I],apiFunctions:{setNodesSelected:vI,selectAll:yI,deselectAll:bI,selectAllFiltered:xI,deselectAllFiltered:SI,selectAllOnCurrentPage:CI,deselectAllOnCurrentPage:wI,getSelectedNodes:TI,getSelectedRows:EI}}]};function PI(e){e.expansionSvc?.expandAll(!0)}function FI(e){e.expansionSvc?.expandAll(!1)}function II(e){e.rowModel?.onRowHeightChanged()}function LI(e){if(e.rowAutoHeight?.active){K(3);return}e.rowModel?.resetRowHeights()}function RI(e,t,n){let r=IM(e);if(r){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){q(238);return}r.setRowCount(t,n);return}q(28);return}FM(e)?.setRowCount(t,n)}function zI(e){return Yh(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function BI(e){return e.rowModel.isLastRowIndexKnown()}var VI={moduleName:`CsrmSsrmSharedApi`,version:G,apiFunctions:{expandAll:PI,collapseAll:FI}},HI={moduleName:`RowModelSharedApi`,version:G,apiFunctions:{onRowHeightChanged:II,resetRowHeights:LI}},UI={moduleName:`SsrmInfiniteSharedApi`,version:G,apiFunctions:{setRowCount:RI,getCacheBlockState:zI,isLastRowIndexKnown:BI}},WI={moduleName:`AlignedGrids`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`alignedGridsSvc`,this.consuming=!1}getAlignedGridApis(){let e=this.gos.get(`alignedGrids`)??[],t=typeof e==`function`;return typeof e==`function`&&(e=e()),e.map(e=>{if(!e){q(18),t||q(20);return}if(this.isGridApi(e))return e;let n=e;return`current`in n?n.current?.api:(n.api||q(19),n.api)}).filter(e=>!!e&&!e.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){let e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:e})=>this.onColumnEvent(e),alignedGridScroll:({event:e})=>this.onScrollEvent(e)})}fireEvent(e){if(!this.consuming)for(let t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:`alignedGridColumn`,event:e})}fireScrollEvent(e){e.direction===`horizontal`&&this.fireEvent({type:`alignedGridScroll`,event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){let n=[];return e.columns?e.columns.forEach(e=>{n.push(t(e))}):e.column&&n.push(t(e.column)),n}getMasterColumns(e){return this.extractDataFromEvent(e,e=>e)}getColumnIds(e){return this.extractDataFromEvent(e,e=>e.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case`columnMoved`:case`columnVisible`:case`columnPinned`:case`columnResized`:this.processColumnEvent(e);break;case`columnGroupOpened`:this.processGroupOpenedEvent(e);break;case`columnPivotChanged`:K(21)}})}processGroupOpenedEvent(e){let{colGroupSvc:t}=this.beans;if(t)for(let n of e.columnGroups){let e=null;n&&(e=t.getProvidedColGroup(n.getGroupId())),!(n&&!e)&&t.setColumnGroupOpened(e,n.isExpanded(),`alignedGridChanged`)}}processColumnEvent(e){let t=e.column,n=null,r=this.beans,{colResize:i,ctrlsSvc:a,colModel:o}=r;if(t&&(n=o.getColDefCol(t.getColId())),t&&!n)return;let s=this.getMasterColumns(e);switch(e.type){case`columnMoved`:I_(r,{state:e.api.getColumnState().map(e=>({colId:e.colId})),applyOrder:!0},`alignedGridChanged`);break;case`columnVisible`:I_(r,{state:e.api.getColumnState().map(e=>({colId:e.colId,hide:e.hide}))},`alignedGridChanged`);break;case`columnPinned`:I_(r,{state:e.api.getColumnState().map(e=>({colId:e.colId,pinned:e.pinned}))},`alignedGridChanged`);break;case`columnResized`:{let t=e,n={};for(let e of s)n[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()};for(let e of t.flexColumns??[])n[e.getId()]&&delete n[e.getId()];i?.setColumnWidths(Object.values(n),!1,t.finished,`alignedGridChanged`);break}}let c=a.getGridBodyCtrl().isVerticalScrollShowing();for(let e of this.getAlignedGridApis())e.setGridOption(`alwaysShowVerticalScroll`,c)}}],dependsOn:[FO]},GI=class extends W{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},qI(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){let{selectionSvc:t,pinnedRowModel:n,groupStage:r}=this.beans;t?.reset(`rowDataChanged`),n?.isManual()&&n.reset(),this.dispatchRowDataUpdateStarted(e),this.allNodesMap=Object.create(null),this.nextId=0;let i=qI(this.rootNode),a=Array(e.length);i._leafs=a;let o=0,s=r?.getNestedDataGetter(),c=s?new Set:null,l=(e,t)=>{let n=e.level+1;for(let r=0,i=t.length;r{if(!d&&d!==void 0){let t=e.sourceRowIndex;d=t<=f,f=t}e.data!==t&&(e.updateData(t),o.has(e)||s.add(e),!e.selectable&&e.isSelected()&&l.push(e))},h=(e,t,n)=>{for(let r=0,a=t.length;r0;if(g){let e=n._leafs??=[];d===void 0?ZI(e,c,a):XI(e,c)&&(a.reordered=!0)}(g||p||s.size)&&(e.rowDataUpdated=!0,this.deselect(l))}deleteUnusedNodes(e,{removals:t},n){let r=this.rootNode._leafs;for(let i=0,a=r.length;i0}updateRowData(e,t){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return K(268),{remove:[],update:[],add:[]};let n=[],r=pg(this.gos),i=this.executeRemove(r,e,t,n),a=this.executeUpdate(r,e,t,n),o=this.executeAdd(e,t);return this.deselect(n),{remove:i,update:a,add:o}}executeRemove(e,{remove:t},{adds:n,updates:r,removals:i},a){let o=this.rootNode._leafs,s=o?.length,c=t?.length;if(!c||!s)return[];let l=0,u=s,d=0,f,p=Array(c);for(let o=0;od&&(d=c),s.isSelected()&&a.push(s),this.deleteNode(s),n.delete(s)?(f??=new Set,f.add(s)):(r.delete(s),i.add(s)),p[l++]=s}return p.length=l,l&&YI(o,u,d,i,f),p}executeUpdate(e,{update:t},{adds:n,updates:r},i){let a=t?.length;if(!a)return[];let o=Array(a),s=0;for(let c=0;c=c;--e){let n=r[e];n.sourceRowIndex=t,r[t--]=n}t.reordered=!0}r.length=s;let l=Array(o),u=t.adds;for(let e=0;e=n||Number.isNaN(t))return n;t=Math.ceil(t);let r=this.gos;return t>0&&r.get(`treeData`)&&r.get(`getDataPath`)&&(t=KI(e,t)),t}},KI=(e,t)=>{for(let n=0,r=e.length;n{e.group=!0,e.level=-1,e.id=`ROOT_NODE_ID`,e._leafs?.length!==0&&(e._leafs=[]);let t=[],n=[],r=[],i=[];e.childrenAfterGroup=t,e.childrenAfterSort=n,e.childrenAfterAggFilter=r,e.childrenAfterFilter=i;let a=e.sibling;return a&&(a.childrenAfterGroup=t,a.childrenAfterSort=n,a.childrenAfterAggFilter=r,a.childrenAfterFilter=i,a.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},JI=(e,t)=>{if(e)for(let n=0,r=e.length;n{t=Math.max(0,t);for(let a=t,o=e.length;a{e.length=t.size;let n=0,r=!1,i=!1;for(let a of t){let t=a.sourceRowIndex;t===n?i||=r:(t>=0?i=!0:r=!0,a.sourceRowIndex=n,e[n]=a),++n}return i},ZI=(e,t,{removals:n,adds:r})=>{let i=e.length;e.length=t.size;let a=0;for(let t=0;t{let t=e.childrenAfterSort,n=e.sibling;if(n&&(n.childrenAfterSort=t),t)for(let e=0,n=t.length-1;e<=n;e++){let r=t[e],i=e===0,a=e===n;r.firstChild!==i&&(r.firstChild=i,r.dispatchRowEvent(`firstChildChanged`)),r.lastChild!==a&&(r.lastChild=a,r.dispatchRowEvent(`lastChildChanged`)),r.childIndex!==e&&(r.childIndex=e,r.dispatchRowEvent(`childIndexChanged`))}},$I=class extends W{constructor(){super(...arguments),this.beanName=`sortStage`,this.step=`sort`,this.refreshProps=[`postSortRows`,`groupDisplayType`,`accentedSort`]}execute(e){let t=this.beans.sortSvc.getSortOptions(),n=t.length>0&&!!e.changedRowNodes&&this.gos.get(`deltaSort`);this.sort(t,n,e.changedRowNodes,e.changedPath)}sort(e,t,n,r){let{gos:i,colModel:a,rowGroupColsSvc:o,rowNodeSorter:s,rowRenderer:c,showRowGroupCols:l}=this.beans,u=i.get(`groupMaintainOrder`),d=a.getCols().some(e=>e.isRowGroupActive()),f=o?.columns,p=a.isPivotMode(),m=i.getCallback(`postSortRows`),h=!1,g;if(r?.forEachChangedNodeDepthFirst(i=>{let a=p&&i.leafGroup,o=u&&d&&!i.leafGroup;o&&(g??=this.shouldSortContainsGroupCols(e),o&&=!g);let c=null;if(o){let e=!1;if(f){let t=i.level+1;t{let a=t.childrenAfterAggFilter,o=t.childrenAfterSort;if(!o)return e.doFullSort(a,i);let s=new Set,c=[],{updates:l,adds:u}=n;for(let e=0,t=a.length;es.has(e)).map((e,t)=>({currentPos:t,rowNode:e}));return c.sort((t,n)=>e.compareRowNodes(i,t,n)),tL(e,i,c,d)},tL=(e,t,n,r)=>{let i=0,a=0,o=n.length,s=r.length,c=Array(o+s),l=0;for(;i{let t=e.childrenAfterSort,n=e.childrenAfterAggFilter,r=t?.length,i=n?.length;if(!r||!i)return null;let a=Array(i),o=new Set;for(let e=0;e!!e);this.stages=n;for(let e=n.length-1;e>=0;--e)for(let r of n[e].refreshProps)t.set(r,e);this.addManagedPropertyListeners([...t.keys()],e=>{let t=e.changeSet?.properties;t&&this.onPropChange(t)}),this.addManagedPropertyListener(`rowData`,()=>this.onPropChange([`rowData`])),this.addManagedPropertyListener(`rowHeight`,()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:`group`,rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get(`rowData`)&&this.onPropChange([`rowData`])}ensureRowHeightsValid(e,t,n,r){let i,a=!1;do{i=!1;let o=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),c=Math.max(o,n),l=Math.min(s,r);for(let e=c;e<=l;e++){let t=this.getRow(e);if(t.rowHeightEstimated){let e=eg(this.beans,t);t.setRowHeight(e.height),i=!0,a=!0}}i&&this.setRowTopAndRowIndex()}while(i);return a}onPropChange(e){let{nodeManager:t,gos:n,beans:r}=this,i=r.groupStage;if(!t)return;let a=new Set(e),o=i?.onPropChange(a),s;a.has(`rowData`)?s=n.get(`rowData`):o&&(s=i?.extractData()),s&&!Array.isArray(s)&&(s=null,K(1));let c={step:`nothing`,changedProps:a};s&&(!o&&!this.isEmpty()&&s.length>0&&n.exists(`getRowId`)&&!n.get(`resetRowDataOnUpdate`)?(c.keepRenderedRows=!0,c.animate=!n.get(`suppressAnimationFrame`),c.changedRowNodes=new gE,t.setImmutableRowData(c,s)):(c.rowDataUpdated=!0,c.newData=!0,t.setNewRowData(s),this.rowNodesCountReady=!0));let l=c.rowDataUpdated?`group`:this.getRefreshedStage(e);l&&(c.step=l,this.refreshModel(c))}getRefreshedStage(e){let{stages:t,stagesRefreshProps:n}=this,r=t.length,i=r;for(let t=0,r=e.length;t{e?.id!=null&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},i=e=>{r(e),r(e.detailNode),r(e.sibling);let t=e.childrenAfterGroup;if(!e.hasChildren()||!t)return;let a=e.level==-1;if(!(n&&!a&&!e.expanded))for(let e=0,n=t.length;e{let t=i[e];if(this.gos.get(`groupHideOpenParents`))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},o=t.footerSvc;return o?o?.getTopDisplayIndex(r,e,i,a):a(e)}getTopLevelIndexFromDisplayedIndex(e){let{rootNode:t,rowsToDisplay:n}=this;if(!t||!n.length||n[0]===t)return e;let r=this.getRow(e);r.footer&&(r=r.sibling);let i=r.parent;for(;i&&i!==t;)r=i,i=r.parent;let a=t.childrenAfterSort?.indexOf(r)??-1;return a>=0?a:e}getRowBounds(e){let t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:`map`,keepRenderedRows:!0,animate:og(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){let e=t.length===0||t.some(e=>e.isPrimary())?`filter`:`filter_aggregates`;this.refreshModel({step:e,keepRenderedRows:!0,animate:og(this.gos)})}}onSortChanged(){this.refreshModel({step:`sort`,keepRenderedRows:!0,animate:og(this.gos)})}getType(){return`clientSide`}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?`pivot`:`aggregate`})}createChangePath(e){let t=new AE(!1,this.rootNode);return t.active=e,t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get(`suppressModelUpdateAfterUpdateTransaction`))return!1;let{changedRowNodes:t,newData:n,rowDataUpdated:r}=e;return!(!t||n||!r||t.removals.size||t.adds.size)}refreshModel(e){let{nodeManager:t,beans:n,eventSvc:r,started:i,refreshingModel:a}=this;if(!t)return;let o=!!e.rowDataUpdated,s=e.changedPath??=this.createChangePath(!e.newData&&o);if(i&&o&&r.dispatchEvent({type:`rowDataUpdated`}),!i||a||n.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e)){this.rowDataUpdatedPending||=o;return}switch(this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step=`group`),this.refreshingModel=!0,n.masterDetailSvc?.refreshModel(e),o&&e.step!==`group`&&n.colFilter?.refreshModel(),e.step){case`group`:this.doGrouping(e);case`filter`:this.doFilter(s);case`pivot`:this.doPivot(s);case`aggregate`:this.doAggregate(s);case`filter_aggregates`:this.doFilterAggregates(s);case`sort`:this.doSort(e.changedRowNodes,s);case`map`:this.doRowsToDisplay()}let c=new Set;this.setRowTopAndRowIndex(c),this.clearRowTopAndRowIndex(s,c),this.refreshingModel=!1,r.dispatchEvent({type:`modelUpdated`,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let n=!1,r=!1,i=[],a=Mg(this.gos);return this.forEachNodeAfterFilterAndSort(o=>{if(!r){if(n&&(o===t||o===e)&&(r=!0,a&&o.group)){iL(i,o);return}if(!n){if(o!==t&&o!==e)return;n=!0,t===e&&(r=!0)}(!o.group||!a)&&i.push(o)}}),i}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){let t=this.rowsToDisplay,n=t.length;if(this.isEmpty()||n===0)return-1;let r=0,i=n-1;if(e<=0)return 0;if(t[i].rowTop<=e)return i;let a=-1,o=-1;for(;;){let n=Math.floor((r+i)/2),s=t[n];if(this.isRowInPixel(s,e)||(s.rowTope&&(i=n-1),a===r&&o===i))return n;a=r,o=i}}isRowInPixel(e,t){let n=e.rowTop,r=n+e.rowHeight;return n<=t&&r>t}forEachLeafNode(e){let t=this.rootNode?._leafs;if(t)for(let n=0,r=t.length;ne.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,e=>e.childrenAfterSort)}forEachPivotNode(e,t,n){let{colModel:r,rowGroupColsSvc:i}=this.beans;if(!r.isPivotMode())return;if(!i?.columns.length){e(this.rootNode,0);return}let a=n?`childrenAfterSort`:`childrenAfterGroup`;this.depthFirstSearchRowNodes(e,t,e=>e.leafGroup?null:e[a])}depthFirstSearchRowNodes(e,t=!1,n=e=>e.childrenAfterGroup,r=this.rootNode,i=0){let a=i;if(!r)return a;let o=r===this.rootNode;if(o||e(r,a++),r.hasChildren()&&!r.footer){let i=n(r);if(i){let s=this.beans.footerSvc;a=s?.addTotalRows(a,r,e,t,o,`top`)??a;for(let r of i)a=this.depthFirstSearchRowNodes(e,t,n,r,a);return s?.addTotalRows(a,r,e,t,o,`bottom`)??a}}return a}doAggregate(e){let t=this.rootNode;t&&this.beans.aggStage?.execute({rowNode:t,changedPath:e})}doFilterAggregates(e){let t=this.rootNode,n=this.beans.filterAggStage;if(n){n.execute({rowNode:t,changedPath:e});return}t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){let n=this.beans.sortStage;if(n){n.execute({rowNode:this.rootNode,changedRowNodes:e,changedPath:t});return}t.forEachChangedNodeDepthFirst(e=>{e.childrenAfterSort=e.childrenAfterAggFilter.slice(0),QI(e)})}doGrouping(e){let t=this.rootNode,n=this.beans.groupStage?.execute({rowNode:t,changedRowNodes:e.changedRowNodes,changedPath:e.changedPath,afterColumnsChanged:!!e.afterColumnsChanged});if(n===void 0){let e=t._leafs;t.childrenAfterGroup=e,t.updateHasChildren();let n=t.sibling;n&&(n.childrenAfterGroup=e)}(n||e.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:`rowCountReady`}))}doFilter(e){let t=this.beans.filterStage;if(t){t.execute({rowNode:this.rootNode,changedPath:e});return}e.forEachChangedNodeDepthFirst(e=>{e.childrenAfterFilter=e.childrenAfterGroup,cN(e)},!0)}doPivot(e){this.beans.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getRowNode(e){let t=this.nodeManager?.getRowNode(e);return typeof t==`object`?t:typeof e==`string`&&e.indexOf(`row-group-`)===0?this.beans.groupStage?.getNode(e):void 0}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];let e=this.gos.get(`asyncTransactionWaitMillis`);this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),e)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){let e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){let{nodeManager:e,beans:t,eventSvc:n,asyncTransactions:r}=this;if(!e)return;t.valueCache?.onDataChanged();let i=[],a=[],o=new gE;for(let{rowDataTransaction:t,callback:n}of r??[]){this.rowNodesCountReady=!0;let r=e.updateRowData(t,o);i.push(r),n&&a.push(n.bind(null,r))}this.commitTransactions(o),a.length>0&&setTimeout(()=>{for(let e=0,t=a.length;e0&&n.dispatchEvent({type:`asyncTransactionsFlushed`,results:i}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){let t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;let n=new gE,r=t.updateRowData(e,n);return this.commitTransactions(n),r}commitTransactions(e){this.refreshModel({step:`group`,rowDataUpdated:!0,keepRenderedRows:!0,animate:!this.gos.get(`suppressAnimationFrame`),changedRowNodes:e,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){let{beans:e,rootNode:t}=this,n=e.flattenStage;if(n){this.rowsToDisplay=n.execute({rowNode:t});return}let r=this.rootNode.childrenAfterSort??[];for(let e of r)e.setUiLevel(0);this.rowsToDisplay=r}onRowHeightChanged(){this.refreshModel({step:`map`,keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){let e=this.rootNode;if(!e)return;let t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);let n=e.sibling;n?.setRowHeight(n.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);let n=t.detailNode;n?.setRowHeight(n.rowHeight,!0);let r=t.sibling;r?.setRowHeight(r.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){e.rowHeightChanged&&!this.beans.rowAutoHeight?.active&&this.resetRowHeights()}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy(),this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.asyncTransactions=null,clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},iL=(e,t)=>{let n=t.childrenAfterGroup;if(n)for(let t=0,r=n.length;tPM(e)?.updateRowData(t))}function fL(e,t,n){e.frameworkOverrides.wrapIncoming(()=>PM(e)?.batchUpdateRowData(t,n))}function pL(e){e.frameworkOverrides.wrapIncoming(()=>PM(e)?.flushAsyncTransactions())}function mL(e){return e.selectionSvc?.getBestCostNodeSelection()}var hL={moduleName:`ClientSideRowModel`,version:G,rowModels:[`clientSide`],beans:[rL,$I],dependsOn:[eM]},gL={moduleName:`ClientSideRowModelApi`,version:G,apiFunctions:{onGroupExpandedOrCollapsed:aL,refreshClientSideRowModel:oL,isRowDataEmpty:sL,forEachLeafNode:cL,forEachNodeAfterFilter:lL,forEachNodeAfterFilterAndSort:uL,applyTransaction:dL,applyTransactionAsync:fL,flushAsyncTransactions:pL,getBestCostNodeSelection:mL,resetRowHeights:LI,onRowHeightChanged:II},dependsOn:[VI,HI]},_L={moduleName:`SharedExport`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`gridSerializer`}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){let{allColumns:n,columnKeys:r,skipRowGroups:i,exportRowNumbers:a}=t,o=this.getColumnsToExport({allColumns:n,skipRowGroups:i,columnKeys:r,exportRowNumbers:a});return[this.prepareSession(o),this.prependContent(t),this.exportColumnGroups(t,o),this.exportHeaders(t,o),this.processPinnedTopRows(t,o),this.processRows(t,o),this.processPinnedBottomRows(t,o),this.appendContent(t)].reduce((e,t)=>t(e),e).parse()}processRow(e,t,n,r){let i=t.shouldRowBeSkipped||(()=>!1),a=t.rowPositions!=null||!!t.onlySelected,o=this.gos.get(`groupHideOpenParents`)&&!a,s=this.colModel.isPivotMode()?r.leafGroup:!r.group,c=!!r.footer,l=r.allChildrenCount===1&&r.childrenAfterGroup?.length===1&&mg(this.gos,r);if(!s&&!c&&(t.skipRowGroups||l||o)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&r.rowPinned===`top`||t.skipPinnedBottom&&r.rowPinned===`bottom`||r.stub||r.level===-1&&!s&&!c||i(J(this.gos,{node:r})))return;let u=e.onNewBodyRow(r);if(n.forEach((e,t)=>{u.onColumn(e,t,r)}),t.getCustomContentBelowRow){let n=t.getCustomContentBelowRow(J(this.gos,{node:r}));n&&e.addCustomContent(n)}}appendContent(e){return t=>{let n=e.appendContent;return n&&t.addCustomContent(n),t}}prependContent(e){return t=>{let n=e.prependContent;return n&&t.addCustomContent(n),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return n=>{if(!e.skipColumnGroupHeaders){let r=new K_,{colGroupSvc:i}=this.beans,a=i?i.createColumnGroups({columns:t,idCreator:r,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(a,n,e.processGroupHeaderCallback)}return n}}exportHeaders(e,t){return n=>{if(!e.skipColumnHeaders){let e=n.onNewHeaderRow();t.forEach((t,n)=>{e.onColumn(t,n,void 0)})}return n}}processPinnedTopRows(e,t){return n=>{let r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(e=>e.rowPinned===`top`).sort((e,t)=>e.rowIndex-t.rowIndex).map(e=>this.pinnedRowModel?.getPinnedTopRow(e.rowIndex)).forEach(r):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow(`top`,r),n}}processRows(e,t){return n=>{let r=this.rowModel,i=Jh(this.gos,r),a=Yh(this.gos,r),o=!i&&e.onlySelected,s=this.processRow.bind(this,n,e,t),{exportedRows:c=`filteredAndSorted`}=e;if(e.rowPositions)e.rowPositions.filter(e=>e.rowPinned==null).sort((e,t)=>e.rowIndex-t.rowIndex).map(e=>r.getRow(e.rowIndex)).forEach(s);else if(this.colModel.isPivotMode())i?r.forEachPivotNode(s,!0,c===`filteredAndSorted`):a?r.forEachNodeAfterFilterAndSort(s,!0):r.forEachNode(s);else if(e.onlySelectedAllPages||o){let e=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(e),e.forEach(s)}else c===`all`?r.forEachNode(s):i||a?r.forEachNodeAfterFilterAndSort(s,!0):r.forEachNode(s);return n}}replicateSortedOrder(e){let{sortSvc:t,rowNodeSorter:n}=this.beans;if(!t||!n)return;let r=t.getSortOptions(),i=(e,t)=>e.rowIndex!=null&&t.rowIndex!=null?e.rowIndex-t.rowIndex:e.level===t.level?e.parent?.id===t.parent?.id?n.compareRowNodes(r,{rowNode:e,currentPos:e.rowIndex??-1},{rowNode:t,currentPos:t.rowIndex??-1}):i(e.parent,t.parent):e.level>t.level?i(e.parent,t):i(e,t.parent);e.sort(i)}processPinnedBottomRows(e,t){return n=>{let r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(e=>e.rowPinned===`bottom`).sort((e,t)=>e.rowIndex-t.rowIndex).map(e=>this.pinnedRowModel?.getPinnedBottomRow(e.rowIndex)).forEach(r):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow(`bottom`,r),n}}getColumnsToExport(e){let{allColumns:t=!1,skipRowGroups:n=!1,exportRowNumbers:r=!1,columnKeys:i}=e,{colModel:a,gos:o,visibleCols:s}=this,c=a.isPivotMode(),l=e=>s_(e)?!1:!c_(e)||r;if(i?.length)return a.getColsForKeys(i).filter(l);let u=o.get(`treeData`),d=[];return d=t&&!c?a.getCols():s.allCols,d=d.filter(e=>l(e)&&(n&&!u?!o_(e):!0)),d}recursivelyAddHeaderGroups(e,t,n){let r=[];for(let t of e){let e=t;if(e.getChildren)for(let t of e.getChildren()??[])r.push(t)}e.length>0&&Px(e[0])&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)}doAddHeaderHeader(e,t,n){let r=e.onNewHeaderGroupingRow(),i=0;for(let e of t){let t=e,a;a=n?n(J(this.gos,{columnGroup:t})):this.beans.colNames.getDisplayNameForColumnGroup(t,`header`);let o=(t.isExpandable()?t.getLeafColumns():[]).reduce((e,t,n,r)=>{let i=Y(e);return t.getColumnGroupShow()===`open`?(!i||i[1]!=null)&&(i=[n],e.push(i)):i&&i[1]==null&&(i[1]=n-1),n===r.length-1&&i&&i[1]==null&&(i[1]=n),e},[]);r.onColumn(t,a||``,i++,t.getLeafColumns().length-1,o)}}}]},vL=`\r
+`,yL=class extends GM{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result=``;let{suppressQuotes:t,columnSeparator:n}=e;this.suppressQuotes=t,this.columnSeparator=n}addCustomContent(e){e&&(typeof e==`string`?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,vL),this.result+=e):e.forEach(e=>{this.beginNewLine(),e.forEach((e,t)=>{t!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e.data.value||``),e.mergeAcross&&this.appendEmptyCells(e.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,n,r){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes(``)}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,n){t!=0&&(this.result+=this.columnSeparator);let r=this.extractRowCellValue(e,t,t,`csv`,n);this.result+=this.putInQuotes(r.valueFormatted??r.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return`""`;let t;return typeof e==`string`?t=e:typeof e.toString==`function`?t=e.toString():(K(53),t=``),`"`+t.replace(/"/g,`""`)+`"`}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=vL),this.isFirstLine=!1}},bL=class extends WM{constructor(){super(...arguments),this.beanName=`csvCreator`}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc}getMergedParams(e){let t=this.gos.get(`defaultCsvExportParams`);return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){K(51);return}let t=this.getMergedParams(e),n=this.getData(t),r=new Blob([``,n],{type:`text/plain`}),i=typeof t.fileName==`function`?t.fileName(J(this.gos,{})):t.fileName;KM(this.getFileName(i),r)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){let n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)}getDefaultFileExtension(){return`csv`}createSerializingSession(e){let{colModel:t,colNames:n,rowGroupColsSvc:r,valueSvc:i,gos:a}=this,{processCellCallback:o,processHeaderCallback:s,processGroupHeaderCallback:c,processRowGroupCallback:l,suppressQuotes:u,columnSeparator:d}=e;return new yL({colModel:t,colNames:n,valueSvc:i,gos:a,processCellCallback:o||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:c||void 0,processRowGroupCallback:l||void 0,suppressQuotes:u||!1,columnSeparator:d||`,`,rowGroupColsSvc:r})}isExportSuppressed(){return this.gos.get(`suppressCsvExport`)}};function xL(e,t){return e.csvCreator?.getDataAsCsv(t)}function SL(e,t){e.csvCreator?.exportDataAsCsv(t)}var CL={moduleName:`CsvExport`,version:G,beans:[bL],apiFunctions:{getDataAsCsv:xL,exportDataAsCsv:SL},dependsOn:[_L]},wL=class extends W{constructor(e,t,n){super(),this.id=e,this.parentCache=t,this.params=n,this.state=`needsLoading`,this.version=0,this.startRow=e*n.blockSize,this.endRow=this.startRow+n.blockSize}load(){this.state=`loading`,this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state=`needsLoading`}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state=`failed`),this.dispatchLocalEvent({type:`loadComplete`})}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){let t=e===this.version,n=this.isAlive();return t&&n}successCommon(e,t){this.dispatchLocalEvent({type:`loadComplete`}),this.isRequestMostRecentAndLive(e)&&(this.state=`loaded`,this.processServerResult(t))}postConstruct(){this.rowNodes=[];let{params:{blockSize:e,rowHeight:t},startRow:n,beans:r,rowNodes:i}=this;for(let a=0;a{this.params.datasource.getRows(e)},0)}createLoadParams(){let{startRow:e,endRow:t,version:n,params:{sortModel:r,filterModel:i},gos:a}=this;return{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,n),failCallback:this.pageLoadFailed.bind(this,n),sortModel:r,filterModel:i,context:J(a,{}).context}}forEachNode(e,t,n){this.rowNodes.forEach((r,i)=>{this.startRow+i{let a=e.rowData?e.rowData[i]:void 0;!r.id&&r.alreadyRendered&&a&&(t[i]=new Rx(n),t[i].setRowIndex(r.rowIndex),t[i].setRowTop(r.rowTop),t[i].setRowHeight(r.rowHeight),r.clearRowTopAndRowIndex()),this.setDataAndId(t[i],a,this.startRow+i)});let r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)}destroy(){for(let e of this.rowNodes)e.clearRowTopAndRowIndex();super.destroy()}},TL=2,EL=class extends W{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){let n=Math.floor(e/this.params.blockSize),r=this.blocks[n];if(!r){if(t)return;r=this.createBlock(n)}return r.getRow(e)}createBlock(e){let t=this.params,n=this.createBean(new wL(e,this,t));return this.blocks[n.id]=n,this.blockCount++,this.purgeBlocksIfNeeded(n),t.rowNodeBlockLoader.addBlock(n),n}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(let e of this.getBlocksInOrder())e.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(let e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(sh(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){let t=this.getBlocksInOrder().filter(t=>t!=e);t.sort((e,t)=>t.lastAccessed-e.lastAccessed);let n=this.params.maxBlocksInCache>0,r=n?this.params.maxBlocksInCache-1:null,i=TL-1;t.forEach((e,t)=>{if(e.state===`needsLoading`&&t>=i||n&&t>=r){if(this.isBlockCurrentlyDisplayed(e)||this.isBlockFocused(e))return;this.removeBlockFromCache(e)}})}isBlockFocused(e){let t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;let{startRow:n,endRow:r}=e;return t.rowIndex>=n&&t.rowIndex=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){let{blockSize:t,overflowSize:n}=this.params,r=(e.id+1)*t+n;this.rowCounte.id-t.id)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:`storeUpdated`}))}destroyAllBlocksPastVirtualRowCount(){let e=[];for(let t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(let t of e)this.destroyBlock(t)}purgeCache(){for(let e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){let n=[],r=-1,i=!1,a={value:0},o=!1;for(let s of this.getBlocksInOrder())if(!o){if(i&&r+1!==s.id){o=!0;continue}r=s.id,s.forEachNode(r=>{let a=r===e||r===t;(i||a)&&n.push(r),a&&(i=!i)},a,this.rowCount)}return o||i?[]:n}},DL=class extends W{constructor(){super(...arguments),this.beanName=`rowModel`,this.rootNode=null}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get(`rowModelType`)!==`infinite`)return;let e=this.beans,t=new Rx(e);this.rootNode=t,t.level=-1,this.rowHeight=ng(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get(`datasource`))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&=(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener(`datasource`,()=>this.setDatasource(this.gos.get(`datasource`))),this.addManagedPropertyListener(`cacheBlockSize`,()=>this.resetCache()),this.addManagedPropertyListener(`rowHeight`,()=>{this.rowHeight=ng(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;e=!this.cacheParams||!Gf(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]),e&&this.reset()}getType(){return`infinite`}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){this.datasource&&(pg(this.gos)??this.beans.selectionSvc?.reset(`rowDataChanged`),this.resetCache())}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:`modelUpdated`,newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();let e=this.beans,{filterManager:t,sortSvc:n,rowNodeBlockLoader:r,eventSvc:i,gos:a}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:n?.getSortModel()??[],rowNodeBlockLoader:r,initialRowCount:a.get(`infiniteInitialRowCount`),maxBlocksInCache:a.get(`maxBlocksInCache`),rowHeight:ng(e),overflowSize:a.get(`cacheOverflowSize`),blockSize:a.get(`cacheBlockSize`),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new EL(this.cacheParams)),i.dispatchEventOnce({type:`rowCountReady`}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){let t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){let t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}};function OL(e){FM(e)?.refreshCache()}function kL(e){FM(e)?.purgeCache()}function AL(e){return FM(e)?.getRowCount()}var jL={moduleName:`InfiniteRowModel`,version:G,apiFunctions:{refreshInfiniteCache:OL,purgeInfiniteCache:kL,getInfiniteRowCount:AL},dependsOn:[{moduleName:`InfiniteRowModelCore`,version:G,rowModels:[`infinite`],beans:[DL,class extends W{constructor(){super(...arguments),this.beanName=`rowNodeBlockLoader`,this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=hg(this.gos);let e=this.gos.get(`blockLoadDebounceMillis`);e&&e>0&&(this.checkBlockToLoadDebounce=Ym(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener(`loadComplete`,this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){$g(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){sh(this.gos,`RowNodeBlockLoader - checkBlockToLoad: max loads exceeded`);return}let e=this.maxConcurrentRequests==null?1:this.maxConcurrentRequests-this.activeBlockLoadsCount,t=this.blocks.filter(e=>e.state===`needsLoading`).slice(0,e);this.activeBlockLoadsCount+=t.length;for(let e of t)e.load();this.printCacheStatus()}getBlockState(){let e={};return this.blocks.forEach(t=>{let{id:n,state:r}=t.getBlockStateJson();e[n]=r}),e}printCacheStatus(){sh(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}}]},UI]},ML=`↑`,NL=`↓`,PL={tag:`span`,children:[{tag:`span`,ref:`eDelta`,cls:`ag-value-change-delta`},{tag:`span`,ref:`eValue`,cls:`ag-value-change-value`}]},FL=class extends X{constructor(){super(PL),this.eValue=null,this.eDelta=null,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){let n=Math.abs(t),r=e.formatValue(n),i=B(r)?r:n,a=t>=0,o=this.eDelta;o.textContent=a?ML+i:NL+i,o.classList.toggle(`ag-value-change-delta-up`,a),o.classList.toggle(`ag-value-change-delta-down`,!a)}setTimerToRemoveDelta(){this.refreshCount++;let e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove(`ag-value-change-value-highlight`),Xp(this.eDelta)}refresh(e,t=!1){let{value:n,valueFormatted:r}=e,{eValue:i,lastValue:a,beans:o}=this;if(n===a||(B(r)?i.textContent=r:B(n)?i.textContent=n:Xp(i),o.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;let s=n&&typeof n==`object`&&`toNumber`in n?n.toNumber():n,c=a&&typeof a==`object`&&`toNumber`in a?a.toNumber():a;if(s===c)return!1;if(typeof s==`number`&&typeof c==`number`){let t=s-c;this.showDelta(e,t)}return a&&i.classList.add(`ag-value-change-value-highlight`),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}},IL=`.ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}`,LL={tag:`span`,children:[{tag:`span`,ref:`eCurrent`,cls:`ag-value-slide-current`}]},RL=class extends X{constructor(){super(LL),this.eCurrent=null,this.refreshCount=0,this.registerCSS(IL)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;let e=this.refreshCount;this.ePrevious?.remove();let{beans:t,eCurrent:n}=this,r=Zx({tag:`span`,cls:`ag-value-slide-previous ag-value-slide-out`});this.ePrevious=r,r.textContent=n.textContent,this.getGui().insertBefore(r,n),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add(`ag-value-slide-out-end`)},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let n=e.value;if(V(n)&&(n=``),n===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=n;let r=this.eCurrent;return B(e.valueFormatted)?r.textContent=e.valueFormatted:B(e.value)?r.textContent=n:Xp(r),!0}},zL=class extends W{constructor(){super(...arguments),this.beanName=`cellFlashSvc`,this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,n=this.beans.gos.get(`cellFlashDuration`),r=this.beans.gos.get(`cellFadeDuration`)){let i=this.animations[t];i.delete(e);let a=Date.now(),o=a+n,s={phase:`flash`,flashEndTime:o,fadeEndTime:a+n+r};i.set(e,s);let c=`ag-cell-${t}`,l=`${c}-animation`,{comp:u,eGui:{style:d}}=e;u.toggleCss(c,!0),u.toggleCss(l,!1),d.removeProperty(`transition`),d.removeProperty(`transition-delay`),this.nextAnimationTime&&o+15{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),n)}),this.nextAnimationTime=o)}advanceAnimations(){let e=Date.now(),t=null;for(let n of Object.keys(this.animations)){let r=this.animations[n],i=`ag-cell-${n}`,a=`${i}-animation`;for(let[n,o]of r){if(!n.isAlive()||!n.comp){r.delete(n);continue}let{phase:s,flashEndTime:c,fadeEndTime:l}=o,u=s===`flash`?c:l;if(!(e+15>=u)){t=Math.min(u,t??1/0);continue}let{comp:d,eGui:{style:f}}=n;switch(s){case`flash`:d.toggleCss(i,!1),d.toggleCss(a,!0),f.transition=`background-color ${l-c}ms`,f.transitionDelay=`${c-e}ms`,t=Math.min(l,t??1/0),o.phase=`fade`;break;case`fade`:d.toggleCss(i,!1),d.toggleCss(a,!1),f.removeProperty(`transition`),f.removeProperty(`transition-delay`),r.delete(n)}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;let n=_E(e.cellPosition);t.cells[n]&&this.animateCell(e,`highlight`)}flashCell(e,t){this.animateCell(e,`data-changed`,t?.flashDuration,t?.fadeDuration)}destroy(){for(let e of Object.keys(this.animations))this.animations[e].clear()}};function BL(e,t={}){let{cellFlashSvc:n}=e;n&&e.frameworkOverrides.wrapIncoming(()=>{for(let r of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))n.flashCell(r,t)})}var VL={moduleName:`HighlightChanges`,version:G,beans:[zL],userComponents:{agAnimateShowChangeCellRenderer:FL,agAnimateSlideCellRenderer:RL},apiFunctions:{flashCells:BL}};function HL(e){return e.stateSvc?.getState()??{}}function UL(e,t,n){return e.stateSvc?.setState(t,n)}function WL(e){return e={...e},e.version||(e.version=`32.1.0`),e.version===`32.1.0`&&(e=GL(e)),e.version=G,e}function GL(e){return e.cellSelection=KL(e,`rangeSelection`),e}function KL(e,t){if(e&&typeof e==`object`)return e[t]}var qL={moduleName:`GridState`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`stateSvc`,this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=Ym(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=Ym(this,()=>{this.beans.gos.get(`ssrmExpandAllAffectsAllRows`)?(this.updateCachedState(`ssrmRowGroupExpansion`,this.getRowGroupExpansionState()),this.updateCachedState(`rowGroupExpansion`,void 0)):(this.updateCachedState(`rowGroupExpansion`,this.getRowGroupExpansionState()),this.updateCachedState(`ssrmRowGroupExpansion`,void 0))},0),this.onRowSelectedDebounced=Ym(this,()=>{this.staleStateKeys.delete(`rowSelection`),this.updateCachedState(`rowSelection`,this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){let{gos:e,ctrlsSvc:t,colDelayRenderSvc:n}=this.beans;this.isClientSideRowModel=Jh(e);let r=WL(e.get(`initialState`)??{}),i=r.partialColumnState;delete r.partialColumnState,this.cachedState=r;let a=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>a(()=>this.setupStateOnGridReady(r))),(r.columnOrder||r.columnVisibility||r.columnSizing||r.columnPinning||r.columnGroup)&&n?.hideColumns(`columnState`);let[o,s,c]=this.addManagedEventListeners({newColumnsLoaded:({source:e})=>{e===`gridInitializing`&&(o(),a(()=>{this.setupStateOnColumnsInitialised(r,!!i),n?.revealColumns(`columnState`)}))},rowCountReady:()=>{s?.(),a(()=>this.setupStateOnRowCountReady(r))},firstDataRendered:()=>{c?.(),a(()=>this.setupStateOnFirstDataRendered(r))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){let n=WL(e);delete n.partialColumnState,this.cachedState=n,this.startSuppressEvents();let r=t?new Set(t):void 0;this.setGridReadyState(n,`api`,r),this.setColumnsInitialisedState(n,`api`,!!r,r),this.setRowCountState(n,`api`,r),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(n,`api`,r),this.stopSuppressEvents(`api`)})}setGridReadyState(e,t,n){t===`api`&&!n?.has(`sideBar`)&&this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState(`sideBar`,this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,`gridInitializing`);let t=()=>this.updateCachedState(`sideBar`,this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState([`aggregation`,`columnOrder`,`columnPinning`,`columnSizing`,`columnVisibility`,`pivot`,`rowGroup`,`sort`]),this.updateCachedState(`columnGroup`,this.getColumnGroupState())}setColumnsInitialisedState(e,t,n,r){this.setColumnState(e,t,n,r),this.setColumnGroupState(e,t,r),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,`gridInitializing`,t);let n=e=>()=>this.updateColumnState([e]);this.addManagedEventListeners({columnValueChanged:n(`aggregation`),columnMoved:n(`columnOrder`),columnPinned:n(`columnPinning`),columnResized:n(`columnSizing`),columnVisible:n(`columnVisibility`),columnPivotChanged:n(`pivot`),columnPivotModeChanged:n(`pivot`),columnRowGroupChanged:n(`rowGroup`),sortChanged:n(`sort`),newColumnsLoaded:this.updateColumnAndGroupState.bind(this),columnGroupOpened:()=>this.updateCachedState(`columnGroup`,this.getColumnGroupState())})}setRowCountState(e,t,n){let{filter:r,rowGroupExpansion:i,ssrmRowGroupExpansion:a,rowSelection:o,pagination:s}=e,c=(e,r)=>!n?.has(e)&&(r||t===`api`);c(`filter`,r)&&this.setFilterState(r),c(`rowGroupExpansion`,i)&&this.setRowGroupExpansionState(a,i,t),c(`rowSelection`,o)&&this.setRowSelectionState(o,t),c(`pagination`,s)&&this.setPaginationState(s,t);let l=this.updateCachedState.bind(this);l(`filter`,this.getFilterState()),this.beans.gos.get(`ssrmExpandAllAffectsAllRows`)?(l(`ssrmRowGroupExpansion`,this.getRowGroupExpansionState()),l(`rowGroupExpansion`,void 0)):(l(`rowGroupExpansion`,this.getRowGroupExpansionState()),l(`ssrmRowGroupExpansion`,void 0)),l(`rowSelection`,this.getRowSelectionState()),l(`pagination`,this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,`gridInitializing`);let t=this.updateCachedState.bind(this),n=()=>{this.updateRowGroupExpansionStateTimer=0,this.beans.gos.get(`ssrmExpandAllAffectsAllRows`)?(t(`ssrmRowGroupExpansion`,this.getRowGroupExpansionState()),t(`rowGroupExpansion`,void 0)):(t(`rowGroupExpansion`,this.getRowGroupExpansionState()),t(`ssrmRowGroupExpansion`,void 0))},r=()=>t(`filter`,this.getFilterState()),{gos:i,colFilter:a}=this.beans;this.addManagedEventListeners({filterChanged:r,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:n,columnRowGroupChanged:n,rowDataUpdated:()=>{(i.get(`groupDefaultExpanded`)!==0||i.get(`isGroupOpenByDefault`))&&(this.updateRowGroupExpansionStateTimer||=setTimeout(n))},selectionChanged:()=>{this.staleStateKeys.add(`rowSelection`),this.onRowSelectedDebounced()},paginationChanged:e=>{(e.newPage||e.newPageSize)&&t(`pagination`,this.getPaginationState())}}),a&&this.addManagedListeners(a,{filterStateChanged:r})}setFirstDataRenderedState(e,t,n){let{scroll:r,cellSelection:i,focusedCell:a,columnOrder:o,rowPinning:s}=e,c=(e,r)=>!n?.has(e)&&(r||t===`api`);c(`focusedCell`,a)&&this.setFocusedCellState(a),c(`cellSelection`,i)&&this.setCellSelectionState(i),c(`scroll`,r)&&this.setScrollState(r),c(`rowPinning`,s)&&this.setRowPinningState(s),this.setColumnPivotState(!!o?.orderedColIds,t);let l=this.updateCachedState.bind(this);l(`sideBar`,this.getSideBarState()),l(`focusedCell`,this.getFocusedCellState());let u=this.getRangeSelectionState();l(`rangeSelection`,u),l(`cellSelection`,u),l(`scroll`,this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,`gridInitializing`);let t=this.updateCachedState.bind(this),n=()=>t(`focusedCell`,this.getFocusedCellState());this.addManagedEventListeners({cellFocused:n,cellFocusCleared:n,cellSelectionChanged:e=>{if(e.finished){let e=this.getRangeSelectionState();t(`rangeSelection`,e),t(`cellSelection`,e)}},bodyScrollEnd:()=>t(`scroll`,this.getScrollState()),pinnedRowsChanged:()=>t(`rowPinning`,this.getRowPinningState())})}getColumnState(){let e=this.beans;return RM(z_(e),e.colModel.isPivotMode())}setColumnState(e,t,n,r){let{sort:i,rowGroup:a,aggregation:o,pivot:s,columnPinning:c,columnVisibility:l,columnSizing:u,columnOrder:d}=e,f=!1,p=(e,n)=>{let i=!r?.has(e)&&!!(n||t===`api`);return f||=i,i},m={},h=e=>{let t=m[e];return t||(t={colId:e},m[e]=t,t)},g={},_=p(`sort`,i);_&&i?.sortModel.forEach(({colId:e,sort:t},n)=>{let r=h(e);r.sort=t,r.sortIndex=n}),(_||!n)&&(g.sort=null,g.sortIndex=null);let v=p(`rowGroup`,a);v&&a?.groupColIds.forEach((e,t)=>{let n=h(e);n.rowGroup=!0,n.rowGroupIndex=t}),(v||!n)&&(g.rowGroup=null,g.rowGroupIndex=null);let y=p(`aggregation`,o);y&&o?.aggregationModel.forEach(({colId:e,aggFunc:t})=>{h(e).aggFunc=t}),(y||!n)&&(g.aggFunc=null);let b=p(`pivot`,s);b&&(s?.pivotColIds.forEach((e,t)=>{let n=h(e);n.pivot=!0,n.pivotIndex=t}),this.gos.updateGridOptions({options:{pivotMode:!!s?.pivotMode},source:t})),(b||!n)&&(g.pivot=null,g.pivotIndex=null);let x=p(`columnPinning`,c);if(x){for(let e of c?.leftColIds??[])h(e).pinned=`left`;for(let e of c?.rightColIds??[])h(e).pinned=`right`}(x||!n)&&(g.pinned=null);let ee=p(`columnVisibility`,l);if(ee)for(let e of l?.hiddenColIds??[])h(e).hide=!0;(ee||!n)&&(g.hide=null);let S=p(`columnSizing`,u);if(S)for(let{colId:e,flex:t,width:n}of u?.columnSizingModel??[]){let r=h(e);r.flex=t??null,r.width=n}(S||!n)&&(g.flex=null);let te=d?.orderedColIds,ne=!!te?.length&&!r?.has(`columnOrder`),C=ne?te.map(e=>h(e)):Object.values(m);(C.length||f)&&(this.columnStates=C,I_(this.beans,{state:C,applyOrder:ne,defaultState:g},t))}setColumnPivotState(e,t){let n=this.columnStates;this.columnStates=void 0;let r=this.columnGroupStates;this.columnGroupStates=void 0;let i=this.beans,{pivotResultCols:a,colGroupSvc:o}=i;if(a?.isPivotResultColsPresent()){if(n){let r=[];for(let e of n)a.getPivotResultCol(e.colId)&&r.push(e);I_(i,{state:r,applyOrder:e},t)}r&&o?.setColumnGroupState(r,t)}}getColumnGroupState(){let e=this.beans.colGroupSvc;if(e)return BM(e.getColumnGroupState())}setColumnGroupState(e,t,n){let r=this.beans.colGroupSvc;if(!r||n?.has(`columnGroup`)||t!==`api`&&!Object.prototype.hasOwnProperty.call(e,`columnGroup`))return;let i=new Set(e.columnGroup?.openColumnGroupIds),a=r.getColumnGroupState().map(({groupId:e})=>{let t=i.has(e);return t&&i.delete(e),{groupId:e,open:t}});for(let e of i)a.push({groupId:e,open:!0});a.length&&(this.columnGroupStates=a),r.setColumnGroupState(a,t)}getFilterState(){let e=this.beans.filterManager,t=e?.getFilterModel();t&&Object.keys(t).length===0&&(t=void 0);let n=e?.getFilterState(),r=e?.getAdvFilterModel()??void 0;return t||r||n?{filterModel:t,columnFilterState:n,advancedFilterModel:r}:void 0}setFilterState(e){let t=this.beans.filterManager,{filterModel:n,columnFilterState:r,advancedFilterModel:i}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};(n!==void 0||r!==void 0)&&t?.setFilterState(n??null,r??null,`columnFilter`),i!==void 0&&t?.setAdvFilterModel(i??null,`advancedFilter`)}getRangeSelectionState(){let e=this.beans.rangeSvc?.getCellRanges().map(e=>{let{id:t,type:n,startRow:r,endRow:i,columns:a,startColumn:o}=e;return{id:t,type:n,startRow:r,endRow:i,colIds:a.map(e=>e.getColId()),startColId:o.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){let{gos:t,rangeSvc:n,colModel:r,visibleCols:i}=this.beans;if(!xg(t)||!n)return;let a=[];for(let t of e?.cellRanges??[]){let e=[];for(let n of t.colIds){let t=r.getCol(n);t&&e.push(t)}if(!e.length)continue;let n=r.getCol(t.startColId);if(!n){let t=i.allCols,r=new Set(e);n=t.find(e=>r.has(e))}a.push({...t,columns:e,startColumn:n})}n.setCellRanges(a)}getScrollState(){if(!this.isClientSideRowModel)return;let e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:n}=e?.getVScrollPosition()??{top:0};return n||t?{top:n,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;let{top:t,left:n}=e??{top:0,left:0},{frameworkOverrides:r,rowRenderer:i,animationFrameSvc:a,ctrlsSvc:o}=this.beans;r.wrapIncoming(()=>{o.get(`center`).setCenterViewportScrollLeft(n),o.getScrollFeature()?.setVerticalScrollPosition(t),i.redraw({afterScroll:!0}),a?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;let e=this.beans.focusSvc.getFocusedCell();if(e){let{column:t,rowIndex:n,rowPinned:r}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:r}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;let{focusSvc:t,colModel:n}=this.beans;if(!e){t.clearFocusedCell();return}let{colId:r,rowIndex:i,rowPinned:a}=e;t.setFocusedCell({column:n.getCol(r),rowIndex:i,rowPinned:a,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){let{pagination:e,gos:t}=this.beans;if(!e)return;let n=e.getCurrentPage(),r=t.get(`paginationAutoPageSize`)?void 0:e.getPageSize();if(!(!n&&!r))return{page:n,pageSize:r}}setPaginationState(e,t){let{pagination:n,gos:r}=this.beans;if(!n)return;let{pageSize:i,page:a}=e??{page:0,pageSize:r.get(`paginationPageSize`)},o=t===`gridInitializing`;i&&!r.get(`paginationAutoPageSize`)&&n.setPageSize(i,o?`initialState`:`pageSizeSelector`),typeof a==`number`&&(o?n.setPage(a):n.goToPage(a))}getRowSelectionState(){let e=this.beans.selectionSvc;if(!e)return;let t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t===`api`)}getRowGroupExpansionState(){let{expansionSvc:e}=this.beans;if(e)return e.getExpansionState()}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){let t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,n){let r=this.beans.expansionSvc;if(!r)return;let i=t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};r.setExpansionState(i,n)}updateColumnState(e){let t=this.getColumnState(),n=!1,r=this.cachedState;for(let e of Object.keys(t)){let i=t[e];Gf(i,r[e])||(n=!0)}this.cachedState={...r,...t},n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){let n=this.cachedState[e];this.setCachedStateValue(e,t),Gf(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){let e=this.staleStateKeys;for(let t of e)t===`rowSelection`&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(let t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){let e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:`stateUpdated`,sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents(`gridInitializing`)}}],apiFunctions:{getState:HL,setState:UL}};function JL(e){return e.rowModel.isLastRowIndexKnown()}function YL(e){return e.pagination?.getPageSize()??100}function XL(e){return e.pagination?.getCurrentPage()??0}function ZL(e){return e.pagination?.getTotalPages()??1}function QL(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function $L(e){e.pagination?.goToNextPage()}function eR(e){e.pagination?.goToPreviousPage()}function tR(e){e.pagination?.goToFirstPage()}function nR(e){e.pagination?.goToLastPage()}function rR(e,t){e.pagination?.goToPage(t)}var iR=class extends W{constructor(){super(...arguments),this.beanName=`paginationAutoPageSizeSvc`}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;let t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener(`paginationAutoPageSize`,this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get(`paginationAutoPageSize`)||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;let e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){let t=this.beans,n=()=>{let n=Math.max(ng(t),1),r=Math.floor(e/n);t.pagination.setPageSize(r,`autoCalculated`)};this.isBodyRendered?Ym(this,n,50)():(n(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},aR=`paginationPageSizeSelector`,oR={tag:`span`,cls:`ag-paging-page-size`},sR={selector:`AG-PAGE-SIZE-SELECTOR`,component:class extends X{constructor(){super(oR),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;let e=this.selectPageSizeComp.getValue();if(!e)return;let t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,`pageSizeSelector`),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(aR,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;let t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(``):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Xp(this.getGui()),this.selectPageSizeComp&&=this.destroyBean(this.selectPageSizeComp)}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get(`pagination`)&&!this.gos.get(`suppressPaginationPanel`)&&!this.gos.get(`paginationAutoPageSize`)&&this.gos.get(aR)!==!1}reloadPageSizesSelector(){let e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),n=!t||!e.includes(t);if(n){let n=this.gos.exists(`paginationPageSize`),r=this.gos.get(aR)!==!0;K(94,{pageSizeSet:n,pageSizesSet:r,pageSizeOptions:e,paginationPageSizeOption:t}),r||K(95,{paginationPageSizeOption:t,paginationPageSizeSelector:aR}),e.unshift(``)}let r=String(n?``:t);this.selectPageSizeComp?(Zg(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(r,!0)):this.createPageSizeSelectorComp(e,r),this.hasEmptyOption=n}createPageSizeSelectOptions(e){return e.map(e=>({value:String(e)}))}createPageSizeSelectorComp(e,t){let n=this.getLocaleTextFunc(),r=n(`pageSizeSelectorLabel`,`Page Size:`),i=n(`ariaPageSizeSelectorLabel`,`Page Size`);this.selectPageSizeComp=this.createManagedBean(new rb).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(i).setLabel(r).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){let e=[20,50,100],t=this.gos.get(aR);return!Array.isArray(t)||!t?.length?e:[...t].sort((e,t)=>e-t)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}}},cR=`.ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:var(--ag-pagination-panel-height);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}`,lR={selector:`AG-PAGINATION`,component:class extends bT{constructor(){super(),this.btFirst=null,this.btPrevious=null,this.btNext=null,this.btLast=null,this.lbRecordCount=null,this.lbFirstRowOnPage=null,this.lbLastRowOnPage=null,this.lbCurrent=null,this.lbTotal=null,this.pageSizeComp=null,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(cR)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){let e=this.gos.get(`enableRtl`);this.setTemplate(this.getTemplate(),[sR]);let{btFirst:t,btPrevious:n,btNext:r,btLast:i}=this;this.activateTabIndex([t,n,r,i]),t.insertAdjacentElement(`afterbegin`,Fw(e?`last`:`first`,this.beans)),n.insertAdjacentElement(`afterbegin`,Fw(e?`next`:`previous`,this.beans)),r.insertAdjacentElement(`afterbegin`,Fw(e?`previous`:`next`,this.beans)),i.insertAdjacentElement(`afterbegin`,Fw(e?`first`:`last`,this.beans)),this.addManagedPropertyListener(`pagination`,this.onPaginationChanged.bind(this)),this.addManagedPropertyListener(`suppressPaginationPanel`,this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners([`paginationPageSizeSelector`,`paginationAutoPageSize`,`suppressPaginationPanel`],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:e=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(e):qC(this.beans,e),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){let e=this.gos.get(`pagination`)&&!this.gos.get(`suppressPaginationPanel`);this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(let e of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){let{el:t,fn:n}=e;this.addManagedListeners(t,{click:n,keydown:e=>{(e.key===Z.ENTER||e.key===Z.SPACE)&&(e.preventDefault(),n())}})}KC(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){let t=this.gos.getCallback(`paginationNumberFormatter`);return t?t({value:e}):UM(e,this.getLocaleTextFunc.bind(this))}getTemplate(){let e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:`div`,cls:`ag-paging-panel ag-unselectable`,attrs:{id:`${t}`},children:[{tag:`ag-page-size-selector`,ref:`pageSizeComp`},{tag:`span`,cls:`ag-paging-row-summary-panel`,children:[{tag:`span`,ref:`lbFirstRowOnPage`,cls:`ag-paging-row-summary-panel-number`,attrs:{id:`${t}-first-row`}},{tag:`span`,attrs:{id:`${t}-to`},children:e(`to`,`to`)},{tag:`span`,ref:`lbLastRowOnPage`,cls:`ag-paging-row-summary-panel-number`,attrs:{id:`${t}-last-row`}},{tag:`span`,attrs:{id:`${t}-of`},children:e(`of`,`of`)},{tag:`span`,ref:`lbRecordCount`,cls:`ag-paging-row-summary-panel-number`,attrs:{id:`${t}-row-count`}}]},{tag:`span`,cls:`ag-paging-page-summary-panel`,role:`presentation`,children:[{tag:`div`,ref:`btFirst`,cls:`ag-button ag-paging-button`,role:`button`,attrs:{"aria-label":e(`firstPage`,`First Page`)}},{tag:`div`,ref:`btPrevious`,cls:`ag-button ag-paging-button`,role:`button`,attrs:{"aria-label":e(`previousPage`,`Previous Page`)}},{tag:`span`,cls:`ag-paging-description`,children:[{tag:`span`,attrs:{id:`${t}-start-page`},children:e(`page`,`Page`)},{tag:`span`,ref:`lbCurrent`,cls:`ag-paging-number`,attrs:{id:`${t}-start-page-number`}},{tag:`span`,attrs:{id:`${t}-of-page`},children:e(`of`,`of`)},{tag:`span`,ref:`lbTotal`,cls:`ag-paging-number`,attrs:{id:`${t}-of-page-number`}}]},{tag:`div`,ref:`btNext`,cls:`ag-button ag-paging-button`,role:`button`,attrs:{"aria-label":e(`nextPage`,`Next Page`)}},{tag:`div`,ref:`btLast`,cls:`ag-button ag-paging-button`,role:`button`,attrs:{"aria-label":e(`lastPage`,`Last Page`)}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){let e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),n=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);let r=this.isZeroPagesToDisplay(),i=e===n-1;this.nextButtonDisabled=i||r,this.lastButtonDisabled=!t||r||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){_p(e,t),e.classList.toggle(`ag-disabled`,t)}isZeroPagesToDisplay(){let e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){let e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),n=this.pagination.getMasterRowCount(),r=e?n:null,i=this.pagination.getCurrentPage(),a=this.pagination.getPageSize(),o,s;this.isZeroPagesToDisplay()?o=s=0:(o=a*i+1,s=o+a-1,e&&s>r&&(s=r));let c=o+a-1,l=!e&&n0?i+1:0,m=this.formatNumber(p);this.lbCurrent.textContent=m;let h,g;if(e)h=this.formatNumber(t),g=this.formatNumber(r);else{let e=f(`more`,`more`);h=e,g=e}this.lbTotal.textContent=h,this.lbRecordCount.textContent=g,this.announceAriaStatus(u,d,g,m,h)}announceAriaStatus(e,t,n,r,i){let a=this.getLocaleTextFunc(),o=a(`page`,`Page`),s=a(`to`,`to`),c=a(`of`,`of`),l=`${e} ${s} ${t} ${c} ${n}`,u=`${o} ${r} ${c} ${i}`;l!==this.ariaRowStatus&&(this.ariaRowStatus=l,this.ariaAnnounce?.announceValue(l,`paginationRow`)),u!==this.ariaPageStatus&&(this.ariaPageStatus=u,this.ariaAnnounce?.announceValue(u,`paginationPage`))}}},uR={moduleName:`Pagination`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`pagination`,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){let e=this.gos;this.active=e.get(`pagination`),this.pageSizeFromGridOptions=e.get(`paginationPageSize`),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener(`pagination`,this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener(`paginationPageSize`,this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return lR}isPaginateChildRows(){let e=this.gos;return e.get(`groupHideParentOfSingleChild`)||e.get(`groupRemoveSingleChildren`)||e.get(`groupRemoveLowestSingleChildren`)?!0:e.get(`paginateChildRows`)}onPaginationGridOptionChanged(){this.active=this.gos.get(`pagination`),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get(`paginationPageSize`),`gridOptions`)}goToPage(e){let t=this.currentPage;if(!this.active||t===e||typeof t!=`number`)return;let{editSvc:n}=this.beans;n?.isEditing()&&(n.isBatchEditing()?n.cleanupEditors():n.stopEditing(void 0,{source:`api`})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return!this.active||e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){let e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return B(this.pageSizeAutoCalculated)&&this.gos.get(`paginationAutoPageSize`)?this.pageSizeAutoCalculated:B(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:B(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:B(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;let e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){let n=this.pageSize;switch(t){case`autoCalculated`:this.pageSizeAutoCalculated=e;break;case`pageSizeSelector`:this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case`initialState`:this.pageSizeFromInitialState=e;break;case`gridOptions`:this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage()}n!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){let e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);let t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){let e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}let n=this.pageSize,r=t-1;this.totalPages=Math.floor(r/n)+1,this.adjustCurrentPageIfInvalid();let i=this.currentPage,a=n*i,o=n*(i+1)-1;if(o>r&&(o=r),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(a),o===r)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{let t=e.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=t-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){let e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}let{pageSize:t,currentPage:n}=this,r=e-1;this.totalPages=Math.floor(r/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*n,this.bottomDisplayedRowIndex=t*(n+1)-1,this.bottomDisplayedRowIndex>r&&(this.bottomDisplayedRowIndex=r)}calculatedPagesNotActive(){this.setPageSize(void 0,`autoCalculated`),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){let{keepRenderedRows:t=!1,newPage:n=!1,newPageSize:r=!1}=e;this.eventSvc.dispatchEvent({type:`paginationChanged`,animate:!1,newData:!1,newPage:n,newPageSize:r,keepRenderedRows:t})}},iR],icons:{first:`first`,previous:`previous`,next:`next`,last:`last`},apiFunctions:{paginationIsLastPageFound:JL,paginationGetPageSize:YL,paginationGetCurrentPage:XL,paginationGetTotalPages:ZL,paginationGetRowCount:QL,paginationGoToNextPage:$L,paginationGoToPreviousPage:eR,paginationGoToFirstPage:tR,paginationGoToLastPage:nR,paginationGoToPage:rR},dependsOn:[mN]};function dR(e,t={}){let n=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(n))}function fR(e,t,n,r,i){t&&(r&&t.parent&&t.parent.level!==-1&&fR(e,t.parent,n,r,i),t.setExpanded(n,void 0,i))}function pR(e,t){return e.rowModel.getRowNode(t)}function mR(e,t,n,r){e.rowRenderer.addRenderedRowListener(t,n,r)}function hR(e){return e.rowRenderer.getRenderedNodes()}function gR(e,t,n){e.rowModel.forEachNode(t,n)}function _R(e){return e.rowRenderer.firstRenderedRow}function vR(e){return e.rowRenderer.lastRenderedRow}function yR(e,t){return e.rowModel.getRow(t)}function bR(e){return e.rowModel.getRowCount()}var xR={moduleName:`RowApi`,version:G,apiFunctions:{redrawRows:dR,setRowNodeExpanded:fR,getRowNode:pR,addRenderedRowListener:mR,getRenderedNodes:hR,forEachNode:gR,getFirstDisplayedRowIndex:_R,getLastDisplayedRowIndex:vR,getDisplayedRowAtIndex:yR,getDisplayedRowCount:bR}},SR={moduleName:`ScrollApi`,version:G,apiFunctions:{getVerticalPixelRange:vF,getHorizontalPixelRange:yF,ensureColumnVisible:bF,ensureIndexVisible:xF,ensureNodeVisible:SF}};function CR(e,t,n){if(!t)return;let r=e.ctrlsSvc.getGridBodyCtrl().eGridBody,i=`aria-${t}`;n===null?r.removeAttribute(i):r.setAttribute(i,n)}function wR(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function TR(e){e.frameworkOverrides.wrapIncoming(()=>{for(let t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function ER(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function DR(e){e.animationFrameSvc?.flushAllFrames()}function OR(e){return{rowHeight:ng(e),headerHeight:tw(e)}}function kR(e,t={}){let n=[];for(let r of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){let e=r.getCellRenderer();e!=null&&n.push(Hv(e))}if(t.columns?.length)return n;let r=[],i=Xj(t.rowNodes);for(let t of e.rowRenderer.getAllRowCtrls()){if(i&&!Zj(t.rowNode,i)||!t.isFullWidth())continue;let e=t.getFullWidthCellRenderers();for(let t=0;tthis.onFirstDataRendered(t)});let r=e.get(`rowData`);n=r!=null&&r.length>0&&Jh(e)}n&&this.beans.colDelayRenderSvc?.hideColumns(r)}}autoSizeCols(e){let{eventSvc:t,visibleCols:n}=this.beans;this.innerAutoSizeCols(e).then(r=>{let i=e=>F_(t,Array.from(e),!0,`autosizeColumns`);if(!e.scaleUpToFitGridWidth)return i(r);let a=IR(this.beans),o=e=>n.leftCols.some(t=>m_(t,e)),s=e=>n.rightCols.some(t=>m_(t,e)),c=e.colKeys.filter(e=>!s_(e)&&!c_(e)&&!o(e)&&!s(e));this.sizeColumnsToFit(a,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(e=>({...e,key:e.colId})),colKeys:c,onlyScaleUp:!0}),i(r)})}innerAutoSizeCols(e){return new Promise((t,n)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,n));let{colKeys:r,skipHeader:i,skipHeaderGroups:a,stopAtGroup:o,defaultMaxWidth:s,defaultMinWidth:c,columnLimits:l=[],source:u=`api`}=e,{animationFrameSvc:d,renderStatus:f,colModel:p,autoWidthCalc:m,visibleCols:h}=this.beans;if(d?.flushAllFrames(),this.timesDelayed<5&&f&&(!f.areHeaderCellsRendered()||!f.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,n)});return}this.timesDelayed=0;let g=new Set,_=-1,v=Object.fromEntries(l.map(({colId:e,...t})=>[e,t])),y=i??this.gos.get(`skipHeaderOnAutoSize`),b=a??y;for(;_!==0;){_=0;let e=[];for(let t of r){if(!t||l_(t))continue;let n=p.getCol(t);if(!n||g.has(n))continue;let r=m.getPreferredWidthForColumn(n,y);if(r>0){let e=v[n.colId]??{};e.minWidth??=c,e.maxWidth??=s;let t=FR(n,r,e);n.setActualWidth(t,u),g.add(n),_++}e.push(n)}e.length&&h.refresh(u)}b||this.autoSizeColumnGroupsByColumns(r,u,o),t(g)})}autoSizeColumn(e,t,n){this.autoSizeCols({colKeys:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){let{colModel:r,ctrlsSvc:i}=this.beans,a=new Set,o=r.getColsForKeys(e);for(let e of o){let t=e.getParent();for(;t&&t!=n;)t.isPadding()||a.add(t),t=t.getParent()}let s;for(let e of a){for(let t of i.getHeaderRowContainerCtrls())if(s=t.getHeaderCtrlForColumn(e),s)break;s?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){let n=this.gos.get(`skipHeaderOnAutoSize`),r=()=>{this.autoSizeColumn(t,`uiColumnResized`,n)};e.addEventListener(`dblclick`,r);let i=new TT(e);return i.addEventListener(`doubleTap`,r),()=>{e.removeEventListener(`dblclick`,r),i.destroy()}}addColumnGroupResize(e,t,n){let r=this.gos.get(`skipHeaderOnAutoSize`),i=()=>{let e=[],i=t.getDisplayedLeafColumns();for(let t of i)t.getColDef().suppressAutoSize||e.push(t.getColId());e.length>0&&this.autoSizeCols({colKeys:e,skipHeader:r,stopAtGroup:t,source:`uiColumnResized`}),n()};return e.addEventListener(`dblclick`,i),()=>e.removeEventListener(`dblclick`,i)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;let n=IR(this.beans);if(n>0){this.sizeColumnsToFit(n,`sizeColumnsToFit`,!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):K(29)}sizeColumnsToFit(e,t=`sizeColumnsToFit`,n,r){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,n,r));return}let i={};for(let{key:e,...t}of r?.columnLimits??[])i[typeof e==`string`?e:e.getColId()]=t;let a=this.beans.visibleCols.allCols;if(e<=0||!a.length)return;let o=i_(a);if(r?.onlyScaleUp&&o>e||e===o&&a.every(e=>{if(e.colDef.suppressSizeToFit)return!0;let t=i?.[e.getId()],n=t?.minWidth??r?.defaultMinWidth,a=t?.maxWidth??r?.defaultMaxWidth,o=e.getActualWidth();return(n==null||o>=n)&&(a==null||o<=a)}))return;let s=[],c=[];for(let e of a){let t=r?.colKeys?.some(t=>m_(e,t))??!0;e.getColDef().suppressSizeToFit||!t?c.push(e):s.push(e)}let l=s.slice(0),u=!1,d=e=>{$g(s,e),c.push(e)};for(let e of s){e.resetActualWidth(t);let n=i?.[e.getId()],a=n?.minWidth??r?.defaultMinWidth,o=n?.maxWidth??r?.defaultMaxWidth,s=e.getActualWidth();typeof a==`number`&&so&&e.setActualWidth(o,t,!0)}for(;!u;){u=!0;let n=e-i_(c);if(n<=0)for(let e of s){let n=i?.[e.getId()]?.minWidth??r?.defaultMinWidth??e.minWidth;e.setActualWidth(n,t,!0)}else{let e=n/i_(s),a=n;for(let n=s.length-1;n>=0;n--){let o=s[n],c=i?.[o.getId()],l=c?.minWidth??r?.defaultMinWidth,f=c?.maxWidth??r?.defaultMaxWidth,p=o.getMinWidth(),m=o.getMaxWidth(),h=typeof l==`number`&&l>p?l:p,g=typeof f==`number`&&fg?(_=g,d(o),u=!1):n===0&&(_=a),o.setActualWidth(_,t,!0),a-=_}}}for(let e of l)e.fireColumnWidthChangedEvent(t);let f=this.beans.visibleCols;f.setLeftValues(t),f.updateBodyWidths(),!n&&F_(this.eventSvc,l,!0,t)}applyAutosizeStrategy(){let{gos:e,colDelayRenderSvc:t}=this.beans,n=e.get(`autoSizeStrategy`);(n?.type===`fitGridWidth`||n?.type===`fitProvidedWidth`)&&setTimeout(()=>{if(!this.isAlive())return;let e=n.type;if(e===`fitGridWidth`){let{columnLimits:e,defaultMinWidth:t,defaultMaxWidth:r}=n,i=e?.map(({colId:e,minWidth:t,maxWidth:n})=>({key:e,minWidth:t,maxWidth:n}));this.sizeColumnsToFitGridBody({defaultMinWidth:t,defaultMaxWidth:r,columnLimits:i})}else e===`fitProvidedWidth`&&this.sizeColumnsToFit(n.width,`sizeColumnsToFit`);t?.revealColumns(e)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;let n=`autosizeColumns`;e?this.autoSizeCols({...t,source:n,colKeys:e}):this.autoSizeAllColumns({...t,source:n}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){this.shouldQueueResizeOperations=!1;for(let e of this.resizeOperationQueue)e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function FR(e,t,n={}){let r=n.minWidth??e.getMinWidth();ti&&(t=i),t}function IR({ctrlsSvc:e,scrollVisibleSvc:t}){let n=e.getGridBodyCtrl(),r=n.isVerticalScrollShowing()?t.getScrollbarWidth():0;return Wp(n.eGridBody)-r}var LR={moduleName:`ColumnAutoSize`,version:G,beans:[PR],apiFunctions:{sizeColumnsToFit:jR,autoSizeColumns:MR,autoSizeAllColumns:NR},dependsOn:[TD]},RR=`.ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}`;function zR(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function BR(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function VR(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function HR(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function UR(e,t,n){return e.pinnedRowModel?.forEachPinnedRow(t,n)}var WR={moduleName:`PinnedRow`,version:G,beans:[cT],css:[RR],apiFunctions:{getPinnedTopRowCount:zR,getPinnedBottomRowCount:BR,getPinnedTopRow:VR,getPinnedBottomRow:HR,forEachPinnedRow:UR},icons:{rowPin:`pin`,rowPinTop:`pinned-top`,rowPinBottom:`pinned-bottom`,rowUnpin:`un-pin`}},GR=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){let e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;for(let e of this.spannedNodes)e!==this.lastNode&&(t+=e.rowHeight);return e-t}},KR=class extends W{constructor(e){super(),this.column=e}buildCache(e){let{column:t,beans:{gos:n,pinnedRowModel:r,rowModel:i,valueSvc:a,pagination:o}}=this,{colDef:s}=t,c=this.getNodeMap(e),l=new Map,u=n.getCallback(`isFullWidthRow`),d=s.equals,f=s.spanRows,p=typeof f==`function`,m=null,h=null,g,_=(e,t)=>{m=e,h=null,g=t},v=e=>{let r=!e.isExpandable()&&!e.group&&!e.detail&&(!u||!u({rowNode:e}));if(e.rowIndex==null||!r){_(null,null);return}if(m==null||e.level!==m.level||e.footer||h&&e.rowIndex-1!==h?.getLastNode().rowIndex){_(e,a.getValue(t,e));return}let i=a.getValue(t,e);if(p){let r=J(n,{valueA:g,nodeA:m,valueB:i,nodeB:e,column:t,colDef:s});if(!f(r)){_(e,i);return}}else if(d?!d(g,i):g!==i){_(e,i);return}if(!h){let e=c?.get(m);e?.firstNode===m?(e.reset(),h=e):h=new GR(t,m),l.set(m,h)}h.addSpannedNode(e),l.set(e,h)};switch(e){case`center`:i.forEachDisplayedNode?.(e=>{(!o||o.isRowInPage(e.rowIndex))&&v(e)}),this.centerValueNodeMap=l;break;case`top`:r?.forEachPinnedRow(`top`,v),this.topValueNodeMap=l;break;case`bottom`:r?.forEachPinnedRow(`bottom`,v),this.bottomValueNodeMap=l}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case`top`:return this.topValueNodeMap;case`bottom`:return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},qR=class extends W{constructor(){super(...arguments),this.beanName=`rowSpanSvc`,this.spanningColumns=new Map,this.debouncePinnedEvent=Ym(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=Ym(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){let e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){let{gos:t}=this.beans;if(!t.get(`enableCellSpan`)||this.spanningColumns.has(e))return;let n=this.createManagedBean(new KR(e));this.spanningColumns.set(e,n),n.buildCache(`top`),n.buildCache(`bottom`),n.buildCache(`center`),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:`spannedCellsUpdated`,pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){let{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls(`top`),t?.createCtrls(`bottom`)},0);return}this.modelTimeout??=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls(`center`)},0)}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache(`center`)),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache(`top`),e.buildCache(`bottom`)}),this.debouncePinnedEvent()}isCellSpanning(e,t){let n=this.spanningColumns.get(e);return n?n.isCellSpanning(t):!1}getCellSpanByPosition(e){let{pinnedRowModel:t,rowModel:n}=this.beans,r=e.column,i=e.rowIndex,a=this.spanningColumns.get(r);if(!a)return;let o;switch(e.rowPinned){case`top`:o=t?.getPinnedTopRow(i);break;case`bottom`:o=t?.getPinnedBottomRow(i);break;default:o=n.getRow(i)}if(o)return a.getCellSpan(o)}getCellStart(e){let t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){let t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){let n=this.spanningColumns.get(e);if(n)return n.getCellSpan(t)}forEachSpannedColumn(e,t){for(let[n,r]of this.spanningColumns)r.isCellSpanning(e)&&t(n,r.getCellSpan(e))}destroy(){super.destroy(),this.spanningColumns.clear()}},JR=class extends bj{constructor(e,t,n){super(e.col,e.firstNode,n,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS=`ag-spanned-cell`}setComp(e,t,n,r,i,a,o){this.eWrapper=n,super.setComp(e,t,n,r,i,a,o),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){let{eGui:e,rowNode:t}=this;!e||t.rowIndex==null||wp(e,t.rowIndex)}setAriaRowSpan(){Tp(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){let e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){let{beans:t}=this;if(YC(t)){this.focusedCellPosition=void 0;return}let n=this.isCellFocused();n||(this.focusedCellPosition=void 0),e&&n&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},YR=class extends Tj{onRowIndexChanged(){super.onRowIndexChanged();for(let e of this.getAllCellCtrls())e.refreshAriaRowIndex()}getInitialRowClasses(e){return[`ag-spanned-row`]}getNewCellCtrl(e){let t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(t&&t.firstNode===this.rowNode)return new JR(t,this,this.beans)}isCorrectCtrlForSpan(e){let t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},XR={moduleName:`CellSpan`,version:G,beans:[qR,class extends W{constructor(){super(...arguments),this.beanName=`spannedRowRenderer`,this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls(`top`),this.createCtrls(`bottom`),this.createCtrls(`center`)}createCtrls(e){let{rowSpanSvc:t}=this.beans,n=this.getCtrlsMap(e),r=n.size,i=this.getAllRelevantRowControls(e),a=new Map,o=!1;for(let e of i)e.isAlive()&&t?.forEachSpannedColumn(e.rowNode,(e,t)=>{if(a.has(t.firstNode))return;let r=n.get(t.firstNode);if(r){a.set(t.firstNode,r),n.delete(t.firstNode);return}o=!0;let i=new YR(t.firstNode,this.beans,!1,!1,!1);a.set(t.firstNode,i)});this.setCtrlsMap(e,a);let s=a.size===r;if(!(!o&&s)){for(let e of n.values())e.destroyFirstPass(!0),e.destroySecondPass();this.dispatchLocalEvent({type:`spannedRowsUpdated`,ctrlsKey:e})}}getAllRelevantRowControls(e){let{rowRenderer:t}=this.beans;switch(e){case`top`:return t.topRowCtrls;case`bottom`:return t.bottomRowCtrls;case`center`:return t.allRowCtrls}}getCellByPosition(e){let{rowSpanSvc:t}=this.beans,n=t?.getCellSpanByPosition(e);if(!n)return;let r=this.getCtrlsMap(e.rowPinned).get(n.firstNode);if(r)return r.getAllCellCtrls().find(t=>t.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(let t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case`top`:return this.topCtrls;case`bottom`:return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case`top`:this.topCtrls=t;break;case`bottom`:this.bottomCtrls=t;break;default:this.centerCtrls=t}}destroy(){super.destroy(),this.destroyRowCtrls(`top`),this.destroyRowCtrls(`bottom`),this.destroyRowCtrls(`center`)}}]},ZR=class extends W{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){let{column:e,cellComp:t}=this,n=e.colDef,r=n.cellClassRules,i=this.getCellClassParams(e,n);xj(this.beans.expressionSvc,r===this.cellClassRules?void 0:this.cellClassRules,r,i,e=>t.toggleCss(e,!0),e=>t.toggleCss(e,!1)),this.cellClassRules=r}applyUserStyles(){let e=this.column,t=e.colDef,n=t.cellStyle;if(!n)return;let r;r=typeof n==`function`?n(this.getCellClassParams(e,t)):n,r&&this.cellComp.setUserStyles(r)}applyClassesFromColDef(){let{column:e,cellComp:t}=this,n=e.colDef,r=this.getCellClassParams(e,n);for(let e of this.staticClasses)t.toggleCss(e,!1);let i=this.beans.cellStyles.getStaticCellClasses(n,r);this.staticClasses=i;for(let e of i)t.toggleCss(e,!0)}getCellClassParams(e,t){let{value:n,rowNode:r}=this.cellCtrl;return J(this.beans.gos,{value:n,data:r.data,node:r,colDef:t,column:e,rowIndex:r.rowIndex})}},QR={moduleName:`CellStyle`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`cellStyles`}processAllCellClasses(e,t,n,r){xj(this.beans.expressionSvc,void 0,e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)}getStaticCellClasses(e,t){let{cellClass:n}=e;if(!n)return[];let r;return r=typeof n==`function`?n(t):n,typeof r==`string`&&(r=[r]),r||[]}createCellCustomStyleFeature(e,t){return new ZR(e,t)}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach(e=>{n(e)})}}]},$R={moduleName:`RowStyle`,version:G,beans:[Cj]};function ez(e,t){return!!e.colHover?.isHovered(t)}var tz=class extends W{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=e=>{let{beans:t,gos:n,element:r,columns:i}=this,a=t.colHover;if(e??!!n.get(`columnHoverHighlight`))this.destroyManagedListeners=this.addManagedElementListeners(r,{mouseover:a.setMouseOver.bind(a,i),mouseout:a.clearMouseOver.bind(a)});else{for(let e of this.destroyManagedListeners)e();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener(`columnHoverHighlight`,({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},nz=`ag-column-hover`,rz={moduleName:`ColumnHover`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`colHover`}postConstruct(){this.addManagedPropertyListener(`columnHoverHighlight`,({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get(`columnHoverHighlight`))return!1;let t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,n){let r=()=>{let e=this.isHovered(n);t.toggleCss(`ag-column-hover`,e)};e.addManagedEventListeners({columnHoverChanged:r}),r()}onCellColumnHover(e,t){if(!t)return;let n=this.isHovered(e);t.toggleCss(nz,n)}addHeaderFilterColumnHoverListener(e,t,n,r){this.createHoverFeature(e,[n],r);let i=()=>{let e=this.isHovered(n);t.toggleCss(`ag-column-hover`,e)};e.addManagedEventListeners({columnHoverChanged:i}),i()}createHoverFeature(e,t,n){e.createManagedBean(new tz(t,n))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:`columnHoverChanged`})}}],apiFunctions:{isColumnHovered:ez}},iz=class extends W{constructor(){super(...arguments),this.beanName=`apiEventSvc`,this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){let n=this.wrapSvc?.wrap(e,t)??t,r=!Mk.has(e),i=r?this.asyncListeners:this.syncListeners;i.has(e)||i.set(e,new Set),i.get(e).add(n),this.eventSvc.addListener(e,n,r)}removeListener(e,t){let n=this.wrapSvc?.unwrap(e,t)??t,r=!!this.asyncListeners.get(e)?.delete(n);r||this.syncListeners.get(e)?.delete(n),this.eventSvc.removeListener(e,n,r)}addGlobalListener(e){let t=this.wrapSvc?.wrapGlobal(e)??e,n=(e,n)=>{Mk.has(e)&&t(e,n)},r=(e,n)=>{Mk.has(e)||t(e,n)};this.globalListenerPairs.set(e,{syncListener:n,asyncListener:r});let i=this.eventSvc;i.addGlobalListener(n,!1),i.addGlobalListener(r,!0)}removeGlobalListener(e){let{eventSvc:t,wrapSvc:n,globalListenerPairs:r}=this,i=n?.unwrapGlobal(e)??e;if(r.has(i)){let{syncListener:n,asyncListener:a}=r.get(i);t.removeGlobalListener(n,!1),t.removeGlobalListener(a,!0),r.delete(e)}else this.syncGlobalListeners.delete(i),t.removeGlobalListener(i,!1)}destroyEventListeners(e,t){e.forEach((e,n)=>{e.forEach(e=>this.eventSvc.removeListener(n,e,t)),e.clear()}),e.clear()}destroyGlobalListeners(e,t){for(let n of e)this.eventSvc.removeGlobalListener(n,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);let{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:e,asyncListener:n})=>{t.removeGlobalListener(e,!1),t.removeGlobalListener(n,!0)}),e.clear()}};function az(e,t,n){e.apiEventSvc?.addListener(t,n)}function oz(e,t,n){e.apiEventSvc?.removeListener(t,n)}function sz(e,t){e.apiEventSvc?.addGlobalListener(t)}function cz(e,t){e.apiEventSvc?.removeGlobalListener(t)}var lz={moduleName:`AllCommunity`,version:G,dependsOn:[hL,CL,jL,sN,uI,dI,fI,pI,mI,hI,gI,lI,zP,BP,VP,RP,HP,UP,qL,WI,uR,FO,xR,SR,AR,LR,qE,WR,NI,sM,QR,rz,$R,{moduleName:`EventApi`,version:G,apiFunctions:{addEventListener:az,addGlobalListener:sz,removeEventListener:oz,removeGlobalListener:cz},beans:[iz]},uM,VL,KP,{moduleName:`Locale`,version:G,beans:[LM]},{moduleName:`RowAutoHeight`,version:G,beans:[class extends W{constructor(){super(...arguments),this.beanName=`rowAutoHeight`,this.wasEverActive=!1,this._debouncedCalculateRowHeights=Ym(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){let{visibleCols:e,rowModel:t,rowSpanSvc:n,pinnedRowModel:r}=this.beans,i=e.autoHeightCols,a=!1,o=e=>{let t=e.__autoHeights,r=eg(this.beans,e).height;for(let a of i){let i=t?.[a.getColId()],o=n?.getCellSpan(a,e);if(o){if(o.getLastNode()!==e)continue;if(i=n?.getCellSpan(a,e)?.getLastNodeAutoHeight(),!i)return}if(i==null){if(this.colSpanSkipCell(a,e))continue;return}r=Math.max(i,r)}r!==e.rowHeight&&(e.setRowHeight(r),a=!0)};r?.forEachPinnedRow?.(`top`,o),r?.forEachPinnedRow?.(`bottom`,o),t.forEachDisplayedNode?.(o),a&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,n){if(e.__autoHeights??={},t==null){delete e.__autoHeights[n.getId()];return}let r=e.__autoHeights[n.getId()];e.__autoHeights[n.getId()]=t,r!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){let{colModel:n,colViewport:r,visibleCols:i}=this.beans;if(!n.colSpanActive)return!1;let a=[];switch(e.getPinned()){case`left`:a=i.getLeftColsForRow(t);break;case`right`:a=i.getRightColsForRow(t);break;case null:a=r.getColsWithinViewport(t)}return!a.includes(e)}setupCellAutoHeight(e,t,n){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;let r=t.parentElement,{rowNode:i,column:a}=e,o=this.beans,s=c=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!n.isAlive())return;let{paddingTop:l,paddingBottom:u,borderBottomWidth:d,borderTopWidth:f}=Hp(r),p=l+u+d+f,m=t.offsetHeight+p;if(c<5&&(!Qf(o)?.contains(t)||m==0)){window.setTimeout(()=>s(c+1),0);return}this.setRowAutoHeight(i,m,a)},c=()=>s(0);c();let l=mm(o,t,c);return n.addDestroyFunc(()=>{l(),this.setRowAutoHeight(i,void 0,a)}),!0}setAutoHeightActive(e){this.active=e.list.some(e=>e.isVisible()&&e.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;let e=this.beans.rowRenderer.getAllRowCtrls(),t=null;for(let{rowNode:n}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(n).filter(e=>e.isAutoHeight())),t.length!==0){if(!n.__autoHeights)return!1;for(let e of t){let t=n.__autoHeights[e.getColId()];if(!t||n.rowHeightt in e?uz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fz=(e,t,n)=>dz(e,typeof t==`symbol`?t:t+``,n),pz=class e{static getComponentDefinition(e,t){let n;return n=typeof e==`string`?this.searchForComponentInstance(t,e):{extends:C({...e})},n||q(114,{component:e}),n.extends?(n.extends.setup&&(n.setup=n.extends.setup),n.extends.props=this.addParamsToProps(n.extends.props)):n.props=this.addParamsToProps(n.props),n}static addParamsToProps(e){return!e||Array.isArray(e)&&e.indexOf(`params`)===-1?e=[`params`,...e||[]]:typeof e==`object`&&!e.params&&(e.params={type:Object}),e}static createAndMountComponent(t,n,r,i){let a=e.getComponentDefinition(t,r);if(!a)return;let{vNode:o,destroy:s,el:c}=this.mount(a,{params:Object.freeze(n)},r,i||{});return{componentInstance:o.component.proxy,element:c,destroy:s}}static mount(e,t,n,r){let i=E(e,t);i.appContext={...n.appContext,provides:r};let a=document.createDocumentFragment();return me(i,a),{vNode:i,destroy:()=>{a&&me(null,a),a=null,i=null},el:a}}static searchForComponentInstance(e,t,n=10,r=!1){let i=null,a=0,o=e.parent;for(;!i&&o&&o.components&&++a{let n;return()=>{window.clearTimeout(n),n=window.setTimeout(function(){e()},t)}};function yz(e){return e&&e.constructor&&e.constructor.toString().substring(0,5)===`class`}function bz(e){let t=e=>yz(e)?ce(e):Array.isArray(e)?e.map(e=>t(e)):c(e)||o(e)||v(e)?t(ce(e)):e;return t(e)}var xz={ref:`root`},Sz=C({__name:`AgGridVue`,props:h(ue({gridOptions:{},modules:{},statusBar:{},sideBar:{type:[Object,String,Array,Boolean,null]},suppressContextMenu:{type:Boolean},preventDefaultOnContextMenu:{type:Boolean},allowContextMenuWithControlKey:{type:Boolean},columnMenu:{},suppressMenuHide:{type:Boolean},enableBrowserTooltips:{type:Boolean},tooltipTrigger:{},tooltipShowDelay:{},tooltipHideDelay:{},tooltipMouseTrack:{type:Boolean},tooltipShowMode:{},tooltipInteraction:{type:Boolean},popupParent:{},copyHeadersToClipboard:{type:Boolean},copyGroupHeadersToClipboard:{type:Boolean},clipboardDelimiter:{},suppressCopyRowsToClipboard:{type:Boolean},suppressCopySingleCellRanges:{type:Boolean},suppressLastEmptyLineOnPaste:{type:Boolean},suppressClipboardPaste:{type:Boolean},suppressClipboardApi:{type:Boolean},suppressCutToClipboard:{type:Boolean},columnDefs:{},defaultColDef:{},defaultColGroupDef:{},columnTypes:{},dataTypeDefinitions:{},maintainColumnOrder:{type:Boolean},enableStrictPivotColumnOrder:{type:Boolean},suppressFieldDotNotation:{type:Boolean},headerHeight:{},groupHeaderHeight:{},floatingFiltersHeight:{},pivotHeaderHeight:{},pivotGroupHeaderHeight:{},hidePaddedHeaderRows:{type:Boolean},allowDragFromColumnsToolPanel:{type:Boolean},suppressMovableColumns:{type:Boolean},suppressColumnMoveAnimation:{type:Boolean},suppressMoveWhenColumnDragging:{type:Boolean},suppressDragLeaveHidesColumns:{type:Boolean},suppressGroupChangesColumnVisibility:{type:[Boolean,String]},suppressMakeColumnVisibleAfterUnGroup:{type:Boolean},suppressRowGroupHidesColumns:{type:Boolean},colResizeDefault:{},suppressAutoSize:{type:Boolean},autoSizePadding:{},skipHeaderOnAutoSize:{type:Boolean},autoSizeStrategy:{},components:{},editType:{},suppressStartEditOnTab:{type:Boolean},getFullRowEditValidationErrors:{type:Function},invalidEditValueMode:{},singleClickEdit:{type:Boolean},suppressClickEdit:{type:Boolean},readOnlyEdit:{type:Boolean},stopEditingWhenCellsLoseFocus:{type:Boolean},enterNavigatesVertically:{type:Boolean},enterNavigatesVerticallyAfterEdit:{type:Boolean},enableCellEditingOnBackspace:{type:Boolean},undoRedoCellEditing:{type:Boolean},undoRedoCellEditingLimit:{},defaultCsvExportParams:{},suppressCsvExport:{type:Boolean},defaultExcelExportParams:{},suppressExcelExport:{type:Boolean},excelStyles:{},findSearchValue:{},findOptions:{},quickFilterText:{},cacheQuickFilter:{type:Boolean},includeHiddenColumnsInQuickFilter:{type:Boolean},quickFilterParser:{type:Function},quickFilterMatcher:{type:Function},applyQuickFilterBeforePivotOrAgg:{type:Boolean},excludeChildrenWhenTreeDataFiltering:{type:Boolean},enableAdvancedFilter:{type:Boolean},alwaysPassFilter:{type:Function},includeHiddenColumnsInAdvancedFilter:{type:Boolean},advancedFilterParent:{},advancedFilterBuilderParams:{},advancedFilterParams:{},suppressAdvancedFilterEval:{type:Boolean},suppressSetFilterByDefault:{type:Boolean},enableFilterHandlers:{type:Boolean},filterHandlers:{},enableCharts:{type:Boolean},chartThemes:{},customChartThemes:{},chartThemeOverrides:{},chartToolPanelsDef:{},chartMenuItems:{type:[Array,Function]},loadingCellRenderer:{},loadingCellRendererParams:{},loadingCellRendererSelector:{type:Function},localeText:{},masterDetail:{type:Boolean},keepDetailRows:{type:Boolean},keepDetailRowsCount:{},detailCellRenderer:{},detailCellRendererParams:{},detailRowHeight:{},detailRowAutoHeight:{type:Boolean},context:{},alignedGrids:{type:[Array,Function]},tabIndex:{},rowBuffer:{},valueCache:{type:Boolean},valueCacheNeverExpires:{type:Boolean},enableCellExpressions:{type:Boolean},suppressTouch:{type:Boolean},suppressFocusAfterRefresh:{type:Boolean},suppressBrowserResizeObserver:{type:Boolean},suppressPropertyNamesCheck:{type:Boolean},suppressChangeDetection:{type:Boolean},debug:{type:Boolean},loading:{type:Boolean},overlayLoadingTemplate:{},loadingOverlayComponent:{},loadingOverlayComponentParams:{},suppressLoadingOverlay:{type:Boolean},overlayNoRowsTemplate:{},noRowsOverlayComponent:{},noRowsOverlayComponentParams:{},suppressNoRowsOverlay:{type:Boolean},pagination:{type:Boolean},paginationPageSize:{},paginationPageSizeSelector:{type:[Array,Boolean]},paginationAutoPageSize:{type:Boolean},paginateChildRows:{type:Boolean},suppressPaginationPanel:{type:Boolean},pivotMode:{type:Boolean},pivotPanelShow:{},pivotMaxGeneratedColumns:{},pivotDefaultExpanded:{},pivotColumnGroupTotals:{},pivotRowTotals:{},pivotSuppressAutoColumn:{type:Boolean},suppressExpandablePivotGroups:{type:Boolean},functionsReadOnly:{type:Boolean},aggFuncs:{},suppressAggFuncInHeader:{type:Boolean},alwaysAggregateAtRootLevel:{type:Boolean},aggregateOnlyChangedColumns:{type:Boolean},suppressAggFilteredOnly:{type:Boolean},removePivotHeaderRowWhenSingleValueColumn:{type:Boolean},animateRows:{type:Boolean},cellFlashDuration:{},cellFadeDuration:{},allowShowChangeAfterFilter:{type:Boolean},domLayout:{},ensureDomOrder:{type:Boolean},enableCellSpan:{type:Boolean},enableRtl:{type:Boolean},suppressColumnVirtualisation:{type:Boolean},suppressMaxRenderedRowRestriction:{type:Boolean},suppressRowVirtualisation:{type:Boolean},rowDragManaged:{type:Boolean},rowDragInsertDelay:{},suppressRowDrag:{type:Boolean},suppressMoveWhenRowDragging:{type:Boolean},rowDragEntireRow:{type:Boolean},rowDragMultiRow:{type:Boolean},rowDragText:{type:Function},dragAndDropImageComponent:{},dragAndDropImageComponentParams:{},fullWidthCellRenderer:{},fullWidthCellRendererParams:{},embedFullWidthRows:{type:Boolean},groupDisplayType:{},groupDefaultExpanded:{},autoGroupColumnDef:{},groupMaintainOrder:{type:Boolean},groupSelectsChildren:{type:Boolean},groupLockGroupColumns:{},groupAggFiltering:{type:[Boolean,Function]},groupTotalRow:{type:[String,Function]},grandTotalRow:{},suppressStickyTotalRow:{type:[Boolean,String]},groupSuppressBlankHeader:{type:Boolean},groupSelectsFiltered:{type:Boolean},showOpenedGroup:{type:Boolean},groupHideParentOfSingleChild:{type:[Boolean,String]},groupRemoveSingleChildren:{type:Boolean},groupRemoveLowestSingleChildren:{type:Boolean},groupHideOpenParents:{type:Boolean},groupAllowUnbalanced:{type:Boolean},rowGroupPanelShow:{},groupRowRenderer:{},groupRowRendererParams:{},treeData:{type:Boolean},treeDataChildrenField:{},treeDataParentIdField:{},rowGroupPanelSuppressSort:{type:Boolean},suppressGroupRowsSticky:{type:Boolean},groupHierarchyConfig:{},pinnedTopRowData:{},pinnedBottomRowData:{},enableRowPinning:{type:[Boolean,String]},isRowPinnable:{type:Function},isRowPinned:{type:Function},rowModelType:{},rowData:{},asyncTransactionWaitMillis:{},suppressModelUpdateAfterUpdateTransaction:{type:Boolean},datasource:{},cacheOverflowSize:{},infiniteInitialRowCount:{},serverSideInitialRowCount:{},suppressServerSideFullWidthLoadingRow:{type:Boolean},cacheBlockSize:{},maxBlocksInCache:{},maxConcurrentDatasourceRequests:{},blockLoadDebounceMillis:{},purgeClosedRowNodes:{type:Boolean},serverSideDatasource:{},serverSideSortAllLevels:{type:Boolean},serverSideEnableClientSideSort:{type:Boolean},serverSideOnlyRefreshFilteredGroups:{type:Boolean},serverSidePivotResultFieldSeparator:{},viewportDatasource:{},viewportRowModelPageSize:{},viewportRowModelBufferSize:{},alwaysShowHorizontalScroll:{type:Boolean},alwaysShowVerticalScroll:{type:Boolean},debounceVerticalScrollbar:{type:Boolean},suppressHorizontalScroll:{type:Boolean},suppressScrollOnNewData:{type:Boolean},suppressScrollWhenPopupsAreOpen:{type:Boolean},suppressAnimationFrame:{type:Boolean},suppressMiddleClickScrolls:{type:Boolean},suppressPreventDefaultOnMouseWheel:{type:Boolean},scrollbarWidth:{},rowSelection:{},cellSelection:{type:[Boolean,Object]},rowMultiSelectWithClick:{type:Boolean},suppressRowDeselection:{type:Boolean},suppressRowClickSelection:{type:Boolean},suppressCellFocus:{type:Boolean},suppressHeaderFocus:{type:Boolean},selectionColumnDef:{},rowNumbers:{type:[Boolean,Object]},suppressMultiRangeSelection:{type:Boolean},enableCellTextSelection:{type:Boolean},enableRangeSelection:{type:Boolean},enableRangeHandle:{type:Boolean},enableFillHandle:{type:Boolean},fillHandleDirection:{},suppressClearOnFillReduction:{type:Boolean},sortingOrder:{},accentedSort:{type:Boolean},unSortIcon:{type:Boolean},suppressMultiSort:{type:Boolean},alwaysMultiSort:{type:Boolean},multiSortKey:{},suppressMaintainUnsortedOrder:{type:Boolean},icons:{},rowHeight:{},rowStyle:{},rowClass:{},rowClassRules:{},suppressRowHoverHighlight:{type:Boolean},suppressRowTransform:{type:Boolean},columnHoverHighlight:{type:Boolean},gridId:{},deltaSort:{type:Boolean},treeDataDisplayType:{},enableGroupEdit:{type:Boolean},initialState:{},theme:{},loadThemeGoogleFonts:{type:Boolean},themeCssLayer:{},styleNonce:{},themeStyleContainer:{},getContextMenuItems:{type:Function},getMainMenuItems:{type:Function},postProcessPopup:{type:Function},processUnpinnedColumns:{type:Function},processCellForClipboard:{type:Function},processHeaderForClipboard:{type:Function},processGroupHeaderForClipboard:{type:Function},processCellFromClipboard:{type:Function},sendToClipboard:{type:Function},processDataFromClipboard:{type:Function},isExternalFilterPresent:{type:Function},doesExternalFilterPass:{type:Function},getChartToolbarItems:{type:Function},createChartContainer:{type:Function},focusGridInnerElement:{type:Function},navigateToNextHeader:{type:Function},tabToNextHeader:{type:Function},navigateToNextCell:{type:Function},tabToNextCell:{type:Function},getLocaleText:{type:Function},getDocument:{type:Function},paginationNumberFormatter:{type:Function},getGroupRowAgg:{type:Function},isGroupOpenByDefault:{type:Function},ssrmExpandAllAffectsAllRows:{type:Boolean},initialGroupOrderComparator:{type:Function},processPivotResultColDef:{type:Function},processPivotResultColGroupDef:{type:Function},getDataPath:{type:Function},getChildCount:{type:Function},getServerSideGroupLevelParams:{type:Function},isServerSideGroupOpenByDefault:{type:Function},isApplyServerSideTransaction:{type:Function},isServerSideGroup:{type:Function},getServerSideGroupKey:{type:Function},getBusinessKeyForNode:{type:Function},getRowId:{type:Function},resetRowDataOnUpdate:{type:Boolean},processRowPostCreate:{type:Function},isRowSelectable:{type:Function},isRowMaster:{type:Function},fillOperation:{type:Function},postSortRows:{type:Function},getRowStyle:{type:Function},getRowClass:{type:Function},getRowHeight:{type:Function},isFullWidthRow:{type:Function},isRowValidDropPosition:{type:Function},"onTool-panel-visible-changed":{},"onTool-panel-size-changed":{},"onColumn-menu-visible-changed":{},"onContext-menu-visible-changed":{},"onCut-start":{},"onCut-end":{},"onPaste-start":{},"onPaste-end":{},"onColumn-visible":{},"onColumn-pinned":{},"onColumn-resized":{},"onColumn-moved":{},"onColumn-value-changed":{},"onColumn-pivot-mode-changed":{},"onColumn-pivot-changed":{},"onColumn-group-opened":{},"onNew-columns-loaded":{},"onGrid-columns-changed":{},"onDisplayed-columns-changed":{},"onVirtual-columns-changed":{},"onColumn-everything-changed":{},"onColumns-reset":{},"onColumn-header-mouse-over":{},"onColumn-header-mouse-leave":{},"onColumn-header-clicked":{},"onColumn-header-context-menu":{},"onComponent-state-changed":{},"onCell-value-changed":{},"onCell-edit-request":{},"onRow-value-changed":{},"onCell-editing-started":{},"onCell-editing-stopped":{},"onRow-editing-started":{},"onRow-editing-stopped":{},"onBulk-editing-started":{},"onBulk-editing-stopped":{},"onBatch-editing-started":{},"onBatch-editing-stopped":{},"onUndo-started":{},"onUndo-ended":{},"onRedo-started":{},"onRedo-ended":{},"onCell-selection-delete-start":{},"onCell-selection-delete-end":{},"onRange-delete-start":{},"onRange-delete-end":{},"onFill-start":{},"onFill-end":{},"onFilter-opened":{},"onFilter-changed":{},"onFilter-modified":{},"onFilter-ui-changed":{},"onFloating-filter-ui-changed":{},"onAdvanced-filter-builder-visible-changed":{},"onFind-changed":{},"onChart-created":{},"onChart-range-selection-changed":{},"onChart-options-changed":{},"onChart-destroyed":{},"onCell-key-down":{},"onGrid-ready":{},"onGrid-pre-destroyed":{},"onFirst-data-rendered":{},"onGrid-size-changed":{},"onModel-updated":{},"onVirtual-row-removed":{},"onViewport-changed":{},"onBody-scroll":{},"onBody-scroll-end":{},"onDrag-started":{},"onDrag-stopped":{},"onDrag-cancelled":{},"onState-updated":{},"onPagination-changed":{},"onRow-drag-enter":{},"onRow-drag-move":{},"onRow-drag-leave":{},"onRow-drag-end":{},"onRow-drag-cancel":{},"onRow-resize-started":{},"onRow-resize-ended":{},"onColumn-row-group-changed":{},"onRow-group-opened":{},"onExpand-or-collapse-all":{},"onPivot-max-columns-exceeded":{},"onPinned-row-data-changed":{},"onPinned-rows-changed":{},"onRow-data-updated":{},"onAsync-transactions-flushed":{},"onStore-refreshed":{},"onHeader-focused":{},"onCell-clicked":{},"onCell-double-clicked":{},"onCell-focused":{},"onCell-mouse-over":{},"onCell-mouse-out":{},"onCell-mouse-down":{},"onRow-clicked":{},"onRow-double-clicked":{},"onRow-selected":{},"onSelection-changed":{},"onCell-context-menu":{},"onRange-selection-changed":{},"onCell-selection-changed":{},"onTooltip-show":{},"onTooltip-hide":{},"onSort-changed":{}},_z()),{modelValue:{},modelModifiers:{}}),emits:h([`update:modelValue`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let a=e,o=m(`root`),s=x(void 0),c=x(!1),u=x(!1),d=x(!1),p=x({}),h=x(null),g=ie(a);nA().filter(e=>e!=`gridOptions`).forEach(e=>{fe(()=>g[e],(t,n)=>{(e===`rowData`&&!b.value||e!==`rowData`)&&E(e,t),b.value=!1},{deep:!0})});let _=new Set([`rowDataUpdated`,`cellValueChanged`,`rowValueChanged`]),v=l(e,`modelValue`),y=x(!1),b=x(!1),ee=n;fe(v,(e,t)=>{c.value&&(b.value||(y.value=!0,E(`rowData`,bz(e),bz(t))),b.value=!1)},{deep:!0});let S=vz(()=>{b.value=!0,ee(`update:modelValue`,w())},10),te=ne(),C=e=>{var t;d.value&&_.has(e)&&(t=te?.vnode?.props)!=null&&t[`onUpdate:modelValue`]&&S()},re=()=>v.value||a.rowData||a.gridOptions.rowData,w=()=>{let e=[];return s?.value.forEachLeafNode(t=>{e.push(t.data)}),e},T=e=>t=>{if(u.value)return;t===`gridReady`&&(d.value=!0);let n=Mk.has(t);n&&!e||!n&&e||_.has(t)&&(y.value||C(t),y.value=!1)},E=(e,t,n)=>{if(c.value){let n=t.value||t;e===`rowData`&&n!=null&&(n=bz(n)),p.value[e]=n,h.value??=window.setTimeout(()=>{h.value=null,zg(p.value,s.value),p.value={}},0)}},ae=()=>Object.create(ne().provides);return i(()=>{yh(xR,void 0,!0);let e=new mz(ne(),ae()),t={globalListener:T(),globalSyncListener:T(!0),frameworkOverrides:new gz(ne()),providedBeanInstances:{frameworkCompWrapper:e},modules:a.modules},n=oe(Rg(bz(a.gridOptions),a,[...nA(),...Object.values(Nk)])),r=re();r!==void 0&&(n.rowData=bz(r)),s.value=AM(o.value,n,t),c.value=!0}),r(()=>{var e;c.value&&((e=s?.value)==null||e.destroy(),u.value=!0)}),t({api:s}),(e,t)=>(f(),A(`div`,xz,null,512))}}),Cz=[`aria-busy`],wz=_e(C({__name:`AgGridAdapter`,props:{rows:{},columns:{},loading:{type:Boolean,default:!1},height:{default:`32rem`},rowSelection:{default:`single`}},emits:[`rowSelected`],setup(e,{emit:t}){Dh.registerModules([lz]);let n=e,r=t,i=ae(()=>n.columns.map(e=>({field:e.field,headerName:e.header,width:e.width,minWidth:e.minWidth??120,sortable:e.sortable??!0,filter:e.filterable??!0,valueFormatter:e.formatter?t=>e.formatter?.(t.value,t.data)??``:void 0}))),a=ae(()=>{if(n.rowSelection!==`none`)return n.rowSelection===`multiple`?{mode:`multiRow`}:{mode:`singleRow`}});function o(e){e.data&&r(`rowSelected`,e.data)}return(t,n)=>(f(),A(`div`,{class:`ks-grid`,style:de({height:e.height}),"aria-busy":e.loading},[E(se(Sz),{style:{height:`100%`,width:`100%`},theme:se(fk),"row-data":e.rows,"column-defs":i.value,"row-selection":a.value,loading:e.loading,"suppress-no-rows-overlay":e.rows.length>0,onRowClicked:o},null,8,[`theme`,`row-data`,`column-defs`,`row-selection`,`loading`,`suppress-no-rows-overlay`])],12,Cz))}}),[[`__scopeId`,`data-v-ef97e7af`]]),Tz=Object.freeze({descriptor:Object.freeze({id:`primevue-aggrid`,version:`4.x+34.x`,contractVersion:`4.0`,vendor:`PrimeVue + AG Grid Community`,capabilities:new Set([`button`,`text-field`,`text-area`,`select`,`multi-select`,`checkbox`,`date-field`,`number-field`,`dialog`,`status-tag`,`inline-message`,`paginator`,`tabs`,`data-grid`]),productionEligible:!0,accessibilityBaseline:`WCAG_2_2_AA_TARGET`}),components:Object.freeze({Button:Hi,TextField:Qi,TextArea:ca,Select:Wo,MultiSelect:oc,Checkbox:sc,DateField:_l,NumberField:nu,Dialog:Uu,StatusTag:ed,InlineMessage:xd,Paginator:If,Tabs:Vf,DataGrid:wz})}),Ez={id:`primevue-aggrid`,install(e){e.use(mr,{unstyled:!0}),ve(e,Tz)}};export{Ez as primeVueUiProvider};
\ No newline at end of file
diff --git a/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-2m7IiLrB.js.br b/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-2m7IiLrB.js.br
new file mode 100644
index 00000000..9a1d6fc9
Binary files /dev/null and b/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-2m7IiLrB.js.br differ
diff --git a/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-2m7IiLrB.js.gz b/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-2m7IiLrB.js.gz
new file mode 100644
index 00000000..f9301c59
Binary files /dev/null and b/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-2m7IiLrB.js.gz differ
diff --git a/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-B5OCEbJt.js b/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-B5OCEbJt.js
new file mode 100644
index 00000000..43685e42
--- /dev/null
+++ b/deployment/phase3-release/host/wwwroot/assets/installPrimeVueAdapter-B5OCEbJt.js
@@ -0,0 +1,3227 @@
+import{A as e,B as t,C as n,Ct as r,D as i,E as a,F as o,G as s,I as c,K as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,St as _,Tt as v,V as y,W as b,X as x,Y as ee,Z as S,c as C,f as te,g as w,h as T,i as ne,j as E,l as D,m as O,nt as re,o as ie,p as ae,q as oe,r as k,rt as se,s as A,tt as ce,u as j,w as le,wt as ue,x as de,z as fe}from"./runtime-core.esm-bundler-BhgiVlyD.js";import{c as M,l as pe,r as me,s as he,t as ge}from"./runtime-dom.esm-bundler-Bz-VmL4A.js";import{t as _e}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ve}from"./useUiAdapter-B-nZBjXp.js";var ye=Object.defineProperty,be=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ce=(e,t,n)=>t in e?ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t)=>{for(var n in t||={})xe.call(t,n)&&Ce(e,n,t[n]);if(be)for(var n of be(t))Se.call(t,n)&&Ce(e,n,t[n]);return e};function Te(e){return e==null||e===``||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e==`object`&&Object.keys(e).length===0}function Ee(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||typeof e!=`object`||typeof t!=`object`||n.has(e)||n.has(t))return!1;n.add(e).add(t);let r=Array.isArray(e),i=Array.isArray(t),a,o,s;if(r&&i){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(!Ee(e[a],t[a],n))return!1;return!0}if(r!=i)return!1;let c=e instanceof Date,l=t instanceof Date;if(c!=l)return!1;if(c&&l)return e.getTime()==t.getTime();let u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();let f=Object.keys(e);if(o=f.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[a]))return!1;for(a=o;a--!==0;)if(s=f[a],!Ee(e[s],t[s],n))return!1;return!0}function De(e,t){return Ee(e,t)}function Oe(e){return typeof e==`function`&&`call`in e&&`apply`in e}function N(e){return!Te(e)}function ke(e,t){if(!e||!t)return null;try{let n=e[t];if(N(n))return n}catch{}if(Object.keys(e).length){if(Oe(t))return t(e);if(t.indexOf(`.`)===-1)return e[t];{let n=t.split(`.`),r=e;for(let e=0,t=n.length;e{let i=r;Me(t[i])&&i in e&&Me(e[i])?n[i]=Ne(e[i],t[i]):n[i]=t[i]}),n}function Pe(...e){return e.reduce((e,t,n)=>n===0?t:Ne(e,t),{})}function Fe(e,t){let n=-1;if(N(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}function Ie(e,...t){return Oe(e)?e(...t):e}function Le(e,t=!0){return typeof e==`string`&&(t||e!==``)}function Re(e){return Le(e)?e.replace(/(-|_)/g,``).toLowerCase():e}function ze(e,t=``,n={}){let r=Re(t).split(`.`),i=r.shift();return i?Me(e)?ze(Ie(e[Object.keys(e).find(e=>Re(e)===i)||``],n),r.join(`.`),n):void 0:Ie(e,n)}function Be(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}function Ve(e){return e instanceof Date}function He(e){return N(e)&&!isNaN(e)}function Ue(e=``){return N(e)&&e.length===1&&!!e.match(/\S| /)}function We(){return new Intl.Collator(void 0,{numeric:!0}).compare}function Ge(e,t){if(t){let n=t.test(e);return t.lastIndex=0,n}return!1}function Ke(...e){return Pe(...e)}function qe(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,``).replace(/ {2,}/g,` `).replace(/ ([{:}]) /g,`$1`).replace(/([;,]) /g,`$1`).replace(/ !/g,`!`).replace(/: /g,`:`).trim()}function Je(e){if(e&&/[\xC0-\xFF\u0100-\u017E]/.test(e)){let t={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function Ye(e){return Le(e,!1)?e[0].toUpperCase()+e.slice(1):e}function Xe(e){return Le(e)?e.replace(/(_)/g,`-`).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase():e}function Ze(){let e=new Map;return{on(t,n){let r=e.get(t);return r?r.push(n):r=[n],e.set(t,r),this},off(t,n){let r=e.get(t);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(t,n){let r=e.get(t);r&&r.forEach(e=>{e(n)})},clear(){e.clear()}}}function P(...e){if(e){let t=[];for(let n=0;nt?e:void 0);t=e.length?t.concat(e.filter(e=>!!e)):t}}return t.join(` `).trim()}}function Qe(e,t){return e?e.classList?e.classList.contains(t):RegExp(`(^| )`+t+`( |$)`,`gi`).test(e.className):!1}function $e(e,t){if(e&&t){let n=t=>{Qe(e,t)||(e.classList?e.classList.add(t):e.className+=` `+t)};[t].flat().filter(Boolean).forEach(e=>e.split(` `).forEach(n))}}function et(){return window.innerWidth-document.documentElement.offsetWidth}function tt(e){typeof e==`string`?$e(document.body,e||`p-overflow-hidden`):(e!=null&&e.variableName&&document.body.style.setProperty(e.variableName,et()+`px`),$e(document.body,e?.className||`p-overflow-hidden`))}function nt(e,t){if(e&&t){let n=t=>{e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(^|\\b)`+t.split(` `).join(`|`)+`(\\b|$)`,`gi`),` `)};[t].flat().filter(Boolean).forEach(e=>e.split(` `).forEach(n))}}function rt(e){typeof e==`string`?nt(document.body,e||`p-overflow-hidden`):(e!=null&&e.variableName&&document.body.style.removeProperty(e.variableName),nt(document.body,e?.className||`p-overflow-hidden`))}function it(e){for(let t of document==null?void 0:document.styleSheets)try{for(let n of t?.cssRules)for(let t of n?.style)if(e.test(t))return{name:t,value:n.style.getPropertyValue(t).trim()}}catch{}return null}function at(e){let t={width:0,height:0};if(e){let[n,r]=[e.style.visibility,e.style.display],i=e.getBoundingClientRect();e.style.visibility=`hidden`,e.style.display=`block`,t.width=i.width||e.offsetWidth,t.height=i.height||e.offsetHeight,e.style.display=r,e.style.visibility=n}return t}function ot(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName(`body`)[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}function st(e){return e?Math.abs(e.scrollLeft):0}function ct(){let e=document.documentElement;return(window.pageXOffset||st(e))-(e.clientLeft||0)}function lt(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function ut(e){return e?getComputedStyle(e).direction===`rtl`:!1}function dt(e,t,n=!0){if(e){let r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:at(e),i=r.height,a=r.width,o=t.offsetHeight,s=t.offsetWidth,c=t.getBoundingClientRect(),l=lt(),u=ct(),d=ot(),f,p,m=`top`;c.top+o+i>d.height?(f=c.top+l-i,m=`bottom`,f<0&&(f=l)):f=o+c.top+l,p=c.left+a>d.width?Math.max(0,c.left+u+s-a):c.left+u,ut(e)?e.style.insetInlineEnd=p+`px`:e.style.insetInlineStart=p+`px`,e.style.top=f+`px`,e.style.transformOrigin=m,n&&(e.style.marginTop=m===`bottom`?`calc(${it(/-anchor-gutter$/)?.value??`2px`} * -1)`:it(/-anchor-gutter$/)?.value??``)}}function ft(e,t){e&&(typeof t==`string`?e.style.cssText=t:Object.entries(t||{}).forEach(([t,n])=>e.style[t]=n))}function pt(e,t){if(e instanceof HTMLElement){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}return 0}function mt(e,t,n=!0,r=void 0){if(e){let i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:at(e),a=t.offsetHeight,o=t.getBoundingClientRect(),s=ot(),c,l,u=r??`top`;if(!r&&o.top+a+i.height>s.height?(c=-1*i.height,u=`bottom`,o.top+c<0&&(c=-1*o.top)):c=a,l=i.width>s.width?o.left*-1:o.left+i.width>s.width?(o.left+i.width-s.width)*-1:0,e.style.top=c+`px`,e.style.insetInlineStart=l+`px`,e.style.transformOrigin=u,n){let t=it(/-anchor-gutter$/)?.value;e.style.marginTop=u===`bottom`?`calc(${t??`2px`} * -1)`:t??``}}}function ht(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function gt(e){return!!(e!=null&&e.nodeName&&ht(e))}function _t(e){return typeof Element<`u`?e instanceof Element:typeof e==`object`&&!!e&&e.nodeType===1&&typeof e.nodeName==`string`}function vt(){if(window.getSelection){let e=window.getSelection()||{};e.empty?e.empty():e.removeAllRanges&&e.rangeCount>0&&e.getRangeAt(0).getClientRects().length>0&&e.removeAllRanges()}}function yt(e,t={}){if(_t(e)){let n=(t,r)=>{var i;let a=(i=e?.$attrs)!=null&&i[t]?[e?.$attrs?.[t]]:[];return[r].flat().reduce((e,r)=>{if(r!=null){let i=typeof r;if(i===`string`||i===`number`)e.push(r);else if(i===`object`){let i=Array.isArray(r)?n(t,r):Object.entries(r).map(([e,n])=>t===`style`&&(n||n===0)?`${e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}:${n}`:n?e:void 0);e=i.length?e.concat(i.filter(e=>!!e)):e}}return e},a)};Object.entries(t).forEach(([t,r])=>{if(r!=null){let i=t.match(/^on(.+)/);i?e.addEventListener(i[1].toLowerCase(),r):t===`p-bind`||t===`pBind`?yt(e,r):(r=t===`class`?[...new Set(n(`class`,r))].join(` `).trim():t===`style`?n(`style`,r).join(`;`).trim():r,(e.$attrs=e.$attrs||{})&&(e.$attrs[t]=r),e.setAttribute(t,r))}})}}function bt(e,t={},...n){if(e){let r=document.createElement(e);return yt(r,t),r.append(...n),r}}function xt(e,t){return _t(e)?Array.from(e.querySelectorAll(t)):[]}function St(e,t){return _t(e)?e.matches(t)?e:e.querySelector(t):null}function Ct(e,t){e&&document.activeElement!==e&&e.focus(t)}function wt(e,t){if(_t(e)){let n=e.getAttribute(t);return isNaN(n)?n===`true`||n===`false`?n===`true`:n:+n}}function Tt(e,t=``){let n=xt(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ [href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${t},
+ input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),r=[];for(let e of n)getComputedStyle(e).display!=`none`&&getComputedStyle(e).visibility!=`hidden`&&r.push(e);return r}function Et(e,t){let n=Tt(e,t);return n.length>0?n[0]:null}function Dt(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0}function Ot(e){if(e){let t=ht(e)?.childNodes,n=0;if(t)for(let r=0;r0?n[n.length-1]:null}function At(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||st(document.documentElement)||st(document.body)||0)}}return{top:`auto`,left:`auto`}}function jt(e,t){if(e){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0}function Mt(e,t=[]){let n=ht(e);return n===null?t:Mt(n,t.concat([n]))}function Nt(e){let t=[];if(e){let n=Mt(e),r=/(auto|scroll)/,i=e=>{try{let t=window.getComputedStyle(e,null);return r.test(t.getPropertyValue(`overflow`))||r.test(t.getPropertyValue(`overflowX`))||r.test(t.getPropertyValue(`overflowY`))}catch{return!1}};for(let e of n){let n=e.nodeType===1&&e.dataset.scrollselectors;if(n){let r=n.split(`,`);for(let n of r){let r=St(e,n);r&&i(r)&&t.push(r)}}e.nodeType!==9&&i(e)&&t.push(e)}}return t}function Pt(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function Ft(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0}function It(){return/(android)/i.test(navigator.userAgent)}function Lt(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function Rt(e,t=``){return _t(e)?e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
+ [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`):!1}function zt(e){return!!(e&&e.offsetParent!=null)}function Bt(){return`ontouchstart`in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Vt(e,t=``,n){_t(e)&&n!=null&&e.setAttribute(t,n)}var Ht={};function Ut(e=`pui_id_`){return Object.hasOwn(Ht,e)||(Ht[e]=0),Ht[e]++,`${e}${Ht[e]}`}function Wt(){let e=[],t=(t,n,r=999)=>{let a=i(t,n,r),o=a.value+(a.key===t?0:r)+1;return e.push({key:t,value:o}),o},n=t=>{e=e.filter(e=>e.value!==t)},r=(e,t)=>i(e,t).value,i=(t,n,r=0)=>[...e].reverse().find(e=>n?!0:e.key===t)||{key:t,value:r},a=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:a,set:(e,n,r)=>{n&&(n.style.zIndex=String(t(e,!0,r)))},clear:e=>{e&&(n(a(e)),e.style.zIndex=``)},getCurrent:e=>r(e,!0)}}var Gt=Wt(),Kt=Object.defineProperty,qt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,Qt=(e,t,n)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t)=>{for(var n in t||={})Xt.call(t,n)&&Qt(e,n,t[n]);if(Yt)for(var n of Yt(t))Zt.call(t,n)&&Qt(e,n,t[n]);return e},en=(e,t)=>qt(e,Jt(t)),tn=(e,t)=>{var n={};for(var r in e)Xt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yt)for(var r of Yt(e))t.indexOf(r)<0&&Zt.call(e,r)&&(n[r]=e[r]);return n},nn=Ze(),rn=/{([^}]*)}/g,an=/(\d+\s+[\+\-\*\/]\s+\d+)/g,on=/var\([^)]+\)/g;function sn(e){return Le(e)?e.replace(/[A-Z]/g,(e,t)=>t===0?e:`.`+e.toLowerCase()).toLowerCase():e}function cn(e){return Me(e)&&e.hasOwnProperty(`$value`)&&e.hasOwnProperty(`$type`)?e.$value:e}function ln(e){return e.replaceAll(/ /g,``).replace(/[^\w]/g,`-`)}function un(e=``,t=``){return ln(`${Le(e,!1)&&Le(t,!1)?`${e}-`:e}${t}`)}function dn(e=``,t=``){return`--${un(e,t)}`}function fn(e=``){return((e.match(/{/g)||[]).length+(e.match(/}/g)||[]).length)%2!=0}function pn(e,t=``,n=``,r=[],i){if(Le(e)){let t=e.trim();if(fn(t))return;if(Ge(t,rn)){let e=t.replaceAll(rn,e=>`var(${dn(n,Xe(e.replace(/{|}/g,``).split(`.`).filter(e=>!r.some(t=>Ge(e,t))).join(`-`)))}${N(i)?`, ${i}`:``})`);return Ge(e.replace(on,`0`),an)?`calc(${e})`:e}return t}if(He(e))return e}function mn(e,t,n){Le(t,!1)&&e.push(`${t}:${n};`)}function hn(e,t){return e?`${e}{${t}}`:``}function gn(e,t){if(e.indexOf(`dt(`)===-1)return e;function n(e,t){let n=[],i=0,a=``,o=null,s=0;for(;i<=e.length;){let c=e[i];if((c===`"`||c===`'`||c==="`")&&e[i-1]!==`\\`&&(o=o===c?null:c),!o&&(c===`(`&&s++,c===`)`&&s--,(c===`,`||i===e.length)&&s===0)){let e=a.trim();e.startsWith(`dt(`)?n.push(gn(e,t)):n.push(r(e)),a=``,i++;continue}c!==void 0&&(a+=c),i++}return n}function r(e){let t=e[0];if((t===`"`||t===`'`||t==="`")&&e[e.length-1]===t)return e.slice(1,-1);let n=Number(e);return isNaN(n)?e:n}let i=[],a=[];for(let t=0;t0){let e=a.pop();a.length===0&&i.push([e,t])}if(!i.length)return e;for(let r=i.length-1;r>=0;r--){let[a,o]=i[r],s=t(...n(e.slice(a+3,o),t));e=e.slice(0,a)+s+e.slice(o+1)}return e}var _n=e=>{let t=F.getTheme(),n=yn(t,e,void 0,`variable`);return{name:n?.match(/--[\w-]+/g)?.[0],variable:n,value:yn(t,e,void 0,`value`)}},vn=(...e)=>yn(F.getTheme(),...e),yn=(e={},t,n,r)=>{if(t){let{variable:i,options:a}=F.defaults||{},{prefix:o,transform:s}=e?.options||a||{},c=Ge(t,rn)?t:`{${t}}`;return r===`value`||Te(r)&&s===`strict`?F.getTokenValue(t):pn(c,void 0,o,[i.excludedKeyRegex],n)}return``};function bn(e,...t){return e instanceof Array?gn(e.reduce((e,n,r)=>e+n+(Ie(t[r],{dt:vn})??``),``),vn):Ie(e,{dt:vn})}function xn(e,t={}){let n=F.defaults.variable,{prefix:r=n.prefix,selector:i=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=t,o=[],s=[],c=[{node:e,path:r}];for(;c.length;){let{node:e,path:t}=c.pop();for(let n in e){let i=e[n],l=cn(i),u=Ge(n,a)?un(t):un(t,Xe(n));if(Me(l))c.push({node:l,path:u});else{mn(s,dn(u),pn(l,u,r,[a]));let e=u;r&&e.startsWith(r+`-`)&&(e=e.slice(r.length+1)),o.push(e.replace(/-/g,`.`))}}}let l=s.join(``);return{value:s,tokens:o,declarations:l,css:hn(i,l)}}var Sn={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:`class`,selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:`attr`,selector:`:root${e},:host${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:`media`,selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:`system`,selector:`@media (prefers-color-scheme: dark)`,matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:`custom`,selector:e,matched:!0}}}},resolve(e){let t=Object.keys(this.rules).filter(e=>e!==`custom`).map(e=>this.rules[e]);return[e].flat().map(e=>t.map(t=>t.resolve(e)).find(e=>e.matched)??this.rules.custom.resolve(e))}},_toVariables(e,t){return xn(e,{prefix:t?.prefix})},getCommon({name:e=``,theme:t={},params:n,set:r,defaults:i}){let{preset:a,options:o}=t,s,c,l,u,d,f,p;if(N(a)&&o.transform!==`strict`){let{primitive:t,semantic:n,extend:m}=a,h=n||{},{colorScheme:g}=h,_=tn(h,[`colorScheme`]),v=m||{},{colorScheme:y}=v,b=tn(v,[`colorScheme`]),x=g||{},{dark:ee}=x,S=tn(x,[`dark`]),C=y||{},{dark:te}=C,w=tn(C,[`dark`]),T=N(t)?this._toVariables({primitive:t},o):{},ne=N(_)?this._toVariables({semantic:_},o):{},E=N(S)?this._toVariables({light:S},o):{},D=N(ee)?this._toVariables({dark:ee},o):{},O=N(b)?this._toVariables({semantic:b},o):{},re=N(w)?this._toVariables({light:w},o):{},ie=N(te)?this._toVariables({dark:te},o):{},[ae,oe]=[T.declarations??``,T.tokens],[k,se]=[ne.declarations??``,ne.tokens||[]],[A,ce]=[E.declarations??``,E.tokens||[]],[j,le]=[D.declarations??``,D.tokens||[]],[ue,de]=[O.declarations??``,O.tokens||[]],[fe,M]=[re.declarations??``,re.tokens||[]],[pe,me]=[ie.declarations??``,ie.tokens||[]];s=this.transformCSS(e,ae,`light`,`variable`,o,r,i),c=oe,l=`${this.transformCSS(e,`${k}${A}`,`light`,`variable`,o,r,i)}${this.transformCSS(e,`${j}`,`dark`,`variable`,o,r,i)}`,u=[...new Set([...se,...ce,...le])],d=`${this.transformCSS(e,`${ue}${fe}color-scheme:light`,`light`,`variable`,o,r,i)}${this.transformCSS(e,`${pe}color-scheme:dark`,`dark`,`variable`,o,r,i)}`,f=[...new Set([...de,...M,...me])],p=Ie(a.css,{dt:vn})}return{primitive:{css:s,tokens:c},semantic:{css:l,tokens:u},global:{css:d,tokens:f},style:p}},getPreset({name:e=``,preset:t={},options:n,params:r,set:i,defaults:a,selector:o}){let s,c,l;if(N(t)&&n.transform!==`strict`){let r=e.replace(`-directive`,``),u=t,{colorScheme:d,extend:f,css:p}=u,m=tn(u,[`colorScheme`,`extend`,`css`]),h=f||{},{colorScheme:g}=h,_=tn(h,[`colorScheme`]),v=d||{},{dark:y}=v,b=tn(v,[`dark`]),x=g||{},{dark:ee}=x,S=tn(x,[`dark`]),C=N(m)?this._toVariables({[r]:$t($t({},m),_)},n):{},te=N(b)?this._toVariables({[r]:$t($t({},b),S)},n):{},w=N(y)?this._toVariables({[r]:$t($t({},y),ee)},n):{},[T,ne]=[C.declarations??``,C.tokens||[]],[E,D]=[te.declarations??``,te.tokens||[]],[O,re]=[w.declarations??``,w.tokens||[]];s=`${this.transformCSS(r,`${T}${E}`,`light`,`variable`,n,i,a,o)}${this.transformCSS(r,O,`dark`,`variable`,n,i,a,o)}`,c=[...new Set([...ne,...D,...re])],l=Ie(p,{dt:vn})}return{css:s,tokens:c,style:l}},getPresetC({name:e=``,theme:t={},params:n,set:r,defaults:i}){let{preset:a,options:o}=t,s=a?.components?.[e];return this.getPreset({name:e,preset:s,options:o,params:n,set:r,defaults:i})},getPresetD({name:e=``,theme:t={},params:n,set:r,defaults:i}){let a=e.replace(`-directive`,``),{preset:o,options:s}=t,c=o?.components?.[a]||o?.directives?.[a];return this.getPreset({name:a,preset:c,options:s,params:n,set:r,defaults:i})},applyDarkColorScheme(e){return e.darkModeSelector!==`none`&&e.darkModeSelector!==!1},getColorSchemeOption(e,t){return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?t.options.darkModeSelector:e.darkModeSelector??t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){let{cssLayer:i}=t;return i?`@layer ${Ie(i.order||i.name||`primeui`,n)}`:``},getCommonStyleSheet({name:e=``,theme:t={},params:n,props:r={},set:i,defaults:a}){let o=this.getCommon({name:e,theme:t,params:n,set:i,defaults:a}),s=Object.entries(r).reduce((e,[t,n])=>e.push(`${t}="${n}"`)&&e,[]).join(` `);return Object.entries(o||{}).reduce((e,[t,n])=>{if(Me(n)&&Object.hasOwn(n,`css`)){let r=qe(n.css),i=`${t}-variables`;e.push(``)}return e},[]).join(``)},getStyleSheet({name:e=``,theme:t={},params:n,props:r={},set:i,defaults:a}){let o={name:e,theme:t,params:n,set:i,defaults:a},s=(e.includes(`-directive`)?this.getPresetD(o):this.getPresetC(o))?.css,c=Object.entries(r).reduce((e,[t,n])=>e.push(`${t}="${n}"`)&&e,[]).join(` `);return s?``:``},createTokens(e={},t,n=``,r=``,i={}){let a=function(e,t={},n=[]){if(n.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:e,path:this.path,paths:t,value:void 0};n.push(this.path),t.name=this.path,t.binding||={};let r=this.value;if(typeof this.value==`string`&&rn.test(this.value)){let i=this.value.trim().replace(rn,r=>{let i=r.slice(1,-1),a=this.tokens[i];if(!a)return console.warn(`Token not found for path: ${i}`),`__UNRESOLVED__`;let o=a.computed(e,t,n);return Array.isArray(o)&&o.length===2?`light-dark(${o[0].value},${o[1].value})`:o?.value??`__UNRESOLVED__`});r=an.test(i.replace(on,`0`))?`calc(${i})`:i}return Te(t.binding)&&delete t.binding,n.pop(),{colorScheme:e,path:this.path,paths:t,value:r.includes(`__UNRESOLVED__`)?void 0:r}},o=(e,n,r)=>{Object.entries(e).forEach(([e,s])=>{let c=Ge(e,t.variable.excludedKeyRegex)?n:n?`${n}.${sn(e)}`:sn(e),l=r?`${r}.${e}`:e;Me(s)?o(s,c,l):(i[c]||(i[c]={paths:[],computed:(e,t={},n=[])=>{if(i[c].paths.length===1)return i[c].paths[0].computed(i[c].paths[0].scheme,t.binding,n);if(e&&e!==`none`)for(let r=0;re.computed(e.scheme,t[e.scheme],n))}}),i[c].paths.push({path:l,value:s,scheme:l.includes(`colorScheme.light`)?`light`:l.includes(`colorScheme.dark`)?`dark`:`none`,computed:a,tokens:i}))})};return o(e,n,r),i},getTokenValue(e,t,n){let r=(e=>e.split(`.`).filter(e=>!Ge(e.toLowerCase(),n.variable.excludedKeyRegex)).join(`.`))(t),i=t.includes(`colorScheme.light`)?`light`:t.includes(`colorScheme.dark`)?`dark`:void 0,a=[e[r]?.computed(i)].flat().filter(e=>e);return a.length===1?a[0].value:a.reduce((e={},t)=>{let n=t,{colorScheme:r}=n;return e[r]=tn(n,[`colorScheme`]),e},void 0)},getSelectorRule(e,t,n,r){return n===`class`||n===`attr`?hn(N(t)?`${e}${t},${e} ${t}`:e,r):hn(e,hn(t??`:root,:host`,r))},transformCSS(e,t,n,r,i={},a,o,s){if(N(t)){let{cssLayer:c}=i;if(r!==`style`){let e=this.getColorSchemeOption(i,o);t=n===`dark`?e.reduce((e,{type:n,selector:r})=>(N(r)&&(e+=r.includes(`[CSS]`)?r.replace(`[CSS]`,t):this.getSelectorRule(r,s,n,t)),e),``):hn(s??`:root,:host`,t)}if(c){let n={name:`primeui`,order:`primeui`};Me(c)&&(n.name=Ie(c.name,{name:e,type:r})),N(n.name)&&(t=hn(`@layer ${n.name}`,t),a?.layerNames(n.name))}return t}return``}},F={defaults:{variable:{prefix:`p`,selector:`:root,:host`,excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:`p`,darkModeSelector:`system`,cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){let{theme:t}=e;t&&(this._theme=en($t({},t),{options:$t($t({},this.defaults.options),t.options)}),this._tokens=Sn.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){return this.theme?.preset||{}},get options(){return this.theme?.options||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),nn.emit(`theme:change`,e)},getPreset(){return this.preset},setPreset(e){this._theme=en($t({},this.theme),{preset:e}),this._tokens=Sn.createTokens(e,this.defaults),this.clearLoadedStyleNames(),nn.emit(`preset:change`,e),nn.emit(`theme:change`,this.theme)},getOptions(){return this.options},setOptions(e){this._theme=en($t({},this.theme),{options:e}),this.clearLoadedStyleNames(),nn.emit(`options:change`,e),nn.emit(`theme:change`,this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return Sn.getTokenValue(this.tokens,e,this.defaults)},getCommon(e=``,t){return Sn.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e=``,t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Sn.getPresetC(n)},getDirective(e=``,t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Sn.getPresetD(n)},getCustomPreset(e=``,t,n,r){let i={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Sn.getPreset(i)},getLayerOrderCSS(e=``){return Sn.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e=``,t,n=`style`,r){return Sn.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e=``,t,n={}){return Sn.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return Sn.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size&&(this._loadingStyles.delete(t),nn.emit(`theme:${t}:load`,e),!this._loadingStyles.size&&nn.emit(`theme:load`))}},Cn={STARTS_WITH:`startsWith`,CONTAINS:`contains`,NOT_CONTAINS:`notContains`,ENDS_WITH:`endsWith`,EQUALS:`equals`,NOT_EQUALS:`notEquals`,IN:`in`,LESS_THAN:`lt`,LESS_THAN_OR_EQUAL_TO:`lte`,GREATER_THAN:`gt`,GREATER_THAN_OR_EQUAL_TO:`gte`,BETWEEN:`between`,DATE_IS:`dateIs`,DATE_IS_NOT:`dateIsNot`,DATE_BEFORE:`dateBefore`,DATE_AFTER:`dateAfter`};function wn(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Tn(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Tn(e,t){if(e){if(typeof e==`string`)return En(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(e,t):void 0}}function En(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nt.getTime():e>t},gte:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t},dateIs:function(e,t){return t==null||e!=null&&(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.toDateString()===t.toDateString())},dateIsNot:function(e,t){return t==null||e!=null&&(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.toDateString()!==t.toDateString())},dateBefore:function(e,t){return t==null||e!=null&&(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.getTime()t.getTime())}},register:function(e,t){this.filters[e]=t}},On=`
+ *,
+ ::before,
+ ::after {
+ box-sizing: border-box;
+ }
+
+ .p-collapsible-enter-active {
+ animation: p-animate-collapsible-expand 0.2s ease-out;
+ overflow: hidden;
+ }
+
+ .p-collapsible-leave-active {
+ animation: p-animate-collapsible-collapse 0.2s ease-out;
+ overflow: hidden;
+ }
+
+ @keyframes p-animate-collapsible-expand {
+ from {
+ grid-template-rows: 0fr;
+ }
+ to {
+ grid-template-rows: 1fr;
+ }
+ }
+
+ @keyframes p-animate-collapsible-collapse {
+ from {
+ grid-template-rows: 1fr;
+ }
+ to {
+ grid-template-rows: 0fr;
+ }
+ }
+
+ .p-disabled,
+ .p-disabled * {
+ cursor: default;
+ pointer-events: none;
+ user-select: none;
+ }
+
+ .p-disabled,
+ .p-component:disabled {
+ opacity: dt('disabled.opacity');
+ }
+
+ .pi {
+ font-size: dt('icon.size');
+ }
+
+ .p-icon {
+ width: dt('icon.size');
+ height: dt('icon.size');
+ }
+
+ .p-overlay-mask {
+ background: var(--px-mask-background, dt('mask.background'));
+ color: dt('mask.color');
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ }
+
+ .p-overlay-mask-enter-active {
+ animation: p-animate-overlay-mask-enter dt('mask.transition.duration') forwards;
+ }
+
+ .p-overlay-mask-leave-active {
+ animation: p-animate-overlay-mask-leave dt('mask.transition.duration') forwards;
+ }
+
+ @keyframes p-animate-overlay-mask-enter {
+ from {
+ background: transparent;
+ }
+ to {
+ background: var(--px-mask-background, dt('mask.background'));
+ }
+ }
+ @keyframes p-animate-overlay-mask-leave {
+ from {
+ background: var(--px-mask-background, dt('mask.background'));
+ }
+ to {
+ background: transparent;
+ }
+ }
+
+ .p-anchored-overlay-enter-active {
+ animation: p-animate-anchored-overlay-enter 300ms cubic-bezier(.19,1,.22,1);
+ }
+
+ .p-anchored-overlay-leave-active {
+ animation: p-animate-anchored-overlay-leave 300ms cubic-bezier(.19,1,.22,1);
+ }
+
+ @keyframes p-animate-anchored-overlay-enter {
+ from {
+ opacity: 0;
+ transform: scale(0.93);
+ }
+ }
+
+ @keyframes p-animate-anchored-overlay-leave {
+ to {
+ opacity: 0;
+ transform: scale(0.93);
+ }
+ }
+`;function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},kn(e)}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:!0;w()&&w().components?a(e):t?e():le(e)}var In=0;function Ln(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=S(!1),r=S(e),i=S(null),a=Lt()?window.document:void 0,o=t.document,s=o===void 0?a:o,c=t.immediate,l=c===void 0||c,u=t.manual,d=u!==void 0&&u,f=t.name,p=f===void 0?`style_${++In}`:f,m=t.id,h=m===void 0?void 0:m,g=t.media,_=g===void 0?void 0:g,v=t.nonce,y=v===void 0?void 0:v,b=t.first,ee=b!==void 0&&b,C=t.onMounted,te=C===void 0?void 0:C,w=t.onUpdated,T=w===void 0?void 0:w,ne=t.onLoad,E=ne===void 0?void 0:ne,D=t.props,O=D===void 0?{}:D,re=function(){},ie=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s){var o=jn(jn({},O),a),c=o.name||p,l=o.id||h,u=o.nonce||y;i.value=s.querySelector(`style[data-primevue-style-id="${c}"]`)||s.getElementById(l)||s.createElement(`style`),i.value.isConnected||(r.value=t||e,yt(i.value,{type:`text/css`,id:l,media:_,nonce:u}),ee?s.head.prepend(i.value):s.head.appendChild(i.value),Vt(i.value,`data-primevue-style-id`,c),yt(i.value,o),i.value.onload=function(e){return E?.(e,{name:c})},te?.(c)),!n.value&&(re=fe(r,function(e){i.value.textContent=e,T?.(c)},{immediate:!0}),n.value=!0)}};return l&&!d&&Fn(ie),{id:h,name:p,el:i,css:r,unload:function(){!s||!n.value||(re(),gt(i.value)&&s.head.removeChild(i.value),n.value=!1,i.value=null)},load:ie,isLoaded:x(n)}}function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Rn(e)}var zn,Bn,Vn,Hn;function Un(e,t){return Jn(e)||qn(e,t)||Gn(e,t)||Wn()}function Wn(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gn(e,t){if(e){if(typeof e==`string`)return Kn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(e,t):void 0}}function Kn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(e){return e})(bn(zn||=er([``,``]),e));return N(n)?Ln(qe(n),Xn({name:this.name},t)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;return this.load(this.style,t,function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return F.transformCSS(t.name||e.name,`${r}${bn(Bn||=er([``,``]),n)}`)})},getCommonTheme:function(e){return F.getCommon(this.name,e)},getComponentTheme:function(e){return F.getComponent(this.name,e)},getDirectiveTheme:function(e){return F.getDirective(this.name,e)},getPresetTheme:function(e,t,n){return F.getCustomPreset(this.name,e,t,n)},getLayerOrderThemeCSS:function(){return F.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var n=Ie(this.css,{dt:vn})||``,r=qe(bn(Vn||=er([``,``,``]),n,e)),i=Object.entries(t).reduce(function(e,t){var n=Un(t,2),r=n[0],i=n[1];return e.push(`${r}="${i}"`)&&e},[]).join(` `);return N(r)?``:``}return``},getCommonThemeStyleSheet:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F.getCommonStyleSheet(this.name,e,t)},getThemeStyleSheet:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[F.getStyleSheet(this.name,e,t)];if(this.style){var r=this.name===`base`?`global-style`:`${this.name}-style`,i=bn(Hn||=er([``,``]),Ie(this.style,{dt:vn})),a=qe(F.transformCSS(r,i)),o=Object.entries(t).reduce(function(e,t){var n=Un(t,2),r=n[0],i=n[1];return e.push(`${r}="${i}"`)&&e},[]).join(` `);N(a)&&n.push(``)}return n.join(``)},extend:function(e){return Xn(Xn({},this),{},{css:void 0,style:void 0},e)}},tr=Ze();function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nr(e)}function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:`pc`}${c().replace(`v-`,``).replaceAll(`-`,`_`)}`}var _r=I.extend({name:`common`});function vr(e){"@babel/helpers - typeof";return vr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vr(e)}function yr(e){return Er(e)||br(e)||Cr(e)||Sr()}function br(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xr(e,t){return Er(e)||Tr(e,t)||Cr(e,t)||Sr()}function Sr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cr(e,t){if(e){if(typeof e==`string`)return wr(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(e,t):void 0}}function wr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&arguments[0]!==void 0?arguments[0]:function(){};hr.clearLoadedStyleNames(),nn.on(`theme:change`,e)},_removeThemeListeners:function(){nn.off(`theme:change`,this._loadCoreStyles),nn.off(`theme:change`,this._load),nn.off(`theme:change`,this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){return this[e]||this._getHostInstance(this)?.[e]},_getOptionValue:function(e){return ze(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{})},_getPTValue:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=/./g.test(t)&&!!n[t.split(`.`)[0]],a=this._getPropValue(`ptOptions`)||this.$primevueConfig?.ptOptions||{},o=a.mergeSections,s=o===void 0||o,c=a.mergeProps,l=c!==void 0&&c,u=r?i?this._useGlobalPT(this._getPTClassValue,t,n):this._useDefaultPT(this._getPTClassValue,t,n):void 0,d=i?void 0:this._getPTSelf(e,this._getPTClassValue,t,L(L({},n),{},{global:u||{}})),f=this._getPTDatasets(t);return s||!s&&d?l?this._mergeProps(l,u,d,f):L(L(L({},u),d),f):L(L({},d),f)},_getPTSelf:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[...arguments].slice(1);return n(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(t)),this._usePT.apply(this,[this.$_attrsPT].concat(t)))},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=`data-pc-`,n=e===`root`&&N(this.pt?.[`data-pc-section`]);return e!==`transition`&&L(L({},e===`root`&&L(L(Or({},`${t}name`,Re(n?this.pt?.[`data-pc-section`]:this.$.type.name)),n&&Or({},`${t}extend`,Re(this.$.type.name))),{},Or({},`${this.$attrSelector}`,``))),{},Or({},`${t}section`,Re(e)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Le(e)||Be(e)?{class:e}:e},_getPT:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,r=arguments.length>2?arguments[2]:void 0,i=function(e){var i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=r?r(e):e,o=Re(n),s=Re(t.$name);return(i&&o===s?void 0:a?.[o])??a};return e!=null&&e.hasOwnProperty(`_usept`)?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,t,n,r){var i=function(e){return t(e,n,r)};if(e!=null&&e.hasOwnProperty(`_usept`)){var a=e._usept||this.$primevueConfig?.ptOptions||{},o=a.mergeSections,s=o===void 0||o,c=a.mergeProps,l=c!==void 0&&c,u=i(e.originalValue),d=i(e.value);return u===void 0&&d===void 0?void 0:Le(d)?d:Le(u)?u:s||!s&&d?l?this._mergeProps(l,u,d):L(L({},u),d):d}return i(e)},_useGlobalPT:function(e,t,n){return this._usePT(this.globalPT,e,t,n)},_useDefaultPT:function(e,t,n){return this._usePT(this.defaultPT,e,t,n)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,L(L({},this.$params),t))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n(this.$_attrsWithoutPT,this.ptm(e,t));return r!=null&&r.hasOwnProperty(`id`)&&(r.id??=this.$id),r},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,t,L({instance:this},n),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,L(L({},this.$params),t))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t){var r=this._getOptionValue(this.$style.inlineStyles,e,L(L({},this.$params),n));return[this._getOptionValue(_r.inlineStyles,e,L(L({},this.$params),n)),r]}}},computed:{globalPT:function(){var e=this;return this._getPT(this.$primevueConfig?.pt,void 0,function(t){return Ie(t,{instance:e})})},defaultPT:function(){var e=this;return this._getPT(this.$primevueConfig?.pt,void 0,function(t){return e._getOptionValue(t,e.$name,L({},e.$params))||Ie(t,L({},e.$params))})},isUnstyled:function(){return this.unstyled===void 0?this.$primevueConfig?.unstyled:this.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e=Object.keys(this.$.vnode?.props||{});return Object.fromEntries(Object.entries(this.$props).filter(function(t){var n=xr(t,1)[0];return e?.includes(n)}))},$theme:function(){return this.$primevueConfig?.theme},$style:function(){return L(L({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)==null||(e=e.csp)==null?void 0:e.nonce}},$primevueConfig:function(){return this.$primevue?.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){return xr(e,1)[0]?.startsWith(`pt:`)}).reduce(function(e,t){var n=xr(t,2),r=n[0],i=n[1];return wr(yr(r.split(`:`))).slice(1)?.reduce(function(e,t,n,r){return!e[t]&&(e[t]=n===r.length-1?i:{}),e[t]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var t=xr(e,1)[0];return!(t!=null&&t.startsWith(`pt:`))}).reduce(function(e,t){var n=xr(t,2),r=n[0];return e[r]=n[1],e},{})}}},Mr=I.extend({name:`baseicon`,css:`
+.p-icon {
+ display: inline-block;
+ vertical-align: baseline;
+ flex-shrink: 0;
+}
+
+.p-icon-spin {
+ -webkit-animation: p-icon-spin 2s infinite linear;
+ animation: p-icon-spin 2s infinite linear;
+}
+
+@-webkit-keyframes p-icon-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ transform: rotate(359deg);
+ }
+}
+
+@keyframes p-icon-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ transform: rotate(359deg);
+ }
+}
+`});function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Nr(e)}function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:``,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=function(){var e=z._getOptionValue.apply(z,arguments);return Le(e)||Be(e)?{class:e}:e},s=((e=t.binding)==null||(e=e.value)==null?void 0:e.ptOptions)||t.$primevueConfig?.ptOptions||{},c=s.mergeSections,l=c===void 0||c,u=s.mergeProps,d=u!==void 0&&u,f=a?z._useDefaultPT(t,t.defaultPT(),o,r,i):void 0,p=z._usePT(t,z._getPT(n,t.$name),o,r,R(R({},i),{},{global:f||{}})),m=z._getPTDatasets(t,r);return l||!l&&p?d?z._mergeProps(t,d,f,p,m):R(R(R({},f),p),m):R(R({},p),m)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=`data-pc-`;return R(R({},t===`root`&&di({},`${n}name`,Re(e.$name))),{},di({},`${n}section`,Re(t)))},_getPT:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=arguments.length>2?arguments[2]:void 0,r=function(e){var r=n?n(e):e,i=Re(t);return r?.[i]??r};return e&&Object.hasOwn(e,`_usept`)?{_usept:e._usept,originalValue:r(e.originalValue),value:r(e.value)}:r(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=function(e){return n(e,r,i)};if(t&&Object.hasOwn(t,`_usept`)){var o=t._usept||e.$primevueConfig?.ptOptions||{},s=o.mergeSections,c=s===void 0||s,l=o.mergeProps,u=l!==void 0&&l,d=a(t.originalValue),f=a(t.value);return d===void 0&&f===void 0?void 0:Le(f)?f:Le(d)?d:c||!c&&f?u?z._mergeProps(e,u,d,f):R(R({},d),f):f}return a(t)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return z._usePT(e,t,n,r,i)},_loadStyles:function(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=z._getConfig(n,r),a={nonce:i==null||(e=i.csp)==null?void 0:e.nonce};z._loadCoreStyles(t,a),z._loadThemeStyles(t,a),z._loadScopedThemeStyles(t,a),z._removeThemeListeners(t),t.$loadStyles=function(){return z._loadThemeStyles(t,a)},z._themeChangeListener(t.$loadStyles)},_loadCoreStyles:function(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(!hr.isStyleNameLoaded(t.$style?.name)&&(e=t.$style)!=null&&e.name){var r;I.loadCSS(n),(r=t.$style)==null||r.loadCSS(n),hr.setLoadedStyleName(t.$style.name)}},_loadThemeStyles:function(){var e,t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!(n!=null&&n.isUnstyled()||(n==null||(e=n.theme)==null?void 0:e.call(n))===`none`)){if(!F.isStyleNameLoaded(`common`)){var i,a,o=((i=n.$style)==null||(a=i.getCommonTheme)==null?void 0:a.call(i))||{},s=o.primitive,c=o.semantic,l=o.global,u=o.style;I.load(s?.css,R({name:`primitive-variables`},r)),I.load(c?.css,R({name:`semantic-variables`},r)),I.load(l?.css,R({name:`global-variables`},r)),I.loadStyle(R({name:`global-style`},r),u),F.setLoadedStyleName(`common`)}if(!F.isStyleNameLoaded(n.$style?.name)&&(t=n.$style)!=null&&t.name){var d,f,p,m,h=((d=n.$style)==null||(f=d.getDirectiveTheme)==null?void 0:f.call(d))||{},g=h.css,_=h.style;(p=n.$style)==null||p.load(g,R({name:`${n.$style.name}-variables`},r)),(m=n.$style)==null||m.loadStyle(R({name:`${n.$style.name}-style`},r),_),F.setLoadedStyleName(n.$style.name)}if(!F.isStyleNameLoaded(`layer-order`)){var v,y,b=(v=n.$style)==null||(y=v.getLayerOrderThemeCSS)==null?void 0:y.call(v);I.load(b,R({name:`layer-order`,first:!0},r)),F.setLoadedStyleName(`layer-order`)}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.preset();if(n&&e.$attrSelector){var r,i,a=(((r=e.$style)==null||(i=r.getPresetTheme)==null?void 0:i.call(r,n,`[${e.$attrSelector}]`))||{}).css;e.scopedStyleEl=(e.$style?.load(a,R({name:`${e.$attrSelector}-${e.$style.name}`},t))).el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};hr.clearLoadedStyleNames(),nn.on(`theme:change`,e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nn.off(`theme:change`,e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,t,n,r,i,a){var o,s,c=`on${Ye(t)}`,l=z._getConfig(r,i),u=n?.$instance,d=z._usePT(u,z._getPT(r==null||(o=r.value)==null?void 0:o.pt,e),z._getOptionValue,`hooks.${c}`),f=z._useDefaultPT(u,l==null||(s=l.pt)==null||(s=s.directives)==null?void 0:s[e],z._getOptionValue,`hooks.${c}`),p={el:n,binding:r,vnode:i,prevVnode:a};d?.(u,p),f?.(u,p)},_mergeProps:function(){var e=arguments.length>1?arguments[1]:void 0,t=[...arguments].slice(2);return Oe(e)?e.apply(void 0,t):n.apply(void 0,t)},_extend:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(n,r,i,a,o){var s,c,l;r._$instances=r._$instances||{};var u=z._getConfig(i,a),d=r._$instances[e]||{},f=Te(d)?R(R({},t),t?.methods):{};r._$instances[e]=R(R({},d),{},{$name:e,$host:r,$binding:i,$modifiers:i?.modifiers,$value:i?.value,$el:d.$el||r||void 0,$style:R({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},t?.style),$primevueConfig:u,$attrSelector:(s=r.$pd)==null||(s=s[e])==null?void 0:s.attrSelector,defaultPT:function(){return z._getPT(u?.pt,void 0,function(t){var n;return t==null||(n=t.directives)==null?void 0:n[e]})},isUnstyled:function(){var t,n;return((t=r._$instances[e])==null||(t=t.$binding)==null||(t=t.value)==null?void 0:t.unstyled)===void 0?u?.unstyled:(n=r._$instances[e])==null||(n=n.$binding)==null||(n=n.value)==null?void 0:n.unstyled},theme:function(){var t;return(t=r._$instances[e])==null||(t=t.$primevueConfig)==null?void 0:t.theme},preset:function(){var t;return(t=r._$instances[e])==null||(t=t.$binding)==null||(t=t.value)==null?void 0:t.dt},ptm:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return z._getPTValue(r._$instances[e],(t=r._$instances[e])==null||(t=t.$binding)==null||(t=t.value)==null?void 0:t.pt,n,R({},i))},ptmo:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z._getPTValue(r._$instances[e],t,n,i,!1)},cx:function(){var t,n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(t=r._$instances[e])!=null&&t.isUnstyled()?void 0:z._getOptionValue((n=r._$instances[e])==null||(n=n.$style)==null?void 0:n.classes,i,R({},a))},sx:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i?z._getOptionValue((t=r._$instances[e])==null||(t=t.$style)==null?void 0:t.inlineStyles,n,R({},a)):void 0}},f),r.$instance=r._$instances[e],(c=(l=r.$instance)[n])==null||c.call(l,r,i,a,o),r[`\$${e}`]=r.$instance,z._hook(e,n,r,i,a,o),r.$pd||={},r.$pd[e]=R(R({},r.$pd?.[e]),{},{name:e,instance:r._$instances[e]})},r=function(t){var n,r,i,a=t._$instances[e],o=a?.watch,s=function(e){var t,n=e.newValue,r=e.oldValue;return o==null||(t=o.config)==null?void 0:t.call(a,n,r)},c=function(e){var t,n=e.newValue,r=e.oldValue;return o==null||(t=o[`config.ripple`])==null?void 0:t.call(a,n,r)};a.$watchersCallback={config:s,"config.ripple":c},o==null||(n=o.config)==null||n.call(a,a?.$primevueConfig),tr.on(`config:change`,s),o==null||(r=o[`config.ripple`])==null||r.call(a,a==null||(i=a.$primevueConfig)==null?void 0:i.ripple),tr.on(`config:ripple:change`,c)},i=function(t){var n=t._$instances[e].$watchersCallback;n&&(tr.off(`config:change`,n.config),tr.off(`config:ripple:change`,n[`config.ripple`]),t._$instances[e].$watchersCallback=void 0)};return{created:function(t,r,i,a){t.$pd||={},t.$pd[e]={name:e,attrSelector:Ut(`pd`)},n(`created`,t,r,i,a)},beforeMount:function(t,i,a,o){z._loadStyles(t.$pd[e]?.instance,i,a),n(`beforeMount`,t,i,a,o),r(t)},mounted:function(t,r,i,a){z._loadStyles(t.$pd[e]?.instance,r,i),n(`mounted`,t,r,i,a)},beforeUpdate:function(e,t,r,i){n(`beforeUpdate`,e,t,r,i)},updated:function(t,r,i,a){z._loadStyles(t.$pd[e]?.instance,r,i),n(`updated`,t,r,i,a)},beforeUnmount:function(t,r,a,o){i(t),z._removeThemeListeners(t.$pd[e]?.instance),n(`beforeUnmount`,t,r,a,o)},unmounted:function(t,r,i,a){var o;(o=t.$pd[e])==null||(o=o.instance)==null||(o=o.scopedStyleEl)==null||(o=o.value)==null||o.remove(),n(`unmounted`,t,r,i,a)}}},extend:function(){var e=ii(z._getMeta.apply(z,arguments),2),t=e[0],n=e[1];return R({extend:function(){var e=ii(z._getMeta.apply(z,arguments),2),t=e[0],r=e[1];return z.extend(t,R(R(R({},n),n?.methods),r))}},z._extend(t,n))}},mi=I.extend({name:`ripple-directive`,style:`
+ .p-ink {
+ display: block;
+ position: absolute;
+ background: dt('ripple.background');
+ border-radius: 100%;
+ transform: scale(0);
+ pointer-events: none;
+ }
+
+ .p-ink-active {
+ animation: ripple 0.4s linear;
+ }
+
+ @keyframes ripple {
+ 100% {
+ opacity: 0;
+ transform: scale(2.5);
+ }
+ }
+`,classes:{root:`p-ink`}}),hi=z.extend({style:mi});function gi(e){"@babel/helpers - typeof";return gi=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gi(e)}function _i(e){return xi(e)||bi(e)||yi(e)||vi()}function vi(){throw TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yi(e,t){if(e){if(typeof e==`string`)return Si(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Si(e,t):void 0}}function bi(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xi(e){if(Array.isArray(e))return Si(e)}function Si(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n(p(),C(se(Ri),{class:`ks-button`,label:e.label,severity:e.severity,type:e.type,disabled:e.disabled,loading:e.loading,onClick:r[0]||=e=>n.$emit(`activate`,e)},{default:t(()=>[E(n.$slots,`default`,{},void 0,!0)]),_:3},8,[`label`,`severity`,`type`,`disabled`,`loading`]))}}),[[`__scopeId`,`data-v-f862f529`]]),Ui={name:`BaseInput`,extends:{name:`BaseEditableHolder`,extends:jr,emits:[`update:modelValue`,`value-change`],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue===void 0?this.modelValue:this.defaultValue}},watch:{modelValue:{deep:!0,handler:function(e){this.d_value=e}},defaultValue:function(e){this.d_value=e},$formName:{immediate:!0,handler:function(e){var t,n;this.formField=((t=this.$pcForm)==null||(n=t.register)==null?void 0:n.call(t,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var t,n;this.formField=((t=this.$pcForm)==null||(n=t.register)==null?void 0:n.call(t,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}},$formValue:{immediate:!1,handler:function(e){var t;(t=this.$pcForm)!=null&&t.getFieldState(this.$formName)&&e!==this.d_value&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,t){var n,r;this.controlled&&(this.d_value=e,this.$emit(`update:modelValue`,e)),this.$emit(`value-change`,e),(n=(r=this.formField).onChange)==null||n.call(r,{originalEvent:t,value:e})},findNonEmpty:function(){return[...arguments].find(N)}},computed:{$filled:function(){return N(this.d_value)},$invalid:function(){var e,t;return!this.$formNovalidate&&this.findNonEmpty(this.invalid,(e=this.$pcFormField)==null||(e=e.$field)==null?void 0:e.invalid,(t=this.$pcForm)==null||(t=t.getFieldState(this.$formName))==null?void 0:t.invalid)},$formName:function(){return this.$formNovalidate?void 0:this.name||this.$formControl?.name},$formControl:function(){return this.formControl||this.$pcFormField?.formControl},$formNovalidate:function(){return this.$formControl?.novalidate},$formDefaultValue:function(){var e;return this.findNonEmpty(this.d_value,this.$pcFormField?.initialValue,(e=this.$pcForm)==null||(e=e.initialValues)==null?void 0:e[this.$formName])},$formValue:function(){var e,t;return this.findNonEmpty((e=this.$pcFormField)==null||(e=e.$field)==null?void 0:e.value,(t=this.$pcForm)==null||(t=t.getFieldState(this.$formName))==null?void 0:t.value)},controlled:function(){return this.$inProps.hasOwnProperty(`modelValue`)||!this.$inProps.hasOwnProperty(`modelValue`)&&!this.$inProps.hasOwnProperty(`defaultValue`)},filled:function(){return this.$filled}}},props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){return this.variant??(this.$primevue.config.inputStyle||this.$primevue.config.inputVariant)},$fluid:function(){return this.fluid??!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},Wi={name:`BaseInputText`,extends:Ui,style:I.extend({name:`inputtext`,style:`
+ .p-inputtext {
+ font-family: inherit;
+ font-feature-settings: inherit;
+ font-size: 1rem;
+ color: dt('inputtext.color');
+ background: dt('inputtext.background');
+ padding-block: dt('inputtext.padding.y');
+ padding-inline: dt('inputtext.padding.x');
+ border: 1px solid dt('inputtext.border.color');
+ transition:
+ background dt('inputtext.transition.duration'),
+ color dt('inputtext.transition.duration'),
+ border-color dt('inputtext.transition.duration'),
+ outline-color dt('inputtext.transition.duration'),
+ box-shadow dt('inputtext.transition.duration');
+ appearance: none;
+ border-radius: dt('inputtext.border.radius');
+ outline-color: transparent;
+ box-shadow: dt('inputtext.shadow');
+ }
+
+ .p-inputtext:enabled:hover {
+ border-color: dt('inputtext.hover.border.color');
+ }
+
+ .p-inputtext:enabled:focus {
+ border-color: dt('inputtext.focus.border.color');
+ box-shadow: dt('inputtext.focus.ring.shadow');
+ outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');
+ outline-offset: dt('inputtext.focus.ring.offset');
+ }
+
+ .p-inputtext.p-invalid {
+ border-color: dt('inputtext.invalid.border.color');
+ }
+
+ .p-inputtext.p-variant-filled {
+ background: dt('inputtext.filled.background');
+ }
+
+ .p-inputtext.p-variant-filled:enabled:hover {
+ background: dt('inputtext.filled.hover.background');
+ }
+
+ .p-inputtext.p-variant-filled:enabled:focus {
+ background: dt('inputtext.filled.focus.background');
+ }
+
+ .p-inputtext:disabled {
+ opacity: 1;
+ background: dt('inputtext.disabled.background');
+ color: dt('inputtext.disabled.color');
+ }
+
+ .p-inputtext::placeholder {
+ color: dt('inputtext.placeholder.color');
+ }
+
+ .p-inputtext.p-invalid::placeholder {
+ color: dt('inputtext.invalid.placeholder.color');
+ }
+
+ .p-inputtext-sm {
+ font-size: dt('inputtext.sm.font.size');
+ padding-block: dt('inputtext.sm.padding.y');
+ padding-inline: dt('inputtext.sm.padding.x');
+ }
+
+ .p-inputtext-lg {
+ font-size: dt('inputtext.lg.font.size');
+ padding-block: dt('inputtext.lg.padding.y');
+ padding-inline: dt('inputtext.lg.padding.x');
+ }
+
+ .p-inputtext-fluid {
+ width: 100%;
+ }
+`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-inputtext p-component`,{"p-filled":t.$filled,"p-inputtext-sm p-inputfield-sm":n.size===`small`,"p-inputtext-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-inputtext-fluid":t.$fluid}]}}}),provide:function(){return{$pcInputText:this,$parentInstance:this}}};function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Gi(e)}function Ki(e,t,n){return(t=qi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(e){var t=Ji(e,`string`);return Gi(t)==`symbol`?t:t+``}function Ji(e,t){if(Gi(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gi(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Yi={name:`InputText`,extends:Wi,inheritAttrs:!1,methods:{onInput:function(e){this.writeValue(e.target.value,e)}},computed:{attrs:function(){return n(this.ptmi(`root`,{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)},dataP:function(){return P(Ki({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))}}},Xi=[`value`,`name`,`disabled`,`aria-invalid`,`data-p`];function Zi(e,t,r,i,a,o){return p(),j(`input`,n({type:`text`,class:e.cx(`root`),value:e.d_value,name:e.name,disabled:e.disabled,"aria-invalid":e.$invalid||void 0,"data-p":o.dataP,onInput:t[0]||=function(){return o.onInput&&o.onInput.apply(o,arguments)}},o.attrs),null,16,Xi)}Yi.render=Zi;var Qi=_e(T({__name:`PrimeTextFieldAdapter`,props:{modelValue:{},inputId:{},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{}},emits:[`update:modelValue`,`blur`],setup(e){return(t,n)=>(p(),C(se(Yi),{class:`ks-input`,id:e.inputId,"model-value":e.modelValue,disabled:e.disabled,invalid:e.invalid,placeholder:e.placeholder,"onUpdate:modelValue":n[0]||=e=>t.$emit(`update:modelValue`,String(e??``)),onBlur:n[1]||=e=>t.$emit(`blur`,e)},null,8,[`id`,`model-value`,`disabled`,`invalid`,`placeholder`]))}}),[[`__scopeId`,`data-v-4308f69b`]]),$i=I.extend({name:`textarea`,style:`
+ .p-textarea {
+ font-family: inherit;
+ font-feature-settings: inherit;
+ font-size: 1rem;
+ color: dt('textarea.color');
+ background: dt('textarea.background');
+ padding-block: dt('textarea.padding.y');
+ padding-inline: dt('textarea.padding.x');
+ border: 1px solid dt('textarea.border.color');
+ transition:
+ background dt('textarea.transition.duration'),
+ color dt('textarea.transition.duration'),
+ border-color dt('textarea.transition.duration'),
+ outline-color dt('textarea.transition.duration'),
+ box-shadow dt('textarea.transition.duration');
+ appearance: none;
+ border-radius: dt('textarea.border.radius');
+ outline-color: transparent;
+ box-shadow: dt('textarea.shadow');
+ }
+
+ .p-textarea:enabled:hover {
+ border-color: dt('textarea.hover.border.color');
+ }
+
+ .p-textarea:enabled:focus {
+ border-color: dt('textarea.focus.border.color');
+ box-shadow: dt('textarea.focus.ring.shadow');
+ outline: dt('textarea.focus.ring.width') dt('textarea.focus.ring.style') dt('textarea.focus.ring.color');
+ outline-offset: dt('textarea.focus.ring.offset');
+ }
+
+ .p-textarea.p-invalid {
+ border-color: dt('textarea.invalid.border.color');
+ }
+
+ .p-textarea.p-variant-filled {
+ background: dt('textarea.filled.background');
+ }
+
+ .p-textarea.p-variant-filled:enabled:hover {
+ background: dt('textarea.filled.hover.background');
+ }
+
+ .p-textarea.p-variant-filled:enabled:focus {
+ background: dt('textarea.filled.focus.background');
+ }
+
+ .p-textarea:disabled {
+ opacity: 1;
+ background: dt('textarea.disabled.background');
+ color: dt('textarea.disabled.color');
+ }
+
+ .p-textarea::placeholder {
+ color: dt('textarea.placeholder.color');
+ }
+
+ .p-textarea.p-invalid::placeholder {
+ color: dt('textarea.invalid.placeholder.color');
+ }
+
+ .p-textarea-fluid {
+ width: 100%;
+ }
+
+ .p-textarea-resizable {
+ overflow: hidden;
+ resize: none;
+ }
+
+ .p-textarea-sm {
+ font-size: dt('textarea.sm.font.size');
+ padding-block: dt('textarea.sm.padding.y');
+ padding-inline: dt('textarea.sm.padding.x');
+ }
+
+ .p-textarea-lg {
+ font-size: dt('textarea.lg.font.size');
+ padding-block: dt('textarea.lg.padding.y');
+ padding-inline: dt('textarea.lg.padding.x');
+ }
+`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-textarea p-component`,{"p-filled":t.$filled,"p-textarea-resizable ":n.autoResize,"p-textarea-sm p-inputfield-sm":n.size===`small`,"p-textarea-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-textarea-fluid":t.$fluid}]}}}),ea={name:`BaseTextarea`,extends:Ui,props:{autoResize:Boolean},style:$i,provide:function(){return{$pcTextarea:this,$parentInstance:this}}};function ta(e){"@babel/helpers - typeof";return ta=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ta(e)}function na(e,t,n){return(t=ra(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ra(e){var t=ia(e,`string`);return ta(t)==`symbol`?t:t+``}function ia(e,t){if(ta(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ta(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var aa={name:`Textarea`,extends:ea,inheritAttrs:!1,observer:null,mounted:function(){var e=this;this.autoResize&&(this.observer=new ResizeObserver(function(){requestAnimationFrame(function(){e.resize()})}),this.observer.observe(this.$el))},updated:function(){this.autoResize&&this.resize()},beforeUnmount:function(){this.observer&&this.observer.disconnect()},methods:{resize:function(){if(this.$el.offsetParent){var e=this.$el.style.height,t=parseInt(e)||0,n=this.$el.scrollHeight;t&&nt)&&(this.$el.style.height=`${n}px`)}},onInput:function(e){this.autoResize&&this.resize(),this.writeValue(e.target.value,e)}},computed:{attrs:function(){return n(this.ptmi(`root`,{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)},dataP:function(){return P(na({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))}}},oa=[`value`,`name`,`disabled`,`aria-invalid`,`data-p`];function sa(e,t,r,i,a,o){return p(),j(`textarea`,n({class:e.cx(`root`),value:e.d_value,name:e.name,disabled:e.disabled,"aria-invalid":e.invalid||void 0,"data-p":o.dataP,onInput:t[0]||=function(){return o.onInput&&o.onInput.apply(o,arguments)}},o.attrs),null,16,oa)}aa.render=sa;var ca=_e(T({__name:`PrimeTextAreaAdapter`,props:{modelValue:{},inputId:{},disabled:{type:Boolean},invalid:{type:Boolean},rows:{},placeholder:{}},emits:[`update:modelValue`,`blur`],setup(e){return(t,n)=>(p(),C(se(aa),{class:`ks-textarea`,id:e.inputId,"model-value":e.modelValue,disabled:e.disabled,invalid:e.invalid,rows:e.rows??4,placeholder:e.placeholder,"onUpdate:modelValue":n[0]||=e=>t.$emit(`update:modelValue`,String(e??``)),onBlur:n[1]||=e=>t.$emit(`blur`,e)},null,8,[`id`,`model-value`,`disabled`,`invalid`,`rows`,`placeholder`]))}}),[[`__scopeId`,`data-v-5e7b5886`]]);function la(e){"@babel/helpers - typeof";return la=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},la(e)}function ua(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function da(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:function(){};ua(this,e),this.element=t,this.listener=n}return fa(e,[{key:`bindScrollListener`,value:function(){this.scrollableParents=Nt(this.element);for(var e=0;ee.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n .p-virtualscroller-content {
+ display: flex;
+}
+
+.p-virtualscroller-inline .p-virtualscroller-content {
+ position: static;
+}
+
+.p-virtualscroller .p-virtualscroller-loading {
+ transform: none !important;
+ min-height: 0;
+ position: sticky;
+ inset-block-start: 0;
+ inset-inline-start: 0;
+}
+`,style:`
+ .p-virtualscroller-loader {
+ background: dt('virtualscroller.loader.mask.background');
+ color: dt('virtualscroller.loader.mask.color');
+ }
+
+ .p-virtualscroller-loading-icon {
+ font-size: dt('virtualscroller.loader.icon.size');
+ width: dt('virtualscroller.loader.icon.size');
+ height: dt('virtualscroller.loader.icon.size');
+ }
+`}),uo={name:`BaseVirtualScroller`,extends:jr,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:`vertical`},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:lo,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var e;lo.loadCSS({nonce:(e=this.$primevueConfig)==null||(e=e.csp)==null?void 0:e.nonce})}};function fo(e){"@babel/helpers - typeof";return fo=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fo(e)}function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:`auto`,r=this.isBoth(),i=this.isHorizontal();if(r?e.every(function(e){return e>-1}):e>-1){var a=this.first,o=this.element,s=o.scrollTop,c=s===void 0?0:s,l=o.scrollLeft,u=l===void 0?0:l,d=this.calculateNumItems().numToleratedItems,f=this.getContentPosition(),p=this.itemSize,m=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e<=(arguments.length>1?arguments[1]:void 0)?0:e},h=function(e,t,n){return e*t+n},g=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.scrollTo({left:e,top:r,behavior:n})},_=r?{rows:0,cols:0}:0,v=!1,y=!1;r?(_={rows:m(e[0],d[0]),cols:m(e[1],d[1])},g(h(_.cols,p[1],f.left),h(_.rows,p[0],f.top)),y=this.lastScrollPos.top!==c||this.lastScrollPos.left!==u,v=_.rows!==a.rows||_.cols!==a.cols):(_=m(e,d),i?g(h(_,p,f.left),c):g(u,h(_,p,f.top)),y=this.lastScrollPos!==(i?u:c),v=_!==a),this.isRangeChanged=v,y&&(this.first=_)}},scrollInView:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`auto`;if(t){var i=this.isBoth(),a=this.isHorizontal();if(i?e.every(function(e){return e>-1}):e>-1){var o=this.getRenderedRange(),s=o.first,c=o.viewport,l=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.scrollTo({left:e,top:t,behavior:r})},u=t===`to-start`,d=t===`to-end`;if(u){if(i)c.first.rows-s.rows>e[0]?l(c.first.cols*this.itemSize[1],(c.first.rows-1)*this.itemSize[0]):c.first.cols-s.cols>e[1]&&l((c.first.cols-1)*this.itemSize[1],c.first.rows*this.itemSize[0]);else if(c.first-s>e){var f=(c.first-1)*this.itemSize;a?l(f,0):l(0,f)}}else if(d){if(i)c.last.rows-s.rows<=e[0]+1?l(c.first.cols*this.itemSize[1],(c.first.rows+1)*this.itemSize[0]):c.last.cols-s.cols<=e[1]+1&&l((c.first.cols+1)*this.itemSize[1],c.first.rows*this.itemSize[0]);else if(c.last-s<=e+1){var p=(c.first+1)*this.itemSize;a?l(p,0):l(0,p)}}}}else this.scrollToIndex(e,r)},getRenderedRange:function(){var e=function(e,t){return Math.floor(e/(t||e))},t=this.first,n=0;if(this.element){var r=this.isBoth(),i=this.isHorizontal(),a=this.element,o=a.scrollTop,s=a.scrollLeft;r?(t={rows:e(o,this.itemSize[0]),cols:e(s,this.itemSize[1])},n={rows:t.rows+this.numItemsInViewport.rows,cols:t.cols+this.numItemsInViewport.cols}):(t=e(i?s:o,this.itemSize),n=t+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:t,last:n}}},calculateNumItems:function(){var e=this.isBoth(),t=this.isHorizontal(),n=this.itemSize,r=this.getContentPosition(),i=this.element?this.element.offsetWidth-r.left:0,a=this.element?this.element.offsetHeight-r.top:0,o=function(e,t){return Math.ceil(e/(t||e))},s=function(e){return Math.ceil(e/2)},c=e?{rows:o(a,n[0]),cols:o(i,n[1])}:o(t?i:a,n);return{numItemsInViewport:c,numToleratedItems:this.d_numToleratedItems||(e?[s(c.rows),s(c.cols)]:s(c))}},calculateOptions:function(){var e=this,t=this.isBoth(),n=this.first,r=this.calculateNumItems(),i=r.numItemsInViewport,a=r.numToleratedItems,o=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return e.getLast(t+n+(t0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(t?(this.columns||this.items[0])?.length||0:this.items?.length||0,e):0},getContentPosition:function(){if(this.content){var e=getComputedStyle(this.content),t=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),n=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),r=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),i=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:t,right:n,top:r,bottom:i,x:t+n,y:r+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var e=this;if(this.element){var t=this.isBoth(),n=this.isHorizontal(),r=this.element.parentElement,i=this.scrollWidth||`${this.element.offsetWidth||r.offsetWidth}px`,a=this.scrollHeight||`${this.element.offsetHeight||r.offsetHeight}px`,o=function(t,n){return e.element.style[t]=n};t||n?(o(`height`,a),o(`width`,i)):o(`height`,a)}},setSpacerSize:function(){var e=this,t=this.items;if(t){var n=this.isBoth(),r=this.isHorizontal(),i=this.getContentPosition(),a=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return e.spacerStyle=mo(mo({},e.spacerStyle),ho({},`${t}`,(n||[]).length*r+i+`px`))};n?(a(`height`,t,this.itemSize[0],i.y),a(`width`,this.columns||t[1],this.itemSize[1],i.x)):r?a(`width`,this.columns||t,this.itemSize,i.x):a(`height`,t,this.itemSize,i.y)}},setContentPosition:function(e){var t=this;if(this.content&&!this.appendOnly){var n=this.isBoth(),r=this.isHorizontal(),i=e?e.first:this.first,a=function(e,t){return e*t},o=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.contentStyle=mo(mo({},t.contentStyle),{transform:`translate3d(${e}px, ${n}px, 0)`})};if(n)o(a(i.cols,this.itemSize[1]),a(i.rows,this.itemSize[0]));else{var s=a(i,this.itemSize);r?o(s,0):o(0,s)}}},onScrollPositionChange:function(e){var t=this,n=e.target,r=this.isBoth(),i=this.isHorizontal(),a=this.getContentPosition(),o=function(e,t){return e?e>t?e-t:e:0},s=function(e,t){return Math.floor(e/(t||e))},c=function(e,t,n,r,i,a){return e<=i?i:a?n-r-i:t+i-1},l=function(e,n,r,i,a,o,s,c){if(e<=o)return 0;var l=Math.max(0,s?en?r:e-2*o),u=t.getLast(l,c);return l>u?u-a:l},u=function(e,n,r,i,a,o){var s=n+i+2*a;return e>=a&&(s+=a+1),t.getLast(s,o)},d=o(n.scrollTop,a.top),f=o(n.scrollLeft,a.left),p=r?{rows:0,cols:0}:0,m=this.last,h=!1,g=this.lastScrollPos;if(r){var _=this.lastScrollPos.top<=d,v=this.lastScrollPos.left<=f;if(!this.appendOnly||this.appendOnly&&(_||v)){var y={rows:s(d,this.itemSize[0]),cols:s(f,this.itemSize[1])},b={rows:c(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],_),cols:c(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)};p={rows:l(y.rows,b.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],_),cols:l(y.cols,b.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v,!0)},m={rows:u(y.rows,p.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:u(y.cols,p.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},h=p.rows!==this.first.rows||m.rows!==this.last.rows||p.cols!==this.first.cols||m.cols!==this.last.cols||this.isRangeChanged,g={top:d,left:f}}}else{var x=i?f:d,ee=this.lastScrollPos<=x;if(!this.appendOnly||this.appendOnly&&ee){var S=s(x,this.itemSize);p=l(S,c(S,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,ee),this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,ee),m=u(S,p,this.last,this.numItemsInViewport,this.d_numToleratedItems),h=p!==this.first||m!==this.last||this.isRangeChanged,g=x}}return{first:p,last:m,isRangeChanged:h,scrollPos:g}},onScrollChange:function(e){var t=this.onScrollPositionChange(e),n=t.first,r=t.last,i=t.isRangeChanged,a=t.scrollPos;if(i){var o={first:n,last:r};if(this.setContentPosition(o),this.first=n,this.last=r,this.lastScrollPos=a,this.$emit(`scroll-index-change`,o),this.lazy&&this.isPageChanged(n)){var s={first:this.step?Math.min(this.getPageByFirst(n)*this.step,(this.items?.length||0)-this.step):n,last:Math.min(this.step?(this.getPageByFirst(n)+1)*this.step:r,this.items?.length||0)};(this.lazyLoadState.first!==s.first||this.lazyLoadState.last!==s.last)&&this.$emit(`lazy-load`,s),this.lazyLoadState=s}}},onScroll:function(e){var t=this;this.$emit(`scroll`,e),this.delay?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()&&(!this.d_loading&&this.showLoader&&(this.onScrollPositionChange(e).isRangeChanged||this.step&&this.isPageChanged())&&(this.d_loading=!0),this.scrollTimeout=setTimeout(function(){t.onScrollChange(e),t.d_loading&&t.showLoader&&(!t.lazy||t.loading===void 0)&&(t.d_loading=!1,t.page=t.getPageByFirst())},this.delay))):this.onScrollChange(e)},onResize:function(){var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(zt(e.element)){var t=e.isBoth(),n=e.isVertical(),r=e.isHorizontal(),i=[Ft(e.element),Dt(e.element)],a=i[0],o=i[1],s=a!==e.defaultWidth,c=o!==e.defaultHeight;(t?s||c:r?s:n&&c)&&(e.d_numToleratedItems=e.numToleratedItems,e.defaultWidth=a,e.defaultHeight=o,e.defaultContentWidth=Ft(e.content),e.defaultContentHeight=Dt(e.content),e.init())}},this.resizeDelay)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener(`resize`,this.resizeListener),window.addEventListener(`orientationchange`,this.resizeListener),this.resizeObserver=new ResizeObserver(function(){e.onResize()}),this.resizeObserver.observe(this.element))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),window.removeEventListener(`orientationchange`,this.resizeListener),null),this.resizeObserver&&=(this.resizeObserver.disconnect(),null)},getOptions:function(e){var t=(this.items||[]).length,n=this.isBoth()?this.first.rows+e:this.first+e;return{index:n,count:t,first:n===0,last:n===t-1,even:n%2==0,odd:n%2!=0}},getLoaderOptions:function(e,t){var n=this.loaderArr.length;return mo({index:e,count:n,first:e===0,last:e===n-1,even:e%2==0,odd:e%2!=0},t)},getPageByFirst:function(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(e){return this.step&&!this.lazy?this.page!==this.getPageByFirst(e??this.first):!0},setContentEl:function(e){this.content=e||this.content||St(this.element,`[data-pc-section="content"]`)},elementRef:function(e){this.element=e},contentRef:function(e){this.content=e}},computed:{containerClass:function(){return[`p-virtualscroller`,this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return[`p-virtualscroller-content`,{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return[`p-virtualscroller-loader`,{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var e=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(t){return e.columns?t:t.slice(e.appendOnly?0:e.first.cols,e.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var e=this.isBoth(),t=this.isHorizontal();if(e||t)return this.d_loading&&this.loaderDisabled?e?this.loaderArr[0]:this.loaderArr:this.columns.slice(e?this.first.cols:this.first,e?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:Br}},yo=[`tabindex`];function bo(t,r,i,a,o,s){var c=d(`SpinnerIcon`);return t.disabled?(p(),j(k,{key:1},[E(t.$slots,`default`),E(t.$slots,`content`,{items:t.items,rows:t.items,columns:s.loadedColumns})],64)):(p(),j(`div`,n({key:0,ref:s.elementRef,class:s.containerClass,tabindex:t.tabindex,style:t.style,onScroll:r[0]||=function(){return s.onScroll&&s.onScroll.apply(s,arguments)}},t.ptmi(`root`)),[E(t.$slots,`content`,{styleClass:s.contentClass,items:s.loadedItems,getItemOptions:s.getOptions,loading:o.d_loading,getLoaderOptions:s.getLoaderOptions,itemSize:t.itemSize,rows:s.loadedRows,columns:s.loadedColumns,contentRef:s.contentRef,spacerStyle:o.spacerStyle,contentStyle:o.contentStyle,vertical:s.isVertical(),horizontal:s.isHorizontal(),both:s.isBoth()},function(){return[A(`div`,n({ref:s.contentRef,class:s.contentClass,style:o.contentStyle},t.ptm(`content`)),[(p(!0),j(k,null,e(s.loadedItems,function(e,n){return E(t.$slots,`item`,{key:n,item:e,options:s.getOptions(n)})}),128))],16)]}),t.showSpacer?(p(),j(`div`,n({key:0,class:`p-virtualscroller-spacer`,style:o.spacerStyle},t.ptm(`spacer`)),null,16)):D(``,!0),!t.loaderDisabled&&t.showLoader&&o.d_loading?(p(),j(`div`,n({key:1,class:s.loaderClass},t.ptm(`loader`)),[t.$slots&&t.$slots.loader?(p(!0),j(k,{key:0},e(o.loaderArr,function(e,n){return E(t.$slots,`loader`,{key:n,options:s.getLoaderOptions(n,s.isBoth()&&{numCols:t.d_numItemsInViewport.cols})})}),128)):D(``,!0),E(t.$slots,`loadingicon`,{},function(){return[O(c,n({spin:``,class:`p-virtualscroller-loading-icon`},t.ptm(`loadingIcon`)),null,16)]})],16)):D(``,!0)],16,yo))}vo.render=bo;var xo=I.extend({name:`select`,style:`
+ .p-select {
+ display: inline-flex;
+ cursor: pointer;
+ position: relative;
+ user-select: none;
+ background: dt('select.background');
+ border: 1px solid dt('select.border.color');
+ transition:
+ background dt('select.transition.duration'),
+ color dt('select.transition.duration'),
+ border-color dt('select.transition.duration'),
+ outline-color dt('select.transition.duration'),
+ box-shadow dt('select.transition.duration');
+ border-radius: dt('select.border.radius');
+ outline-color: transparent;
+ box-shadow: dt('select.shadow');
+ }
+
+ .p-select:not(.p-disabled):hover {
+ border-color: dt('select.hover.border.color');
+ }
+
+ .p-select:not(.p-disabled).p-focus {
+ border-color: dt('select.focus.border.color');
+ box-shadow: dt('select.focus.ring.shadow');
+ outline: dt('select.focus.ring.width') dt('select.focus.ring.style') dt('select.focus.ring.color');
+ outline-offset: dt('select.focus.ring.offset');
+ }
+
+ .p-select.p-variant-filled {
+ background: dt('select.filled.background');
+ }
+
+ .p-select.p-variant-filled:not(.p-disabled):hover {
+ background: dt('select.filled.hover.background');
+ }
+
+ .p-select.p-variant-filled:not(.p-disabled).p-focus {
+ background: dt('select.filled.focus.background');
+ }
+
+ .p-select.p-invalid {
+ border-color: dt('select.invalid.border.color');
+ }
+
+ .p-select.p-disabled {
+ opacity: 1;
+ background: dt('select.disabled.background');
+ }
+
+ .p-select-clear-icon {
+ align-self: center;
+ color: dt('select.clear.icon.color');
+ inset-inline-end: dt('select.dropdown.width');
+ }
+
+ .p-select-dropdown {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-shrink: 0;
+ background: transparent;
+ color: dt('select.dropdown.color');
+ width: dt('select.dropdown.width');
+ border-start-end-radius: dt('select.border.radius');
+ border-end-end-radius: dt('select.border.radius');
+ }
+
+ .p-select-label {
+ display: block;
+ white-space: nowrap;
+ overflow: hidden;
+ flex: 1 1 auto;
+ width: 1%;
+ padding: dt('select.padding.y') dt('select.padding.x');
+ text-overflow: ellipsis;
+ cursor: pointer;
+ color: dt('select.color');
+ background: transparent;
+ border: 0 none;
+ outline: 0 none;
+ font-size: 1rem;
+ }
+
+ .p-select-label.p-placeholder {
+ color: dt('select.placeholder.color');
+ }
+
+ .p-select.p-invalid .p-select-label.p-placeholder {
+ color: dt('select.invalid.placeholder.color');
+ }
+
+ .p-select.p-disabled .p-select-label {
+ color: dt('select.disabled.color');
+ }
+
+ .p-select-label-empty {
+ overflow: hidden;
+ opacity: 0;
+ }
+
+ input.p-select-label {
+ cursor: default;
+ }
+
+ .p-select-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ background: dt('select.overlay.background');
+ color: dt('select.overlay.color');
+ border: 1px solid dt('select.overlay.border.color');
+ border-radius: dt('select.overlay.border.radius');
+ box-shadow: dt('select.overlay.shadow');
+ min-width: 100%;
+ transform-origin: inherit;
+ will-change: transform;
+ }
+
+ .p-select-header {
+ padding: dt('select.list.header.padding');
+ }
+
+ .p-select-filter {
+ width: 100%;
+ }
+
+ .p-select-list-container {
+ overflow: auto;
+ }
+
+ .p-select-option-group {
+ cursor: auto;
+ margin: 0;
+ padding: dt('select.option.group.padding');
+ background: dt('select.option.group.background');
+ color: dt('select.option.group.color');
+ font-weight: dt('select.option.group.font.weight');
+ }
+
+ .p-select-list {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+ padding: dt('select.list.padding');
+ gap: dt('select.list.gap');
+ display: flex;
+ flex-direction: column;
+ }
+
+ .p-select-option {
+ cursor: pointer;
+ font-weight: normal;
+ white-space: nowrap;
+ position: relative;
+ overflow: hidden;
+ display: flex;
+ align-items: center;
+ padding: dt('select.option.padding');
+ border: 0 none;
+ color: dt('select.option.color');
+ background: transparent;
+ transition:
+ background dt('select.transition.duration'),
+ color dt('select.transition.duration'),
+ border-color dt('select.transition.duration'),
+ box-shadow dt('select.transition.duration'),
+ outline-color dt('select.transition.duration');
+ border-radius: dt('select.option.border.radius');
+ }
+
+ .p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
+ background: dt('select.option.focus.background');
+ color: dt('select.option.focus.color');
+ }
+
+ .p-select-option:not(.p-select-option-selected):not(.p-disabled):hover {
+ background: dt('select.option.focus.background');
+ color: dt('select.option.focus.color');
+ }
+
+ .p-select-option.p-select-option-selected {
+ background: dt('select.option.selected.background');
+ color: dt('select.option.selected.color');
+ }
+
+ .p-select-option.p-select-option-selected.p-focus {
+ background: dt('select.option.selected.focus.background');
+ color: dt('select.option.selected.focus.color');
+ }
+
+ .p-select-option-blank-icon {
+ flex-shrink: 0;
+ }
+
+ .p-select-option-check-icon {
+ position: relative;
+ flex-shrink: 0;
+ margin-inline-start: dt('select.checkmark.gutter.start');
+ margin-inline-end: dt('select.checkmark.gutter.end');
+ color: dt('select.checkmark.color');
+ }
+
+ .p-select-empty-message {
+ padding: dt('select.empty.message.padding');
+ }
+
+ .p-select-fluid {
+ display: flex;
+ width: 100%;
+ }
+
+ .p-select-sm .p-select-label {
+ font-size: dt('select.sm.font.size');
+ padding-block: dt('select.sm.padding.y');
+ padding-inline: dt('select.sm.padding.x');
+ }
+
+ .p-select-sm .p-select-dropdown .p-icon {
+ font-size: dt('select.sm.font.size');
+ width: dt('select.sm.font.size');
+ height: dt('select.sm.font.size');
+ }
+
+ .p-select-lg .p-select-label {
+ font-size: dt('select.lg.font.size');
+ padding-block: dt('select.lg.padding.y');
+ padding-inline: dt('select.lg.padding.x');
+ }
+
+ .p-select-lg .p-select-dropdown .p-icon {
+ font-size: dt('select.lg.font.size');
+ width: dt('select.lg.font.size');
+ height: dt('select.lg.font.size');
+ }
+
+ .p-floatlabel-in .p-select-filter {
+ padding-block-start: dt('select.padding.y');
+ padding-block-end: dt('select.padding.y');
+ }
+`,classes:{root:function(e){var t=e.instance,n=e.props,r=e.state;return[`p-select p-component p-inputwrapper`,{"p-disabled":n.disabled,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-focus":r.focused,"p-inputwrapper-filled":t.$filled,"p-inputwrapper-focus":r.focused||r.overlayVisible,"p-select-open":r.overlayVisible,"p-select-fluid":t.$fluid,"p-select-sm p-inputfield-sm":n.size===`small`,"p-select-lg p-inputfield-lg":n.size===`large`}]},label:function(e){var t=e.instance,n=e.props;return[`p-select-label`,{"p-placeholder":!n.editable&&t.label===n.placeholder,"p-select-label-empty":!n.editable&&!t.$slots.value&&(t.label===`p-emptylabel`||t.label?.length===0)}]},clearIcon:`p-select-clear-icon`,dropdown:`p-select-dropdown`,loadingicon:`p-select-loading-icon`,dropdownIcon:`p-select-dropdown-icon`,overlay:`p-select-overlay p-component`,header:`p-select-header`,pcFilter:`p-select-filter`,listContainer:`p-select-list-container`,list:`p-select-list`,optionGroup:`p-select-option-group`,optionGroupLabel:`p-select-option-group-label`,option:function(e){var t=e.instance,n=e.props,r=e.state,i=e.option,a=e.focusedOption;return[`p-select-option`,{"p-select-option-selected":t.isSelected(i)&&n.highlightOnSelect,"p-focus":r.focusedOptionIndex===a,"p-disabled":t.isOptionDisabled(i)}]},optionLabel:`p-select-option-label`,optionCheckIcon:`p-select-option-check-icon`,optionBlankIcon:`p-select-option-blank-icon`,emptyMessage:`p-select-empty-message`}}),So={name:`BaseSelect`,extends:Ui,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:`14rem`},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:`contains`},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:`body`},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:xo,provide:function(){return{$pcSelect:this,$parentInstance:this}}};function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Co(e)}function wo(e){return Oo(e)||Do(e)||Eo(e)||To()}function To(){throw TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eo(e,t){if(e){if(typeof e==`string`)return ko(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ko(e,t):void 0}}function Do(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Oo(e){if(Array.isArray(e))return ko(e)}function ko(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:!0;if(this.overlayVisible){var r=this.getOptionValue(t);this.updateModel(e,r),n&&this.hide(!0)}},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit(`filter`,{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){if(!e.isComposing)switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,!0);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,!0);break;case`Home`:this.onHomeKey(e,!0);break;case`End`:this.onEndKey(e,!0);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){oo.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){e.code===`Escape`&&this.onEscapeKey(e)},onArrowDownKey:function(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{var t=this.focusedOptionIndex===-1?this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e,t)}e.preventDefault()},onArrowUpKey:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(e.altKey&&!t)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var n=this.focusedOptionIndex===-1?this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;e.shiftKey?t.setSelectionRange(0,e.target.selectionStart):(t.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;if(e.shiftKey)t.setSelectionRange(e.target.selectionStart,t.value.length);else{var n=t.value.length;t.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide(!0)):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&arguments[1]!==void 0&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()},onTabKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(Ct(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){var t=this;Gt.set(`overlay`,e,this.$primevue.config.zIndex.overlay),ft(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.scrollInView(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``),setTimeout(function(){t.autoFilterFocus&&t.filter&&Ct(t.$refs.filterInput.$el),t.autoUpdateModel()},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(`show`)},onOverlayLeave:function(e){var t=this;e.style.pointerEvents=`none`,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){t.$refs.filterInput&&Ct(t.$refs.filterInput.$el)}),this.$emit(`hide`),this.overlay=null},onOverlayAfterLeave:function(e){Gt.clear(e)},alignOverlay:function(){this.appendTo===`self`?mt(this.overlay,this.$el):this.overlay&&(this.overlay.style.minWidth=pt(this.$el)+`px`,dt(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var n=t.composedPath();e.overlayVisible&&e.overlay&&!n.includes(e.$el)&&!n.includes(e.overlay)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new ha(this.$refs.container,function(){e.overlayVisible&&e.hide()}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!Bt()&&e.hide()},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},bindLabelClickListener:function(){var e=this;if(!this.editable&&!this.labelClickListener){var t=document.querySelector(`label[for="${this.labelId}"]`);t&&zt(t)&&(this.labelClickListener=function(){Ct(e.$refs.focusInput)},t.addEventListener(`click`,this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var e=document.querySelector(`label[for="${this.labelId}"]`);e&&zt(e)&&e.removeEventListener(`click`,this.labelClickListener)}},bindMatchMediaOrientationListener:function(){var e=this;if(!this.matchMediaOrientationListener){var t=matchMedia(`(orientation: portrait)`);this.queryOrientation=t,this.matchMediaOrientationListener=function(){e.alignOverlay()},this.queryOrientation.addEventListener(`change`,this.matchMediaOrientationListener)}},unbindMatchMediaOrientationListener:function(){this.matchMediaOrientationListener&&=(this.queryOrientation.removeEventListener(`change`,this.matchMediaOrientationListener),this.queryOrientation=null,null)},hasFocusableElements:function(){return Tt(this.overlay,`:not([data-p-hidden-focusable="true"])`).length>0},isOptionExactMatched:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale)==this.searchValue.toLocaleLowerCase(this.filterLocale)},isOptionStartsWith:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return N(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return Ae(this.d_value,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return Fe(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?Fe(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)})},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var n=this;this.searchValue=(this.searchValue||``)+t;var r=-1,i=!1;return N(this.searchValue)&&(r=this.visibleOptions.findIndex(function(e){return n.isOptionExactMatched(e)}),r===-1&&(r=this.visibleOptions.findIndex(function(e){return n.isOptionStartsWith(e)})),r!==-1&&(i=!0),r===-1&&this.focusedOptionIndex===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.searchValue=``,n.searchTimeout=null},500),i},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=St(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`nearest`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.autoOptionFocus&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex()),this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1)},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce(function(e,n,r){e.push({optionGroup:n,group:!0,index:r});var i=t.getOptionGroupChildren(n);return i&&i.forEach(function(t){return e.push(t)}),e},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var e=this,t=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=Dn.filter(t,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var r=this.options||[],i=[];return r.forEach(function(t){var r=e.getOptionGroupChildren(t).filter(function(e){return n.includes(e)});r.length>0&&i.push(jo(jo({},t),{},Mo({},typeof e.optionGroupChildren==`string`?e.optionGroupChildren:`items`,wo(r))))}),this.flatOptions(i)}return n}return t},hasSelectedOption:function(){return this.$filled},label:function(){var e=this.findSelectedOptionIndex();return e===-1?this.placeholder||`p-emptylabel`:this.getOptionLabel(this.visibleOptions[e])},editableInputValue:function(){var e=this.findSelectedOptionIndex();return e===-1?this.d_value||``:this.getOptionLabel(this.visibleOptions[e])},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return N(this.visibleOptions)?this.filterMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||``},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||``},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,`1`):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&!this.disabled&&!this.loading},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},containerDataP:function(){return P(Mo({invalid:this.$invalid,disabled:this.disabled,focus:this.focused,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))},labelDataP:function(){return P(Mo(Mo({placeholder:!this.editable&&this.label===this.placeholder,clearable:this.showClear,disabled:this.disabled,editable:this.editable},this.size,this.size),`empty`,!this.editable&&!this.$slots.value&&(this.label===`p-emptylabel`||this.label.length===0)))},dropdownIconDataP:function(){return P(Mo({},this.size,this.size))},overlayDataP:function(){return P(Mo({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},directives:{ripple:Ei},components:{InputText:Yi,VirtualScroller:vo,Portal:so,InputIcon:io,IconField:no,TimesIcon:Ja,ChevronDownIcon:Ma,SpinnerIcon:Br,SearchIcon:Ba,CheckIcon:wa,BlankIcon:ga}},Io=[`id`,`data-p`],Lo=[`name`,`id`,`value`,`placeholder`,`tabindex`,`disabled`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`,`data-p`],Ro=[`name`,`id`,`tabindex`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`,`aria-disabled`,`data-p`],zo=[`data-p`],Bo=[`id`],Vo=[`id`],Ho=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onMousedown`,`onMousemove`,`data-p-selected`,`data-p-focused`,`data-p-disabled`];function Uo(i,a,o,s,c,l){var u=d(`SpinnerIcon`),h=d(`InputText`),g=d(`SearchIcon`),b=d(`InputIcon`),x=d(`IconField`),ee=d(`CheckIcon`),S=d(`BlankIcon`),w=d(`VirtualScroller`),T=d(`Portal`),ne=f(`ripple`);return p(),j(`div`,n({ref:`container`,id:i.$id,class:i.cx(`root`),onClick:a[12]||=function(){return l.onContainerClick&&l.onContainerClick.apply(l,arguments)},"data-p":l.containerDataP},i.ptmi(`root`)),[i.editable?(p(),j(`input`,n({key:0,ref:`focusInput`,name:i.name,id:i.labelId||i.inputId,type:`text`,class:[i.cx(`label`),i.inputClass,i.labelClass],style:[i.inputStyle,i.labelStyle],value:l.editableInputValue,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:`off`,role:`combobox`,"aria-label":i.ariaLabel,"aria-labelledby":i.ariaLabelledby,"aria-haspopup":`listbox`,"aria-expanded":c.overlayVisible,"aria-controls":c.overlayVisible?i.$id+`_list`:void 0,"aria-activedescendant":c.focused?l.focusedOptionId:void 0,"aria-invalid":i.invalid||void 0,onFocus:a[0]||=function(){return l.onFocus&&l.onFocus.apply(l,arguments)},onBlur:a[1]||=function(){return l.onBlur&&l.onBlur.apply(l,arguments)},onKeydown:a[2]||=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)},onInput:a[3]||=function(){return l.onEditableInput&&l.onEditableInput.apply(l,arguments)},"data-p":l.labelDataP},i.ptm(`label`)),null,16,Lo)):(p(),j(`span`,n({key:1,ref:`focusInput`,name:i.name,id:i.labelId||i.inputId,class:[i.cx(`label`),i.inputClass,i.labelClass],style:[i.inputStyle,i.labelStyle],tabindex:i.disabled?-1:i.tabindex,role:`combobox`,"aria-label":i.ariaLabel||(l.label===`p-emptylabel`?void 0:l.label),"aria-labelledby":i.ariaLabelledby,"aria-haspopup":`listbox`,"aria-expanded":c.overlayVisible,"aria-controls":i.$id+`_list`,"aria-activedescendant":c.focused?l.focusedOptionId:void 0,"aria-invalid":i.invalid||void 0,"aria-disabled":i.disabled,onFocus:a[4]||=function(){return l.onFocus&&l.onFocus.apply(l,arguments)},onBlur:a[5]||=function(){return l.onBlur&&l.onBlur.apply(l,arguments)},onKeydown:a[6]||=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)},"data-p":l.labelDataP},i.ptm(`label`)),[E(i.$slots,`value`,{value:i.d_value,placeholder:i.placeholder},function(){return[ae(v(l.label===`p-emptylabel`?`\xA0`:l.label??`empty`),1)]})],16,Ro)),l.isClearIconVisible?E(i.$slots,`clearicon`,{key:2,class:_(i.cx(`clearIcon`)),clearCallback:l.onClearClick},function(){return[(p(),C(m(i.clearIcon?`i`:`TimesIcon`),n({ref:`clearIcon`,class:[i.cx(`clearIcon`),i.clearIcon],onClick:l.onClearClick},i.ptm(`clearIcon`),{"data-pc-section":`clearicon`}),null,16,[`class`,`onClick`]))]}):D(``,!0),A(`div`,n({class:i.cx(`dropdown`)},i.ptm(`dropdown`)),[i.loading?E(i.$slots,`loadingicon`,{key:0,class:_(i.cx(`loadingIcon`))},function(){return[i.loadingIcon?(p(),j(`span`,n({key:0,class:[i.cx(`loadingIcon`),`pi-spin`,i.loadingIcon],"aria-hidden":`true`},i.ptm(`loadingIcon`)),null,16)):(p(),C(u,n({key:1,class:i.cx(`loadingIcon`),spin:``,"aria-hidden":`true`},i.ptm(`loadingIcon`)),null,16,[`class`]))]}):E(i.$slots,`dropdownicon`,{key:1,class:_(i.cx(`dropdownIcon`))},function(){return[(p(),C(m(i.dropdownIcon?`span`:`ChevronDownIcon`),n({class:[i.cx(`dropdownIcon`),i.dropdownIcon],"aria-hidden":`true`,"data-p":l.dropdownIconDataP},i.ptm(`dropdownIcon`)),null,16,[`class`,`data-p`]))]})],16),O(T,{appendTo:i.appendTo},{default:t(function(){return[O(ge,n({name:`p-anchored-overlay`,onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},i.ptm(`transition`)),{default:t(function(){return[c.overlayVisible?(p(),j(`div`,n({key:0,ref:l.overlayRef,class:[i.cx(`overlay`),i.panelClass,i.overlayClass],style:[i.panelStyle,i.overlayStyle],onClick:a[10]||=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)},onKeydown:a[11]||=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)},"data-p":l.overlayDataP},i.ptm(`overlay`)),[A(`span`,n({ref:`firstHiddenFocusableElementOnOverlay`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:0,onFocus:a[7]||=function(){return l.onFirstHiddenFocus&&l.onFirstHiddenFocus.apply(l,arguments)}},i.ptm(`hiddenFirstFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),E(i.$slots,`header`,{value:i.d_value,options:l.visibleOptions}),i.filter?(p(),j(`div`,n({key:0,class:i.cx(`header`)},i.ptm(`header`)),[O(x,{unstyled:i.unstyled,pt:i.ptm(`pcFilterContainer`)},{default:t(function(){return[O(h,{ref:`filterInput`,type:`text`,value:c.filterValue,onVnodeMounted:l.onFilterUpdated,onVnodeUpdated:l.onFilterUpdated,class:_(i.cx(`pcFilter`)),placeholder:i.filterPlaceholder,variant:i.variant,unstyled:i.unstyled,role:`searchbox`,autocomplete:`off`,"aria-owns":i.$id+`_list`,"aria-activedescendant":l.focusedOptionId,onKeydown:l.onFilterKeyDown,onBlur:l.onFilterBlur,onInput:l.onFilterChange,pt:i.ptm(`pcFilter`),formControl:{novalidate:!0}},null,8,[`value`,`onVnodeMounted`,`onVnodeUpdated`,`class`,`placeholder`,`variant`,`unstyled`,`aria-owns`,`aria-activedescendant`,`onKeydown`,`onBlur`,`onInput`,`pt`]),O(b,{unstyled:i.unstyled,pt:i.ptm(`pcFilterIconContainer`)},{default:t(function(){return[E(i.$slots,`filtericon`,{},function(){return[i.filterIcon?(p(),j(`span`,n({key:0,class:i.filterIcon},i.ptm(`filterIcon`)),null,16)):(p(),C(g,r(n({key:1},i.ptm(`filterIcon`))),null,16))]})]}),_:3},8,[`unstyled`,`pt`])]}),_:3},8,[`unstyled`,`pt`]),A(`span`,n({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},i.ptm(`hiddenFilterResult`),{"data-p-hidden-accessible":!0}),v(l.filterResultMessageText),17)],16)):D(``,!0),A(`div`,n({class:i.cx(`listContainer`),style:{"max-height":l.virtualScrollerDisabled?i.scrollHeight:``}},i.ptm(`listContainer`)),[O(w,n({ref:l.virtualScrollerRef},i.virtualScrollerOptions,{items:l.visibleOptions,style:{height:i.scrollHeight},tabindex:-1,disabled:l.virtualScrollerDisabled,pt:i.ptm(`virtualScroller`)}),te({content:t(function(t){var r=t.styleClass,o=t.contentRef,s=t.items,u=t.getItemOptions,d=t.contentStyle,f=t.itemSize;return[A(`ul`,n({ref:function(e){return l.listRef(e,o)},id:i.$id+`_list`,class:[i.cx(`list`),r],style:d,role:`listbox`},i.ptm(`list`)),[(p(!0),j(k,null,e(s,function(e,t){return p(),j(k,{key:l.getOptionRenderKey(e,l.getOptionIndex(t,u))},[l.isOptionGroup(e)?(p(),j(`li`,n({key:0,id:i.$id+`_`+l.getOptionIndex(t,u),style:{height:f?f+`px`:void 0},class:i.cx(`optionGroup`),role:`option`},{ref_for:!0},i.ptm(`optionGroup`)),[E(i.$slots,`optiongroup`,{option:e.optionGroup,index:l.getOptionIndex(t,u)},function(){return[A(`span`,n({class:i.cx(`optionGroupLabel`)},{ref_for:!0},i.ptm(`optionGroupLabel`)),v(l.getOptionGroupLabel(e.optionGroup)),17)]})],16,Vo)):y((p(),j(`li`,n({key:1,id:i.$id+`_`+l.getOptionIndex(t,u),class:i.cx(`option`,{option:e,focusedOption:l.getOptionIndex(t,u)}),style:{height:f?f+`px`:void 0},role:`option`,"aria-label":l.getOptionLabel(e),"aria-selected":l.isSelected(e),"aria-disabled":l.isOptionDisabled(e),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(t,u)),onMousedown:function(t){return l.onOptionSelect(t,e)},onMousemove:function(e){return l.onOptionMouseMove(e,l.getOptionIndex(t,u))},onClick:a[8]||=pe(function(){},[`stop`]),"data-p-selected":!i.checkmark&&l.isSelected(e),"data-p-focused":c.focusedOptionIndex===l.getOptionIndex(t,u),"data-p-disabled":l.isOptionDisabled(e)},{ref_for:!0},l.getPTItemOptions(e,u,t,`option`)),[i.checkmark?(p(),j(k,{key:0},[l.isSelected(e)?(p(),C(ee,n({key:0,class:i.cx(`optionCheckIcon`)},{ref_for:!0},i.ptm(`optionCheckIcon`)),null,16,[`class`])):(p(),C(S,n({key:1,class:i.cx(`optionBlankIcon`)},{ref_for:!0},i.ptm(`optionBlankIcon`)),null,16,[`class`]))],64)):D(``,!0),E(i.$slots,`option`,{option:e,selected:l.isSelected(e),index:l.getOptionIndex(t,u)},function(){return[A(`span`,n({class:i.cx(`optionLabel`)},{ref_for:!0},i.ptm(`optionLabel`)),v(l.getOptionLabel(e)),17)]})],16,Ho)),[[ne]])],64)}),128)),c.filterValue&&(!s||s&&s.length===0)?(p(),j(`li`,n({key:0,class:i.cx(`emptyMessage`),role:`option`},i.ptm(`emptyMessage`),{"data-p-hidden-accessible":!0}),[E(i.$slots,`emptyfilter`,{},function(){return[ae(v(l.emptyFilterMessageText),1)]})],16)):!i.options||i.options&&i.options.length===0?(p(),j(`li`,n({key:1,class:i.cx(`emptyMessage`),role:`option`},i.ptm(`emptyMessage`),{"data-p-hidden-accessible":!0}),[E(i.$slots,`empty`,{},function(){return[ae(v(l.emptyMessageText),1)]})],16)):D(``,!0)],16,Bo)]}),_:2},[i.$slots.loader?{name:`loader`,fn:t(function(e){var t=e.options;return[E(i.$slots,`loader`,{options:t})]}),key:`0`}:void 0]),1040,[`items`,`style`,`disabled`,`pt`])],16),E(i.$slots,`footer`,{value:i.d_value,options:l.visibleOptions}),!i.options||i.options&&i.options.length===0?(p(),j(`span`,n({key:1,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},i.ptm(`hiddenEmptyMessage`),{"data-p-hidden-accessible":!0}),v(l.emptyMessageText),17)):D(``,!0),A(`span`,n({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},i.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),v(l.selectedMessageText),17),A(`span`,n({ref:`lastHiddenFocusableElementOnOverlay`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:0,onFocus:a[9]||=function(){return l.onLastHiddenFocus&&l.onLastHiddenFocus.apply(l,arguments)}},i.ptm(`hiddenLastFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16,zo)):D(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,Io)}Fo.render=Uo;var Wo=_e(T({__name:`PrimeSelectAdapter`,props:{modelValue:{},inputId:{},options:{},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{}},emits:[`update:modelValue`,`blur`],setup(e){return(t,n)=>(p(),C(se(Fo),{class:`ks-select`,"input-id":e.inputId,"model-value":e.modelValue,options:e.options,"option-label":`label`,"option-value":`value`,"option-disabled":`disabled`,disabled:e.disabled,invalid:e.invalid,placeholder:e.placeholder,"onUpdate:modelValue":n[0]||=e=>t.$emit(`update:modelValue`,e),onBlur:n[1]||=e=>t.$emit(`blur`,e)},null,8,[`input-id`,`model-value`,`options`,`disabled`,`invalid`,`placeholder`]))}}),[[`__scopeId`,`data-v-a7ae5725`]]),Go={name:`MinusIcon`,extends:zr};function Ko(e){return Xo(e)||Yo(e)||Jo(e)||qo()}function qo(){throw TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jo(e,t){if(e){if(typeof e==`string`)return Zo(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zo(e,t):void 0}}function Yo(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Xo(e){if(Array.isArray(e))return Zo(e)}function Zo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n .p-checkbox-box {
+ border-color: dt('checkbox.invalid.border.color');
+ }
+
+ .p-checkbox.p-variant-filled .p-checkbox-box {
+ background: dt('checkbox.filled.background');
+ }
+
+ .p-checkbox-checked.p-variant-filled .p-checkbox-box {
+ background: dt('checkbox.checked.background');
+ }
+
+ .p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
+ background: dt('checkbox.checked.hover.background');
+ }
+
+ .p-checkbox.p-disabled {
+ opacity: 1;
+ }
+
+ .p-checkbox.p-disabled .p-checkbox-box {
+ background: dt('checkbox.disabled.background');
+ border-color: dt('checkbox.checked.disabled.border.color');
+ }
+
+ .p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
+ color: dt('checkbox.icon.disabled.color');
+ }
+
+ .p-checkbox-sm,
+ .p-checkbox-sm .p-checkbox-box {
+ width: dt('checkbox.sm.width');
+ height: dt('checkbox.sm.height');
+ }
+
+ .p-checkbox-sm .p-checkbox-icon {
+ font-size: dt('checkbox.icon.sm.size');
+ width: dt('checkbox.icon.sm.size');
+ height: dt('checkbox.icon.sm.size');
+ }
+
+ .p-checkbox-lg,
+ .p-checkbox-lg .p-checkbox-box {
+ width: dt('checkbox.lg.width');
+ height: dt('checkbox.lg.height');
+ }
+
+ .p-checkbox-lg .p-checkbox-icon {
+ font-size: dt('checkbox.icon.lg.size');
+ width: dt('checkbox.icon.lg.size');
+ height: dt('checkbox.icon.lg.size');
+ }
+`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-checkbox p-component`,{"p-checkbox-checked":t.checked,"p-disabled":n.disabled,"p-invalid":t.$pcCheckboxGroup?t.$pcCheckboxGroup.$invalid:t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-checkbox-sm p-inputfield-sm":n.size===`small`,"p-checkbox-lg p-inputfield-lg":n.size===`large`}]},box:`p-checkbox-box`,input:`p-checkbox-input`,icon:`p-checkbox-icon`}}),es={name:`BaseCheckbox`,extends:Ui,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:$o,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ts(e)}function ns(e,t,n){return(t=rs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rs(e){var t=is(e,`string`);return ts(t)==`symbol`?t:t+``}function is(e,t){if(ts(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function as(e){return ls(e)||cs(e)||ss(e)||os()}function os(){throw TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ss(e,t){if(e){if(typeof e==`string`)return us(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?us(e,t):void 0}}function cs(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ls(e){if(Array.isArray(e))return us(e)}function us(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n