/*! For license information please see main.e4a5e9e9.js.LICENSE.txt */ (()=>{"use strict";var e={520:(e,d,a)=>{function t(e){return null==e||""===e?null:e}function i(e,d){return void 0===d&&(d=!1),null!=e&&(""!==e||d)}function s(e){return!i(e)}function o(e){return null==e||0===e.length}function l(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function m(e){if(void 0!==e){if(null===e||""===e)return null;if("number"===typeof e)return isNaN(e)?void 0:e;var d=parseInt(e,10);return isNaN(d)?void 0:d}}function u(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function n(e,d){return(e?JSON.stringify(e):null)===(d?JSON.stringify(d):null)}function r(e){if(e instanceof Set||e instanceof Map){var d=[];return e.forEach((function(e){return d.push(e)})),d}return Object.values(e)}a.r(d),a.d(d,{AbstractHeaderCellCtrl:()=>er,AgAbstractField:()=>Qi,AgAbstractLabel:()=>Ui,AgAutocomplete:()=>pc,AgCheckbox:()=>ls,AgDialog:()=>Xp,AgGroupComponent:()=>xp,AgInputDateField:()=>mp,AgInputNumberField:()=>Es,AgInputRange:()=>np,AgInputTextArea:()=>op,AgInputTextField:()=>ws,AgMenuItemComponent:()=>jp,AgMenuList:()=>Fp,AgMenuPanel:()=>Hp,AgPanel:()=>Qp,AgPickerField:()=>$i,AgPromise:()=>ri,AgPromiseStatus:()=>ii,AgRadioButton:()=>us,AgRichSelect:()=>Bp,AgSelect:()=>as,AgSlider:()=>vp,AgStackComponentsRegistry:()=>Rd,AgToggleButton:()=>ip,AlignedGridsService:()=>Lc,AllCommunityModules:()=>ib,AnimateShowChangeCellRenderer:()=>Bo,AnimateSlideCellRenderer:()=>vo,AnimationFrameService:()=>yf,AutoScrollService:()=>sm,AutoWidthCalculator:()=>Sf,Autowired:()=>ae,BarColumnLabelPlacement:()=>WC,BaseComponentWrapper:()=>QC,BaseCreator:()=>Hq,BaseGridSerializingSession:()=>Nq,Bean:()=>de,BeanStub:()=>Ue,Beans:()=>iu,BodyDropPivotTarget:()=>wn,BodyDropTarget:()=>Vn,CHART_TOOLBAR_ALLOW_LIST:()=>$C,CHART_TOOL_PANEL_ALLOW_LIST:()=>YC,CHART_TOOL_PANEL_MENU_OPTIONS:()=>XC,CellComp:()=>On,CellCtrl:()=>qu,CellNavigationService:()=>hc,CellPositionUtils:()=>ay,CellRangeType:()=>Um,ChangedPath:()=>jf,CheckboxCellEditor:()=>Il,CheckboxCellRenderer:()=>Ol,CheckboxSelectionComponent:()=>Ao,ClientSideRowModelModule:()=>Gq,ClientSideRowModelSteps:()=>Qr,ColDefUtil:()=>em,Column:()=>ce,ColumnApi:()=>wc,ColumnFactory:()=>Ye,ColumnGroup:()=>Xe,ColumnKeyCreator:()=>p,ColumnModel:()=>bd,ColumnUtils:()=>Td,Component:()=>hi,ComponentUtil:()=>wd,Context:()=>X,CssClassApplier:()=>cu,CssClassManager:()=>Ci,CsvCreator:()=>Kq,CsvExportModule:()=>Jq,CtrlsService:()=>Ly,CustomTooltipFeature:()=>yi,DEFAULT_CHART_GROUPS:()=>KC,DataTypeService:()=>fC,DateCellEditor:()=>Cl,DateFilter:()=>Ts,DateStringCellEditor:()=>hl,DisplayedGroupCreator:()=>Ld,Downloader:()=>Wq,DragAndDropService:()=>Wo,DragService:()=>im,DragSourceType:()=>Fo,Environment:()=>A_,EventService:()=>ue,Events:()=>Je,ExcelFactoryMode:()=>No,ExpansionService:()=>Pf,ExpressionService:()=>Vc,FilterManager:()=>Pm,FloatingFilterMapper:()=>$l,FocusService:()=>u_,GROUP_AUTO_COLUMN_ID:()=>ad,Grid:()=>jC,GridApi:()=>pm,GridBodyComp:()=>un,GridBodyCtrl:()=>Qm,GridComp:()=>e_,GridCoreCreator:()=>zC,GridCtrl:()=>Xc,GridHeaderComp:()=>ef,GridHeaderCtrl:()=>Xr,GridOptionsService:()=>Jy,GridSerializer:()=>Xq,GroupCellRenderer:()=>al,GroupCellRendererCtrl:()=>Zo,GroupInstanceIdCreator:()=>Ze,HeaderCellCtrl:()=>Pr,HeaderFilterCellComp:()=>Lm,HeaderFilterCellCtrl:()=>ur,HeaderGroupCellCtrl:()=>Dr,HeaderNavigationDirection:()=>Yn,HeaderNavigationService:()=>Kr,HeaderPositionUtils:()=>_y,HeaderRowComp:()=>$n,HeaderRowContainerComp:()=>jr,HeaderRowContainerCtrl:()=>Hr,HeaderRowCtrl:()=>Rr,HeaderRowType:()=>Dn,HorizontalDirection:()=>Vs,HorizontalResizeService:()=>tf,InfiniteRowModelModule:()=>Vq,KeyCode:()=>Qt,LargeTextCellEditor:()=>yo,LayoutCssClasses:()=>fm,LocaleService:()=>dC,Logger:()=>Kc,LoggerFactory:()=>Qc,ManagedFocusFeature:()=>xi,ModuleNames:()=>j,ModuleRegistry:()=>K,MouseEventService:()=>_n,MoveColumnFeature:()=>An,NavigationService:()=>bn,NumberCellEditor:()=>cl,NumberFilter:()=>Hs,NumberSequence:()=>mi,Optional:()=>te,PaginationProxy:()=>Zf,PinnedRowModel:()=>Nf,PopupComponent:()=>po,PopupEditorWrapper:()=>Tn,PopupService:()=>sc,PositionableFeature:()=>ki,PostConstruct:()=>Z,PreConstruct:()=>J,PreDestroy:()=>ee,PropertyKeys:()=>Gd,ProvidedColumnGroup:()=>ye,ProvidedFilter:()=>Ni,Qualifier:()=>se,QuerySelector:()=>Ti,RefSelector:()=>Si,ResizeObserverService:()=>pf,RowAnimationCssClasses:()=>xm,RowContainerComp:()=>vn,RowContainerCtrl:()=>sn,RowContainerName:()=>Su,RowContainerType:()=>Ou,RowCtrl:()=>gu,RowHighlightPosition:()=>dm,RowNode:()=>wo,RowNodeBlock:()=>zf,RowNodeBlockLoader:()=>$f,RowNodeSorter:()=>Ty,RowPositionUtils:()=>Z_,RowRenderer:()=>Ef,RowType:()=>mq,ScalarFilter:()=>ys,ScrollVisibleService:()=>fn,SelectCellEditor:()=>bo,SelectableService:()=>j_,SelectionHandleType:()=>jm,ServerSideTransactionResultStatus:()=>Cf,SetLeftFeature:()=>tr,SimpleFilter:()=>cs,SortController:()=>s_,SortIndicatorComp:()=>so,StandardMenuFactory:()=>lf,StylingService:()=>ap,TabGuardClassNames:()=>Wf,TabGuardComp:()=>hp,TabGuardCtrl:()=>Cp,TabbedLayout:()=>nf,TemplateService:()=>Wc,TextCellEditor:()=>Lo,TextFilter:()=>Us,TextFloatingFilter:()=>eo,Timer:()=>fi,TooltipFeature:()=>au,TouchListener:()=>ao,UserComponentFactory:()=>Zl,UserComponentRegistry:()=>Ml,ValueCache:()=>h_,ValueFormatterService:()=>kf,ValueParserService:()=>_C,ValueService:()=>Rc,VanillaFrameworkOverrides:()=>yc,VerticalDirection:()=>ks,VirtualList:()=>Op,VirtualListDragFeature:()=>um,XmlFactory:()=>eb,ZipContainer:()=>tb,_:()=>li,__FORCE_MODULE_DETECTION:()=>JC,createGrid:()=>NC,getRowContainerTypeForName:()=>dn});var f=Object.freeze({__proto__:null,makeNull:t,exists:i,missing:s,missingOrEmpty:o,toStringOrNull:l,attrToNumber:m,attrToBoolean:u,attrToString:function(e){if(null!=e&&""!==e)return e},jsonEquals:n,defaultComparator:function(e,d,a){void 0===a&&(a=!1);var t=null==e,i=null==d;if(e&&e.toNumber&&(e=e.toNumber()),d&&d.toNumber&&(d=d.toNumber()),t&&i)return 0;if(t)return-1;if(i)return 1;function s(e,d){return e>d?1:e=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o};function y(e,d){var a,t;if(null!=e)if(Array.isArray(e))for(var i=0;i=0)){var i=a[e],s=I(i)&&i.constructor===Object;t[e]=s?q(i):i}})),t}}function b(e,d){return e[d]}function P(e,d,a){e[d]=a}function h(e,d,a,t){var i=b(e,a);void 0!==i&&P(d,a,t?t(i):i)}function T(e){var d={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return d[e]=null}))})),Object.keys(d)}function S(e){if(!e)return[];var d=Object;if("function"===typeof d.values)return d.values(e);var a=[];for(var t in e)e.hasOwnProperty(t)&&e.propertyIsEnumerable(t)&&a.push(e[t]);return a}function O(e,d,a,t){void 0===a&&(a=!0),void 0===t&&(t=!1),i(d)&&y(d,(function(d,i){var s=e[d];if(s!==i){if(t)if(null==s&&null!=i)"object"===typeof i&&i.constructor===Object&&(s={},e[d]=s);I(i)&&I(s)&&!Array.isArray(s)?O(s,i,a,t):(a||void 0!==i)&&(e[d]=i)}}))}function L(e,d,a){if(d&&e){if(!a)return e[d];for(var t=d.split("."),i=e,s=0;s1;)if(null==(i=i[t.shift()]))return a;var s=i[t[0]];return null!=s?s:a},set:function(e,d,a){if(null!=e){var t=d.split("."),i=e;t.forEach((function(e,d){i[e]||(i[e]={}),d0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),d)}function V(e,d){var a;return function(){for(var t=[],i=0;ia;(e()||l)&&(d(),o=!0,null!=s&&(window.clearInterval(s),s=null),l&&t&&console.warn(t))};l(),o||(s=window.setInterval(l,10))}function W(e){e&&e()}var j,U=Object.freeze({__proto__:null,doOnce:D,warnOnce:v,errorOnce:M,getFunctionName:w,isFunction:x,executeInAWhile:E,executeNextVMTurn:F,executeAfter:k,debounce:V,throttle:H,waitUntil:N,compose:function(){for(var e=[],d=0;d0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Q=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i<\/script>\n \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise");else if(e.moduleBased||void 0===e.moduleBased){var l=null===(i=Object.entries(j).find((function(e){var a=z(e,2);return a[0],a[1]===d})))||void 0===i?void 0:i[0];s="AG Grid: unable to use ".concat(a," as the ").concat(l," is not registered").concat(e.areGridScopedModules?" for gridId: ".concat(t):"",". Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { ").concat(l," } from '").concat(d,"';\n \n ModuleRegistry.registerModules([ ").concat(l," ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/")}else s="AG Grid: unable to use ".concat(a," as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n \n import 'ag-grid-enterprise';\n \nFor more info see: https://www.ag-grid.com/javascript-grid/packages/");return D((function(){console.warn(s)}),o),!1},e.__isRegistered=function(d,a){var t;return!!e.globalModulesMap[d]||!!(null===(t=e.gridModulesMap[a])||void 0===t?void 0:t[d])},e.__getRegisteredModules=function(d){return Q(Q([],z(r(e.globalModulesMap)),!1),z(r(e.gridModulesMap[d]||{})),!1)},e.__getGridRegisteredModules=function(d){var a;return r(null!==(a=e.gridModulesMap[d])&&void 0!==a?a:{})||[]},e.__isPackageBased=function(){return!e.moduleBased},e.globalModulesMap={},e.gridModulesMap={},e.areGridScopedModules=!1,e}(),Y=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},$=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i> creating ag-Application Context"),this.createBeans();var a=this.getBeanInstances();this.wireBeans(a),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return r(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,d){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],d),e},e.prototype.wireBeans=function(e,d){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),i(d)&&e.forEach(d),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),y(this.beanWrappers,(function(d,a){var t;a.bean.__agBeanMetaData&&a.bean.__agBeanMetaData.autowireMethods&&a.bean.__agBeanMetaData.autowireMethods.agConstructor&&(t=a.bean.__agBeanMetaData.autowireMethods.agConstructor);var i=e.getBeansForParameters(t,a.bean.name),s=new(a.bean.bind.apply(a.bean,$([null],Y(i),!1)));a.beanInstance=s}));var d=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: ".concat(d))},e.prototype.createBeanWrapper=function(e){var d=e.__agBeanMetaData;if(!d){var a=void 0;return a=e.prototype.constructor?w(e.prototype.constructor):""+e,void console.error("Context item ".concat(a," is not a bean"))}var t={bean:e,beanInstance:null,beanName:d.beanName};this.beanWrappers[d.beanName]=t},e.prototype.autoWireBeans=function(e){var d=this;e.forEach((function(e){d.forEachMetaDataInHierarchy(e,(function(a,t){var i=a.agClassAttributes;i&&i.forEach((function(a){var i=d.lookupBeanInstance(t,a.beanName,a.optional);e[a.attributeName]=i}))}))}))},e.prototype.methodWireBeans=function(e){var d=this;e.forEach((function(e){d.forEachMetaDataInHierarchy(e,(function(a,t){y(a.autowireMethods,(function(a,i){if("agConstructor"!==a){var s=d.getBeansForParameters(i,t);e[a].apply(e,s)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,d){for(var a=Object.getPrototypeOf(e);null!=a;){var t=a.constructor;if(t.hasOwnProperty("__agBeanMetaData"))d(t.__agBeanMetaData,this.getBeanName(t));a=Object.getPrototypeOf(a)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var d=e.toString();return d.substring(9,d.indexOf("("))},e.prototype.getBeansForParameters=function(e,d){var a=this,t=[];return e&&y(e,(function(e,i){var s=a.lookupBeanInstance(d,i);t[Number(e)]=s})),t},e.prototype.lookupBeanInstance=function(e,d,a){if(void 0===a&&(a=!1),this.destroyed)return this.logger.log("AG Grid: bean reference ".concat(d," is used after the grid is destroyed!")),null;if("context"===d)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(d))return this.contextParams.providedBeanInstances[d];var t=this.beanWrappers[d];return t?t.beanInstance:(a||console.error("AG Grid: unable to find bean reference ".concat(d," while initialising ").concat(e)),null)},e.prototype.callLifeCycleMethods=function(e,d){var a=this;e.forEach((function(e){return a.callLifeCycleMethodsOnBean(e,d)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,d,a){var t={};this.forEachMetaDataInHierarchy(e,(function(e){var i=e[d];i&&i.forEach((function(e){e!=a&&(t[e]=!0)}))})),Object.keys(t).forEach((function(d){return e[d]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,K.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var d=this;return e?(e.forEach((function(e){d.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var a=e;"function"===typeof a.destroy&&a.destroy()})),[]):[]},e.prototype.isDestroyed=function(){return this.destroyed},e.prototype.getGridId=function(){return this.contextParams.gridId},e}();function J(e,d,a){var t=oe(e.constructor);t.preConstructMethods||(t.preConstructMethods=[]),t.preConstructMethods.push(d)}function Z(e,d,a){var t=oe(e.constructor);t.postConstructMethods||(t.postConstructMethods=[]),t.postConstructMethods.push(d)}function ee(e,d,a){var t=oe(e.constructor);t.preDestroyMethods||(t.preDestroyMethods=[]),t.preDestroyMethods.push(d)}function de(e){return function(d){oe(d).beanName=e}}function ae(e){return function(d,a,t){ie(d,e,!1,d,a,null)}}function te(e){return function(d,a,t){ie(d,e,!0,d,a,null)}}function ie(e,d,a,t,i,s){if(null!==d)if("number"!==typeof s){var o=oe(e.constructor);o.agClassAttributes||(o.agClassAttributes=[]),o.agClassAttributes.push({attributeName:i,beanName:d,optional:a})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function se(e){return function(d,a,t){var i,s="function"==typeof d?d:d.constructor;if("number"===typeof t){var o=void 0;a?(i=oe(s),o=a):(i=oe(s),o="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[o]||(i.autowireMethods[o]={}),i.autowireMethods[o][t]=e}}}function oe(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var le=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},me=function(e,d){return function(a,t){d(a,t,e)}},ue=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,d,a,t,i){if(void 0===t&&(t=null),void 0===i&&(i=null),this.frameworkOverrides=a,this.gridOptionsService=d,t){var s=d.useAsyncEvents();this.addGlobalListener(t,s)}i&&this.addGlobalListener(i,!1)},e.prototype.getListeners=function(e,d,a){var t=d?this.allAsyncListeners:this.allSyncListeners,i=t.get(e);return!i&&a&&(i=new Set,t.set(e,i)),i},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,d,a){void 0===a&&(a=!1),this.getListeners(e,a,!0).add(d)},e.prototype.removeEventListener=function(e,d,a){void 0===a&&(a=!1);var t=this.getListeners(e,a,!1);t&&(t.delete(d),0===t.size&&(a?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,d){void 0===d&&(d=!1),(d?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,d){void 0===d&&(d=!1),(d?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){var d=e;if(this.gridOptionsService){var a=this.gridOptionsService,t=a.api,i=a.columnApi,s=a.context;d.api=t,d.columnApi=i,d.context=s}this.dispatchToListeners(d,!0),this.dispatchToListeners(d,!1),this.firedEvents[d.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,d){var a,t=this,i=e.type;if(d&&"event"in e){var s=e.event;s instanceof Event&&(e.eventPath=s.composedPath())}var o=null!==(a=this.getListeners(i,d,!1))&&void 0!==a?a:new Set,l=new Set(o);l.size>0&&function(a,i){a.forEach((function(a){i.has(a)&&(d?t.dispatchAsync((function(){return a(e)})):a(e))}))}(l,o),new Set(d?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(a){d?t.dispatchAsync((function(){return t.frameworkOverrides.dispatchEvent(i,(function(){return a(i,e)}),!0)})):t.frameworkOverrides.dispatchEvent(i,(function(){return a(i,e)}),!0)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},le([me(0,se("loggerFactory")),me(1,se("gridOptionsService")),me(2,se("frameworkOverrides")),me(3,se("globalEventListener")),me(4,se("globalSyncEventListener"))],e.prototype,"setBeans",null),e=le([de("eventService")],e)}(),ne=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},re={resizable:!0,sortable:!0},fe=0;function pe(){return fe++}var ce=function(){function e(e,d,a,t){this.instanceId=pe(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new ue,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=d,this.colId=a,this.primary=t,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?"asc"!==e.sort&&"desc"!==e.sort||(this.sort=e.sort):"asc"!==e.initialSort&&"desc"!==e.initialSort||(this.sort=e.initialSort);var d=e.sortIndex,a=e.initialSortIndex;void 0!==d?null!==d&&(this.sortIndex=d):null!==a&&(this.sortIndex=a);var t=e.hide,i=e.initialHide;this.visible=void 0!==t?!t:!i,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var s=e.flex,o=e.initialFlex;void 0!==s?this.flex=s:void 0!==o&&(this.flex=o)},e.prototype.setColDef=function(e,d,a){void 0===a&&(a="api"),this.colDef=e,this.userProvidedColDef=d,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged",a))},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()},e.prototype.initDotNotation=function(){var e=this.gridOptionsService.get("suppressFieldDotNotation");this.fieldContainsDots=i(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=i(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.initTooltip=function(){this.tooltipEnabled=i(this.colDef.tooltipField)||i(this.colDef.tooltipValueGetter)||i(this.colDef.tooltipComponent)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var d=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(d,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(s(this.colDef)||s(this.colDef.showRowGroup))return!1;var d=!0===this.colDef.showRowGroup,a=this.colDef.showRowGroup===e;return d||a},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.addEventListener=function(e,d){this.eventService.addEventListener(e,d)},e.prototype.removeEventListener=function(e,d){this.eventService.removeEventListener(e,d)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},e.prototype.isSuppressNavigable=function(e){if("boolean"===typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"===typeof this.colDef.suppressNavigable){var d=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(d)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsService.get("enableGroupEdit"))&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!this.colDef.suppressFillHandle},e.prototype.isAutoHeight=function(){return!!this.colDef.autoHeight},e.prototype.isAutoHeaderHeight=function(){return!!this.colDef.autoHeaderHeight},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!!this.getColDefValue("resizable")},e.prototype.getColDefValue=function(e){var d;return null!==(d=this.colDef[e])&&void 0!==d?d:re[e]},e.prototype.isColumnFunc=function(e,d){return"boolean"===typeof d?d:"function"===typeof d&&d(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(e,d){void 0===d&&(d="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",d))},e.prototype.createColumnEvent=function(e,d){return{type:e,column:this,columns:[this],source:d,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(e,d){void 0===d&&(d="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",d))),this.dispatchStateUpdatedEvent("sort")},e.prototype.setMenuVisible=function(e,d){void 0===d&&(d="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",d)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortable=function(){return!!this.getColDefValue("sortable")},e.prototype.isSortAscending=function(){return"asc"===this.sort},e.prototype.isSortDescending=function(){return"desc"===this.sort},e.prototype.isSortNone=function(){return s(this.sort)},e.prototype.isSorting=function(){return i(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e,this.dispatchStateUpdatedEvent("sortIndex")},e.prototype.setAggFunc=function(e){this.aggFunc=e,this.dispatchStateUpdatedEvent("aggFunc")},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(e,d){void 0===d&&(d="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",d)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(e,d,a){void 0===d&&(d="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",d)));var t=this.createColumnEvent("filterChanged",d);a&&O(t,a),this.eventService.dispatchEvent(t)},e.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},e.prototype.setPinned=function(e){this.pinned=!0===e||"left"===e?"left":"right"===e?"right":null,this.dispatchStateUpdatedEvent("pinned")},e.prototype.setFirstRightPinned=function(e,d){void 0===d&&(d="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",d)))},e.prototype.setLastLeftPinned=function(e,d){void 0===d&&(d="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",d)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},e.prototype.isPinnedLeft=function(){return"left"===this.pinned},e.prototype.isPinnedRight=function(){return"right"===this.pinned},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(e,d){void 0===d&&(d="api");var a=!0===e;this.visible!==a&&(this.visible=a,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",d))),this.dispatchStateUpdatedEvent("hide")},e.prototype.isVisible=function(){return this.visible},e.prototype.isSpanHeaderHeight=function(){var e=this.getColDef();return!e.suppressSpanHeaderHeight&&!e.autoHeaderHeight},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.colId},e.prototype.getUniqueId=function(){return this.colId},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},e.prototype.setAutoHeaderHeight=function(e){var d=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,d},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.getColSpan=function(e){if(s(this.colDef.colSpan))return 1;var d=this.createBaseColDefParams(e),a=this.colDef.colSpan(d);return Math.max(a,1)},e.prototype.getRowSpan=function(e){if(s(this.colDef.rowSpan))return 1;var d=this.createBaseColDefParams(e),a=this.colDef.rowSpan(d);return Math.max(a,1)},e.prototype.setActualWidth=function(e,d,a){void 0===d&&(d="api"),void 0===a&&(a=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==d&&"gridInitializing"!==d&&(this.flex=null),a||this.fireColumnWidthChangedEvent(d)),this.dispatchStateUpdatedEvent("width")},e.prototype.fireColumnWidthChangedEvent=function(e){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",e))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e),this.dispatchStateUpdatedEvent("flex")},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),i(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(e,d){void 0===d&&(d="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",d))),this.dispatchStateUpdatedEvent("rowGroup")},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(e,d){void 0===d&&(d="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",d))),this.dispatchStateUpdatedEvent("pivot")},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(e,d){void 0===d&&(d="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",d)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var d=this.getColDef().menuTabs;return null==d&&(d=e),d},e.prototype.dispatchStateUpdatedEvent=function(d){this.eventService.dispatchEvent({type:e.EVENT_STATE_UPDATED,key:d})},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_COL_DEF_CHANGED="colDefChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",e.EVENT_STATE_UPDATED="columnStateUpdated",ne([ae("gridOptionsService")],e.prototype,"gridOptionsService",void 0),ne([ae("columnUtils")],e.prototype,"columnUtils",void 0),ne([ae("columnHoverService")],e.prototype,"columnHoverService",void 0),ne([Z],e.prototype,"initialise",null),e}(),_e=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ye=function(){function e(e,d,a,t){this.localEventService=new ue,this.expandable=!1,this.instanceId=pe(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=d,this.expanded=!!e&&!!e.openByDefault,this.padding=a,this.level=t}return e.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},e.prototype.reset=function(e,d){this.colGroupDef=e,this.level=d,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(d){this.expanded=void 0!==d&&d;var a={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(a)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(d){this.children&&this.children.forEach((function(a){a instanceof ce?d.push(a):a instanceof e&&a.addLeafColumns(d)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var d=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((function(e){return e.addEventListener("visibleChanged",d)})),this.expandableListenerRemoveCallback=function(){e.getLeafColumns().forEach((function(e){return e.removeEventListener("visibleChanged",d)})),e.expandableListenerRemoveCallback=null}},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var d=!1,a=!1,t=!1,i=this.findChildrenRemovingPadding(),s=0,o=i.length;s=0&&(e[a]=e[e.length-1],e.pop())}function Se(e,d){var a=e.indexOf(d);a>=0&&e.splice(a,1)}function Oe(e,d){for(var a=0;a-1}function Ge(e){return[].concat.apply([],e)}function De(e,d){null!=d&&null!=e&&d.forEach((function(d){return e.push(d)}))}var ve=Object.freeze({__proto__:null,firstExistingValue:qe,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:be,areEqual:Pe,shallowCompare:function(e,d){return Pe(e,d)},sortNumerically:he,removeRepeatsFromArray:function(e,d){if(e)for(var a=e.length-2;a>=0;a--){var t=e[a]===d,i=e[a+1]===d;t&&i&&e.splice(a+1,1)}},removeFromUnorderedArray:Te,removeFromArray:Se,removeAllFromUnorderedArray:Oe,removeAllFromArray:Le,insertIntoArray:ge,insertArrayIntoArray:function(e,d,a){if(null!=e&&null!=d)for(var t=d.length-1;t>=0;t--){ge(e,d[t],a)}},moveInArray:Ie,includes:Be,flatten:Ge,pushAll:De,toStrings:function(e){return e.map(l)},forEachReverse:function(e,d){if(null!=e)for(var a=e.length-1;a>=0;a--)d(e[a],a)}}),Me="__ag_Grid_Stop_Propagation",we=["touchstart","touchend","touchmove","touchcancel","scroll"],xe={};function Ee(e){e[Me]=!0}function Re(e){return!0===e[Me]}var Ae=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(d){if("boolean"===typeof xe[d])return xe[d];var a=document.createElement(e[d]||"div");return xe[d="on"+d]=d in a}}();function Fe(e,d,a){for(var t=d;t;){var i=e.getDomData(t,a);if(i)return i;t=t.parentElement}return null}function ke(e,d){return!(!d||!e)&&He(d).indexOf(e)>=0}function Ve(e){for(var d=[],a=e.target;a;)d.push(a),a=a.parentElement;return d}function He(e){var d=e;return d.path?d.path:d.composedPath?d.composedPath():Ve(d)}function Ne(e,d,a,t){var i=Be(we,a)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(d,a,t,i)}var We=Object.freeze({__proto__:null,stopPropagationForAgGrid:Ee,isStopPropagationForAgGrid:Re,isEventSupported:Ae,getCtrlForEventTarget:Fe,isElementInEventPath:ke,createEventPath:Ve,getEventPath:He,addSafePassiveEventListener:Ne}),je=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ue=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,d){this.localEventService||(this.localEventService=new ue),this.localEventService.addEventListener(e,d)},e.prototype.removeEventListener=function(e,d){this.localEventService&&this.localEventService.removeEventListener(e,d)},e.prototype.dispatchEventAsync=function(e){var d=this;window.setTimeout((function(){return d.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,d,a){var t=this;if(!this.destroyed){e instanceof HTMLElement?Ne(this.getFrameworkOverrides(),e,d,a):e.addEventListener(d,a);var i=function(){return e.removeEventListener(d,a),t.destroyFunctions=t.destroyFunctions.filter((function(e){return e!==i})),null};return this.destroyFunctions.push(i),i}},e.prototype.setupGridOptionListener=function(e,d){var a=this;this.gridOptionsService.addEventListener(e,d);var t=function(){return a.gridOptionsService.removeEventListener(e,d),a.destroyFunctions=a.destroyFunctions.filter((function(e){return e!==t})),null};this.destroyFunctions.push(t)},e.prototype.addManagedPropertyListener=function(e,d){this.destroyed||this.setupGridOptionListener(e,d)},e.prototype.addManagedPropertyListeners=function(e,d){var a=this;if(!this.destroyed){var t=e.join("-")+this.propertyListenerId++,i=function(e){if(e.changeSet){if(e.changeSet&&e.changeSet.id===a.lastChangeSetIdLookup[t])return;a.lastChangeSetIdLookup[t]=e.changeSet.id}var i={type:"gridPropertyChanged",changeSet:e.changeSet};d(i)};e.forEach((function(e){return a.setupGridOptionListener(e,i)}))}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,d){var a=this.createBean(e,d);return this.addDestroyFunc(this.destroyBean.bind(this,e,d)),a},e.prototype.createBean=function(e,d,a){return(d||this.getContext()).createBean(e,a)},e.prototype.destroyBean=function(e,d){return(d||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,d){var a=this;return e&&e.forEach((function(e){return a.destroyBean(e,d)})),[]},e.EVENT_DESTROYED="destroyed",je([ae("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),je([ae("context")],e.prototype,"context",void 0),je([ae("eventService")],e.prototype,"eventService",void 0),je([ae("gridOptionsService")],e.prototype,"gridOptionsService",void 0),je([ae("localeService")],e.prototype,"localeService",void 0),je([ae("environment")],e.prototype,"environment",void 0),je([ee],e.prototype,"destroy",null),e}(),ze=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Qe=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ke=function(e,d){return function(a,t){d(a,t,e)}},Ye=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return ze(d,e),d.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},d.prototype.createColumnTree=function(e,d,a){var t=new p,i=this.extractExistingTreeData(a),s=i.existingCols,o=i.existingGroups,l=i.existingColKeys;t.addExistingKeys(l);var m=this.recursivelyCreateColumns(e,0,d,s,t,o),u=this.findMaxDept(m,0);this.logger.log("Number of levels for grouped columns is "+u);var n=this.balanceColumnTree(m,0,u,t);return this.columnUtils.depthFirstOriginalTreeSearch(null,n,(function(e,d){e instanceof ye&&e.setupExpandable(),e.setOriginalParent(d)})),{columnTree:n,treeDept:u}},d.prototype.extractExistingTreeData=function(e){var d=[],a=[],t=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof ye){var i=e;a.push(i)}else{var s=e;t.push(s.getId()),d.push(s)}})),{existingCols:d,existingGroups:a,existingColKeys:t}},d.prototype.createForAutoGroups=function(e,d){var a=this;return e.map((function(e){return a.createAutoGroupTreeItem(d,e)}))},d.prototype.createAutoGroupTreeItem=function(e,d){for(var a=this.findDepth(e),t=d,i=a-1;i>=0;i--){var s=new ye(null,"FAKE_PATH_".concat(d.getId(),"}_").concat(i),!0,i);this.createBean(s),s.setChildren([t]),t.setOriginalParent(s),t=s}return 0===a&&d.setOriginalParent(null),t},d.prototype.findDepth=function(e){for(var d=0,a=e;a&&a[0]&&a[0]instanceof ye;)d++,a=a[0].getChildren();return d},d.prototype.balanceColumnTree=function(e,d,a,t){for(var i=[],s=0;s=d;r--){var f=t.getUniqueKey(null,null),p=this.createMergedColGroupDef(null),c=new ye(p,f,!0,d);this.createBean(c),n&&n.setChildren([c]),n=c,u||(u=n)}if(u&&n){if(i.push(u),e.some((function(e){return e instanceof ye}))){n.setChildren([o]);continue}n.setChildren(e);break}i.push(o)}}return i},d.prototype.findMaxDept=function(e,d){for(var a=d,t=0;t=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Xe=function(){function e(e,d,a,t){this.displayedChildren=[],this.localEventService=new ue,this.groupId=d,this.partId=a,this.providedColumnGroup=e,this.pinned=t}return e.createUniqueId=function(e,d){return e+"_"+d},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.partId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(d){d instanceof e&&d.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsService.get("enableRtl")){var d=be(this.displayedChildren).getLeft();this.setLeft(d)}else{var a=this.displayedChildren[0].getLeft();this.setLeft(a)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(d){this.oldLeft=d,this.left!==d&&(this.left=d,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,d){this.localEventService.addEventListener(e,d)},e.prototype.removeEventListener=function(e,d){this.localEventService.removeEventListener(e,d)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getPartId=function(){return this.partId},e.prototype.isChildInThisGroupDeepSearch=function(d){var a=!1;return this.children.forEach((function(t){d===t&&(a=!0),t instanceof e&&t.isChildInThisGroupDeepSearch(d)&&(a=!0)})),a},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(d){e+=d.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(d){d.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(d){e+=d.getMinWidth()||0})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(d){this.displayedChildren.forEach((function(a){a instanceof ce?d.push(a):a instanceof e&&a.addDisplayedLeafColumns(d)}))},e.prototype.addLeafColumns=function(d){this.children.forEach((function(a){a instanceof ce?d.push(a):a instanceof e&&a.addLeafColumns(d)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var d=this;this.displayedChildren=[];for(var a=this;null!=a&&a.isPadding();)a=a.getParent();if(!(!!a&&a.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(t){if(!(t instanceof e&&(!t.displayedChildren||!t.displayedChildren.length)))switch(t.getColumnGroupShow()){case"open":a.providedColumnGroup.isExpanded()&&d.displayedChildren.push(t);break;case"closed":a.providedColumnGroup.isExpanded()||d.displayedChildren.push(t);break;default:d.displayedChildren.push(t)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",$e([ae("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),Je=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED="suppressMovableColumns",e.EVENT_SUPPRESS_MENU_HIDE_CHANGED="suppressMenuHide",e.EVENT_SUPPRESS_FIELD_DOT_NOTATION="suppressFieldDotNotation",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_CUT_START="cutStart",e.EVENT_CUT_END="cutEnd",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_RANGE_DELETE_START="rangeDeleteStart",e.EVENT_RANGE_DELETE_END="rangeDeleteEnd",e.EVENT_UNDO_STARTED="undoStarted",e.EVENT_UNDO_ENDED="undoEnded",e.EVENT_REDO_STARTED="redoStarted",e.EVENT_REDO_ENDED="redoEnded",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_TOOLTIP_SHOW="tooltipShow",e.EVENT_TOOLTIP_HIDE="tooltipHide",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_STORE_REFRESHED="storeRefreshed",e.EVENT_STATE_UPDATED="stateUpdated",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",e.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_STORE_UPDATED="storeUpdated",e.EVENT_FILTER_DESTROYED="filterDestroyed",e.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",e.EVENT_ROW_COUNT_READY="rowCountReady",e.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",e.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",e.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",e.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",e.EVENT_SIDE_BAR_UPDATED="sideBarUpdated",e}(),Ze=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var d,a=this.existingIds[e];return d="number"!==typeof a?0:a+1,this.existingIds[e]=d,d},e}(),ed=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),dd=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ad="ag-Grid-AutoColumn",td=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return ed(d,e),d.prototype.createAutoGroupColumns=function(e){var d=this,a=[],t=this.gridOptionsService.get("treeData"),i=this.gridOptionsService.isGroupMultiAutoColumn();return t&&i&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),i=!1),i?e.forEach((function(e,t){a.push(d.createOneAutoGroupColumn(e,t))})):a.push(this.createOneAutoGroupColumn()),a},d.prototype.updateAutoGroupColumns=function(e){var d=this;e.forEach((function(e,a){return d.updateOneAutoGroupColumn(e,a)}))},d.prototype.createOneAutoGroupColumn=function(e,d){var a;a=e?"".concat(ad,"-").concat(e.getId()):ad;var t=this.createAutoGroupColDef(a,e,d);t.colId=a;var i=new ce(t,null,a,!0);return this.context.createBean(i),i},d.prototype.updateOneAutoGroupColumn=function(e,d){var a=e.getColDef(),t="string"==typeof a.showRowGroup?a.showRowGroup:void 0,i=null!=t?this.columnModel.getPrimaryColumn(t):void 0,s=this.createAutoGroupColDef(e.getId(),null!==i&&void 0!==i?i:void 0,d);e.setColDef(s,null),this.columnFactory.applyColumnState(e,s)},d.prototype.createAutoGroupColDef=function(e,d,a){var t=this.createBaseColDef(d);(O(t,this.gridOptionsService.get("autoGroupColumnDef")),t=this.columnFactory.addColumnDefaultAndTypes(t,e),this.gridOptionsService.get("treeData"))||s(t.field)&&s(t.valueGetter)&&s(t.filterValueGetter)&&"agGroupColumnFilter"!==t.filter&&(t.filter=!1);a&&a>0&&(t.headerCheckboxSelection=!1);var i=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=t.valueGetter||null!=t.field;return i&&!o&&(t.sortIndex=void 0,t.initialSort=void 0),t},d.prototype.createBaseColDef=function(e){var d=this.gridOptionsService.get("autoGroupColumnDef"),a={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(d&&(d.cellRenderer||d.cellRendererSelector)||(a.cellRenderer="agGroupCellRenderer"),e){var t=e.getColDef();Object.assign(a,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:t.headerValueGetter}),t.cellRenderer&&Object.assign(a,{cellRendererParams:{innerRenderer:t.cellRenderer,innerRendererParams:t.cellRendererParams}}),a.showRowGroup=e.getColId()}else a.showRowGroup=!0;return a},dd([ae("columnModel")],d.prototype,"columnModel",void 0),dd([ae("columnFactory")],d.prototype,"columnFactory",void 0),d=dd([de("autoGroupColService")],d)}(Ue),id=/[&<>"']/g,sd={"&":"&","<":"<",">":">",'"':""","'":"'"};function od(e,d){if(null==e)return null;var a=e.toString().toString();return d?a:a.replace(id,(function(e){return sd[e]}))}function ld(e){if(!e||null==e)return null;return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")}function md(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLocaleLowerCase())}))}var ud=Object.freeze({__proto__:null,utf8_encode:function(e){var d=String.fromCharCode;function a(e,a){return d(e>>a&63|128)}function t(e){if(e>=0&&e<=31&&10!==e){var t=e.toString(16).toUpperCase().padStart(4,"0");return"_x".concat(t,"_")}if(0==(4294967168&e))return d(e);var i="";return 0==(4294965248&e)?i=d(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),i=d(e>>12&15|224),i+=a(e,6)):0==(4292870144&e)&&(i=d(e>>18&7|240),i+=a(e,12),i+=a(e,6)),i+=d(63&e|128)}for(var i=function(e){var d=[];if(!e)return[];for(var a,t,i=e.length,s=0;s=55296&&a<=56319&&s=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},cd=function(e,d){return function(a,t){d(a,t,e)}},_d=function(e,d){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&d.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Cd=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},bd=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.primaryHeaderRowCount=0,d.secondaryHeaderRowCount=0,d.gridHeaderRowCount=0,d.displayedColumnsLeft=[],d.displayedColumnsRight=[],d.displayedColumnsCenter=[],d.displayedColumns=[],d.displayedColumnsAndGroupsMap={},d.viewportColumns=[],d.viewportColumnsHash="",d.headerViewportColumns=[],d.viewportColumnsCenter=[],d.headerViewportColumnsCenter=[],d.autoHeightActiveAtLeastOnce=!1,d.rowGroupColumns=[],d.valueColumns=[],d.pivotColumns=[],d.ready=!1,d.autoGroupsNeedBuilding=!1,d.forceRecreateAutoGroups=!1,d.pivotMode=!1,d.bodyWidth=0,d.leftWidth=0,d.rightWidth=0,d.bodyWidthDirty=!0,d.shouldQueueResizeOperations=!1,d.resizeOperationQueue=[],d}return fd(d,e),d.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.get("suppressColumnVirtualisation");var d=this.gridOptionsService.get("pivotMode");this.isPivotSettingAllowed(d)&&(this.pivotMode=d),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],(function(){return e.buildAutoGroupColumns()})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListeners(["defaultColDef","columnTypes","suppressFieldDotNotation"],(function(d){return e.onSharedColDefChanged(d.source)})),this.addManagedPropertyListener("pivotMode",(function(d){return e.setPivotMode(e.gridOptionsService.get("pivotMode"),d.source)})),this.addManagedListener(this.eventService,Je.EVENT_FIRST_DATA_RENDERED,(function(){return e.onFirstDataRendered()}))},d.prototype.buildAutoGroupColumns=function(){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged"))},d.prototype.onAutoGroupColumnDefChanged=function(){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns)},d.prototype.onSharedColDefChanged=function(e){void 0===e&&(e="api"),this.gridColumns&&(this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns),this.createColumnsFromColumnDefs(!0,e))},d.prototype.setColumnDefs=function(e,d){void 0===d&&(d="api");var a=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(a,d)},d.prototype.recreateColumnDefs=function(e){void 0===e&&(e="api"),this.onSharedColDefChanged(e)},d.prototype.destroyOldColumns=function(e,d){var a={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){a[e.getInstanceId()]=e})),d&&this.columnUtils.depthFirstOriginalTreeSearch(null,d,(function(e){a[e.getInstanceId()]=null}));var t=Object.values(a).filter((function(e){return null!=e}));this.destroyBeans(t)}},d.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},d.prototype.createColumnsFromColumnDefs=function(e,d){var a=this;void 0===d&&(d="api");var t=e?this.compareColumnStatesAndDispatchEvents(d):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,s=this.primaryColumnTree,o=this.columnFactory.createColumnTree(this.columnDefs,!0,s);this.destroyOldColumns(this.primaryColumnTree,o.columnTree),this.primaryColumnTree=o.columnTree,this.primaryHeaderRowCount=o.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return a.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(d,i),this.extractPivotColumns(d,i),this.extractValueColumns(d,i),this.ready=!0;var l=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||l||this.autoGroupsNeedBuilding)&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gridOptionsService.get("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(d),this.checkViewportColumns()),this.dispatchEverythingChanged(d),t&&t(),this.dispatchNewColumnsLoaded(d)},d.prototype.dispatchNewColumnsLoaded=function(e){var d={type:Je.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(d),"gridInitializing"===e&&this.onColumnsReady()},d.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var d={type:Je.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(d)},d.prototype.orderGridColumnsLikePrimary=function(){var e=this,d=this.primaryColumns;if(d){var a=d.filter((function(d){return e.gridColumns.indexOf(d)>=0})),t=this.gridColumns.filter((function(e){return a.indexOf(e)<0}));this.gridColumns=Cd(Cd([],yd(t),!1),yd(a),!1),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},d.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},d.prototype.setViewport=function(){this.gridOptionsService.get("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},d.prototype.getDisplayedColumnsStartingAt=function(e){for(var d=e,a=[];null!=d;)a.push(d),d=this.getDisplayedColAfter(d);return a},d.prototype.checkViewportColumns=function(e){if((void 0===e&&(e=!1),null!=this.displayedColumnsCenter)&&this.extractViewport()){var d={type:Je.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(d)}},d.prototype.setViewportPosition=function(e,d,a){void 0===a&&(a=!1),(e!==this.scrollWidth||d!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=d,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(a))},d.prototype.isPivotMode=function(){return this.pivotMode},d.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsService.get("treeData")||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},d.prototype.setPivotMode=function(e,d){if(void 0===d&&(d="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=e,this.gridColumns)){this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(d);var a={type:Je.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(a)}},d.prototype.getSecondaryPivotColumn=function(e,d){if(s(this.secondaryColumns))return null;var a=this.getPrimaryColumn(d),t=null;return this.secondaryColumns.forEach((function(d){var i=d.getColDef().pivotKeys,s=d.getColDef().pivotValueColumn;Pe(i,e)&&s===a&&(t=d)})),t},d.prototype.setBeans=function(e){this.logger=e.create("columnModel")},d.prototype.setFirstRightAndLastLeftPinned=function(e){var d,a;this.gridOptionsService.get("enableRtl")?(d=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,a=this.displayedColumnsRight?be(this.displayedColumnsRight):null):(d=this.displayedColumnsLeft?be(this.displayedColumnsLeft):null,a=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(t){t.setLastLeftPinned(t===d,e),t.setFirstRightPinned(t===a,e)}))},d.prototype.autoSizeColumns=function(e){var d=this;if(this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return d.autoSizeColumns(e)}));else{var a=e.columns,t=e.skipHeader,i=e.skipHeaderGroups,s=e.stopAtGroup,o=e.source,l=void 0===o?"api":o;this.animationFrameService.flushAllFrames();for(var m=[],u=-1,n=null!=t?t:this.gridOptionsService.get("skipHeaderOnAutoSize"),r=null!=i?i:n;0!==u;)u=0,this.actionOnGridColumns(a,(function(e){if(m.indexOf(e)>=0)return!1;var a=d.autoWidthCalculator.getPreferredWidthForColumn(e,n);if(a>0){var t=d.normaliseColumnWidth(e,a);e.setActualWidth(t,l),m.push(e),u++}return!0}),l);r||this.autoSizeColumnGroupsByColumns(a,l,s),this.dispatchColumnResizedEvent(m,!0,"autosizeColumns")}},d.prototype.dispatchColumnResizedEvent=function(e,d,a,t){if(void 0===t&&(t=null),e&&e.length){var i={type:Je.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:t,finished:d,source:a};this.eventService.dispatchEvent(i)}},d.prototype.dispatchColumnChangedEvent=function(e,d,a){var t={type:e,columns:d,column:d&&1==d.length?d[0]:null,source:a};this.eventService.dispatchEvent(t)},d.prototype.dispatchColumnMovedEvent=function(e){var d=e.movedColumns,a=e.source,t=e.toIndex,i=e.finished,s={type:Je.EVENT_COLUMN_MOVED,columns:d,column:d&&1===d.length?d[0]:null,toIndex:t,finished:i,source:a};this.eventService.dispatchEvent(s)},d.prototype.dispatchColumnPinnedEvent=function(e,d){if(e.length){var a=1===e.length?e[0]:null,t=this.getCommonValue(e,(function(e){return e.getPinned()})),i={type:Je.EVENT_COLUMN_PINNED,pinned:null!=t?t:null,columns:e,column:a,source:d};this.eventService.dispatchEvent(i)}},d.prototype.dispatchColumnVisibleEvent=function(e,d){if(e.length){var a=1===e.length?e[0]:null,t=this.getCommonValue(e,(function(e){return e.isVisible()})),i={type:Je.EVENT_COLUMN_VISIBLE,visible:t,columns:e,column:a,source:d};this.eventService.dispatchEvent(i)}},d.prototype.autoSizeColumn=function(e,d,a){void 0===a&&(a="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:d,skipHeaderGroups:!0,source:a})},d.prototype.autoSizeColumnGroupsByColumns=function(e,d,a){var t,i,s,o,l,m=new Set;this.getGridColumns(e).forEach((function(e){for(var d=e.getParent();d&&d!=a;)d.isPadding()||m.add(d),d=d.getParent()}));try{for(var u=qd(m),n=u.next();!n.done;n=u.next()){var r=n.value;try{for(var f=(s=void 0,qd(this.ctrlsService.getHeaderRowContainerCtrls())),p=f.next();!p.done;p=f.next()){if(l=p.value.getHeaderCtrlForColumn(r))break}}catch(c){s={error:c}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(s)throw s.error}}l&&l.resizeLeafColumnsToFit(d)}}catch(_){t={error:_}}finally{try{n&&!n.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}return[]},d.prototype.autoSizeAllColumns=function(e,d){var a=this;if(void 0===d&&(d="api"),this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return a.autoSizeAllColumns(e,d)}));else{var t=this.getAllDisplayedColumns();this.autoSizeColumns({columns:t,skipHeader:e,source:d})}},d.prototype.getColumnsFromTree=function(e){var d=[],a=function(e){for(var t=0;t=0},d.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},d.prototype.getViewportColumns=function(){return this.viewportColumns},d.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},d.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},d.prototype.isColSpanActive=function(){return this.colSpanActive},d.prototype.getDisplayedColumnsForRow=function(e,d,a,t){for(var i,s=[],o=null,l=function(l){var m,u=d[l],n=d.length-l,r=Math.min(u.getColSpan(e),n),f=[u];if(r>1){for(var p=r-1,c=1;c<=p;c++)f.push(d[l+c]);l+=p}if(a?(m=!1,f.forEach((function(e){a(e)&&(m=!0)}))):m=!0,m){if(0===s.length&&o)!!t&&t(u)&&s.push(o);s.push(u)}o=u,i=l},m=0;md.viewportLeft}))},d.prototype.isColumnAtEdge=function(e,d){var a=this.getAllDisplayedColumns();if(!a.length)return!1;var t,i="first"===d;if(e instanceof Xe){var s=e.getDisplayedLeafColumns();if(!s.length)return!1;t=i?s[0]:be(s)}else t=e;return(i?a[0]:be(a))===t},d.prototype.getAriaColumnIndex=function(e){var d;return d=e instanceof Xe?e.getLeafColumns()[0]:e,this.getAllGridColumns().indexOf(d)+1},d.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},d.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var d=e.getLeft()||0,a=d+e.getActualWidth(),t=this.viewportLeft-200,i=this.viewportRight+200;return!(di&&a>i)},d.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},d.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},d.prototype.updatePrimaryColumnList=function(e,d,a,t,i,s){var l=this;if(void 0===s&&(s="api"),e&&!o(e)){var m=!1;if(e.forEach((function(e){var i=l.getPrimaryColumn(e);if(i){if(a){if(d.indexOf(i)>=0)return;d.push(i)}else{if(d.indexOf(i)<0)return;Se(d,i)}t(i),m=!0}})),m){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s);var u={type:i,columns:d,column:1===d.length?d[0]:null,source:s};this.eventService.dispatchEvent(u)}}},d.prototype.setRowGroupColumns=function(e,d){void 0===d&&(d="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),d)},d.prototype.setRowGroupActive=function(e,d,a){e!==d.isRowGroupActive()&&(d.setRowGroupActive(e,a),e&&!this.gridOptionsService.get("suppressRowGroupHidesColumns")&&this.setColumnVisible(d,!1,a),e||this.gridOptionsService.get("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(d,!0,a))},d.prototype.addRowGroupColumn=function(e,d){void 0===d&&(d="api"),e&&this.addRowGroupColumns([e],d)},d.prototype.addRowGroupColumns=function(e,d){void 0===d&&(d="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Je.EVENT_COLUMN_ROW_GROUP_CHANGED,d)},d.prototype.removeRowGroupColumns=function(e,d){void 0===d&&(d="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Je.EVENT_COLUMN_ROW_GROUP_CHANGED,d)},d.prototype.removeRowGroupColumn=function(e,d){void 0===d&&(d="api"),e&&this.removeRowGroupColumns([e],d)},d.prototype.addPivotColumns=function(e,d){void 0===d&&(d="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,d)}),Je.EVENT_COLUMN_PIVOT_CHANGED,d)},d.prototype.setPivotColumns=function(e,d){void 0===d&&(d="api"),this.setPrimaryColumnList(e,this.pivotColumns,Je.EVENT_COLUMN_PIVOT_CHANGED,!0,(function(e,a){a.setPivotActive(e,d)}),d)},d.prototype.addPivotColumn=function(e,d){void 0===d&&(d="api"),this.addPivotColumns([e],d)},d.prototype.removePivotColumns=function(e,d){void 0===d&&(d="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,d)}),Je.EVENT_COLUMN_PIVOT_CHANGED,d)},d.prototype.removePivotColumn=function(e,d){void 0===d&&(d="api"),this.removePivotColumns([e],d)},d.prototype.setPrimaryColumnList=function(e,d,a,t,s,o){var l=this;if(this.gridColumns){var m=new Map;d.forEach((function(e,d){return m.set(e,d)})),d.length=0,i(e)&&e.forEach((function(e){var a=l.getPrimaryColumn(e);a&&d.push(a)})),d.forEach((function(e,d){var a=m.get(e);void 0!==a?t&&a!==d||m.delete(e):m.set(e,0)})),(this.primaryColumns||[]).forEach((function(e){var a=d.indexOf(e)>=0;s(a,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(o),this.dispatchColumnChangedEvent(a,Cd([],yd(m.keys()),!1),o)}},d.prototype.setValueColumns=function(e,d){void 0===d&&(d="api"),this.setPrimaryColumnList(e,this.valueColumns,Je.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),d)},d.prototype.setValueActive=function(e,d,a){if(e!==d.isValueActive()&&(d.setValueActive(e,a),e&&!d.getAggFunc())){var t=this.aggFuncService.getDefaultAggFunc(d);d.setAggFunc(t)}},d.prototype.addValueColumns=function(e,d){void 0===d&&(d="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Je.EVENT_COLUMN_VALUE_CHANGED,d)},d.prototype.addValueColumn=function(e,d){void 0===d&&(d="api"),e&&this.addValueColumns([e],d)},d.prototype.removeValueColumn=function(e,d){void 0===d&&(d="api"),this.removeValueColumns([e],d)},d.prototype.removeValueColumns=function(e,d){void 0===d&&(d="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Je.EVENT_COLUMN_VALUE_CHANGED,d)},d.prototype.normaliseColumnWidth=function(e,d){var a=e.getMinWidth();i(a)&&d0?s+=a:o=!1})),a>=t&&(!o||a<=s)},d.prototype.resizeColumnSets=function(e){var d=this,a=e.resizeSets,t=e.finished,s=e.source;if(!a||a.every((function(e){return d.checkMinAndMaxWidthsForSet(e)}))){var o=[],l=[];a.forEach((function(e){var d=e.width,a=e.columns,t=e.ratios,m={},u={};a.forEach((function(e){return l.push(e)}));for(var n=!0,r=0,f=function(){if(++r>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";n=!1;var e=[],s=0,o=d;a.forEach((function(d,a){if(u[d.getId()])o-=m[d.getId()];else{e.push(d);var i=t[a];s+=i}}));var l=1/s;e.forEach((function(a,s){var r;s===e.length-1?r=o:(r=Math.round(t[s]*d*l),o-=r);var f=a.getMinWidth(),p=a.getMaxWidth();i(f)&&r0&&r>p&&(r=p,u[a.getId()]=!0,n=!0),m[a.getId()]=r}))};n;){if("break"===f())break}a.forEach((function(e){var d=m[e.getId()];e.getActualWidth()!==d&&(e.setActualWidth(d,s),o.push(e))}))}));var m=o.length>0,u=[];m&&(u=this.refreshFlexedColumns({resizingCols:l,skipSetLeft:!0}),this.setLeftValues(s),this.updateBodyWidths(),this.checkViewportColumns());var n=l.concat(u);(m||t)&&this.dispatchColumnResizedEvent(n,t,s,u)}else if(t){var r=a&&a.length>0?a[0].columns:null;this.dispatchColumnResizedEvent(r,t,s)}},d.prototype.setColumnAggFunc=function(e,d,a){if(void 0===a&&(a="api"),e){var t=this.getPrimaryColumn(e);t&&(t.setAggFunc(d),this.dispatchColumnChangedEvent(Je.EVENT_COLUMN_VALUE_CHANGED,[t],a))}},d.prototype.moveRowGroupColumn=function(e,d,a){if(void 0===a&&(a="api"),!this.isRowGroupEmpty()){var t=this.rowGroupColumns[e],i=this.rowGroupColumns.slice(e,d);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(d,0,t);var s={type:Je.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:i,column:1===i.length?i[0]:null,source:a};this.eventService.dispatchEvent(s)}},d.prototype.moveColumns=function(e,d,a,t){if(void 0===a&&(a="api"),void 0===t&&(t=!0),this.gridColumns){if(this.columnAnimationService.start(),d>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+d),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var i=this.getGridColumns(e);!this.doesMovePassRules(i,d)||(Ie(this.gridColumns,i,d),this.updateDisplayedColumns(a),this.dispatchColumnMovedEvent({movedColumns:i,source:a,toIndex:d,finished:t}),this.columnAnimationService.finish())}},d.prototype.doesMovePassRules=function(e,d){var a=this.getProposedColumnOrder(e,d);return this.doesOrderPassRules(a)},d.prototype.doesOrderPassRules=function(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)},d.prototype.getProposedColumnOrder=function(e,d){var a=this.gridColumns.slice();return Ie(a,e,d),a},d.prototype.sortColumnsLikeGridColumns=function(e){var d=this;!e||e.length<=1||(e.filter((function(e){return d.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,a){return d.gridColumns.indexOf(e)-d.gridColumns.indexOf(a)})))},d.prototype.doesMovePassLockedPositions=function(e){var d=0,a=!0;return e.forEach((function(e){var t,i=(t=e.getColDef().lockPosition)?!0===t||"left"===t?0:2:1;it.getLeafColumns().length-1&&(d=!1)}}})),d},d.prototype.moveColumn=function(e,d,a){void 0===a&&(a="api"),this.moveColumns([e],d,a)},d.prototype.moveColumnByIndex=function(e,d,a){if(void 0===a&&(a="api"),this.gridColumns){var t=this.gridColumns[e];this.moveColumn(t,d,a)}},d.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var d=this.primaryColumns.slice();return this.gridColsArePrimary?d.sort((function(d,a){return e.gridColumns.indexOf(d)-e.gridColumns.indexOf(a)})):this.lastPrimaryOrder&&d.sort((function(d,a){return e.lastPrimaryOrder.indexOf(d)-e.lastPrimaryOrder.indexOf(a)})),this.columnDefFactory.buildColumnDefs(d,this.rowGroupColumns,this.pivotColumns)}},d.prototype.getBodyContainerWidth=function(){return this.bodyWidth},d.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},d.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),d=this.getWidthOfColsInList(this.displayedColumnsLeft),a=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==d||this.rightWidth!==a){this.bodyWidth=e,this.leftWidth=d,this.rightWidth=a;var t={type:Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(t)}},d.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},d.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},d.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},d.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},d.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},d.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},d.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},d.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},d.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},d.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},d.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},d.prototype.getAllGridColumns=function(){var e;return null!==(e=this.gridColumns)&&void 0!==e?e:[]},d.prototype.isEmpty=function(){return o(this.gridColumns)},d.prototype.isRowGroupEmpty=function(){return o(this.rowGroupColumns)},d.prototype.setColumnVisible=function(e,d,a){void 0===a&&(a="api"),this.setColumnsVisible([e],d,a)},d.prototype.setColumnsVisible=function(e,d,a){void 0===d&&(d=!1),void 0===a&&(a="api"),this.applyColumnState({state:e.map((function(e){return{colId:"string"===typeof e?e:e.getColId(),hide:!d}}))},a)},d.prototype.setColumnPinned=function(e,d,a){void 0===a&&(a="api"),e&&this.setColumnsPinned([e],d,a)},d.prototype.setColumnsPinned=function(e,d,a){var t;(void 0===a&&(a="api"),this.gridColumns)&&(this.gridOptionsService.isDomLayout("print")?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),t=!0===d||"left"===d?"left":"right"===d?"right":null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==t&&(e.setPinned(t),!0)}),a,(function(){return{type:Je.EVENT_COLUMN_PINNED,pinned:t,column:null,columns:null,source:a}})),this.columnAnimationService.finish()))},d.prototype.actionOnGridColumns=function(e,d,a,t){var s=this;if(!o(e)){var l=[];if(e.forEach((function(e){var a=s.getGridColumn(e);a&&(!1!==d(a)&&l.push(a))})),l.length&&(this.updateDisplayedColumns(a),i(t)&&t)){var m=t();m.columns=l,m.column=1===l.length?l[0]:null,this.eventService.dispatchEvent(m)}}},d.prototype.getDisplayedColBefore=function(e){var d=this.getAllDisplayedColumns(),a=d.indexOf(e);return a>0?d[a-1]:null},d.prototype.getDisplayedColAfter=function(e){var d=this.getAllDisplayedColumns(),a=d.indexOf(e);return a0},d.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},d.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},d.prototype.createStateItemFromColumn=function(e){var d=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,a=e.isPivotActive()?this.pivotColumns.indexOf(e):null,t=e.isValueActive()?e.getAggFunc():null,i=null!=e.getSort()?e.getSort():null,s=null!=e.getSortIndex()?e.getSortIndex():null,o=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:i,sortIndex:s,aggFunc:t,rowGroup:e.isRowGroupActive(),rowGroupIndex:d,pivot:e.isPivotActive(),pivotIndex:a,flex:o}},d.prototype.getColumnState=function(){if(s(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},d.prototype.orderColumnStateList=function(e){var d=nd(this.gridColumns.map((function(e,d){return[e.getColId(),d]})));e.sort((function(e,a){return(d.has(e.colId)?d.get(e.colId):-1)-(d.has(a.colId)?d.get(a.colId):-1)}))},d.prototype.resetColumnState=function(e){var d=this;if(void 0===e&&(e="api"),!o(this.primaryColumns)){var a=this.getColumnsFromTree(this.primaryColumnTree),t=[],i=1e3,l=1e3,m=[];this.groupAutoColumns&&(m=m.concat(this.groupAutoColumns)),a&&(m=m.concat(a)),m.forEach((function(e){var a=d.getColumnStateFromColDef(e);s(a.rowGroupIndex)&&a.rowGroup&&(a.rowGroupIndex=i++),s(a.pivotIndex)&&a.pivot&&(a.pivotIndex=l++),t.push(a)})),this.applyColumnState({state:t,applyOrder:!0},e)}},d.prototype.getColumnStateFromColDef=function(e){var d=function(e,d){return null!=e?e:null!=d?d:null},a=e.getColDef(),t=d(a.sort,a.initialSort),i=d(a.sortIndex,a.initialSortIndex),s=d(a.hide,a.initialHide),o=d(a.pinned,a.initialPinned),l=d(a.width,a.initialWidth),m=d(a.flex,a.initialFlex),u=d(a.rowGroupIndex,a.initialRowGroupIndex),n=d(a.rowGroup,a.initialRowGroup);null!=u||null!=n&&0!=n||(u=null,n=null);var r=d(a.pivotIndex,a.initialPivotIndex),f=d(a.pivot,a.initialPivot);null!=r||null!=f&&0!=f||(r=null,f=null);var p=d(a.aggFunc,a.initialAggFunc);return{colId:e.getColId(),sort:t,sortIndex:i,hide:s,pinned:o,width:l,flex:m,rowGroup:n,rowGroupIndex:u,pivot:f,pivotIndex:r,aggFunc:p}},d.prototype.applyColumnState=function(e,d){var a=this;if(o(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: 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."),!1;var t=function(t,i,s){var o=a.compareColumnStatesAndDispatchEvents(d);a.autoGroupsNeedBuilding=!0;var l=i.slice(),m={},u={},n=[],r=[],f=0,p=a.rowGroupColumns.slice(),c=a.pivotColumns.slice();t.forEach((function(t){var i=t.colId||"";if(i.startsWith(ad))return n.push(t),void r.push(t);var o=s(i);o?(a.syncColumnWithStateItem(o,t,e.defaultState,m,u,!1,d),Se(l,o)):(r.push(t),f+=1)}));var _=function(t){return a.syncColumnWithStateItem(t,null,e.defaultState,m,u,!1,d)};l.forEach(_);var y=function(e,d,a,t){var i=e[a.getId()],s=e[t.getId()],o=null!=i,l=null!=s;if(o&&l)return i-s;if(o)return-1;if(l)return 1;var m=d.indexOf(a),u=d.indexOf(t),n=m>=0;return n&&u>=0?m-u:n?-1:1};a.rowGroupColumns.sort(y.bind(a,m,p)),a.pivotColumns.sort(y.bind(a,u,c)),a.updateGridColumns();var C=a.groupAutoColumns?a.groupAutoColumns.slice():[];return n.forEach((function(t){var i=a.getAutoColumn(t.colId);Se(C,i),a.syncColumnWithStateItem(i,t,e.defaultState,null,null,!0,d)})),C.forEach(_),a.applyOrderAfterApplyState(e),a.updateDisplayedColumns(d),a.dispatchEverythingChanged(d),o(),{unmatchedAndAutoStates:r,unmatchedCount:f}};this.columnAnimationService.start();var s=t(e.state||[],this.primaryColumns||[],(function(e){return a.getPrimaryColumn(e)})),l=s.unmatchedAndAutoStates,m=s.unmatchedCount;return(l.length>0||i(e.defaultState))&&(m=t(l,this.secondaryColumns||[],(function(e){return a.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===m},d.prototype.applyOrderAfterApplyState=function(e){var d=this;if(e.applyOrder&&e.state){var a=[],t={};e.state.forEach((function(e){if(e.colId&&!t[e.colId]){var i=d.gridColumnsMap[e.colId];i&&(a.push(i),t[e.colId]=!0)}}));var i=0;this.gridColumns.forEach((function(e){var d=e.getColId();null!=t[d]||(d.startsWith(ad)?ge(a,e,i++):a.push(e))})),a=this.placeLockedColumns(a),this.doesMovePassMarryChildren(a)?this.gridColumns=a:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},d.prototype.compareColumnStatesAndDispatchEvents=function(e){var d=this,a={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},t=this.getColumnState(),i={};return t.forEach((function(e){i[e.colId]=e})),function(){var s=d.getPrimaryAndSecondaryAndAutoColumns(),o=function(a,t,i,s){if(!Pe(t.map(s),i.map(s))){var o=new Set(t);i.forEach((function(e){o.delete(e)||o.add(e)}));var l=Cd([],yd(o),!1),m={type:a,columns:l,column:1===l.length?l[0]:null,source:e};d.eventService.dispatchEvent(m)}},l=function(e){var d=[];return s.forEach((function(a){var t=i[a.getColId()];t&&e(t,a)&&d.push(a)})),d},m=function(e){return e.getColId()};o(Je.EVENT_COLUMN_ROW_GROUP_CHANGED,a.rowGroupColumns,d.rowGroupColumns,m),o(Je.EVENT_COLUMN_PIVOT_CHANGED,a.pivotColumns,d.pivotColumns,m);var u=l((function(e,d){var a=null!=e.aggFunc,t=a!=d.isValueActive(),i=a&&e.aggFunc!=d.getAggFunc();return t||i}));u.length>0&&d.dispatchColumnChangedEvent(Je.EVENT_COLUMN_VALUE_CHANGED,u,e);d.dispatchColumnResizedEvent(l((function(e,d){return e.width!=d.getActualWidth()})),!0,e);d.dispatchColumnPinnedEvent(l((function(e,d){return e.pinned!=d.getPinned()})),e);d.dispatchColumnVisibleEvent(l((function(e,d){return e.hide==d.isVisible()})),e);l((function(e,d){return e.sort!=d.getSort()||e.sortIndex!=d.getSortIndex()})).length>0&&d.sortController.dispatchSortChangedEvents(e),d.normaliseColumnMovedEventForColumnState(t,e)}},d.prototype.getCommonValue=function(e,d){if(e&&0!=e.length){for(var a=d(e[0]),t=1;t=r&&e.setActualWidth(p,l)}var c=m("sort").value1;void 0!==c&&("desc"===c||"asc"===c?e.setSort(c,l):e.setSort(void 0,l));var _=m("sortIndex").value1;if(void 0!==_&&e.setSortIndex(_),!o&&e.isPrimary()){var y=m("aggFunc").value1;void 0!==y&&("string"===typeof y?(e.setAggFunc(y),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(i(y)&&console.warn("AG Grid: 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."),e.isValueActive()&&(e.setValueActive(!1,l),Se(this.valueColumns,e))));var C=m("rowGroup","rowGroupIndex"),q=C.value1,b=C.value2;void 0===q&&void 0===b||("number"===typeof b||q?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),t&&"number"===typeof b&&(t[e.getId()]=b)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),Se(this.rowGroupColumns,e)));var P=m("pivot","pivotIndex"),h=P.value1,T=P.value2;void 0===h&&void 0===T||("number"===typeof T||h?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),s&&"number"===typeof T&&(s[e.getId()]=T)):e.isPivotActive()&&(e.setPivotActive(!1,l),Se(this.pivotColumns,e)))}}},d.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},d.prototype.getColumns=function(e,d){var a=[];return e&&e.forEach((function(e){var t=d(e);t&&a.push(t)})),a},d.prototype.getColumnWithValidation=function(e){if(null==e)return null;var d=this.getGridColumn(e);return d||console.warn("AG Grid: could not find column "+e),d},d.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},d.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},d.prototype.lookupGridColumn=function(e){return this.gridColumnsMap[e]},d.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},d.prototype.getColumn=function(e,d,a){if(!e||!a)return null;if("string"==typeof e&&a[e])return a[e];for(var t=0;t=0:r?void 0!==c?c:!!(void 0!==y)&&(null!=y&&y>=0):d.indexOf(a)>=0)&&((r?null!=_||null!=y:null!=_)?l.push(a):n.push(a))}));var r=function(e){var d=t(e.getColDef()),a=i(e.getColDef());return null!=d?d:a};l.sort((function(e,d){var a=r(e),t=r(d);return a===t?0:a=0&&f.push(e)})),n.forEach((function(e){f.indexOf(e)<0&&f.push(e)})),d.forEach((function(e){f.indexOf(e)<0&&a(e,!1)})),f.forEach((function(e){d.indexOf(e)<0&&a(e,!0)})),f},d.prototype.extractPivotColumns=function(e,d){this.pivotColumns=this.extractColumns(d,this.pivotColumns,(function(d,a){return d.setPivotActive(a,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},d.prototype.resetColumnGroupState=function(e){if(void 0===e&&(e="api"),this.primaryColumnTree){var d=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof ye){var a=e.getColGroupDef(),t={groupId:e.getGroupId(),open:a?a.openByDefault:void 0};d.push(t)}})),this.setColumnGroupState(d,e)}},d.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(d){d instanceof ye&&e.push({groupId:d.getGroupId(),open:d.isExpanded()})})),e},d.prototype.setColumnGroupState=function(e,d){var a=this;if(void 0===d&&(d="api"),this.gridBalancedTree){this.columnAnimationService.start();var t=[];if(e.forEach((function(e){var d=e.groupId,i=e.open,s=a.getProvidedColumnGroup(d);s&&s.isExpanded()!==i&&(a.logger.log("columnGroupOpened("+s.getGroupId()+","+i+")"),s.setExpanded(i),t.push(s))})),this.updateGroupsAndDisplayedColumns(d),this.setFirstRightAndLastLeftPinned(d),t.length){var i={type:Je.EVENT_COLUMN_GROUP_OPENED,columnGroup:1===ye.length?t[0]:void 0,columnGroups:t};this.eventService.dispatchEvent(i)}this.columnAnimationService.finish()}},d.prototype.setColumnGroupOpened=function(e,d,a){var t;void 0===a&&(a="api"),t=e instanceof ye?e.getId():e||"",this.setColumnGroupState([{groupId:t,open:d}],a)},d.prototype.getProvidedColumnGroup=function(e){"string"!==typeof e&&console.error("AG Grid: group key must be a string");var d=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(a){a instanceof ye&&a.getId()===e&&(d=a)})),d},d.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&s(this.secondaryColumns)?this.gridColumns.filter((function(d){var a=e.groupAutoColumns&&Be(e.groupAutoColumns,d),t=e.valueColumns&&Be(e.valueColumns,d);return a||t})):this.gridColumns.filter((function(d){return e.groupAutoColumns&&Be(e.groupAutoColumns,d)||d.isVisible()}))},d.prototype.checkColSpanActiveInCols=function(e){var d=!1;return e.forEach((function(e){i(e.getColDef().colSpan)&&(d=!0)})),d},d.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};this.gridColumns.forEach((function(d){var a=d.getColDef(),t=a.showRowGroup;a&&i(t)&&(e.groupDisplayColumns.push(d),"string"===typeof t?e.groupDisplayColumnsMap[t]=d:!0===t&&e.getRowGroupColumns().forEach((function(a){e.groupDisplayColumnsMap[a.getId()]=d})))}))},d.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},d.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},d.prototype.updateDisplayedColumns=function(e){var d=this.calculateColumnsForDisplay();this.buildDisplayedTrees(d),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},d.prototype.isSecondaryColumnsPresent=function(){return i(this.secondaryColumns)},d.prototype.setSecondaryColumns=function(e,d){var a=this;if(void 0===d&&(d="api"),this.gridColumns){var t=e&&e.length>0;if(t||!s(this.secondaryColumns)){if(t){this.processSecondaryColumnDefinitions(e);var i=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,i.columnTree),this.secondaryBalancedTree=i.columnTree,this.secondaryHeaderRowCount=i.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return a.secondaryColumnsMap[e.getId()]=e})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(d)}}},d.prototype.processSecondaryColumnDefinitions=function(e){var d=this.gridOptionsService.get("processPivotResultColDef"),a=this.gridOptionsService.get("processPivotResultColGroupDef");if(d||a){var t=function(e){e.forEach((function(e){if(i(e.children)){var s=e;a&&a(s),t(s.children)}else{d&&d(e)}}))};e&&t(e)}},d.prototype.updateGridColumns=function(){var e,d=this,a=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var t=this.secondaryColumns.every((function(e){return void 0!==d.gridColumnsMap[e.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,t&&(e=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,e=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&e){var i=nd(this.groupAutoColumns.map((function(e){return[e,!0]})));e=e.filter((function(e){return!i.has(e)})),e=Cd(Cd([],yd(this.groupAutoColumns),!1),yd(e),!1)}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(e),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(e){return d.gridColumnsMap[e.getId()]=e})),this.setAutoHeightActive(),!Pe(a,this.gridBalancedTree)){var s={type:Je.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(s)}},d.prototype.setAutoHeightActive=function(){(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive)&&(this.autoHeightActiveAtLeastOnce=!0,this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide")||v("autoHeight columns only work with Client Side Row Model and Server Side Row Model."))},d.prototype.orderGridColsLike=function(e){if(!s(e)){var d=nd(e.map((function(e,d){return[e,d]}))),a=!0;if(this.gridColumns.forEach((function(e){d.has(e)&&(a=!1)})),!a){var t=nd(this.gridColumns.map((function(e){return[e,!0]}))),i=e.filter((function(e){return t.has(e)})),o=nd(i.map((function(e){return[e,!0]}))),l=this.gridColumns.filter((function(e){return!o.has(e)})),m=i.slice();l.forEach((function(e){var d=e.getOriginalParent();if(d){for(var a=[];!a.length&&d;){d.getLeafColumns().forEach((function(e){var d=m.indexOf(e)>=0,t=a.indexOf(e)<0;d&&t&&a.push(e)})),d=d.getOriginalParent()}if(a.length){var t=a.map((function(e){return m.indexOf(e)})),i=Math.max.apply(Math,Cd([],yd(t),!1));ge(m,e,i+1)}else m.push(e)}else m.push(e)})),this.gridColumns=m}}},d.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},d.prototype.refreshQuickFilterColumns=function(){var e,d=null!==(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)&&void 0!==e?e:[];this.groupAutoColumns&&(d=d.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.get("includeHiddenColumnsInQuickFilter")?d:d.filter((function(e){return e.isVisible()||e.isRowGroupActive()}))},d.prototype.placeLockedColumns=function(e){var d=[],a=[],t=[];return e.forEach((function(e){var i=e.getColDef().lockPosition;"right"===i?t.push(e):"left"===i||!0===i?d.push(e):a.push(e)})),Cd(Cd(Cd([],yd(d),!1),yd(a),!1),yd(t),!1)},d.prototype.addAutoGroupToGridColumns=function(){if(s(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},d.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},d.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var d={type:Je.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(d)},d.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.isAutoHeight()}))},d.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},d.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},d.prototype.joinDisplayedColumns=function(){this.gridOptionsService.get("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},d.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},d.prototype.setLeftValuesOfColumns=function(e){var d=this;if(this.primaryColumns){var a=this.primaryColumns.slice(0),t=this.gridOptionsService.get("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(i){if(t){var s=d.getWidthOfColsInList(i);i.forEach((function(d){s-=d.getActualWidth(),d.setLeft(s,e)}))}else{var o=0;i.forEach((function(d){d.setLeft(o,e),o+=d.getActualWidth()}))}Oe(a,i)})),a.forEach((function(d){d.setLeft(null,e)}))}},d.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof Xe&&e.checkLeft()}))}))},d.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,d){d.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ce&&d.push(e)}))},d.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},d.prototype.getVirtualHeaderGroupRow=function(e,d){var a;switch(e){case"left":a=this.viewportRowLeft[d];break;case"right":a=this.viewportRowRight[d];break;default:a=this.viewportRowCenter[d]}return s(a)&&(a=[]),a},d.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach((function(d){return e[d.getId()]=!0}));var d=function(a,t,i){for(var s=!1,o=0;o=0;l--)if(s.has(o[l])){t=l;break}var m=0,u=[],n=0,r=0;for(l=0;lt?(u.push(this.displayedColumnsCenter[l]),r+=this.displayedColumnsCenter[l].getFlex(),n+=null!==(d=this.displayedColumnsCenter[l].getMinWidth())&&void 0!==d?d:0):m+=this.displayedColumnsCenter[l].getActualWidth()}if(!u.length)return[];var f=[];m+n>this.flexViewportWidth&&(u.forEach((function(e){var d;return e.setActualWidth(null!==(d=e.getMinWidth())&&void 0!==d?d:0,a)})),f=u,u=[]);var p,c=[];e:for(;;){var _=(p=this.flexViewportWidth-m)/r;for(l=0;lP&&(q=P),q){y.setActualWidth(q,a),Te(u,y),r-=y.getFlex(),f.push(y),m+=y.getActualWidth();continue e}c[l]=Math.round(C)}break}var h=p;return u.forEach((function(e,d){e.setActualWidth(Math.min(c[d],h),a),f.push(e),h-=c[d]})),e.skipSetLeft||this.setLeftValues(a),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(f,!0,a,u),u},d.prototype.sizeColumnsToFit=function(e,d,a,t){var s,o,l,m,u,n=this;if(void 0===d&&(d="sizeColumnsToFit"),this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return n.sizeColumnsToFit(e,d,a,t)}));else{var r={};t&&(null===(s=null===t||void 0===t?void 0:t.columnLimits)||void 0===s||s.forEach((function(e){var d=e.key,a=_d(e,["key"]);r["string"===typeof d?d:d.getColId()]=a})));var f=this.getAllDisplayedColumns(),p=e===this.getWidthOfColsInList(f);if(!(e<=0||!f.length||p)){var c=[],_=[];f.forEach((function(e){!0===e.getColDef().suppressSizeToFit?_.push(e):c.push(e)}));var y=c.slice(0),C=!1,q=function(e){Se(c,e),_.push(e)};for(c.forEach((function(e){var a,i;e.resetActualWidth(d);var s=null===r||void 0===r?void 0:r[e.getId()],o=null!==(a=null===s||void 0===s?void 0:s.minWidth)&&void 0!==a?a:null===t||void 0===t?void 0:t.defaultMinWidth,l=null!==(i=null===s||void 0===s?void 0:s.maxWidth)&&void 0!==i?i:null===t||void 0===t?void 0:t.defaultMaxWidth,m=e.getActualWidth();"number"===typeof o&&ml&&e.setActualWidth(l,d,!0)}));!C;){C=!0;var b=e-this.getWidthOfColsInList(_);if(b<=0)c.forEach((function(e){var a,i,s=null!==(i=null===(a=null===r||void 0===r?void 0:r[e.getId()])||void 0===a?void 0:a.minWidth)&&void 0!==i?i:null===t||void 0===t?void 0:t.defaultMinWidth;"number"!==typeof s?e.setMinimum(d):e.setActualWidth(s,d,!0)}));else for(var P=b/this.getWidthOfColsInList(c),h=b,T=c.length-1;T>=0;T--){var S=c[T],O=null===r||void 0===r?void 0:r[S.getId()],L=null!==(o=null===O||void 0===O?void 0:O.minWidth)&&void 0!==o?o:null===t||void 0===t?void 0:t.defaultMinWidth,g=null!==(l=null===O||void 0===O?void 0:O.maxWidth)&&void 0!==l?l:null===t||void 0===t?void 0:t.defaultMaxWidth,I=null!==(m=S.getMinWidth())&&void 0!==m?m:0,B=null!==(u=S.getMaxWidth())&&void 0!==u?u:Number.MAX_VALUE,G="number"===typeof L&&L>I?L:S.getMinWidth(),D="number"===typeof g&&gD?(v=D,q(S),C=!1):0===T&&(v=h),S.setActualWidth(v,d,!0),h-=v}}y.forEach((function(e){e.fireColumnWidthChangedEvent(d)})),this.setLeftValues(d),this.updateBodyWidths(),a||this.dispatchColumnResizedEvent(y,!0,d)}}},d.prototype.buildDisplayedTrees=function(e){var d=[],a=[],t=[];e.forEach((function(e){switch(e.getPinned()){case"left":d.push(e);break;case"right":a.push(e);break;default:t.push(e)}}));var i=new Ze;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(d,i,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(a,i,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(t,i,null,this.displayedTreeCentre),this.updateDisplayedMap()},d.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var d=function(d){e.displayedColumnsAndGroupsMap[d.getUniqueId()]=d};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,d),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,d),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,d)},d.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},d.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof Xe&&e.calculateDisplayedColumns()}))},d.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},d.prototype.createGroupAutoColumnsIfNeeded=function(){var e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var d=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),a=this.pivotMode?this.gridOptionsService.get("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.gridOptionsService.get("treeData"))&&!a&&!d){var t=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);if(!this.autoColsEqual(t,this.groupAutoColumns)||e)return this.groupAutoColumns=t,!0}else this.groupAutoColumns=null;return!1},d.prototype.isGroupSuppressAutoColumn=function(){return"custom"===this.gridOptionsService.get("groupDisplayType")||"custom"===this.gridOptionsService.get("treeDataDisplayType")},d.prototype.autoColsEqual=function(e,d){return Pe(e,d,(function(e,d){return e.getColId()===d.getColId()}))},d.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,d){return e+d.getActualWidth()}),0)},d.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.get("enableRtl"),d=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&d.reverse();for(var a=0;athis.rowGroupColumns.findIndex((function(d){return d.getColId()===e.getColId()})))},d.prototype.generateColumnStateForRowGroupAndPivotIndexes=function(e,d){var a=this,t={},i=function(e,d,i,s,o,l){if(!d.length||!a.primaryColumns)return[];for(var m=Object.keys(e),u=new Set(m),n=new Set(m),r=new Set(d.map((function(e){var d=e.getColId();return n.delete(d),d})).concat(m)),f=[],p={},c=0,_=0;_=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Td=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return Pd(d,e),d.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.environment.getMinColWidth()},d.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:Number.MAX_SAFE_INTEGER},d.prototype.calculateColInitialWidth=function(e){var d,a=this.calculateColMinWidth(e),t=this.calculateColMaxWidth(e),i=m(e.width),s=m(e.initialWidth);return d=null!=i?i:null!=s?s:200,Math.max(Math.min(d,t),a)},d.prototype.getOriginalPathForColumn=function(e,d){var a=[],t=!1,i=function(d,s){for(var o=0;o=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ld=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return Sd(d,e),d.prototype.createDisplayedGroups=function(e,d,a,t){for(var i=this,s=this.mapOldGroupsById(t),o=[],l=e,m=function(){var e=l;l=[];for(var t=0,m=function(m){var u=t;t=m;var n=e[u],r=(n instanceof Xe?n.getProvidedColumnGroup():n).getOriginalParent();if(null!=r){var f=i.createColumnGroup(r,d,s,a);for(p=u;p0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Id=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Md=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Rd=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.componentsMappedByName={},d}return xd(d,e),d.prototype.setupComponents=function(e){var d=this;e&&e.forEach((function(e){return d.addComponent(e)}))},d.prototype.addComponent=function(e){var d=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[d]=e.componentClass},d.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},d=Ed([de("agStackComponentsRegistry")],d)}(Ue);function Ad(e,d,a){null==a||"string"===typeof a&&""==a?kd(e,d):Fd(e,d,a)}function Fd(e,d,a){e.setAttribute(Vd(d),a.toString())}function kd(e,d){e.removeAttribute(Vd(d))}function Vd(e){return"aria-".concat(e)}function Hd(e,d){d?e.setAttribute("role",d):e.removeAttribute("role")}function Nd(e){return"asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none"}function Wd(e){return parseInt(e.getAttribute("aria-level"),10)}function jd(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Ud(e){return e.getAttribute("aria-label")}function zd(e,d){Ad(e,"label",d)}function Qd(e,d){Ad(e,"labelledby",d)}function Kd(e,d){Ad(e,"description",d)}function Yd(e,d){Ad(e,"live",d)}function $d(e,d){Ad(e,"level",d)}function Xd(e,d){Ad(e,"disabled",d)}function Jd(e,d){Ad(e,"hidden",d)}function Zd(e,d){Ad(e,"activedescendant",d)}function ea(e,d){Fd(e,"expanded",d)}function da(e){kd(e,"expanded")}function aa(e,d){Fd(e,"setsize",d)}function ta(e,d){Fd(e,"posinset",d)}function ia(e,d){Fd(e,"multiselectable",d)}function sa(e,d){Fd(e,"rowcount",d)}function oa(e,d){Fd(e,"rowindex",d)}function la(e,d){Fd(e,"colcount",d)}function ma(e,d){Fd(e,"colindex",d)}function ua(e,d){Fd(e,"colspan",d)}function na(e,d){Fd(e,"sort",d)}function ra(e){kd(e,"sort")}function fa(e,d){Ad(e,"selected",d)}function pa(e,d){Ad(e,"controls",d.id),Qd(d,e.id)}function ca(e,d){return void 0===d?e("ariaIndeterminate","indeterminate"):!0===d?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var _a,ya,Ca,qa,ba,Pa,ha,Ta,Sa=Object.freeze({__proto__:null,setAriaRole:Hd,getAriaSortState:Nd,getAriaLevel:Wd,getAriaPosInSet:jd,getAriaLabel:Ud,setAriaLabel:zd,setAriaLabelledBy:Qd,setAriaDescription:Kd,setAriaDescribedBy:function(e,d){Ad(e,"describedby",d)},setAriaLive:Yd,setAriaAtomic:function(e,d){Ad(e,"atomic",d)},setAriaRelevant:function(e,d){Ad(e,"relevant",d)},setAriaLevel:$d,setAriaDisabled:Xd,setAriaHidden:Jd,setAriaActiveDescendant:Zd,setAriaExpanded:ea,removeAriaExpanded:da,setAriaSetSize:aa,setAriaPosInSet:ta,setAriaMultiSelectable:ia,setAriaRowCount:sa,setAriaRowIndex:oa,setAriaColCount:la,setAriaColIndex:ma,setAriaColSpan:ua,setAriaSort:na,removeAriaSort:ra,setAriaSelected:fa,setAriaChecked:function(e,d){Fd(e,"checked",void 0===d?"mixed":d)},setAriaControls:pa,getAriaCheckboxStateName:ca});function Oa(){return void 0===_a&&(_a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),_a}function La(){if(void 0===ya)if(Oa()){var e=navigator.userAgent.match(/version\/(\d+)/i);e&&(ya=null!=e[1]?parseFloat(e[1]):0)}else ya=0;return ya}function ga(){if(void 0===Ca){var e=window;Ca=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Ca}function Ia(){return void 0===qa&&(qa=/(firefox)/i.test(navigator.userAgent)),qa}function Ba(){return void 0===ba&&(ba=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),ba}function Ga(){return void 0===Pa&&(Pa=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),Pa}function Da(){return!Oa()||La()>=15}function va(e){if(!e)return null;var d=e.tabIndex,a=e.getAttribute("tabIndex");return-1!==d||null!==a&&(""!==a||Ia())?d.toString():null}function Ma(){if(!document.body)return-1;var e=1e6,d=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,a=document.createElement("div");for(document.body.appendChild(a);;){var t=2*e;if(a.style.height=t+"px",t>d||a.clientHeight!==t)break;e=t}return document.body.removeChild(a),e}function wa(){var e,d,a;return null!==(d=null===(e=document.body)||void 0===e?void 0:e.clientWidth)&&void 0!==d?d:window.innerHeight||(null===(a=document.documentElement)||void 0===a?void 0:a.clientWidth)||-1}function xa(){var e,d,a;return null!==(d=null===(e=document.body)||void 0===e?void 0:e.clientHeight)&&void 0!==d?d:window.innerHeight||(null===(a=document.documentElement)||void 0===a?void 0:a.clientHeight)||-1}function Ea(){return null==Ta&&Ra(),Ta}function Ra(){var e=document.body,d=document.createElement("div");d.style.width=d.style.height="100px",d.style.opacity="0",d.style.overflow="scroll",d.style.msOverflowStyle="scrollbar",d.style.position="absolute",e.appendChild(d);var a=d.offsetWidth-d.clientWidth;0===a&&0===d.clientWidth&&(a=null),d.parentNode&&d.parentNode.removeChild(d),null!=a&&(Ta=a,ha=0===a)}function Aa(){return null==ha&&Ra(),ha}var Fa=Object.freeze({__proto__:null,isBrowserSafari:Oa,getSafariVersion:La,isBrowserChrome:ga,isBrowserFirefox:Ia,isMacOsUserAgent:Ba,isIOSUserAgent:Ga,browserSupportsPreventScroll:Da,getTabIndex:va,getMaxDivHeight:Ma,getBodyWidth:wa,getBodyHeight:xa,getScrollbarWidth:Ea,isInvisibleScrollbar:Aa});function ka(e,d){return e.toString().padStart(d,"0")}function Va(e,d){for(var a=[],t=e;t<=d;t++)a.push(t);return a}function Ha(e,d,a){return"number"!==typeof e?"":e.toString().replace(".",a).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1".concat(d))}var Na=Object.freeze({__proto__:null,padStartWidthZeros:ka,createArrayOfNumbers:Va,cleanNumber:function(e){return"string"===typeof e&&(e=parseInt(e,10)),"number"===typeof e?Math.floor(e):null},decToHex:function(e,d){for(var a="",t=0;t>>=8;return a},formatNumberTwoDecimalPlacesAndCommas:function(e,d,a){return"number"!==typeof e?"":Ha(Math.round(100*e)/100,d,a)},formatNumberCommas:Ha,sum:function(e){return null==e?null:e.reduce((function(e,d){return e+d}),0)}}),Wa=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o};function ja(e,d,a){if(void 0===d&&(d=!0),void 0===a&&(a="-"),!e)return null;var t=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return ka(e,2)})).join(a);return d&&(t+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return ka(e,2)})).join(":")),t}var Ua=function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function za(e,d){void 0===d&&(d="YYYY-MM-DD");var a=ka(e.getFullYear(),4),t=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s={YYYY:function(){return a.slice(a.length-4,a.length)},YY:function(){return a.slice(a.length-2,a.length)},Y:function(){return"".concat(e.getFullYear())},MMMM:function(){return t[e.getMonth()]},MMM:function(){return t[e.getMonth()].slice(0,3)},MM:function(){return ka(e.getMonth()+1,2)},Mo:function(){return"".concat(e.getMonth()+1).concat(Ua(e.getMonth()+1))},M:function(){return"".concat(e.getMonth()+1)},Do:function(){return"".concat(e.getDate()).concat(Ua(e.getDate()))},DD:function(){return ka(e.getDate(),2)},D:function(){return"".concat(e.getDate())},dddd:function(){return i[e.getDay()]},ddd:function(){return i[e.getDay()].slice(0,3)},dd:function(){return i[e.getDay()].slice(0,2)},do:function(){return"".concat(e.getDay()).concat(Ua(e.getDay()))},d:function(){return"".concat(e.getDay())}},o=new RegExp(Object.keys(s).join("|"),"g");return d.replace(o,(function(e){return e in s?s[e]():e}))}function Qa(e){if(!e)return null;var d=Wa(e.split(" "),2),a=d[0],t=d[1];if(!a)return null;var i=a.split("-").map((function(e){return parseInt(e,10)}));if(3!==i.filter((function(e){return!isNaN(e)})).length)return null;var s=Wa(i,3),o=s[0],l=s[1],m=s[2],u=new Date(o,l-1,m);if(u.getFullYear()!==o||u.getMonth()!==l-1||u.getDate()!==m)return null;if(!t||"00:00:00"===t)return u;var n=Wa(t.split(":").map((function(e){return parseInt(e,10)})),3),r=n[0],f=n[1],p=n[2];return r>=0&&r<24&&u.setHours(r),f>=0&&f<60&&u.setMinutes(f),p>=0&&p<60&&u.setSeconds(p),u}var Ka,Ya=Object.freeze({__proto__:null,serialiseDate:ja,dateToFormattedString:za,parseDateTimeFromString:Qa}),$a=function(e){var d="function"===typeof Symbol&&Symbol.iterator,a=d&&e[d],t=0;if(a)return a.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},Xa=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o};function Ja(e,d,a){for(var t=e.parentElement,i=t&&t.firstChild;i;)d&&i.classList.toggle(d,i===e),a&&i.classList.toggle(a,i!==e),i=i.nextSibling}var Za="[tabindex], input, select, button, textarea, [href]",et="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function dt(e){var d=Element.prototype.matches||Element.prototype.msMatchesSelector,a=d.call(e,"input, select, button, textarea"),t=d.call(e,et),i=Ct(e);return a&&!t&&i}function at(e,d,a){void 0===a&&(a={});var t=a.skipAriaHidden;e.classList.toggle("ag-hidden",!d),t||Jd(e,!d)}function tt(e,d,a){void 0===a&&(a={});var t=a.skipAriaHidden;e.classList.toggle("ag-invisible",!d),t||Jd(e,!d)}function it(e,d){var a="disabled",t=d?function(e){return e.setAttribute(a,"")}:function(e){return e.removeAttribute(a)};t(e),Et(e.querySelectorAll("input"),(function(e){return t(e)}))}function st(e,d,a){for(var t=0;e;){if(e.classList.contains(d))return!0;if(e=e.parentElement,"number"==typeof a){if(++t>a)break}else if(e===a)break}return!1}function ot(e){var d=window.getComputedStyle(e),a=d.height,t=d.width,i=d.borderTopWidth,s=d.borderRightWidth,o=d.borderBottomWidth,l=d.borderLeftWidth,m=d.paddingTop,u=d.paddingRight,n=d.paddingBottom,r=d.paddingLeft,f=d.marginTop,p=d.marginRight,c=d.marginBottom,_=d.marginLeft,y=d.boxSizing;return{height:parseFloat(a),width:parseFloat(t),borderTopWidth:parseFloat(i),borderRightWidth:parseFloat(s),borderBottomWidth:parseFloat(o),borderLeftWidth:parseFloat(l),paddingTop:parseFloat(m),paddingRight:parseFloat(u),paddingBottom:parseFloat(n),paddingLeft:parseFloat(r),marginTop:parseFloat(f),marginRight:parseFloat(p),marginBottom:parseFloat(c),marginLeft:parseFloat(_),boxSizing:y}}function lt(e){var d=ot(e);return"border-box"===d.boxSizing?d.height-d.paddingTop-d.paddingBottom:d.height}function mt(e){var d=ot(e);return"border-box"===d.boxSizing?d.width-d.paddingLeft-d.paddingRight:d.width}function ut(e){var d=ot(e),a=d.marginBottom+d.marginTop;return Math.ceil(e.offsetHeight+a)}function nt(e){var d=ot(e),a=d.marginLeft+d.marginRight;return Math.ceil(e.offsetWidth+a)}function rt(e){var d=e.getBoundingClientRect(),a=ot(e),t=a.borderTopWidth,i=a.borderLeftWidth,s=a.borderRightWidth,o=a.borderBottomWidth;return{top:d.top+(t||0),left:d.left+(i||0),right:d.right+(s||0),bottom:d.bottom+(o||0)}}function ft(){if("boolean"===typeof Ka)return Ka;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='
\n \n \n
',document.body.appendChild(e),e.scrollLeft=1,Ka=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Ka}function pt(e,d){var a=e.scrollLeft;return d&&(a=Math.abs(a),ga()&&!ft()&&(a=e.scrollWidth-e.clientWidth-a)),a}function ct(e,d,a){a&&(ft()?d*=-1:(Oa()||ga())&&(d=e.scrollWidth-e.clientWidth-d)),e.scrollLeft=d}function _t(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function yt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ct(e){var d=e;return d.checkVisibility?d.checkVisibility({checkVisibilityCSS:!0}):!(!e.offsetParent||"visible"!==window.getComputedStyle(e).visibility)}function qt(e){var d=document.createElement("div");return d.innerHTML=(e||"").trim(),d.firstChild}function bt(e){return e&&e.clientHeight?e.clientHeight:0}function Pt(e){return e&&e.clientWidth?e.clientWidth:0}function ht(e,d,a){if(!a||a.nextSibling!==d){var t=document.activeElement,i=d.contains(t);a?a.nextSibling?e.insertBefore(d,a.nextSibling):e.appendChild(d):e.firstChild&&e.firstChild!==d&&e.insertAdjacentElement("afterbegin",d),i&&t&&Da()&&t.focus({preventScroll:!0})}}function Tt(e,d){for(var a=0;a=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};function kt(e,d,a){var t={},i=e.filter((function(e){return!d.some((function(d){return d===e}))}));return i.length>0&&i.forEach((function(e){return t[e]=Vt(e,a).values})),t}function Vt(e,d,a,t){var i,s,o=d.map((function(d,a){return{value:d,relevance:Ht(e.toLowerCase(),d.toLocaleLowerCase()),idx:a}}));if(o.sort((function(e,d){return d.relevance-e.relevance})),a&&(o=o.filter((function(e){return 0!==e.relevance}))),o.length>0&&t&&t>0){var l=o[0].relevance*t;o=o.filter((function(e){return l-e.relevance<0}))}var m=[],u=[];try{for(var n=Ft(o),r=n.next();!r.done;r=n.next()){var f=r.value;m.push(f.value),u.push(f.idx)}}catch(p){i={error:p}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}}return{values:m,indices:u}}function Ht(e,d){for(var a=e.replace(/\s/g,""),t=d.replace(/\s/g,""),i=0,s=-1,o=0;o-1||"object"===typeof i&&i["ag-icon"])return t}var s=document.createElement("span");return s.appendChild(t),s}function Ut(e,d,a,t){var i=null,s=a&&a.getColDef().icons;if(s&&(i=s[e]),d&&!i){var o=d.get("icons");o&&(i=o[e])}if(!i){var l=document.createElement("span"),m=Wt[e];return m||(t?m=e:(console.warn("AG Grid: Did not find icon ".concat(e)),m="")),l.setAttribute("class","ag-icon ag-icon-".concat(m)),l.setAttribute("unselectable","on"),Hd(l,"presentation"),l}var u=void 0;if("function"===typeof i)u=i();else{if("string"!==typeof i)throw new Error("icon from grid options needs to be a string or a function");u=i}return"string"===typeof u?qt(u):vt(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var zt=Object.freeze({__proto__:null,iconNameClassMap:Wt,createIcon:jt,createIconNoSpan:Ut}),Qt=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.D="KeyD",e.V="KeyV",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ",e}();function Kt(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key.length}function Yt(e,d,a,t,i){var s=t?t.getColDef().suppressKeyboardEvent:void 0;if(!s)return!1;var o={event:d,editing:i,column:t,api:e.api,node:a,data:a.data,colDef:t.getColDef(),context:e.context,columnApi:e.columnApi};if(s&&s(o))return!0;return!1}function $t(e,d,a,t){var s=t.getDefinition(),o=s&&s.suppressHeaderKeyboardEvent;return!!i(o)&&!!o({api:e.api,columnApi:e.columnApi,context:e.context,colDef:s,column:t,headerRowIndex:a,event:d})}function Xt(e){var d;switch(e.keyCode){case 65:d=Qt.A;break;case 67:d=Qt.C;break;case 86:d=Qt.V;break;case 68:d=Qt.D;break;case 90:d=Qt.Z;break;case 89:d=Qt.Y;break;default:d=e.code}return d}function Jt(e,d){return void 0===d&&(d=!1),e===Qt.DELETE||!d&&e===Qt.BACKSPACE&&Ba()}var Zt=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Kt,isUserSuppressingKeyboardEvent:Yt,isUserSuppressingHeaderKeyboardEvent:$t,normaliseQwertyAzerty:Xt,isDeleteKey:Jt});function ei(e,d,a){if(0===a)return!1;var t=Math.abs(e.clientX-d.clientX),i=Math.abs(e.clientY-d.clientY);return Math.max(t,i)<=a}var di=Object.freeze({__proto__:null,areEventsNear:ei});var ai=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,d){if(!e)return!1;for(var a=function(e,a){var t=d[e.id],i=d[a.id],s=void 0!==t,o=void 0!==i;return s&&o?t-i:!s&&!o?e.__objectId-a.__objectId:s?1:-1},t=!1,i=0;i0){t=!0;break}return!!t&&(e.sort(a),!0)}});function ti(e){var d=new Set;return e.forEach((function(e){return d.add(e)})),d}var ii,si=Object.freeze({__proto__:null,convertToSet:ti}),oi=function(){return oi=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(ui||(ui={})),function(e){e[e.HOVER=0]="HOVER",e[e.FOCUS=1]="FOCUS"}(ni||(ni={}));var yi=function(e){function d(d,a,t){var i=e.call(this)||this;return i.parentComp=d,i.tooltipShowDelayOverride=a,i.tooltipHideDelayOverride=t,i.SHOW_QUICK_TOOLTIP_DIFF=1e3,i.FADE_OUT_TOOLTIP_TIMEOUT=1e3,i.INTERACTIVE_HIDE_DELAY=100,i.interactionEnabled=!1,i.isInteractingWithTooltip=!1,i.state=ui.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i}return pi(d,e),d.prototype.postConstruct=function(){this.gridOptionsService.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gridOptionsService.get("tooltipMouseTrack");var e=this.parentComp.getGui();this.tooltipTrigger===ni.HOVER&&(this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===ni.FOCUS&&(this.addManagedListener(e,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(e,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)))},d.prototype.getGridOptionsTooltipDelay=function(e){var d=this.gridOptionsService.get(e);return d<0&&v("".concat(e," should not be lower than 0")),Math.max(200,d)},d.prototype.getTooltipDelay=function(e){var d,a;return"show"===e?null!==(d=this.tooltipShowDelayOverride)&&void 0!==d?d:this.getGridOptionsTooltipDelay("tooltipShowDelay"):null!==(a=this.tooltipHideDelayOverride)&&void 0!==a?a:this.getGridOptionsTooltipDelay("tooltipHideDelay")},d.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},d.prototype.getTooltipTrigger=function(){var e=this.gridOptionsService.get("tooltipTrigger");return e&&"hover"!==e?ni.FOCUS:ni.HOVER},d.prototype.onMouseEnter=function(e){var a=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),Ga()||(d.isLocked?this.showTooltipTimeoutId=window.setTimeout((function(){a.prepareToShowTooltip(e)}),this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(e))},d.prototype.onMouseMove=function(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===ui.SHOWING&&this.tooltipComp&&this.positionTooltip()},d.prototype.onMouseDown=function(){this.setToDoNothing()},d.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},d.prototype.onFocusIn=function(){this.prepareToShowTooltip()},d.prototype.onFocusOut=function(e){var d,a=e.relatedTarget,t=this.parentComp.getGui(),i=null===(d=this.tooltipComp)||void 0===d?void 0:d.getGui();this.isInteractingWithTooltip||t.contains(a)||this.interactionEnabled&&(null===i||void 0===i?void 0:i.contains(a))||this.setToDoNothing()},d.prototype.onKeyDown=function(){this.setToDoNothing()},d.prototype.prepareToShowTooltip=function(e){if(this.state!=ui.NOTHING||d.isLocked)return!1;var a=0;return e&&(a=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),a),this.state=ui.WAITING_TO_SHOW,!0},d.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-d.lastTooltipHideTime1)a.forEach((function(e){return d.addCssClass(e)}));else if(!0!==this.cssClassStates[e]&&e.length){var t=this.getGui();t&&t.classList.add(e),this.cssClassStates[e]=!0}},e.prototype.removeCssClass=function(e){var d=this,a=(e||"").split(" ");if(a.length>1)a.forEach((function(e){return d.removeCssClass(e)}));else if(!1!==this.cssClassStates[e]&&e.length){var t=this.getGui();t&&t.classList.remove(e),this.cssClassStates[e]=!1}},e.prototype.containsCssClass=function(e){var d=this.getGui();return!!d&&d.classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,d){var a=this;if(e){if(e.indexOf(" ")>=0){var t=(e||"").split(" ");if(t.length>1)return void t.forEach((function(e){return a.addOrRemoveCssClass(e,d)}))}if(this.cssClassStates[e]!==d&&e.length){var i=this.getGui();i&&i.classList.toggle(e,d),this.cssClassStates[e]=d}}},e}(),qi=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),bi=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Pi=new mi,hi=function(e){function d(d){var a=e.call(this)||this;return a.displayed=!0,a.visible=!0,a.compId=Pi.next(),a.cssClassManager=new Ci((function(){return a.eGui})),d&&a.setTemplate(d),a}return qi(d,e),d.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.get("enableBrowserTooltips")},d.prototype.getCompId=function(){return this.compId},d.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},d.prototype.setTooltip=function(e,d,a){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new yi(t,d,a)))))},d.prototype.createChildComponentsFromTags=function(e,d){var a=this;Mt(e.childNodes).forEach((function(t){if(t instanceof HTMLElement){var i=a.createComponentFromElement(t,(function(e){e.getGui()&&a.copyAttributesFromNode(t,e.getGui())}),d);if(i){if(i.addItems&&t.children.length){a.createChildComponentsFromTags(t,d);var s=Array.prototype.slice.call(t.children);i.addItems(s)}a.swapComponentForNode(i,e,t)}else t.childNodes&&a.createChildComponentsFromTags(t,d)}}))},d.prototype.createComponentFromElement=function(e,a,t){var i=e.nodeName,s=t?t[e.getAttribute("ref")]:void 0,o=this.agStackComponentsRegistry.getComponentClass(i);if(o){d.elementGettingCreated=e;var l=new o(s);return l.setParentComponent(this),this.createBean(l,null,a),l}return null},d.prototype.copyAttributesFromNode=function(e,d){wt(e.attributes,(function(e,a){return d.setAttribute(e,a)}))},d.prototype.swapComponentForNode=function(e,d,a){var t=e.getGui();d.replaceChild(t,a),d.insertBefore(document.createComment(a.nodeName),t),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,a)},d.prototype.swapInComponentForQuerySelectors=function(e,d){var a=this;this.iterateOverQuerySelectors((function(t){a[t.attributeName]===d&&(a[t.attributeName]=e)}))},d.prototype.iterateOverQuerySelectors=function(e){for(var d=Object.getPrototypeOf(this);null!=d;){var a=d.__agComponentMetaData,t=w(d.constructor);a&&a[t]&&a[t].querySelectors&&a[t].querySelectors.forEach((function(d){return e(d)})),d=Object.getPrototypeOf(d)}},d.prototype.activateTabIndex=function(e){var d=this.gridOptionsService.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach((function(e){return e.setAttribute("tabindex",d.toString())}))},d.prototype.setTemplate=function(e,d){var a=qt(e);this.setTemplateFromElement(a,d)},d.prototype.setTemplateFromElement=function(e,d){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),d)},d.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},d.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var d=this;this.iterateOverQuerySelectors((function(a){var t=function(e){return d[a.attributeName]=e};if(a.refSelector&&e.getAttribute("ref")===a.refSelector)t(e.eGui);else{var i=e.eGui.querySelector(a.querySelector);i&&t(i.__agComponent||i)}}))}},d.prototype.getGui=function(){return this.eGui},d.prototype.getFocusableElement=function(){return this.eGui},d.prototype.getAriaElement=function(){return this.getFocusableElement()},d.prototype.setParentComponent=function(e){this.parentComponent=e},d.prototype.getParentComponent=function(){return this.parentComponent},d.prototype.setGui=function(e){this.eGui=e},d.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},d.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},d.prototype.appendChild=function(e,d){if(null!=e)if(d||(d=this.eGui),vt(e))d.appendChild(e);else{var a=e;d.appendChild(a.getGui())}},d.prototype.isDisplayed=function(){return this.displayed},d.prototype.setVisible=function(e,d){if(void 0===d&&(d={}),e!==this.visible){this.visible=e;var a=d.skipAriaHidden;tt(this.eGui,e,{skipAriaHidden:a})}},d.prototype.setDisplayed=function(e,a){if(void 0===a&&(a={}),e!==this.displayed){this.displayed=e;var t=a.skipAriaHidden;at(this.eGui,e,{skipAriaHidden:t});var i={type:d.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}},d.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var d=this.eGui;d&&d.__agComponent&&(d.__agComponent=void 0),e.prototype.destroy.call(this)},d.prototype.addGuiEventListener=function(e,d,a){var t=this;this.eGui.addEventListener(e,d,a),this.addDestroyFunc((function(){return t.eGui.removeEventListener(e,d)}))},d.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},d.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},d.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},d.prototype.addOrRemoveCssClass=function(e,d){this.cssClassManager.addOrRemoveCssClass(e,d)},d.prototype.getAttribute=function(e){var d=this.eGui;return d?d.getAttribute(e):null},d.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'.concat(e,'"]'))},d.EVENT_DISPLAYED_CHANGED="displayedChanged",bi([ae("agStackComponentsRegistry")],d.prototype,"agStackComponentsRegistry",void 0),bi([J],d.prototype,"preConstructOnComponent",null),bi([J],d.prototype,"createChildComponentsPreConstruct",null),d}(Ue);function Ti(e){return Oi.bind(this,e,void 0)}function Si(e){return Oi.bind(this,"[ref=".concat(e,"]"),e)}function Oi(e,d,a,t,i){null!==e?"number"!==typeof i?function(e,d,a){var t=function(e,d){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[d]||(e.__agComponentMetaData[d]={});return e.__agComponentMetaData[d]}(e,w(e.constructor));t[d]||(t[d]=[]);t[d].push(a)}(a,"querySelectors",{attributeName:t,querySelector:e,refSelector:d}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var Li=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),gi=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ii=function(e){function d(){return e.call(this,'\n ')||this}return Li(d,e),d.prototype.destroy=function(){e.prototype.destroy.call(this)},d.prototype.init=function(e){this.params=e;var d=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),a=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel("".concat(d," ").concat(a("ariaFilterInput","Filter Input")))},d.prototype.onParentModelChanged=function(e){var d=this;e?this.params.parentFilterInstance((function(a){if(a.getModelAsString){var t=a.getModelAsString(e);d.eFloatingFilterText.setValue(t)}})):this.eFloatingFilterText.setValue("")},d.prototype.onParamsUpdated=function(e){this.init(e)},gi([Si("eFloatingFilterText")],d.prototype,"eFloatingFilterText",void 0),gi([ae("columnModel")],d.prototype,"columnModel",void 0),d}(hi),Bi=function(){function e(e,d,a,t){var i=this;this.alive=!0,this.context=e,this.eParent=t,d.getDateCompDetails(a).newAgStackInstance().then((function(d){i.alive?(i.dateComp=d,d&&(t.appendChild(d.getGui()),d.afterGuiAttached&&d.afterGuiAttached(),i.tempValue&&d.setDate(i.tempValue),null!=i.disabled&&i.setDateCompDisabled(i.disabled))):e.destroyBean(d)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){at(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.updateParams=function(e){var d;(null===(d=this.dateComp)||void 0===d?void 0:d.onParamsUpdated)&&"function"===typeof this.dateComp.onParamsUpdated&&this.dateComp.onParamsUpdated(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),Gi=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,d){this.filterOptions=e.filterOptions||d,this.mapCustomOptions(),this.selectDefaultItem(e)},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(d){if("string"!==typeof d){[["displayKey"],["displayName"],["predicate","test"]].every((function(e){return!!e.some((function(e){return null!=d[e]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '".concat(e,"'")),!1)}))?e.customFilterOptions[d.displayKey]=d:e.filterOptions=e.filterOptions.filter((function(e){return e===d}))||[]}}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var d=this.filterOptions[0];"string"===typeof d?this.defaultOption=d:d.displayKey?this.defaultOption=d.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),Di={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},vi=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Mi=function(){return Mi=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},xi=function(e){function d(d,a){void 0===a&&(a={});var t=e.call(this)||this;return t.eFocusableElement=d,t.callbacks=a,t.callbacks=Mi({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var d=t.focusService.findNextFocusableElement(t.eFocusableElement,!1,e.shiftKey);d&&(d.focus(),e.preventDefault())}}},a),t}return vi(d,e),d.prototype.postConstruct=function(){this.eFocusableElement.classList.add(d.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},d.prototype.addKeyDownListeners=function(e){var d=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||Re(e)||(d.callbacks.shouldStopEventPropagation(e)?Ee(e):e.key===Qt.TAB?d.callbacks.onTabKeyDown(e):d.callbacks.handleKeyDown&&d.callbacks.handleKeyDown(e))}))},d.FOCUS_MANAGED_CLASS="ag-focus-managed",wi([ae("focusService")],d.prototype,"focusService",void 0),wi([Z],d.prototype,"postConstruct",null),d}(Ue),Ei=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Ri=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ai="ag-resizer-wrapper",Fi='
\n
\n
\n
\n
\n
\n
\n
\n
\n
'),ki=function(e){function d(d,a){var t=e.call(this)||this;return t.element=d,t.dragStartPosition={x:0,y:0},t.position={x:0,y:0},t.lastSize={width:-1,height:-1},t.positioned=!1,t.resizersAdded=!1,t.resizeListeners=[],t.boundaryEl=null,t.isResizing=!1,t.isMoving=!1,t.resizable={},t.movable=!1,t.currentResizer=null,t.config=Object.assign({},{popup:!1},a),t}return Ei(d,e),d.prototype.center=function(){var e=this.offsetParent,d=e.clientHeight,a=e.clientWidth/2-this.getWidth()/2,t=d/2-this.getHeight()/2;this.offsetElement(a,t)},d.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,d=e.centered,a=e.forcePopupParentAsOffsetParent,t=e.minWidth,i=e.width,s=e.minHeight,o=e.height,l=e.x,m=e.y;this.offsetParent||this.setOffsetParent();var u=0,n=0,r=Ct(this.element);if(r){var f=this.findBoundaryElement(),p=window.getComputedStyle(f);if(null!=p.minWidth){var c=f.offsetWidth-this.element.offsetWidth;n=parseInt(p.minWidth,10)-c}if(null!=p.minHeight){var _=f.offsetHeight-this.element.offsetHeight;u=parseInt(p.minHeight,10)-_}}if(this.minHeight=s||u,this.minWidth=t||n,i&&this.setWidth(i),o&&this.setHeight(o),i&&o||this.refreshSize(),d)this.center();else if(l||m)this.offsetElement(l,m);else if(r&&a){var y=!0;if((f=this.boundaryEl)||(f=this.findBoundaryElement(),y=!1),f){var C=parseFloat(f.style.top),q=parseFloat(f.style.left);y?this.offsetElement(isNaN(q)?0:q,isNaN(C)?0:C):this.setPosition(q,C)}}this.positioned=!!this.offsetParent}},d.prototype.isPositioned=function(){return this.positioned},d.prototype.getPosition=function(){return this.position},d.prototype.setMovable=function(e,d){if(this.config.popup&&e!==this.movable){this.movable=e;var a=this.moveElementDragListener||{eElement:d,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(a),this.moveElementDragListener=a):(this.dragService.removeDragSource(a),this.moveElementDragListener=void 0)}},d.prototype.setResizable=function(e){var d=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"===typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((function(a){var t=!!e[a],i=d.getResizerElement(a),s={dragStartPixels:0,eElement:i,onDragStart:function(e){return d.onResizeStart(e,a)},onDragging:d.onResize.bind(d),onDragStop:function(e){return d.onResizeEnd(e,a)}};(t||!d.isAlive()&&!t)&&(t?(d.dragService.addDragSource(s),d.resizeListeners.push(s),i.style.pointerEvents="all"):i.style.pointerEvents="none",d.resizable[a]=t)}))},d.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},d.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,d=e.height,a=e.width;-1!==a&&(this.element.style.width="".concat(a,"px")),-1!==d&&(this.element.style.height="".concat(d,"px"))},d.prototype.getHeight=function(){return this.element.offsetHeight},d.prototype.setHeight=function(e){var d=this.config.popup,a=this.element,t=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Gt(a,e),e=ut(a),t=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var i=this.getAvailableHeight();i&&e>i&&(e=i)}this.getHeight()!==e&&(t?(a.style.maxHeight="unset",a.style.minHeight="unset"):d?Gt(a,e):(a.style.height="".concat(e,"px"),a.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:parseFloat(e)))},d.prototype.getAvailableHeight=function(){var e=this.config,d=e.popup,a=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var t=this.offsetParent.clientHeight;if(!t)return null;var i=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),o=d?this.position.y:i.top,l=d?0:s.top,m=0;if(a){var u=this.element.parentElement;if(u)m=u.getBoundingClientRect().bottom-i.bottom}return t+l-o-m},d.prototype.getWidth=function(){return this.element.offsetWidth},d.prototype.setWidth=function(e){var d=this.element,a=this.config.popup,t=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Bt(d,e),e=nt(d),t=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var i=this.offsetParent.clientWidth,s=a?this.position.x:this.element.getBoundingClientRect().left;i&&e+s>i&&(e=i-s)}this.getWidth()!==e&&(t?(d.style.maxWidth="unset",d.style.minWidth="unset"):this.config.popup?Bt(d,e):(d.style.width="".concat(e,"px"),d.style.flex=" unset",this.lastSize.width="number"===typeof e?e:parseFloat(e)))},d.prototype.offsetElement=function(e,d){void 0===e&&(e=0),void 0===d&&(d=0);var a=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;a&&(this.popupService.positionPopup({ePopup:a,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:d}}}),this.setPosition(parseFloat(a.style.left),parseFloat(a.style.top)))},d.prototype.constrainSizeToAvailableHeight=function(e){var d=this;if(this.config.forcePopupParentAsOffsetParent){e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),(function(){var e=d.getAvailableHeight();d.element.style.setProperty("max-height","".concat(e,"px"))})):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},d.prototype.setPosition=function(e,d){this.position.x=e,this.position.y=d},d.prototype.updateDragStartPosition=function(e,d){this.dragStartPosition={x:e,y:d}},d.prototype.calculateMouseMovement=function(e){var d=e.e,a=e.isLeft,t=e.isTop,i=e.anywhereWithin,s=e.topBuffer,o=d.clientX-this.dragStartPosition.x,l=d.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(d,!!a,!!i,o)?0:o,movementY:this.shouldSkipY(d,!!t,s,l)?0:l}},d.prototype.shouldSkipX=function(e,d,a,t){var i=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),o=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.x:i.left,m=l<=0&&s.left>=e.clientX||s.right<=e.clientX&&s.right<=o.right;return!!m||(m=d?t<0&&e.clientX>l+s.left||t>0&&e.clientXo.right||t>0&&e.clientXo.right||t>0&&e.clientX=e.clientY||s.bottom<=e.clientY&&s.bottom<=o.bottom;return!!m||(m=d?t<0&&e.clientY>l+s.top+a||t>0&&e.clientYo.bottom||t>0&&e.clientYthis.element.parentElement.offsetHeight&&(O=!0),O||this.setHeight(S)}this.updateDragStartPosition(e.clientX,e.clientY),((a||t)&&y||C)&&this.offsetElement(c+y,_+C)}},d.prototype.onResizeEnd=function(e,d){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var a={type:"resize",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[d].element.classList.remove("ag-active"),this.dispatchEvent(a)},d.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},d.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},d.prototype.onMove=function(e){if(this.isMoving){var d,a=this.position,t=a.x,i=a.y;this.config.calculateTopBuffer&&(d=this.config.calculateTopBuffer());var s=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:d}),o=s.movementX,l=s.movementY;this.offsetElement(t+o,i+l),this.updateDragStartPosition(e.clientX,e.clientY)}},d.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},d.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},d.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},d.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},d.prototype.destroy=function(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},Ri([ae("popupService")],d.prototype,"popupService",void 0),Ri([ae("resizeObserverService")],d.prototype,"resizeObserverService",void 0),Ri([ae("dragService")],d.prototype,"dragService",void 0),d}(Ue),Vi=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Hi=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ni=function(e){function d(d){var a=e.call(this)||this;return a.filterNameKey=d,a.applyActive=!1,a.hidePopup=null,a.debouncePending=!1,a.appliedModel=null,a.buttonListeners=[],a}return Vi(d,e),d.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new xi(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new ki(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},d.prototype.handleKeyDown=function(e){},d.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},d.prototype.isFilterActive=function(){return!!this.appliedModel},d.prototype.resetTemplate=function(e){var d=this.getGui();d&&d.removeEventListener("submit",this.onFormSubmit);var a='\n
\n
\n ').concat(this.createBodyTemplate(),"\n
\n
");this.setTemplate(a,e),(d=this.getGui())&&d.addEventListener("submit",this.onFormSubmit)},d.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},d.prototype.init=function(e){var d=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){d.updateUiVisibility(),d.setupOnBtApplyDebounce()}))},d.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=d.isUseApplyButton(e),this.resetButtonsPanel()},d.prototype.updateParams=function(e){var a=this;this.providedFilterParams=e,this.applyActive=d.isUseApplyButton(e),this.resetUiToActiveModel(this.getModel(),(function(){a.updateUiVisibility(),a.setupOnBtApplyDebounce()}))},d.prototype.resetButtonsPanel=function(){var e=this,d=this.providedFilterParams.buttons,a=d&&d.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(_t(this.eButtonsPanel),this.buttonListeners.forEach((function(e){return null===e||void 0===e?void 0:e()})),this.buttonListeners=[]):a&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),a){var t=document.createDocumentFragment();ti(d).forEach((function(d){return function(d){var a,i;switch(d){case"apply":a=e.translate("applyFilter"),i=function(d){return e.onBtApply(!1,!1,d)};break;case"clear":a=e.translate("clearFilter"),i=function(){return e.onBtClear()};break;case"reset":a=e.translate("resetFilter"),i=function(){return e.onBtReset()};break;case"cancel":a=e.translate("cancelFilter"),i=function(d){e.onBtCancel(d)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var s=qt('').concat(a,"\n "));e.buttonListeners.push(e.addManagedListener(s,"click",i)),t.append(s)}(d)})),this.eButtonsPanel.append(t),this.getGui().appendChild(this.eButtonsPanel)}else this.eButtonsPanel&&yt(this.eButtonsPanel)},d.prototype.getDefaultDebounceMs=function(){return 0},d.prototype.setupOnBtApplyDebounce=function(){var e=this,a=d.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),t=V(this.checkApplyDebounce.bind(this),a);this.onBtApplyDebounce=function(){e.debouncePending=!0,t()}},d.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},d.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},d.prototype.setModel=function(e){var d=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){d.updateUiVisibility(),d.applyModel("api")}))},d.prototype.onBtCancel=function(e){var d=this;this.resetUiToActiveModel(this.getModel(),(function(){d.handleCancelEnd(e)}))},d.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},d.prototype.resetUiToActiveModel=function(e,d){var a=this,t=function(){a.onUiChanged(!1,"prevent"),null===d||void 0===d||d()};null!=e?this.setModelIntoUi(e).then(t):this.resetUiToDefaults().then(t)},d.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},d.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},d.prototype.applyModel=function(e){var d=this.getModelFromUi();if(!this.isModelValid(d))return!1;var a=this.appliedModel;return this.appliedModel=d,!this.areModelsEqual(a,d)},d.prototype.isModelValid=function(e){return!0},d.prototype.onFormSubmit=function(e){e.preventDefault()},d.prototype.onBtApply=function(e,d,a){if(void 0===e&&(e=!1),void 0===d&&(d=!1),a&&a.preventDefault(),this.applyModel(d?"rowDataUpdated":"ui")){this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:d,source:"columnFilter"})}this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!d&&this.close(a)},d.prototype.onNewRowsLoaded=function(){},d.prototype.close=function(e){if(this.hidePopup){var d,a=e,t=a&&a.key;"Enter"!==t&&"Space"!==t||(d={keyboardEvent:a}),this.hidePopup(d),this.hidePopup=null}},d.prototype.onUiChanged=function(e,d){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var a=this.isModelValid(this.getModelFromUi()),t=this.getRefElement("applyFilterButton");t&&it(t,!a)}e&&!d||"immediately"===d?this.onBtApply(e):(this.applyActive||d)&&"debounce"!==d||this.onBtApplyDebounce()},d.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(null===e||void 0===e?void 0:e.container)},d.prototype.refreshFilterResizer=function(e){if(this.positionableFeature&&"toolPanel"!==e){var d="floatingFilter"===e,a=this.positionableFeature,t=this.gridOptionsService;d?(a.restoreLastSize(),a.setResizable(t.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},d.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},d.getDebounceMs=function(e,a){return d.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:a},d.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},d.prototype.refresh=function(e){return this.providedFilterParams=e,!0},d.prototype.destroy=function(){var d=this.getGui();d&&d.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),e.prototype.destroy.call(this)},d.prototype.translate=function(e){return this.localeService.getLocaleTextFunc()(e,Di[e])},d.prototype.getCellValue=function(e){return this.providedFilterParams.getValue(e)},d.prototype.getPositionableElement=function(){return this.eFilterBody},Hi([ae("rowModel")],d.prototype,"rowModel",void 0),Hi([Si("eFilterBody")],d.prototype,"eFilterBody",void 0),Hi([Z],d.prototype,"postConstruct",null),d}(hi),Wi=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ji=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ui=function(e){function d(d,a){var t=e.call(this,a)||this;return t.labelSeparator="",t.labelAlignment="left",t.disabled=!1,t.label="",t.config=d||{},t}return Wi(d,e),d.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,d=e.labelSeparator,a=e.label,t=e.labelWidth,i=e.labelAlignment;null!=d&&this.setLabelSeparator(d),null!=a&&this.setLabel(a),null!=t&&this.setLabelWidth(t),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()},d.prototype.refreshLabel=function(){_t(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(at(this.eLabel,!1),Hd(this.eLabel,"presentation")):(at(this.eLabel,!0),Hd(this.eLabel,null))},d.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},d.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-".concat(this.getCompId(),"-label"),this.eLabel.id},d.prototype.getLabel=function(){return this.label},d.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},d.prototype.setLabelAlignment=function(e){var d=this.getGui().classList;return d.toggle("ag-label-align-left","left"===e),d.toggle("ag-label-align-right","right"===e),d.toggle("ag-label-align-top","top"===e),this},d.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},d.prototype.setLabelWidth=function(e){return null==this.label||It(this.eLabel,e),this},d.prototype.setDisabled=function(e){e=!!e;var d=this.getGui();return it(d,e),d.classList.toggle("ag-disabled",e),this.disabled=e,this},d.prototype.isDisabled=function(){return!!this.disabled},ji([Z],d.prototype,"postConstruct",null),d}(hi),zi=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Qi=function(e){function d(d,a,t){var i=e.call(this,d,a)||this;return i.className=t,i}return zi(d,e),d.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()},d.prototype.refreshAriaLabelledBy=function(){var e=this.getAriaElement(),d=this.getLabelId();null!==Ud(e)?Qd(e,""):Qd(e,null!==d&&void 0!==d?d:"")},d.prototype.setAriaLabel=function(e){return zd(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this},d.prototype.onValueChange=function(e){var d=this;return this.addManagedListener(this,Je.EVENT_FIELD_VALUE_CHANGED,(function(){return e(d.getValue())})),this},d.prototype.getWidth=function(){return this.getGui().clientWidth},d.prototype.setWidth=function(e){return Bt(this.getGui(),e),this},d.prototype.getPreviousValue=function(){return this.previousValue},d.prototype.getValue=function(){return this.value},d.prototype.setValue=function(e,d){return this.value===e||(this.previousValue=this.value,this.value=e,d||this.dispatchEvent({type:Je.EVENT_FIELD_VALUE_CHANGED})),this},d}(Ui),Ki=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Yi=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},$i=function(e){function d(d){var a=e.call(this,d,(null===d||void 0===d?void 0:d.template)||'\n ',null===d||void 0===d?void 0:d.className)||this;if(a.isPickerDisplayed=!1,a.skipClick=!1,a.pickerGap=4,a.hideCurrentPicker=null,a.ariaRole=null===d||void 0===d?void 0:d.ariaRole,a.onPickerFocusIn=a.onPickerFocusIn.bind(a),a.onPickerFocusOut=a.onPickerFocusOut.bind(a),!d)return a;var t=d.pickerGap,i=d.maxPickerHeight,s=d.variableWidth,o=d.minPickerWidth,l=d.maxPickerWidth;return null!=t&&(a.pickerGap=t),a.variableWidth=!!s,null!=i&&a.setPickerMaxHeight(i),null!=o&&a.setPickerMinWidth(o),null!=l&&a.setPickerMaxWidth(l),a}return Ki(d,e),d.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setupAria();var d="ag-".concat(this.getCompId(),"-display");this.eDisplayField.setAttribute("id",d);var a=this.getAriaElement();this.addManagedListener(a,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var t=this.config.pickerIcon;if(t){var i=Ut(t,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},d.prototype.setupAria=function(){var e=this.getAriaElement();e.setAttribute("tabindex",this.gridOptionsService.get("tabIndex").toString()),ea(e,!1),this.ariaRole&&Hd(e,this.ariaRole)},d.prototype.onLabelOrWrapperMouseDown=function(e){if(e){var d=this.getFocusableElement();if(d!==this.eWrapper&&(null===e||void 0===e?void 0:e.target)===d)return;e.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},d.prototype.onKeyDown=function(e){switch(e.key){case Qt.UP:case Qt.DOWN:case Qt.ENTER:case Qt.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Qt.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}},d.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},d.prototype.renderAndPositionPicker=function(){var e=this,d=this.gridOptionsService.getDocument(),a=this.pickerComponent.getGui();this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(this.eventService,Je.EVENT_BODY_SCROLL,(function(){e.hidePicker()})));var t=this.localeService.getLocaleTextFunc(),i=this.config,s=i.pickerAriaLabelKey,o=i.pickerAriaLabelValue,l=i.modalPicker,m={modal:void 0===l||l,eChild:a,closeOnEsc:!0,closedCallback:function(){var a=d.activeElement===d.body;e.beforeHidePicker(),a&&e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:t(s,o)},u=this.popupService.addPopup(m),n=this,r=n.maxPickerHeight,f=n.minPickerWidth,p=n.maxPickerWidth;n.variableWidth?(f&&(a.style.minWidth=f),a.style.width=Dt(nt(this.eWrapper)),p&&(a.style.maxWidth=p)):It(a,null!==p&&void 0!==p?p:nt(this.eWrapper));var c=null!==r&&void 0!==r?r:"".concat(lt(this.popupService.getPopupParent()),"px");return a.style.setProperty("max-height",c),a.style.position="absolute",this.alignPickerToComponent(),u.hideFunc},d.prototype.alignPickerToComponent=function(){if(this.pickerComponent){var e=this.config.pickerType,d=this.pickerGap,a=this.gridOptionsService.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:a,keepWithinBounds:!0,nudgeY:d})}},d.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},d.prototype.toggleExpandedStyles=function(e){this.isAlive()&&(ea(this.getAriaElement(),e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e))},d.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},d.prototype.onPickerFocusOut=function(e){var d;(null===(d=this.pickerComponent)||void 0===d?void 0:d.getGui().contains(e.relatedTarget))||this.togglePickerHasFocus(!1)},d.prototype.togglePickerHasFocus=function(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)},d.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},d.prototype.setInputWidth=function(e){return It(this.eWrapper,e),this},d.prototype.getFocusableElement=function(){return this.eWrapper},d.prototype.setPickerGap=function(e){return this.pickerGap=e,this},d.prototype.setPickerMinWidth=function(e){return"number"===typeof e&&(e="".concat(e,"px")),this.minPickerWidth=null==e?void 0:e,this},d.prototype.setPickerMaxWidth=function(e){return"number"===typeof e&&(e="".concat(e,"px")),this.maxPickerWidth=null==e?void 0:e,this},d.prototype.setPickerMaxHeight=function(e){return"number"===typeof e&&(e="".concat(e,"px")),this.maxPickerHeight=null==e?void 0:e,this},d.prototype.destroy=function(){this.hidePicker(),e.prototype.destroy.call(this)},Yi([ae("popupService")],d.prototype,"popupService",void 0),Yi([Si("eLabel")],d.prototype,"eLabel",void 0),Yi([Si("eWrapper")],d.prototype,"eWrapper",void 0),Yi([Si("eDisplayField")],d.prototype,"eDisplayField",void 0),Yi([Si("eIcon")],d.prototype,"eIcon",void 0),d}(Qi),Xi=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Ji=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Zi=function(e){function d(d){void 0===d&&(d="default");var a=e.call(this,'
'))||this;return a.cssIdentifier=d,a.options=[],a.itemEls=[],a}return Xi(d,e),d.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},d.prototype.handleKeyDown=function(e){var d=e.key;switch(d){case Qt.ENTER:if(this.highlightedEl){var a=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(a)}else this.setValue(this.getValue());break;case Qt.DOWN:case Qt.UP:var t=d===Qt.DOWN,i=void 0;if(e.preventDefault(),this.highlightedEl){var s=this.itemEls.indexOf(this.highlightedEl)+(t?1:-1);s=Math.min(Math.max(s,0),this.itemEls.length-1),i=this.itemEls[s]}else i=this.itemEls[t?0:this.itemEls.length-1];this.highlightItem(i)}},d.prototype.addOptions=function(e){var d=this;return e.forEach((function(e){return d.addOption(e)})),this},d.prototype.addOption=function(e){var d=e.value,a=od(e.text||d);return this.options.push({value:d,text:a}),this.renderOption(d,a),this.updateIndices(),this},d.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(d,a){ta(d,a+1),aa(d,e.length)}))},d.prototype.renderOption=function(e,d){var a=this,t=document.createElement("div");Hd(t,"option"),t.classList.add("ag-list-item","ag-".concat(this.cssIdentifier,"-list-item")),t.innerHTML="".concat(d,""),t.tabIndex=-1,this.itemEls.push(t),this.addManagedListener(t,"mouseover",(function(){return a.highlightItem(t)})),this.addManagedListener(t,"mouseleave",(function(){return a.clearHighlighted()})),this.addManagedListener(t,"click",(function(){return a.setValue(e)})),this.getGui().appendChild(t)},d.prototype.setValue=function(e,d){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var a=this.options.findIndex((function(d){return d.value===e}));if(-1!==a){var t=this.options[a];this.value=t.value,this.displayValue=null!=t.text?t.text:t.value,this.highlightItem(this.itemEls[a]),d||this.fireChangeEvent()}return this},d.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},d.prototype.getValue=function(){return this.value},d.prototype.getDisplayValue=function(){return this.displayValue},d.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var d=this.options.findIndex((function(d){return d.value===e.value}));-1!==d&&this.highlightItem(this.itemEls[d])},d.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},d.prototype.highlightItem=function(e){Ct(e)&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(d.ACTIVE_CLASS),fa(this.highlightedEl,!0),this.highlightedEl.focus())},d.prototype.clearHighlighted=function(){this.highlightedEl&&Ct(this.highlightedEl)&&(this.highlightedEl.classList.remove(d.ACTIVE_CLASS),fa(this.highlightedEl,!1),this.highlightedEl=null)},d.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Je.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()},d.prototype.fireItemSelected=function(){this.dispatchEvent({type:d.EVENT_ITEM_SELECTED})},d.EVENT_ITEM_SELECTED="selectedItem",d.ACTIVE_CLASS="ag-active-item",Ji([Z],d.prototype,"init",null),d}(hi),es=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ds=function(){return ds=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ss=function(e){function d(d,a,t,i){void 0===t&&(t="text"),void 0===i&&(i="input");var s=e.call(this,d,'\n
\n
\n \n
"),a)||this;return s.inputType=t,s.displayFieldTag=i,s}return ts(d,e),d.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add("".concat(this.className,"-label")),this.eWrapper.classList.add("".concat(this.className,"-input-wrapper")),this.eInput.classList.add("".concat(this.className,"-input")),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-".concat(this.getCompId(),"-input");var d=this.config,a=d.width,t=d.value;null!=a&&this.setWidth(a),null!=t&&this.setValue(t),this.addInputListeners(),this.activateTabIndex([this.eInput])},d.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(d){return e.setValue(d.target.value)}))},d.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},d.prototype.getInputElement=function(){return this.eInput},d.prototype.setInputWidth=function(e){return It(this.eWrapper,e),this},d.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},d.prototype.getFocusableElement=function(){return this.eInput},d.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},d.prototype.setInputPlaceholder=function(e){return xt(this.eInput,"placeholder",e),this},d.prototype.setInputAriaLabel=function(e){return zd(this.eInput,e),this.refreshAriaLabelledBy(),this},d.prototype.setDisabled=function(d){return it(this.eInput,d),e.prototype.setDisabled.call(this,d)},d.prototype.setAutoComplete=function(e){if(!0===e)xt(this.eInput,"autocomplete",null);else{var d="string"===typeof e?e:"off";xt(this.eInput,"autocomplete",d)}return this},is([Si("eLabel")],d.prototype,"eLabel",void 0),is([Si("eWrapper")],d.prototype,"eWrapper",void 0),is([Si("eInput")],d.prototype,"eInput",void 0),d}(Qi),os=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ls=function(e){function d(d,a,t){void 0===a&&(a="ag-checkbox"),void 0===t&&(t="checkbox");var i=e.call(this,d,a,t)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return os(d,e),d.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},d.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},d.prototype.setPassive=function(e){this.passive=e},d.prototype.isReadOnly=function(){return this.readOnly},d.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},d.prototype.setDisabled=function(d){return this.eWrapper.classList.toggle("ag-disabled",d),e.prototype.setDisabled.call(this,d)},d.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),d=this.getNextValue();this.passive?this.dispatchChange(d,e):this.setValue(d)}},d.prototype.getValue=function(){return this.isSelected()},d.prototype.setValue=function(e,d){return this.refreshSelectedClass(e),this.setSelected(e,d),this},d.prototype.setName=function(e){return this.getInputElement().name=e,this},d.prototype.isSelected=function(){return this.selected},d.prototype.setSelected=function(e,d){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,d||this.dispatchChange(this.selected,this.previousValue))},d.prototype.dispatchChange=function(e,d,a){this.dispatchEvent({type:Je.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:d,event:a});var t=this.getInputElement(),i={type:Je.EVENT_CHECKBOX_CHANGED,id:t.id,name:t.name,selected:e,previousValue:d};this.eventService.dispatchEvent(i)},d.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var d=this.isSelected(),a=this.selected=e.target.checked;this.refreshSelectedClass(a),this.dispatchChange(a,d,e)}},d.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},d}(ss),ms=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),us=function(e){function d(d){return e.call(this,d,"ag-radio-button","radio")||this}return ms(d,e),d.prototype.isSelected=function(){return this.eInput.checked},d.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},d.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Je.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},d.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},d}(ls),ns=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),rs=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},fs=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i=0?0:e===d.IN_RANGE?2:1},d.prototype.onFloatingFilterChanged=function(e,d){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(d),this.onUiChanged(!0)},d.prototype.setTypeFromFloatingFilter=function(e){var d=this;this.eTypes.forEach((function(a,t){0===t?a.setValue(e,!0):a.setValue(d.optionsFactory.getDefaultOption(),!0)}))},d.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},d.prototype.getConditionTypes=function(){return this.eTypes.map((function(e){return e.getValue()}))},d.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},d.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"},d.prototype.areModelsEqual=function(e,d){var a=this;if(!e&&!d)return!0;if(!e&&d||e&&!d)return!1;var t,i=!e.operator,s=!d.operator;if(!i&&s||i&&!s)return!1;if(i){var o=e,l=d;t=this.areSimpleModelsEqual(o,l)}else{var m=e,u=d;t=m.operator===u.operator&&Pe(m.conditions,u.conditions,(function(e,d){return a.areSimpleModelsEqual(e,d)}))}return t},d.prototype.shouldRefresh=function(e){var d,a,t,i=this.getModel(),s=i?null!==(d=i.conditions)&&void 0!==d?d:[i]:null,o=null!==(t=null===(a=e.filterOptions)||void 0===a?void 0:a.map((function(e){return"string"===typeof e?e:e.displayKey})))&&void 0!==t?t:this.getDefaultFilterOptions();return!(s&&!s.every((function(e){return void 0!==o.find((function(d){return d===e.type}))})))&&!("number"===typeof e.maxNumConditions&&s&&s.length>e.maxNumConditions)},d.prototype.refresh=function(d){return!!this.shouldRefresh(d)&&(!!e.prototype.refresh.call(this,d)&&(this.setParams(d),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0))},d.prototype.setModelIntoUi=function(e){var d=this;if(e.operator){var a=e;a.conditions||(a.conditions=[a.condition1,a.condition2]);var t=this.validateAndUpdateConditions(a.conditions),i=this.getNumConditions();if(ti)for(var s=i;s1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(l.type,!0),this.setConditionIntoUi(l,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),ri.resolve()},d.prototype.validateAndUpdateConditions=function(e){var d=e.length;return d>this.maxNumConditions&&(e.splice(this.maxNumConditions),v('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),d=this.maxNumConditions),d},d.prototype.doesFilterPass=function(e){var d,a=this,t=this.getModel();if(null==t)return!0;var i=t.operator,s=[];if(i){var o=t;s.push.apply(s,fs([],rs(null!==(d=o.conditions)&&void 0!==d?d:[]),!1))}else s.push(t);return s[i&&"OR"===i?"some":"every"]((function(d){return a.individualConditionPasses(e,d)}))},d.prototype.setParams=function(d){e.prototype.setParams.call(this,d),this.setNumConditions(d),this.defaultJoinOperator=this.getDefaultJoinOperator(d.defaultJoinOperator),this.filterPlaceholder=d.filterPlaceholder,this.optionsFactory=new Gi,this.optionsFactory.init(d,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},d.prototype.setNumConditions=function(e){var d,a;null!=e.suppressAndOrCondition&&v('Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.'),null!=e.alwaysShowBothConditions&&v('Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.'),this.maxNumConditions=null!==(d=e.maxNumConditions)&&void 0!==d?d:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(v('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(a=e.numAlwaysVisibleConditions)&&void 0!==a?a:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(v('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(v('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)},d.prototype.createOption=function(){var e=this,d=this.createManagedBean(new as);this.eTypes.push(d),d.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(d.getGui());var a=this.createValueElement();this.eConditionBodies.push(a),this.eFilterBody.appendChild(a),this.putOptionsIntoDropdown(d),this.resetType(d);var t=this.getNumConditions()-1;this.forEachPositionInput(t,(function(d){return e.resetInput(d)})),this.addChangedListeners(d,t)},d.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var d=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),a=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var t=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(d,t,i),this.resetJoinOperatorOr(a,t,i),this.isReadOnly()||(d.onValueChange(this.listener),a.onValueChange(this.listener))},d.prototype.createJoinOperator=function(e,d,a){var t=this.createManagedBean(new us);return e.push(t),t.addCssClass("ag-filter-condition-operator"),t.addCssClass("ag-filter-condition-operator-".concat(a)),d.appendChild(t.getGui()),t},d.prototype.getDefaultJoinOperator=function(e){return"AND"===e||"OR"===e?e:"AND"},d.prototype.createFilterListOptions=function(){var e=this,d=this.optionsFactory.getFilterOptions();this.filterListOptions=d.map((function(d){return"string"===typeof d?e.createBoilerplateListOption(d):e.createCustomListOption(d)}))},d.prototype.putOptionsIntoDropdown=function(e){this.filterListOptions.forEach((function(d){e.addOption(d)})),e.setDisabled(this.filterListOptions.length<=1)},d.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},d.prototype.createCustomListOption=function(e){var d=e.displayKey,a=this.optionsFactory.getCustomOption(e.displayKey);return{value:d,text:a?this.localeService.getLocaleTextFunc()(a.displayKey,a.displayName):this.translate(d)}},d.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},d.prototype.createBodyTemplate=function(){return""},d.prototype.getCssIdentifier=function(){return"simple-filter"},d.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},d.prototype.updateNumConditions=function(){for(var e,d=-1,a=!0,t=0;t0&&this.removeConditionsAndOperators(s,o),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=d},d.prototype.updateConditionStatusesAndValues=function(e,d){var a=this;this.eTypes.forEach((function(d,t){var i=a.isConditionDisabled(t,e);d.setDisabled(i||a.filterListOptions.length<=1),1===t&&(it(a.eJoinOperatorPanels[0],i),a.eJoinOperatorsAnd[0].setDisabled(i),a.eJoinOperatorsOr[0].setDisabled(i))})),this.eConditionBodies.forEach((function(e,d){at(e,a.isConditionBodyVisible(d))}));var t="OR"===(null!==d&&void 0!==d?d:this.getJoinOperator());this.eJoinOperatorsAnd.forEach((function(e,d){e.setValue(!t,!0)})),this.eJoinOperatorsOr.forEach((function(e,d){e.setValue(t,!0)})),this.forEachInput((function(d,t,i,s){a.setElementDisplayed(d,t=this.getNumConditions())){this.removeComponents(this.eTypes,e,d),this.removeElements(this.eConditionBodies,e,d),this.removeValueElements(e,d);var a=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,a,d),this.removeComponents(this.eJoinOperatorsAnd,a,d),this.removeComponents(this.eJoinOperatorsOr,a,d)}},d.prototype.removeElements=function(e,d,a){this.removeItems(e,d,a).forEach((function(e){return yt(e)}))},d.prototype.removeComponents=function(e,d,a){var t=this;this.removeItems(e,d,a).forEach((function(e){yt(e.getGui()),t.destroyBean(e)}))},d.prototype.removeItems=function(e,d,a){return null==a?e.splice(d):e.splice(d,a)},d.prototype.afterGuiAttached=function(d){if(e.prototype.afterGuiAttached.call(this,d),this.resetPlaceholder(),!(null===d||void 0===d?void 0:d.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{var a=this.getInputs(0)[0];if(!a)return;a instanceof ss&&a.getInputElement().focus()}},d.prototype.afterGuiDetached=function(){e.prototype.afterGuiDetached.call(this);var d=this.getModel();this.resetUiToActiveModel(d);for(var a=-1,t=-1,i=!1,s=this.getJoinOperator(),o=this.getNumConditions()-1;o>=0;o--)if(this.isConditionUiComplete(o))-1===a&&(a=o,t=o);else{var l=o=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(o-1)||l)&&(this.removeConditionsAndOperators(o,1),i=!0,l&&t--)}var m=!1;this.getNumConditions()1?"inRangeStart":0===t?"filterOoo":"inRangeEnd",l=0===t&&s>1?d("ariaFilterFromValue","Filter from value"):0===t?d("ariaFilterValue","Filter Value"):d("ariaFilterToValue","Filter to Value");a.setInputPlaceholder(e.getPlaceholderText(o,i)),a.setInputAriaLabel(l)}}))},d.prototype.setElementValue=function(e,d,a){e instanceof ss&&e.setValue(null!=d?String(d):null,!0)},d.prototype.setElementDisplayed=function(e,d){e instanceof hi&&at(e.getGui(),d)},d.prototype.setElementDisabled=function(e,d){e instanceof hi&&it(e.getGui(),d)},d.prototype.attachElementOnChange=function(e,d){e instanceof ss&&e.onValueChange(d)},d.prototype.forEachInput=function(e){var d=this;this.getConditionTypes().forEach((function(a,t){d.forEachPositionTypeInput(t,a,e)}))},d.prototype.forEachPositionInput=function(e,d){var a=this.getConditionType(e);this.forEachPositionTypeInput(e,a,d)},d.prototype.forEachPositionTypeInput=function(e,d,a){for(var t=this.getNumberOfInputs(d),i=this.getInputs(e),s=0;sd+1},d.prototype.isConditionBodyVisible=function(e){var d=this.getConditionType(e);return this.getNumberOfInputs(d)>0},d.prototype.isConditionUiComplete=function(e){return!(e>=this.getNumConditions())&&(this.getConditionType(e)!==d.EMPTY&&!this.getValues(e).some((function(e){return null==e})))},d.prototype.getNumConditions=function(){return this.eTypes.length},d.prototype.getUiCompleteConditions=function(){for(var e=[],d=0;d0)},d.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},d.prototype.setConditionIntoUi=function(e,d){var a=this,t=this.mapValuesFromModel(e);this.forEachInput((function(e,i,s,o){s===d&&a.setElementValue(e,null!=t[i]?t[i]:null)}))},d.prototype.setValueFromFloatingFilter=function(e){var d=this;this.forEachInput((function(a,t,i,s){d.setElementValue(a,0===t&&0===i?e:null,!0)}))},d.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},d.prototype.addChangedListeners=function(e,d){var a=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(d,(function(e){a.attachElementOnChange(e,a.listener)})))},d.prototype.individualConditionPasses=function(e,d){var a=this.getCellValue(e.node),t=this.mapValuesFromModel(d),i=this.optionsFactory.getCustomOption(d.type),s=this.evaluateCustomFilter(i,t,a);return null!=s?s:null==a?this.evaluateNullValue(d.type):this.evaluateNonNullValue(t,a,d,e)},d.prototype.evaluateCustomFilter=function(e,d,a){if(null!=e){var t=e.predicate;return null==t||d.some((function(e){return null==e}))?void 0:t(d,a)}},d.prototype.isBlank=function(e){return null==e||"string"===typeof e&&0===e.trim().length},d.prototype.hasInvalidInputs=function(){return!1},d.EMPTY="empty",d.BLANK="blank",d.NOT_BLANK="notBlank",d.EQUALS="equals",d.NOT_EQUAL="notEqual",d.LESS_THAN="lessThan",d.LESS_THAN_OR_EQUAL="lessThanOrEqual",d.GREATER_THAN="greaterThan",d.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",d.IN_RANGE="inRange",d.CONTAINS="contains",d.NOT_CONTAINS="notContains",d.STARTS_WITH="startsWith",d.ENDS_WITH="endsWith",d}(Ni),_s=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ys=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return _s(d,e),d.prototype.setParams=function(d){e.prototype.setParams.call(this,d),this.scalarFilterParams=d},d.prototype.evaluateNullValue=function(e){switch(e){case d.EQUALS:case d.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case d.GREATER_THAN:case d.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case d.LESS_THAN:case d.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case d.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case d.BLANK:return!0;case d.NOT_BLANK:return!1}return!1},d.prototype.evaluateNonNullValue=function(e,a,t){var i=this.comparator(),s=null!=e[0]?i(e[0],a):0;switch(t.type){case d.EQUALS:return 0===s;case d.NOT_EQUAL:return 0!==s;case d.GREATER_THAN:return s>0;case d.GREATER_THAN_OR_EQUAL:return s>=0;case d.LESS_THAN:return s<0;case d.LESS_THAN_OR_EQUAL:return s<=0;case d.IN_RANGE:var o=i(e[1],a);return this.scalarFilterParams.inRangeInclusive?s>=0&&o<=0:s>0&&o<0;case d.BLANK:return this.isBlank(a);case d.NOT_BLANK:return!this.isBlank(a);default:return console.warn('AG Grid: Unexpected type of filter "'+t.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},d}(cs),Cs=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),qs=function(){return qs=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ps=1/0,hs=function(e){function d(d,a,t){var i=e.call(this,a,t)||this;return i.dateFilterParams=d,i}return Cs(d,e),d.prototype.conditionToString=function(e,d){var a=e.type,t=(d||{}).numberOfInputs,i=a==cs.IN_RANGE||2===t,s=Qa(e.dateFrom),o=Qa(e.dateTo),l=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(i){var m=null!==s?za(s,l):"null",u=null!==o?za(o,l):"null";return"".concat(m,"-").concat(u)}return null!=s?za(s,l):"".concat(a)},d.prototype.updateParams=function(d){e.prototype.updateParams.call(this,d),this.dateFilterParams=d.dateFilterParams},d}(ps),Ts=function(e){function d(){var d=e.call(this,"dateFilter")||this;return d.eConditionPanelsFrom=[],d.eConditionPanelsTo=[],d.dateConditionFromComps=[],d.dateConditionToComps=[],d.minValidYear=1e3,d.maxValidYear=Ps,d.minValidDate=null,d.maxValidDate=null,d}return Cs(d,e),d.prototype.afterGuiAttached=function(d){e.prototype.afterGuiAttached.call(this,d),this.dateConditionFromComps[0].afterGuiAttached(d)},d.prototype.mapValuesFromModel=function(e){var d=e||{},a=d.dateFrom,t=d.dateTo,i=d.type;return[a&&Qa(a)||null,t&&Qa(t)||null].slice(0,this.getNumberOfInputs(i))},d.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},d.prototype.defaultComparator=function(e,d){return null==d||de?1:0},d.prototype.setParams=function(d){this.dateFilterParams=d,e.prototype.setParams.call(this,d);var a=function(e,a){if(null!=d[e]){if(!isNaN(d[e]))return null==d[e]?a:Number(d[e]);console.warn("AG Grid: DateFilter ".concat(e," is not a number"))}return a};this.minValidYear=a("minValidYear",1e3),this.maxValidYear=a("maxValidYear",Ps),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),d.minValidDate?this.minValidDate=d.minValidDate instanceof Date?d.minValidDate:Qa(d.minValidDate):this.minValidDate=null,d.maxValidDate?this.maxValidDate=d.maxValidDate instanceof Date?d.maxValidDate:Qa(d.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new hs(this.dateFilterParams,this.localeService,this.optionsFactory)},d.prototype.createDateCompWrapper=function(e){var d=this,a=new Bi(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return d.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc((function(){return a.destroy()})),a},d.prototype.setElementValue=function(e,d){e.setDate(d)},d.prototype.setElementDisplayed=function(e,d){e.setDisplayed(d)},d.prototype.setElementDisabled=function(e,d){e.setDisabled(d)},d.prototype.getDefaultFilterOptions=function(){return d.DEFAULT_FILTER_OPTIONS},d.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},d.prototype.createFromToElement=function(e,d,a,t){var i=document.createElement("div");i.classList.add("ag-filter-".concat(t)),i.classList.add("ag-filter-date-".concat(t)),d.push(i),e.appendChild(i),a.push(this.createDateCompWrapper(i))},d.prototype.removeValueElements=function(e,d){this.removeDateComps(this.dateConditionFromComps,e,d),this.removeDateComps(this.dateConditionToComps,e,d),this.removeItems(this.eConditionPanelsFrom,e,d),this.removeItems(this.eConditionPanelsTo,e,d)},d.prototype.removeDateComps=function(e,d,a){this.removeItems(e,d,a).forEach((function(e){return e.destroy()}))},d.prototype.isValidDateValue=function(e){if(null===e)return!1;if(this.minValidDate){if(ethis.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0},d.prototype.isConditionUiComplete=function(d){var a=this;if(!e.prototype.isConditionUiComplete.call(this,d))return!1;var t=!0;return this.forEachInput((function(e,i,s,o){s!==d||!t||i>=o||(t=t&&a.isValidDateValue(e.getDate()))})),t},d.prototype.areSimpleModelsEqual=function(e,d){return e.dateFrom===d.dateFrom&&e.dateTo===d.dateTo&&e.type===d.type},d.prototype.getFilterType=function(){return"date"},d.prototype.createCondition=function(e){var d=this.getConditionType(e),a={},t=this.getValues(e);return t.length>0&&(a.dateFrom=ja(t[0])),t.length>1&&(a.dateTo=ja(t[1])),qs({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:d},a)},d.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),d=this.translate("dateFormatOoo"),a=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(d),e.setInputAriaLabel(a)}))},d.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},d.prototype.getValues=function(e){var d=[];return this.forEachPositionInput(e,(function(e,a,t,i){a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Is=function(e){function d(){return e.call(this,'\n ')||this}return Ls(d,e),d.prototype.getDefaultFilterOptions=function(){return Ts.DEFAULT_FILTER_OPTIONS},d.prototype.init=function(d){e.prototype.init.call(this,d),this.params=d,this.filterParams=d.filterParams,this.createDateComponent(),this.filterModelFormatter=new hs(this.filterParams,this.localeService,this.optionsFactory);var a=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(a("ariaDateFilterInput","Date Filter Input"))},d.prototype.onParamsUpdated=function(d){e.prototype.onParamsUpdated.call(this,d),this.params=d,this.filterParams=d.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(d.currentParentModel())},d.prototype.updateCompOnModelChange=function(e){var d=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(d),d){if(e){var a=e;this.dateComp.setDate(Qa(a.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)},d.prototype.setEditable=function(e){at(this.eDateWrapper,e),at(this.eReadOnlyText.getGui(),!e)},d.prototype.onParentModelChanged=function(d,a){this.isEventFromFloatingFilter(a)||this.isEventFromDataChange(a)||(e.prototype.setLastTypeFromModel.call(this,d),this.updateCompOnModelChange(d))},d.prototype.onDateChanged=function(){var e=this,d=ja(this.dateComp.getDate());this.params.parentFilterInstance((function(a){if(a){var t=Qa(d);a.onFloatingFilterChanged(e.getLastType()||null,t)}}))},d.prototype.getDateComponentParams=function(){var e=Ni.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:V(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}},d.prototype.createDateComponent=function(){var e=this;this.dateComp=new Bi(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},d.prototype.updateDateComponent=function(){var e=this.getDateComponentParams(),d=this.gridOptionsService,a=d.api,t=d.columnApi,i=d.context;e.api=a,e.columnApi=t,e.context=i,this.dateComp.updateParams(e)},d.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},gs([ae("userComponentFactory")],d.prototype,"userComponentFactory",void 0),gs([Si("eReadOnlyText")],d.prototype,"eReadOnlyText",void 0),gs([Si("eDateWrapper")],d.prototype,"eDateWrapper",void 0),d}(Os),Bs=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Gs=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ds=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},vs=function(e){function d(){return e.call(this,'\n
\n \n
')||this}return Bs(d,e),d.prototype.destroy=function(){e.prototype.destroy.call(this)},d.prototype.init=function(e){var d=this;this.params=e,this.setParams(e);var a=this.gridOptionsService.getDocument(),t=this.eDateInput.getInputElement();this.addManagedListener(t,"mousedown",(function(){d.eDateInput.isDisabled()||d.usingSafariDatePicker||t.focus()})),this.addManagedListener(t,"input",(function(e){e.target===a.activeElement&&(d.eDateInput.isDisabled()||d.params.onDateChanged())}))},d.prototype.setParams=function(e){var d=this.eDateInput.getInputElement(),a=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=a&&Oa(),d.type=a?"date":"text";var t=e.filterParams||{},i=t.minValidYear,s=t.maxValidYear,o=t.minValidDate,l=t.maxValidDate;if(o&&i&&v("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),l&&s&&v("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),o&&l){var m=Ds([o,l].map((function(e){return e instanceof Date?e:Qa(e)})),2),u=m[0],n=m[1];u&&n&&u.getTime()>n.getTime()&&v("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}o?o instanceof Date?d.min=za(o):d.min=o:i&&(d.min="".concat(i,"-01-01")),l?l instanceof Date?d.max=za(l):d.max=l:s&&(d.max="".concat(s,"-12-31"))},d.prototype.onParamsUpdated=function(e){this.params=e,this.setParams(e)},d.prototype.getDate=function(){return Qa(this.eDateInput.getValue())},d.prototype.setDate=function(e){this.eDateInput.setValue(ja(e,!1))},d.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},d.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},d.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},d.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:ga()||Ia()||Oa()&&La()>=14.1},Gs([Si("eDateInput")],d.prototype,"eDateInput",void 0),d}(hi),Ms=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ws=function(e){function d(d,a,t){return void 0===a&&(a="ag-text-field"),void 0===t&&(t="text"),e.call(this,d,a,t)||this}return Ms(d,e),d.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},d.prototype.setValue=function(d,a){return this.eInput.value!==d&&(this.eInput.value=i(d)?d:""),e.prototype.setValue.call(this,d,a)},d.prototype.setStartValue=function(e){this.setValue(e,!0)},d.prototype.preventDisallowedCharacters=function(){var e=new RegExp("[".concat(this.config.allowedCharPattern,"]"));this.addManagedListener(this.eInput,"keydown",(function(d){Kt(d)&&d.key&&!e.test(d.key)&&d.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(d){var a,t=null===(a=d.clipboardData)||void 0===a?void 0:a.getData("text");t&&t.split("").some((function(d){return!e.test(d)}))&&d.preventDefault()}))},d}(ss),xs=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Es=function(e){function d(d){return e.call(this,d,"ag-number-field","number")||this}return xs(d,e),d.prototype.postConstruct=function(){var d=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(d.eInput.value),a=isNaN(e)?"":d.normalizeValue(e.toString());d.value!==a&&d.setValue(a)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},d.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},d.prototype.normalizeValue=function(e){if(""===e)return"";null!=this.precision&&(e=this.adjustPrecision(e));var d=parseFloat(e);return null!=this.min&&dthis.max&&(e=this.max.toString()),e},d.prototype.adjustPrecision=function(e,d){if(null==this.precision)return e;if(d){var a=parseFloat(e).toFixed(this.precision);return parseFloat(a).toString()}var t=String(e).split(".");if(t.length>1){if(t[1].length<=this.precision)return e;if(this.precision>0)return"".concat(t[0],".").concat(t[1].slice(0,this.precision))}return t[0]},d.prototype.setMin=function(e){return this.min===e||(this.min=e,xt(this.eInput,"min",e)),this},d.prototype.setMax=function(e){return this.max===e||(this.max=e,xt(this.eInput,"max",e)),this},d.prototype.setPrecision=function(e){return this.precision=e,this},d.prototype.setStep=function(e){return this.step===e||(this.step=e,xt(this.eInput,"step",e)),this},d.prototype.setValue=function(d,a){var t=this;return this.setValueOrInputValue((function(d){return e.prototype.setValue.call(t,d,a)}),(function(){return t}),d)},d.prototype.setStartValue=function(d){var a=this;return this.setValueOrInputValue((function(d){return e.prototype.setValue.call(a,d,!0)}),(function(e){a.eInput.value=e}),d)},d.prototype.setValueOrInputValue=function(e,d,a){if(i(a)){var t=this.isScientificNotation(a);if(t&&this.eInput.validity.valid)return e(a);if(!t)t=(a=this.adjustPrecision(a))!=this.normalizeValue(a);if(t)return d(a)}return e(a)},d.prototype.getValue=function(){if(this.eInput.validity.valid){var d=this.eInput.value;return this.isScientificNotation(d)?this.adjustPrecision(d,!0):e.prototype.getValue.call(this)}},d.prototype.isScientificNotation=function(e){return"string"===typeof e&&e.includes("e")},d}(ws),Rs=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),As=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return Rs(d,e),d.prototype.conditionToString=function(e,d){var a=(d||{}).numberOfInputs;return e.type==cs.IN_RANGE||2===a?"".concat(this.formatValue(e.filter),"-").concat(this.formatValue(e.filterTo)):null!=e.filter?this.formatValue(e.filter):"".concat(e.type)},d}(ps);function Fs(e){var d=(null!==e&&void 0!==e?e:{}).allowedCharPattern;return null!==d&&void 0!==d?d:null}var ks,Vs,Hs=function(e){function d(){var d=e.call(this,"numberFilter")||this;return d.eValuesFrom=[],d.eValuesTo=[],d}return Rs(d,e),d.prototype.refresh=function(d){return this.numberFilterParams.allowedCharPattern===d.allowedCharPattern&&e.prototype.refresh.call(this,d)},d.prototype.mapValuesFromModel=function(e){var d=e||{},a=d.filter,t=d.filterTo,i=d.type;return[this.processValue(a),this.processValue(t)].slice(0,this.getNumberOfInputs(i))},d.prototype.getDefaultDebounceMs=function(){return 500},d.prototype.comparator=function(){return function(e,d){return e===d?0:e0&&(a.filter=t[0]),t.length>1&&(a.filterTo=t[1]),a},d.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},d.prototype.getModelAsString=function(e){var d;return null!==(d=this.filterModelFormatter.getModelAsString(e))&&void 0!==d?d:""},d.prototype.hasInvalidInputs=function(){var e=!1;return this.forEachInput((function(d){d.getInputElement().validity.valid||(e=!0)})),e},d.DEFAULT_FILTER_OPTIONS=[ys.EQUALS,ys.NOT_EQUAL,ys.GREATER_THAN,ys.GREATER_THAN_OR_EQUAL,ys.LESS_THAN,ys.LESS_THAN_OR_EQUAL,ys.IN_RANGE,ys.BLANK,ys.NOT_BLANK],d}(ys),Ns=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Ws=function(){return Ws=Object.assign||function(e){for(var d,a=1,t=arguments.length;a0&&(a.filter=t[0]),t.length>1&&(a.filterTo=t[1]),a},d.prototype.getFilterType=function(){return"text"},d.prototype.areSimpleModelsEqual=function(e,d){return e.filter===d.filter&&e.filterTo===d.filterTo&&e.type===d.type},d.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},d.prototype.getValues=function(e){return this.getValuesWithSideEffects(e,!1)},d.prototype.getValuesWithSideEffects=function(e,a){var i=this,s=[];return this.forEachPositionInput(e,(function(e,o,l,m){var u;if(o=0},d.prototype.evaluateNonNullValue=function(e,d,a,t){var i=this,s=e.map((function(e){return i.formatter(e)}))||[],o=this.formatter(d),l=this.textFilterParams,m=l.api,u=l.colDef,n=l.column,r=l.columnApi,f=l.context,p=l.textFormatter;if(a.type===cs.BLANK)return this.isBlank(d);if(a.type===cs.NOT_BLANK)return!this.isBlank(d);var c={api:m,colDef:u,column:n,columnApi:r,context:f,node:t.node,data:t.data,filterOption:a.type,value:o,textFormatter:p};return s.some((function(e){return i.matcher(Ws(Ws({},c),{filterText:e}))}))},d.prototype.getModelAsString=function(e){var d;return null!==(d=this.filterModelFormatter.getModelAsString(e))&&void 0!==d?d:""},d.DEFAULT_FILTER_OPTIONS=[cs.CONTAINS,cs.NOT_CONTAINS,cs.EQUALS,cs.NOT_EQUAL,cs.STARTS_WITH,cs.ENDS_WITH,cs.BLANK,cs.NOT_BLANK],d.DEFAULT_FORMATTER=function(e){return e},d.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},d.DEFAULT_MATCHER=function(e){var a=e.filterOption,t=e.value,i=e.filterText;if(null==i)return!1;switch(a){case d.CONTAINS:return t.indexOf(i)>=0;case d.NOT_CONTAINS:return t.indexOf(i)<0;case d.EQUALS:return t===i;case d.NOT_EQUAL:return t!=i;case d.STARTS_WITH:return 0===t.indexOf(i);case d.ENDS_WITH:var s=t.lastIndexOf(i);return s>=0&&s===t.length-i.length;default:return!1}},d}(cs),zs=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Qs=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ks=function(e){function d(d){var a=e.call(this)||this;return a.params=d,a.valueChangedListener=function(){},a}return zs(d,e),d.prototype.setupGui=function(e){var d,a=this;this.eFloatingFilterTextInput=this.createManagedBean(new ws(null===(d=this.params)||void 0===d?void 0:d.config));var t=this.eFloatingFilterTextInput.getGui();e.appendChild(t),this.addManagedListener(t,"input",(function(e){return a.valueChangedListener(e)})),this.addManagedListener(t,"keydown",(function(e){return a.valueChangedListener(e)}))},d.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},d.prototype.setAutoComplete=function(e){this.eFloatingFilterTextInput.setAutoComplete(e)},d.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},d.prototype.setValue=function(e,d){this.eFloatingFilterTextInput.setValue(e,d)},d.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},d.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)},d.prototype.setAriaLabel=function(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)},d}(Ue),Ys=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return zs(d,e),d.prototype.postConstruct=function(){this.setTemplate('\n \n ')},d.prototype.getDefaultDebounceMs=function(){return 500},d.prototype.onParentModelChanged=function(e,d){this.isEventFromFloatingFilter(d)||this.isEventFromDataChange(d)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},d.prototype.init=function(d){this.setupFloatingFilterInputService(d),e.prototype.init.call(this,d),this.setTextInputParams(d)},d.prototype.setupFloatingFilterInputService=function(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},d.prototype.setTextInputParams=function(e){var d;this.params=e;var a=null!==(d=e.browserAutoComplete)&&void 0!==d&&d;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:a}),this.applyActive=Ni.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var t=Ni.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=V(this.syncUpWithParentFilter.bind(this),t);this.floatingFilterInputService.setValueChangedListener(i)}},d.prototype.onParamsUpdated=function(d){e.prototype.onParamsUpdated.call(this,d),this.setTextInputParams(d)},d.prototype.recreateFloatingFilterInputService=function(e){var d=this.floatingFilterInputService.getValue();_t(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(d,!0)},d.prototype.getAriaLabel=function(e){var d=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),a=this.localeService.getLocaleTextFunc();return"".concat(d," ").concat(a("ariaFilterInput","Filter Input"))},d.prototype.syncUpWithParentFilter=function(e){var d=this,a=e.key===Qt.ENTER;if(!this.applyActive||a){var t=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(t=Us.trimInput(t),this.floatingFilterInputService.setValue(t,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(d.getLastType()||null,t||null)}))}},d.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Qs([ae("columnModel")],d.prototype,"columnModel",void 0),Qs([Si("eFloatingFilterInputContainer")],d.prototype,"eFloatingFilterInputContainer",void 0),Qs([Z],d.prototype,"postConstruct",null),d}(Os),$s=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Xs=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.valueChangedListener=function(){},d.numberInputActive=!0,d}return $s(d,e),d.prototype.setupGui=function(e){var d=this;this.eFloatingFilterNumberInput=this.createManagedBean(new Es),this.eFloatingFilterTextInput=this.createManagedBean(new ws),this.eFloatingFilterTextInput.setDisabled(!0);var a=this.eFloatingFilterNumberInput.getGui(),t=this.eFloatingFilterTextInput.getGui();e.appendChild(a),e.appendChild(t),this.setupListeners(a,(function(e){return d.valueChangedListener(e)})),this.setupListeners(t,(function(e){return d.valueChangedListener(e)}))},d.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},d.prototype.setAutoComplete=function(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)},d.prototype.getValue=function(){return this.getActiveInputElement().getValue()},d.prototype.setValue=function(e,d){this.getActiveInputElement().setValue(e,d)},d.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},d.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},d.prototype.setupListeners=function(e,d){this.addManagedListener(e,"input",d),this.addManagedListener(e,"keydown",d)},d.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)},d.prototype.setAriaLabel=function(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)},d}(Ue),Js=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return $s(d,e),d.prototype.init=function(d){var a;e.prototype.init.call(this,d),this.filterModelFormatter=new As(this.localeService,this.optionsFactory,null===(a=d.filterParams)||void 0===a?void 0:a.numberFormatter)},d.prototype.onParamsUpdated=function(d){Fs(d.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(d),e.prototype.onParamsUpdated.call(this,d),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},d.prototype.getDefaultFilterOptions=function(){return Hs.DEFAULT_FILTER_OPTIONS},d.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},d.prototype.createFloatingFilterInputService=function(e){return this.allowedCharPattern=Fs(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Ks({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new Xs)},d}(Ys),Zs=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),eo=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return Zs(d,e),d.prototype.init=function(d){e.prototype.init.call(this,d),this.filterModelFormatter=new js(this.localeService,this.optionsFactory)},d.prototype.onParamsUpdated=function(d){e.prototype.onParamsUpdated.call(this,d),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},d.prototype.getDefaultFilterOptions=function(){return Us.DEFAULT_FILTER_OPTIONS},d.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},d.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new Ks)},d}(Ys),ao=function(){function e(e,d){void 0===d&&(d=!1);var a=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new ue,this.eElement=e,this.preventMouseClick=d;var t=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",t,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push((function(){a.eElement.removeEventListener("touchstart",t,{passive:!0}),a.eElement.removeEventListener("touchmove",i,{passive:!0}),a.eElement.removeEventListener("touchend",s,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var d=0;d0)if(d-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var a={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(a),this.lastTapTime=null}else this.lastTapTime=d;else this.lastTapTime=d},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),to=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),io=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},so=function(e){function d(a){var t=e.call(this)||this;return a||t.setTemplate(d.TEMPLATE),t}return to(d,e),d.prototype.attachCustomElements=function(e,d,a,t,i){this.eSortOrder=e,this.eSortAsc=d,this.eSortDesc=a,this.eSortMixed=t,this.eSortNone=i},d.prototype.setupSort=function(e,d){var a=this;void 0===d&&(d=!1),this.column=e,this.suppressOrder=d,this.setupMultiSortIndicator(),this.column.isSortable()&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedPropertyListener("unSortIcon",(function(){return a.updateIcons()})),this.addManagedListener(this.eventService,Je.EVENT_NEW_COLUMNS_LOADED,(function(){return a.updateIcons()})),this.addManagedListener(this.eventService,Je.EVENT_SORT_CHANGED,(function(){return a.onSortChanged()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return a.onSortChanged()})),this.onSortChanged())},d.prototype.addInIcon=function(e,d,a){if(null!=d){var t=Ut(e,this.gridOptionsService,a);t&&d.appendChild(t)}},d.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},d.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var d="asc"===e;at(this.eSortAsc,d,{skipAriaHidden:!0})}if(this.eSortDesc){var a="desc"===e;at(this.eSortDesc,a,{skipAriaHidden:!0})}if(this.eSortNone){var t=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.get("unSortIcon"),i=null===e||void 0===e;at(this.eSortNone,!t&&i,{skipAriaHidden:!0})}},d.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var d=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&d&&(this.addManagedListener(this.eventService,Je.EVENT_SORT_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},d.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);at(this.eSortMixed,e,{skipAriaHidden:!0})}},d.prototype.updateSortOrder=function(){var e,d=this;if(this.eSortOrder){var a=this.sortController.getColumnsWithSortingOrdered(),t=null!==(e=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==e?e:-1,i=a.some((function(e){var a;return null!==(a=d.sortController.getDisplaySortIndexForColumn(e))&&void 0!==a&&a})),s=t>=0&&i;at(this.eSortOrder,s,{skipAriaHidden:!0}),t>=0?this.eSortOrder.innerHTML=(t+1).toString():_t(this.eSortOrder)}},d.TEMPLATE='\n \n \n \n \n \n ',io([Si("eSortOrder")],d.prototype,"eSortOrder",void 0),io([Si("eSortAsc")],d.prototype,"eSortAsc",void 0),io([Si("eSortDesc")],d.prototype,"eSortDesc",void 0),io([Si("eSortMixed")],d.prototype,"eSortMixed",void 0),io([Si("eSortNone")],d.prototype,"eSortNone",void 0),io([ae("columnModel")],d.prototype,"columnModel",void 0),io([ae("sortController")],d.prototype,"sortController",void 0),d}(hi),oo=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),lo=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},mo=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.lastMovingChanged=0,d}return oo(d,e),d.prototype.destroy=function(){e.prototype.destroy.call(this)},d.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.shouldSuppressMenuHide()==this.currentSuppressMenuHide&&(this.setDisplayName(e),!0))))},d.prototype.workOutTemplate=function(){var e=qe(this.params.template,d.TEMPLATE);return e=e&&e.trim?e.trim():e},d.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},d.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var d=od(this.currentDisplayName);this.eText&&(this.eText.innerHTML=d)}},d.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},d.prototype.addInIcon=function(e,d,a){if(null!=d){var t=Ut(e,this.gridOptionsService,a);t&&d.appendChild(t)}},d.prototype.setupTap=function(){var e=this,d=this.gridOptionsService;if(!d.get("suppressTouch")){var a=new ao(this.getGui(),!0),t=d.get("suppressMenuHide"),s=t&&i(this.eMenu),o=s?new ao(this.eMenu,!0):a;if(this.params.enableMenu){var l=s?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(o,ao[l],(function(a){d.api.showColumnMenuAfterMouseClick(e.params.column,a.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(a,ao.EVENT_TAP,(function(d){var a=d.touchStart.target;t&&e.eMenu.contains(a)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return a.destroy()})),s&&this.addDestroyFunc((function(){return o.destroy()}))}},d.prototype.workOutShowMenu=function(){var e=!this.gridOptionsService.get("suppressMenuHide"),d=Ga()&&e;return this.params.enableMenu&&!d},d.prototype.shouldSuppressMenuHide=function(){return this.gridOptionsService.get("suppressMenuHide")},d.prototype.setMenu=function(){var e=this;this.eMenu&&(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu?(this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",this.currentSuppressMenuHide)):yt(this.eMenu))},d.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},d.prototype.workOutSort=function(){return this.params.enableSorting},d.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new so(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){this.addManagedListener(this.params.column,ce.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(d){var a=e.params.column.isMoving(),t=(new Date).getTime()-e.lastMovingChanged<50;if(!(a||t)){var i="ctrl"===e.gridOptionsService.get("multiSortKey")?d.ctrlKey||d.metaKey:d.shiftKey;e.params.progressSort(i)}}));var d=function(){if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var d=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),a=!(null===d||void 0===d?void 0:d.every((function(d){return e.params.column.getSort()==d.getSort()})));e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",a)}};this.addManagedListener(this.eventService,Je.EVENT_SORT_CHANGED,d),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,d)}},d.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ce.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},d.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();at(this.eFilter,e,{skipAriaHidden:!0})},d.TEMPLATE='',lo([ae("sortController")],d.prototype,"sortController",void 0),lo([ae("menuFactory")],d.prototype,"menuFactory",void 0),lo([ae("columnModel")],d.prototype,"columnModel",void 0),lo([Si("eFilter")],d.prototype,"eFilter",void 0),lo([Si("eSortIndicator")],d.prototype,"eSortIndicator",void 0),lo([Si("eMenu")],d.prototype,"eMenu",void 0),lo([Si("eLabel")],d.prototype,"eLabel",void 0),lo([Si("eText")],d.prototype,"eText",void 0),lo([Si("eSortOrder")],d.prototype,"eSortOrder",void 0),lo([Si("eSortAsc")],d.prototype,"eSortAsc",void 0),lo([Si("eSortDesc")],d.prototype,"eSortDesc",void 0),lo([Si("eSortMixed")],d.prototype,"eSortMixed",void 0),lo([Si("eSortNone")],d.prototype,"eSortNone",void 0),d}(hi),uo=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),no=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ro=function(e){function d(){return e.call(this,d.TEMPLATE)||this}return uo(d,e),d.prototype.destroy=function(){e.prototype.destroy.call(this)},d.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},d.prototype.checkWarnings=function(){this.params.template&&v("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},d.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var d=function(d){if(!Re(d)){var a=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),a,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,d),this.addTouchAndClickListeners(this.eOpenIcon,d);var a=function(e){Ee(e)};this.addManagedListener(this.eCloseIcon,"dblclick",a),this.addManagedListener(this.eOpenIcon,"dblclick",a),this.addManagedListener(this.getGui(),"dblclick",d),this.updateIconVisibility();var t=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(t,ye.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(t,ye.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},d.prototype.addTouchAndClickListeners=function(e,d){var a=new ao(e,!0);this.addManagedListener(a,ao.EVENT_TAP,d),this.addDestroyFunc((function(){return a.destroy()})),this.addManagedListener(e,"click",d)},d.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();at(this.eOpenIcon,e),at(this.eCloseIcon,!e)}else at(this.eOpenIcon,!1),at(this.eCloseIcon,!1)},d.prototype.addInIcon=function(e,d){var a=Ut(e,this.gridOptionsService,null);a&&this.getRefElement(d).appendChild(a)},d.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return at(this.eOpenIcon,!1),void at(this.eCloseIcon,!1)},d.prototype.setupLabel=function(){var e,d=this.params,a=d.displayName,t=d.columnGroup;if(i(a)){var s=od(a);this.getRefElement("agLabel").innerHTML=s}this.addOrRemoveCssClass("ag-sticky-label",!(null===(e=t.getColGroupDef())||void 0===e?void 0:e.suppressStickyLabel))},d.TEMPLATE='',no([ae("columnModel")],d.prototype,"columnModel",void 0),no([Si("agOpened")],d.prototype,"eOpenIcon",void 0),no([Si("agClosed")],d.prototype,"eCloseIcon",void 0),d}(hi),fo=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),po=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return fo(d,e),d.prototype.isPopup=function(){return!0},d.prototype.setParentComponent=function(d){d.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,d)},d.prototype.destroy=function(){var d=this.parentComponent;d&&d.isAlive()&&d.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},d}(hi),co=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),_o=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},yo=function(e){function d(){return e.call(this,d.TEMPLATE)||this}return co(d,e),d.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),i(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()},d.prototype.onKeyDown=function(e){var d=e.key;(d===Qt.LEFT||d===Qt.UP||d===Qt.RIGHT||d===Qt.DOWN||e.shiftKey&&d===Qt.ENTER)&&e.stopPropagation()},d.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},d.prototype.getValue=function(){var e=this.eTextArea.getValue();return i(e)||i(this.params.value)?this.params.parseValue(e):this.params.value},d.TEMPLATE='
\n \n
',_o([Si("eTextArea")],d.prototype,"eTextArea",void 0),d}(po),Co=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),qo=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},bo=function(e){function d(){var d=e.call(this,'
\n \n
')||this;return d.startedByEnter=!1,d}return Co(d,e),d.prototype.init=function(e){this.focusAfterAttached=e.cellStartedEdit;var d=this,a=d.eSelect,t=d.valueFormatterService,i=d.gridOptionsService,o=e.values,l=e.value,m=e.eventKey;if(s(o))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=m&&m===Qt.ENTER;var u=!1;o.forEach((function(d){var i={value:d},s=t.formatValue(e.column,null,d),o=null!==s&&void 0!==s;i.text=o?s:d,a.addOption(i),u=u||l===d})),u?a.setValue(e.value,!0):e.values.length&&a.setValue(e.values[0],!0);var n=e.valueListGap,r=e.valueListMaxWidth,f=e.valueListMaxHeight;null!=n&&a.setPickerGap(n),null!=f&&a.setPickerMaxHeight(f),null!=r&&a.setPickerMaxWidth(r),"fullRow"!==i.get("editType")&&this.addManagedListener(this.eSelect,as.EVENT_ITEM_SELECTED,(function(){return e.stopEditing()}))}},d.prototype.afterGuiAttached=function(){var e=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout((function(){e.isAlive()&&e.eSelect.showPicker()}))},d.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},d.prototype.getValue=function(){return this.eSelect.getValue()},d.prototype.isPopup=function(){return!1},qo([ae("valueFormatterService")],d.prototype,"valueFormatterService",void 0),qo([Si("eSelect")],d.prototype,"eSelect",void 0),d}(po),Po=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ho=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},To=function(e){function d(d){var a=e.call(this,'\n
\n '.concat(d.getTemplate(),"\n
"))||this;return a.cellEditorInput=d,a}return Po(d,e),d.prototype.init=function(e){this.params=e;var d,a=this.eInput;if(this.cellEditorInput.init(a,e),e.cellStartedEdit){this.focusAfterAttached=!0;var t=e.eventKey;t===Qt.BACKSPACE||e.eventKey===Qt.DELETE?d="":t&&1===t.length?d=t:(d=this.cellEditorInput.getStartValue(),t!==Qt.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,d=this.cellEditorInput.getStartValue();null!=d&&a.setStartValue(d),this.addManagedListener(a.getGui(),"keydown",(function(e){var d=e.key;d!==Qt.PAGE_UP&&d!==Qt.PAGE_DOWN||e.preventDefault()}))},d.prototype.afterGuiAttached=function(){var e,d,a=this.localeService.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(a("ariaInputEditor","Input Editor")),this.focusAfterAttached){Oa()||t.getFocusableElement().focus();var i=t.getInputElement();this.highlightAllOnFocus?i.select():null===(d=(e=this.cellEditorInput).setCaret)||void 0===d||d.call(e)}},d.prototype.focusIn=function(){var e=this.eInput,d=e.getFocusableElement(),a=e.getInputElement();d.focus(),a.select()},d.prototype.getValue=function(){return this.cellEditorInput.getValue()},d.prototype.isPopup=function(){return!1},ho([Si("eInput")],d.prototype,"eInput",void 0),d}(po),So=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Oo=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,d){this.eInput=e,this.params=d,null!=d.maxLength&&e.setMaxLength(d.maxLength)},e.prototype.getValue=function(){var e=this.eInput.getValue();return i(e)||i(this.params.value)?this.params.parseValue(e):this.params.value},e.prototype.getStartValue=function(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value},e.prototype.setCaret=function(){var e=this.eInput.getValue(),d=i(e)&&e.length||0;d&&this.eInput.getInputElement().setSelectionRange(d,d)},e}(),Lo=function(e){function d(){return e.call(this,new Oo)||this}return So(d,e),d}(To),go=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Io=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Bo=function(e){function d(){var a=e.call(this,d.TEMPLATE)||this;return a.refreshCount=0,a}return go(d,e),d.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},d.prototype.showDelta=function(e,d){var a=Math.abs(d),t=e.formatValue(a),s=i(t)?t:a,o=d>=0;this.eDelta.innerHTML=o?"\u2191"+s:"\u2193"+s,this.eDelta.classList.toggle("ag-value-change-delta-up",o),this.eDelta.classList.toggle("ag-value-change-delta-down",!o)},d.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var d=this.refreshCount;window.setTimeout((function(){d===e.refreshCount&&e.hideDeltaValue()}),2e3)},d.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),_t(this.eDelta)},d.prototype.refresh=function(e){var d=e.value;if(d===this.lastValue)return!1;if(i(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:i(e.value)?this.eValue.innerHTML=d:_t(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof d&&"number"===typeof this.lastValue){var a=d-this.lastValue;this.showDelta(e,a)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=d,!0},d.TEMPLATE='',Io([ae("filterManager")],d.prototype,"filterManager",void 0),d}(hi),Go=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Do=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},vo=function(e){function d(){var a=e.call(this,d.TEMPLATE)||this;return a.refreshCount=0,a.eCurrent=a.queryForHtmlElement(".ag-value-slide-current"),a}return Go(d,e),d.prototype.init=function(e){this.refresh(e)},d.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var d=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=qt(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){d===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){d===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},d.prototype.refresh=function(e){var d=e.value;return s(d)&&(d=""),d!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=d,i(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:i(e.value)?this.eCurrent.innerHTML=d:_t(this.eCurrent),!0))},d.TEMPLATE='\n \n ',Do([ae("filterManager")],d.prototype,"filterManager",void 0),d}(hi),Mo=function(){return Mo=Object.assign||function(e){for(var d,a=1,t=arguments.length;a0?t:void 0,level:this.level}),null!==this.id&&"string"===typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with ".concat(e.ID_PREFIX_ROW_GROUP,", this is a reserved prefix for AG Grid's row grouping feature.")),null!==this.id&&"string"!==typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=d},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var d=[],a=this;for(e&&(a=a.parent);a&&a.level>=0;)d.push(a.key),a=a.parent;return d.reverse(),d},e.prototype.isPixelInRange=function(e){return!(!i(this.rowTop)||!i(this.rowHeight))&&(e>=this.rowTop&&et&&(t=o)})),!d&&((a||t<10)&&(t=this.beans.gridOptionsService.getRowHeightForNode(this).height),t!=this.rowHeight))){this.setRowHeight(t);var s=this.beans.rowModel;s.onRowHeightChangedDebounced&&s.onRowHeightChangedDebounced()}},e.prototype.setRowIndex=function(d){this.rowIndex!==d&&(this.rowIndex=d,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(d){this.uiLevel!==d&&(this.uiLevel=d,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(d,a){if(this.expanded!==d){this.expanded=d,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var t=Object.assign({},this.createGlobalRowEvent(Je.EVENT_ROW_GROUP_OPENED),{expanded:d,event:a||null});this.beans.rowNodeEventThrottle.dispatchExpanded(t),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,d,a){var t=this,i=function(){var d;return"string"!==typeof e?e:null!==(d=t.beans.columnModel.getGridColumn(e))&&void 0!==d?d:t.beans.columnModel.getPrimaryColumn(e)}(),s=this.getValueFromValueService(i);if(this.beans.gridOptionsService.get("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(i,s,d,a),!1;var o=this.beans.valueService.setValue(this,i,d,a);return this.dispatchCellChangedEvent(i,d,s),this.checkRowSelectable(),o},e.prototype.getValueFromValueService=function(e){var d=this.leafGroup&&this.beans.columnModel.isPivotMode(),a=this.group&&this.expanded&&!this.footer&&!d,t=this.beans.gridOptionsService.getGroupIncludeFooter()({node:this}),i=this.beans.gridOptionsService.get("groupSuppressBlankHeader"),s=a&&t&&!i;return this.beans.valueService.getValue(e,this,!1,s)},e.prototype.dispatchEventForSaveValueReadOnly=function(e,d,a,t){var i={type:Je.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:e,colDef:e.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:d,newValue:a,value:a,source:t};this.beans.eventService.dispatchEvent(i)},e.prototype.setGroupValue=function(e,d){var a=this.beans.columnModel.getGridColumn(e);s(this.groupData)&&(this.groupData={});var t=a.getColId(),i=this.groupData[t];i!==d&&(this.groupData[t]=d,this.dispatchCellChangedEvent(a,d,i))},e.prototype.setAggData=function(e){var d=this,a=T([this.aggData,e]),t=this.aggData;this.aggData=e,this.eventService&&a.forEach((function(e){var a=d.aggData?d.aggData[e]:void 0,i=t?t[e]:void 0;if(a!==i){var s=d.beans.columnModel.lookupGridColumn(e);s&&d.dispatchCellChangedEvent(s,a,i)}}))},e.prototype.updateHasChildren=function(){var d=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var a=this.beans.gridOptionsService.get("treeData"),t=this.beans.gridOptionsService.get("isServerSideGroup");d=!this.stub&&!this.footer&&(a?!!t&&t(this.data):!!this.group)}d!==this.__hasChildren&&(this.__hasChildren=!!d,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&o(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(d,a,t){var i={type:e.EVENT_CELL_CHANGED,node:this,column:d,newValue:a,oldValue:t};this.dispatchLocalEvent(i)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!this.footer&&(this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(d){return d.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,d=!1,a=!1,t=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var i=0;i=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ao=function(e){function d(){return e.call(this,'\n ')||this}return xo(d,e),d.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),Yd(this.eCheckbox.getInputElement(),"polite")},d.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},d.prototype.onDataChanged=function(){this.onSelectionChanged()},d.prototype.onSelectableChanged=function(){this.showOrHideSelect()},d.prototype.onSelectionChanged=function(){var e=this.localeService.getLocaleTextFunc(),d=this.rowNode.isSelected(),a=ca(e,d),t=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(d,!0),this.eCheckbox.setInputAriaLabel("".concat(t," (").concat(a,")"))},d.prototype.onClicked=function(e,d,a){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:a.shiftKey,groupSelectsFiltered:d,event:a,source:"checkboxSelected"})},d.prototype.init=function(e){var d=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(e){Ee(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){Ee(e);var a=d.gridOptionsService.get("groupSelectsFiltered"),t=d.eCheckbox.getValue();d.shouldHandleIndeterminateState(t,a)?0===d.onClicked(!0,a,e||{})&&d.onClicked(!1,a,e):t?d.onClicked(!1,a,e):d.onClicked(!0,a,e||{})})),this.addManagedListener(this.rowNode,wo.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"===typeof this.getIsVisible()){var a=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,a),this.addManagedListener(this.rowNode,wo.EVENT_DATA_CHANGED,a),this.addManagedListener(this.rowNode,wo.EVENT_CELL_CHANGED,a),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},d.prototype.shouldHandleIndeterminateState=function(e,d){return d&&(void 0===this.eCheckbox.getPreviousValue()||void 0===e)&&this.gridOptionsService.isRowModelType("clientSide")},d.prototype.showOrHideSelect=function(){var e,d,a,t,i=this.rowNode.selectable,s=this.getIsVisible();if(i)if("function"===typeof s){var o=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,l=null===(d=this.column)||void 0===d?void 0:d.createColumnFunctionCallbackParams(this.rowNode);i=!!l&&s(Eo(Eo({},o),l))}else i=null!==s&&void 0!==s&&s;if(null===(a=this.column)||void 0===a?void 0:a.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!i),this.setVisible(!0),void this.setDisplayed(!0);(null===(t=this.overrides)||void 0===t?void 0:t.removeHidden)?this.setDisplayed(i):this.setVisible(i)},d.prototype.getIsVisible=function(){var e,d;return this.overrides?this.overrides.isVisible:null===(d=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===d?void 0:d.checkboxSelection},Ro([Si("eCheckbox")],d.prototype,"eCheckbox",void 0),Ro([Z],d.prototype,"postConstruct",null),d}(hi);!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(ks||(ks={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Vs||(Vs={}));var Fo,ko=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Vo=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ho=function(e){var d="function"===typeof Symbol&&Symbol.iterator,a=d&&e[d],t=0;if(a)return a.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"}(Fo||(Fo={}));var No,Wo=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.dragSourceAndParamsList=[],d.dropTargets=[],d}var a;return ko(d,e),a=d,d.prototype.init=function(){this.ePinnedIcon=jt("columnMovePin",this.gridOptionsService,null),this.eHideIcon=jt("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=jt("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=jt("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=jt("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=jt("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=jt("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=jt("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=jt("dropNotAllowed",this.gridOptionsService,null)},d.prototype.addDragSource=function(e,d){void 0===d&&(d=!1);var a={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:d};this.dragSourceAndParamsList.push({params:a,dragSource:e}),this.dragService.addDragSource(a)},d.prototype.removeDragSource=function(e){var d=this.dragSourceAndParamsList.find((function(d){return d.dragSource===e}));d&&(this.dragService.removeDragSource(d.params),Se(this.dragSourceAndParamsList,d))},d.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(d){return e.dragService.removeDragSource(d.params)})),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},d.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},d.prototype.onDragStart=function(e,d){this.dragging=!0,this.dragSource=e,this.eventLastTime=d,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},d.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var d=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(d)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},d.prototype.onDragging=function(e,d){var a,t,i,s,o=this,l=this.getHorizontalDirection(e),m=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var u=this.dropTargets.filter((function(d){return o.isMouseOnDropTarget(e,d)})),n=this.findCurrentDropTarget(e,u);if(n!==this.lastDropTarget)this.leaveLastTargetIfExists(e,l,m,d),null!==this.lastDropTarget&&null===n&&(null===(t=(a=this.dragSource).onGridExit)||void 0===t||t.call(a,this.dragItem)),null===this.lastDropTarget&&null!==n&&(null===(s=(i=this.dragSource).onGridEnter)||void 0===s||s.call(i,this.dragItem)),this.enterDragTargetIfExists(n,e,l,m,d),this.lastDropTarget=n;else if(n&&n.onDragging){var r=this.createDropTargetEvent(n,e,l,m,d);n.onDragging(r)}},d.prototype.getAllContainersFromDropTarget=function(e){var d=e.getSecondaryContainers?e.getSecondaryContainers():null,a=[[e.getContainer()]];return d?a.concat(d):a},d.prototype.allContainersIntersect=function(e,d){var a,t;try{for(var i=Ho(d),s=i.next();!s.done;s=i.next()){var o=s.value.getBoundingClientRect();if(0===o.width||0===o.height)return!1;var l=e.clientX>=o.left&&e.clientX=o.top&&e.clientYa?Vs.Left:Vs.Right},d.prototype.getVerticalDirection=function(e){var d=this.eventLastTime&&this.eventLastTime.clientY,a=e.clientY;return d===a?null:d>a?ks.Up:ks.Down},d.prototype.createDropTargetEvent=function(e,d,a,t,i){var s=e.getContainer(),o=s.getBoundingClientRect(),l=this,m=l.gridApi,u=l.columnApi,n=l.dragItem,r=l.dragSource;return{event:d,x:d.clientX-o.left,y:d.clientY-o.top,vDirection:t,hDirection:a,dragSource:r,fromNudge:i,dragItem:n,api:m,columnApi:u,dropZoneTarget:s}},d.prototype.positionGhost=function(e){var d=this.eGhost;if(d){var a=d.getBoundingClientRect().height,t=wa()-2,i=xa()-2,s=rt(d.offsetParent),o=e.clientY,l=e.clientX,m=o-s.top-a/2,u=l-s.left-10,n=this.gridOptionsService.getDocument(),r=n.defaultView||window,f=r.pageYOffset||n.documentElement.scrollTop,p=r.pageXOffset||n.documentElement.scrollLeft;t>0&&u+d.clientWidth>t+p&&(u=t+p-d.clientWidth),u<0&&(u=0),i>0&&m+d.clientHeight>i+f&&(m=i+f-d.clientHeight),m<0&&(m=0),d.style.left="".concat(u,"px"),d.style.top="".concat(m,"px")}},d.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},d.prototype.createGhost=function(){this.eGhost=qt(a.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var d=this.eGhost.querySelector(".ag-dnd-ghost-label"),t=this.dragSource.dragItemName;x(t)&&(t=t()),d.innerHTML=od(t)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var i=this.gridOptionsService.getDocument(),s=null,o=null;try{s=i.fullscreenElement}catch(m){}finally{s||(s=this.gridOptionsService.getRootNode());var l=s.querySelector("body");o=l||(s instanceof ShadowRoot?s:s instanceof Document?null===s||void 0===s?void 0:s.documentElement:s)}this.eGhostParent=o,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},d.prototype.setGhostIcon=function(e,d){void 0===d&&(d=!1),_t(this.eGhostIcon);var t=null;switch(e||(e=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():a.ICON_NOT_ALLOWED),e){case a.ICON_PINNED:t=this.ePinnedIcon;break;case a.ICON_MOVE:t=this.eMoveIcon;break;case a.ICON_LEFT:t=this.eLeftIcon;break;case a.ICON_RIGHT:t=this.eRightIcon;break;case a.ICON_GROUP:t=this.eGroupIcon;break;case a.ICON_AGGREGATE:t=this.eAggregateIcon;break;case a.ICON_PIVOT:t=this.ePivotIcon;break;case a.ICON_NOT_ALLOWED:t=this.eDropNotAllowedIcon;break;case a.ICON_HIDE:t=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",d),t===this.eHideIcon&&this.gridOptionsService.get("suppressDragLeaveHidesColumns")||t&&this.eGhostIcon.appendChild(t)},d.ICON_PINNED="pinned",d.ICON_MOVE="move",d.ICON_LEFT="left",d.ICON_RIGHT="right",d.ICON_GROUP="group",d.ICON_AGGREGATE="aggregate",d.ICON_PIVOT="pivot",d.ICON_NOT_ALLOWED="notAllowed",d.ICON_HIDE="hide",d.GHOST_TEMPLATE='
\n \n
\n
',Vo([ae("dragService")],d.prototype,"dragService",void 0),Vo([ae("mouseEventService")],d.prototype,"mouseEventService",void 0),Vo([ae("columnApi")],d.prototype,"columnApi",void 0),Vo([ae("gridApi")],d.prototype,"gridApi",void 0),Vo([Z],d.prototype,"init",null),Vo([ee],d.prototype,"clearDragSourceParamsList",null),d=a=Vo([de("dragAndDropService")],d)}(Ue),jo=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Uo=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},zo=function(e){function d(d,a,t,i,s,o){var l=e.call(this)||this;return l.cellValueFn=d,l.rowNode=a,l.column=t,l.customGui=i,l.dragStartPixels=s,l.suppressVisibilityChange=o,l.dragSource=null,l}return jo(d,e),d.prototype.isCustomGui=function(){return null!=this.customGui},d.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(Ut("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.get("rowDragManaged")?new Yo(this,this.beans,this.rowNode,this.column):new Ko(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},d.prototype.setDragElement=function(e,d){this.setTemplateFromElement(e),this.addDragSource(d)},d.prototype.getSelectedNodes=function(){if(!this.gridOptionsService.get("rowDragMultiRow"))return[this.rowNode];var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]},d.prototype.checkCompatibility=function(){var e=this.gridOptionsService.get("rowDragManaged");this.gridOptionsService.get("treeData")&&e&&v("If using row drag with tree data, you cannot have rowDragManaged=true")},d.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},d.prototype.getRowDragText=function(e){if(e){var d=e.getColDef();if(d.rowDragText)return d.rowDragText}return this.gridOptionsService.get("rowDragText")},d.prototype.addDragSource=function(e){var d=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var a=this.localeService.getLocaleTextFunc();this.dragSource={type:Fo.RowDrag,eElement:this.getGui(),dragItemName:function(){var e,t=d.getDragItem(),i=(null===(e=t.rowNodes)||void 0===e?void 0:e.length)||1,s=d.getRowDragText(d.column);return s?s(t,i):1===i?d.cellValueFn():"".concat(i," ").concat(a("rowDragRows","rows"))},getDragItem:function(){return d.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},d.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},Uo([ae("beans")],d.prototype,"beans",void 0),Uo([Z],d.prototype,"postConstruct",null),Uo([ee],d.prototype,"removeDragSource",null),d}(hi),Qo=function(e){function d(d,a,t){var i=e.call(this)||this;return i.parent=d,i.rowNode=a,i.column=t,i}return jo(d,e),d.prototype.setDisplayedOrVisible=function(e){var d={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,d);else{var a=!0,t=!1;this.column&&(a=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),t=x(this.column.getColDef().rowDrag)),t?(this.parent.setDisplayed(!0,d),this.parent.setVisible(a,d)):(this.parent.setDisplayed(a,d),this.parent.setVisible(!0,d))}},d}(Ue),Ko=function(e){function d(d,a,t,i){var s=e.call(this,d,t,i)||this;return s.beans=a,s}return jo(d,e),d.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Je.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},d.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},d.prototype.workOutVisibility=function(){var e=this.gridOptionsService.get("suppressRowDrag");this.setDisplayedOrVisible(e)},Uo([Z],d.prototype,"postConstruct",null),d}(Qo),Yo=function(e){function d(d,a,t,i){var s=e.call(this,d,t,i)||this;return s.beans=a,s}return jo(d,e),d.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Je.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Je.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Je.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},d.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},d.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),d=e&&e.shouldPreventRowMove(),a=this.gridOptionsService.get("suppressRowDrag"),t=this.beans.dragAndDropService.hasExternalDropZones(),i=d&&!t||a;this.setDisplayedOrVisible(i)},Uo([Z],d.prototype,"postConstruct",null),d}(Qo),$o=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Xo=function(){return Xo=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Zo=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return $o(d,e),d.prototype.init=function(e,d,a,t,i,s,o){var l,m,u,n;this.params=o,this.eGui=d,this.eCheckbox=a,this.eExpanded=t,this.eContracted=i,this.comp=e,this.compClass=s;var r=o.node;o.value;var f=o.colDef,p=this.isTopLevelFooter();if(!p){if(this.isEmbeddedRowMismatch())return;if(r.footer&&this.gridOptionsService.get("groupHideOpenParents"))if((f&&f.showRowGroup)!==(r.rowGroupColumn&&r.rowGroupColumn.getColId()))return}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!p){var c=o.node.footer&&o.node.rowGroupIndex===this.columnModel.getRowGroupColumns().findIndex((function(e){var d;return e.getColId()===(null===(d=o.colDef)||void 0===d?void 0:d.showRowGroup)})),_="multipleColumns"!=this.gridOptionsService.get("groupDisplayType")||this.gridOptionsService.get("treeData")||this.gridOptionsService.get("showOpenedGroup")&&!o.node.footer&&(!o.node.group||null!=o.node.rowGroupIndex&&o.node.rowGroupIndex>this.columnModel.getRowGroupColumns().findIndex((function(e){var d;return e.getColId()===(null===(d=o.colDef)||void 0===d?void 0:d.showRowGroup)}))),y=!r.group&&((null===(l=this.params.colDef)||void 0===l?void 0:l.field)||(null===(m=this.params.colDef)||void 0===m?void 0:m.valueGetter)),C=this.isExpandable(),q=this.columnModel.isPivotMode()&&r.leafGroup&&(null===(u=r.rowGroupColumn)||void 0===u?void 0:u.getColId())===(null===(n=o.column)||void 0===n?void 0:n.getColDef().showRowGroup);if(!this.showingValueForOpenedParent&&!C&&!y&&!_&&!c&&!q)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()},d.prototype.getCellAriaRole=function(){var e,d,a=null===(e=this.params.colDef)||void 0===e?void 0:e.cellAriaRole,t=null===(d=this.params.column)||void 0===d?void 0:d.getColDef().cellAriaRole;return a||t||"gridcell"},d.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},d.prototype.refreshAriaExpanded=function(){var e=this.params,d=e.node,a=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var t=function(){ea(a,!!d.expanded)};this.expandListener=this.addManagedListener(d,wo.EVENT_EXPANDED_CHANGED,t)||null,t()}else da(a)},d.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.get("groupIncludeTotalFooter"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var d=this.columnModel.getRowGroupColumns();return!d||0===d.length||d[0].getId()===e.showRowGroup},d.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.get("embedFullWidthRows"))return!1;var e="left"===this.params.pinned,d="right"===this.params.pinned,a=!e&&!d;return this.gridOptionsService.get("enableRtl")?this.columnModel.isPinningLeft()?!d:!a:this.columnModel.isPinningLeft()?!e:!a},d.prototype.findDisplayedGroupNode=function(){var e=this.params.column,d=this.params.node;if(this.showingValueForOpenedParent)for(var a=d.parent;null!=a;){if(a.rowGroupColumn&&e.isRowGroupDisplayed(a.rowGroupColumn.getId())){this.displayedGroupNode=a;break}a=a.parent}s(this.displayedGroupNode)&&(this.displayedGroupNode=d)},d.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,d=this.params.column;if(this.gridOptionsService.get("groupHideOpenParents"))if(e.groupData){if(null!=e.rowGroupColumn){var a=e.rowGroupColumn.getId();if(d.isRowGroupDisplayed(a))return void(this.showingValueForOpenedParent=!1)}var t=null!=e.groupData[d.getId()];this.showingValueForOpenedParent=t}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},d.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},d.prototype.addGroupValue=function(){var e,d=this.adjustParamsWithDetailsFromRelatedColumn(),a=this.getInnerCompDetails(d),t=d.valueFormatted,i=d.value,s=t;if(null==s){var o=this.displayedGroupNode.rowGroupColumn&&(null===(e=this.params.column)||void 0===e?void 0:e.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));if(""===this.displayedGroupNode.key&&this.displayedGroupNode.group&&o)s=this.localeService.getLocaleTextFunc()("blanks","(Blanks)");else s=null!==i&&void 0!==i?i:null}this.comp.setInnerRenderer(a,s)},d.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,d=this.params.column;if(!e)return this.params;if(null!=d&&!d.isRowGroupDisplayed(e.getId()))return this.params;var a=this.params,t=this.params,i=t.value,s=t.node,o=this.valueFormatterService.formatValue(e,s,i);return Xo(Xo({},a),{valueFormatted:o})},d.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,d="";if(e){var a=C(this.params);a.value=this.params.value,"function"===typeof e?d=e(a):"string"===typeof e?d=this.expressionService.evaluate(e,a):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else d="Total "+(null!=this.params.value?this.params.value:"");var t=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(t,d)},d.prototype.getInnerCompDetails=function(e){var d=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var a=this.userComponentFactory.getInnerRendererDetails(e,e),t=function(e){return e&&e.componentClass==d.compClass};if(a&&!t(a))return a;var i=this.displayedGroupNode.rowGroupColumn,s=i?i.getColDef():void 0;if(s){var o=this.userComponentFactory.getCellRendererDetails(s,e);if(o&&!t(o))return o;if(t(o)&&s.cellRendererParams&&s.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(s.cellRendererParams,e)}},d.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,wo.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},d.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,d=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"(".concat(e,")"):"";this.comp.setChildCount(d)},d.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.get("treeData"))return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var d=this.params.column;return null==d||d.isRowGroupDisplayed(e.getId())},d.prototype.addExpandAndContract=function(){var e,d=this.params,a=Ut("groupExpanded",this.gridOptionsService,null),t=Ut("groupContracted",this.gridOptionsService,null);a&&this.eExpanded.appendChild(a),t&&this.eContracted.appendChild(t);var i=d.eGridCell;(null===(e=this.params.column)||void 0===e?void 0:e.isCellEditable(d.node))&&this.gridOptionsService.get("enableGroupEdit")||!this.isExpandable()||d.suppressDoubleClickExpand||this.addManagedListener(i,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(i,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(d.node,wo.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var s=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,wo.EVENT_ALL_CHILDREN_COUNT_CHANGED,s),this.addManagedListener(this.displayedGroupNode,wo.EVENT_MASTER_CHANGED,s),this.addManagedListener(this.displayedGroupNode,wo.EVENT_GROUP_CHANGED,s),this.addManagedListener(this.displayedGroupNode,wo.EVENT_HAS_CHILDREN_CHANGED,s)},d.prototype.onExpandClicked=function(e){Re(e)||(Ee(e),this.onExpandOrContract(e))},d.prototype.onExpandOrContract=function(e){var d=this.displayedGroupNode,a=!d.expanded;!a&&d.sticky&&this.scrollToStickyNode(d),d.setExpanded(a,e)},d.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},d.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,d=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!d))return!1;var a=this.params.column;return null==a||"string"!==typeof a.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},d.prototype.showExpandAndContractIcons=function(){var e=this,d=e.params,a=e.displayedGroupNode,t=e.columnModel,i=d.node,s=this.isExpandable();if(s){var o=!!this.showingValueForOpenedParent||i.expanded;this.comp.setExpandedDisplayed(o),this.comp.setContractedDisplayed(!o)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var l=t.isPivotMode(),m=l&&a.leafGroup,u=s&&!m,n=i.footer&&-1===i.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),l?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",m):n||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},d.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},d.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,wo.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},d.prototype.setIndent=function(){if(!this.gridOptionsService.get("groupHideOpenParents")){var e=this.params,d=e.node,a=!!e.colDef,t=this.gridOptionsService.get("treeData"),i=!a||t||!0===e.colDef.showRowGroup?d.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+i,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},d.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var d=new zo((function(){return e.params.value}),this.params.node);this.createManagedBean(d,this.context),this.eGui.insertAdjacentElement("afterbegin",d.getGui())}},d.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"===typeof e||!0===e},d.prototype.addCheckboxIfNeeded=function(){var e=this,d=this.displayedGroupNode,a=this.isUserWantsSelected()&&!d.footer&&!d.rowPinned&&!d.detail;if(a){var t=new Ao;this.getContext().createBean(t),t.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(t.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(t)}))}this.comp.setCheckboxVisible(a)},d.prototype.onKeyDown=function(e){e.key!==Qt.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},d.prototype.onCellDblClicked=function(e){Re(e)||(ke(this.eExpanded,e)||ke(this.eContracted,e)||this.onExpandOrContract(e))},Jo([ae("expressionService")],d.prototype,"expressionService",void 0),Jo([ae("valueFormatterService")],d.prototype,"valueFormatterService",void 0),Jo([ae("columnModel")],d.prototype,"columnModel",void 0),Jo([ae("userComponentFactory")],d.prototype,"userComponentFactory",void 0),Jo([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),d}(Ue),el=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),dl=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},al=function(e){function d(){return e.call(this,d.TEMPLATE)||this}return el(d,e),d.prototype.init=function(e){var d=this,a={setInnerRenderer:function(e,a){return d.setRenderDetails(e,a)},setChildCount:function(e){return d.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,a){return d.addOrRemoveCssClass(e,a)},setContractedDisplayed:function(e){return at(d.eContracted,e)},setExpandedDisplayed:function(e){return at(d.eExpanded,e)},setCheckboxVisible:function(e){return d.eCheckbox.classList.toggle("ag-invisible",!e)}},t=this.createManagedBean(new Zo),i=!e.colDef,s=this.getGui();t.init(a,s,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),i&&Hd(s,t.getCellAriaRole())},d.prototype.setRenderDetails=function(e,d){var a=this;if(e){var t=e.newAgStackInstance();if(!t)return;t.then((function(e){if(e){var d=function(){return a.context.destroyBean(e)};a.isAlive()?(a.eValue.appendChild(e.getGui()),a.addDestroyFunc(d)):d()}}))}else this.eValue.innerText=d},d.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},d.prototype.refresh=function(){return!1},d.TEMPLATE='\n \n \n \n \n \n ',dl([Si("eExpanded")],d.prototype,"eExpanded",void 0),dl([Si("eContracted")],d.prototype,"eContracted",void 0),dl([Si("eCheckbox")],d.prototype,"eCheckbox",void 0),dl([Si("eValue")],d.prototype,"eValue",void 0),dl([Si("eChildCount")],d.prototype,"eChildCount",void 0),d}(hi),tl=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),il=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},sl=function(e){function d(){return e.call(this,d.TEMPLATE)||this}return tl(d,e),d.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},d.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},d.prototype.setupLoading=function(){var e=Ut("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var d=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=d("loadingOoo","Loading")},d.prototype.refresh=function(e){return!1},d.prototype.destroy=function(){e.prototype.destroy.call(this)},d.TEMPLATE='
\n \n \n
',il([Si("eLoadingIcon")],d.prototype,"eLoadingIcon",void 0),il([Si("eLoadingText")],d.prototype,"eLoadingText",void 0),d}(hi),ol=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ll=function(e){function d(){return e.call(this)||this}return ol(d,e),d.prototype.destroy=function(){e.prototype.destroy.call(this)},d.prototype.init=function(e){var a,t=null!==(a=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==a?a:d.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.localeService.getLocaleTextFunc(),s=t.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(s)},d.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',d}(hi),ml=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ul=function(e){function d(){return e.call(this)||this}return ml(d,e),d.prototype.destroy=function(){e.prototype.destroy.call(this)},d.prototype.init=function(e){var a,t=null!==(a=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==a?a:d.DEFAULT_NO_ROWS_TEMPLATE,i=this.localeService.getLocaleTextFunc(),s=t.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(s)},d.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',d}(hi),nl=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),rl=function(e){function d(){return e.call(this,'
')||this}return nl(d,e),d.prototype.init=function(e){var d=e.value;this.getGui().innerHTML=od(d)},d}(po),fl=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),pl=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,d){this.eInput=e,this.params=d,null!=d.max&&e.setMax(d.max),null!=d.min&&e.setMin(d.min),null!=d.precision&&e.setPrecision(d.precision),null!=d.step&&e.setStep(d.step);var a=e.getInputElement();d.preventStepping?e.addManagedListener(a,"keydown",this.preventStepping):d.showStepperButtons&&a.classList.add("ag-number-field-input-stepper")},e.prototype.preventStepping=function(e){e.key!==Qt.UP&&e.key!==Qt.DOWN||e.preventDefault()},e.prototype.getValue=function(){var e=this.eInput.getValue();if(!i(e)&&!i(this.params.value))return this.params.value;var d=this.params.parseValue(e);if(null==d)return d;if("string"===typeof d){if(""===d)return null;d=Number(d)}return isNaN(d)?null:d},e.prototype.getStartValue=function(){return this.params.value},e}(),cl=function(e){function d(){return e.call(this,new pl)||this}return fl(d,e),d}(To),_l=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),yl=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,d){this.eInput=e,this.params=d,null!=d.min&&e.setMin(d.min),null!=d.max&&e.setMax(d.max),null!=d.step&&e.setStep(d.step)},e.prototype.getValue=function(){var e=this.eInput.getDate();return i(e)||i(this.params.value)?null!==e&&void 0!==e?e:null:this.params.value},e.prototype.getStartValue=function(){var e=this.params.value;if(e instanceof Date)return ja(e,!1)},e}(),Cl=function(e){function d(){return e.call(this,new yl)||this}return _l(d,e),d}(To),ql=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),bl=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Pl=function(){function e(e){this.getDataTypeService=e}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,d){this.eInput=e,this.params=d,null!=d.min&&e.setMin(d.min),null!=d.max&&e.setMax(d.max),null!=d.step&&e.setStep(d.step)},e.prototype.getValue=function(){var e=this.formatDate(this.eInput.getDate());return i(e)||i(this.params.value)?this.params.parseValue(null!==e&&void 0!==e?e:""):this.params.value},e.prototype.getStartValue=function(){var e,d;return ja(null!==(d=this.parseDate(null!==(e=this.params.value)&&void 0!==e?e:void 0))&&void 0!==d?d:null,!1)},e.prototype.parseDate=function(e){return this.getDataTypeService().getDateParserFunction()(e)},e.prototype.formatDate=function(e){return this.getDataTypeService().getDateFormatterFunction()(e)},e}(),hl=function(e){function d(){var d=e.call(this,new Pl((function(){return d.dataTypeService})))||this;return d}return ql(d,e),bl([ae("dataTypeService")],d.prototype,"dataTypeService",void 0),d}(To),Tl=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Sl=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Ol=function(e){function d(){return e.call(this,d.TEMPLATE)||this}return Tl(d,e),d.prototype.init=function(e){var d=this;this.params=e,this.updateCheckbox(e);var a=this.eCheckbox.getInputElement();a.setAttribute("tabindex","-1"),Yd(a,"polite"),this.addManagedListener(a,"click",(function(e){if(Ee(e),!d.eCheckbox.isDisabled()){var a=d.eCheckbox.getValue();d.onCheckboxChanged(a)}})),this.addManagedListener(a,"dblclick",(function(e){Ee(e)}));var t=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",(function(e){if(e.key===Qt.SPACE&&!d.eCheckbox.isDisabled()){d.params.eGridCell===t.activeElement&&d.eCheckbox.toggle();var a=d.eCheckbox.getValue();d.onCheckboxChanged(a),e.preventDefault()}}))},d.prototype.refresh=function(e){return this.params=e,this.updateCheckbox(e),!0},d.prototype.updateCheckbox=function(e){var d,a,t,i,s=!0;if(e.node.group&&e.column){var o=e.column.getColId();o.startsWith(ad)?i=null==e.value||""===e.value?void 0:"true"===e.value:e.node.aggData&&void 0!==e.node.aggData[o]?i=null!==(d=e.value)&&void 0!==d?d:void 0:s=!1}else i=null!==(a=e.value)&&void 0!==a?a:void 0;if(s){this.eCheckbox.setValue(i);var l=null!=e.disabled?e.disabled:!(null===(t=e.column)||void 0===t?void 0:t.isCellEditable(e.node));this.eCheckbox.setDisabled(l);var m=this.localeService.getLocaleTextFunc(),u=ca(m,i),n=l?u:"".concat(m("ariaToggleCellValue","Press SPACE to toggle cell value")," (").concat(u,")");this.eCheckbox.setInputAriaLabel(n)}else this.eCheckbox.setDisplayed(!1)},d.prototype.onCheckboxChanged=function(e){var d=this.params,a=d.column,t=d.node,i=d.rowIndex,s=d.value,o={type:Je.EVENT_CELL_EDITING_STARTED,column:a,colDef:null===a||void 0===a?void 0:a.getColDef(),data:t.data,node:t,rowIndex:i,rowPinned:t.rowPinned,value:s};this.eventService.dispatchEvent(o);var l=this.params.node.setDataValue(this.params.column,e,"edit"),m={type:Je.EVENT_CELL_EDITING_STOPPED,column:a,colDef:null===a||void 0===a?void 0:a.getColDef(),data:t.data,node:t,rowIndex:i,rowPinned:t.rowPinned,value:s,oldValue:s,newValue:e,valueChanged:l};this.eventService.dispatchEvent(m)},d.TEMPLATE='\n ',Sl([Si("eCheckbox")],d.prototype,"eCheckbox",void 0),d}(hi),Ll=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),gl=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Il=function(e){function d(){return e.call(this,'\n
\n \n
')||this}return Ll(d,e),d.prototype.init=function(e){var d,a=this;this.params=e;var t=null!==(d=e.value)&&void 0!==d?d:void 0;this.eCheckbox.setValue(t),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListener(this.eCheckbox,Je.EVENT_FIELD_VALUE_CHANGED,(function(e){return a.setAriaLabel(e.selected)}))},d.prototype.getValue=function(){return this.eCheckbox.getValue()},d.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},d.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},d.prototype.isPopup=function(){return!1},d.prototype.setAriaLabel=function(e){var d=this.localeService.getLocaleTextFunc(),a=ca(d,e),t=d("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel("".concat(t," (").concat(a,")"))},gl([Si("eCheckbox")],d.prototype,"eCheckbox",void 0),d}(po),Bl=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Gl=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Dl=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},vl=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i0&&console.warn(" Did you mean: [".concat(a.slice(0,3),"]?")),console.warn("If using a custom component check it has been registered as described in: ".concat(this.getFrameworkOverrides().getDocLink("components/")))},Gl([ae("gridOptions")],d.prototype,"gridOptions",void 0),Gl([Z],d.prototype,"init",null),d=Gl([de("userComponentRegistry")],d)}(Ue),wl={propertyName:"dateComponent",cellRenderer:!1},xl={propertyName:"headerComponent",cellRenderer:!1},El={propertyName:"headerGroupComponent",cellRenderer:!1},Rl={propertyName:"cellRenderer",cellRenderer:!0},Al={propertyName:"cellEditor",cellRenderer:!1},Fl={propertyName:"innerRenderer",cellRenderer:!0},kl={propertyName:"loadingOverlayComponent",cellRenderer:!1},Vl={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Hl={propertyName:"tooltipComponent",cellRenderer:!1},Nl={propertyName:"filter",cellRenderer:!1},Wl={propertyName:"floatingFilterComponent",cellRenderer:!1},jl={propertyName:"toolPanel",cellRenderer:!1},Ul={propertyName:"statusPanel",cellRenderer:!1},zl={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Ql={propertyName:"loadingCellRenderer",cellRenderer:!0},Kl={propertyName:"groupRowRenderer",cellRenderer:!0},Yl={propertyName:"detailCellRenderer",cellRenderer:!0},$l=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),Xl=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Jl=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Zl=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return Xl(d,e),d.prototype.getHeaderCompDetails=function(e,d){return this.getCompDetails(e,xl,"agColumnHeader",d)},d.prototype.getHeaderGroupCompDetails=function(e){var d=e.columnGroup.getColGroupDef();return this.getCompDetails(d,El,"agColumnGroupHeader",e)},d.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,zl,null,e,!0)},d.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ql,"agLoadingCellRenderer",e,!0)},d.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Kl,"agGroupRowRenderer",e,!0)},d.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Yl,"agDetailCellRenderer",e,!0)},d.prototype.getInnerRendererDetails=function(e,d){return this.getCompDetails(e,Fl,null,d)},d.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,d){return this.getCompDetails(e,Fl,null,d)},d.prototype.getCellRendererDetails=function(e,d){return this.getCompDetails(e,Rl,null,d)},d.prototype.getCellEditorDetails=function(e,d){return this.getCompDetails(e,Al,"agCellEditor",d,!0)},d.prototype.getFilterDetails=function(e,d,a){return this.getCompDetails(e,Nl,a,d,!0)},d.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,wl,"agDateInput",e,!0)},d.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,kl,"agLoadingOverlay",e,!0)},d.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Vl,"agNoRowsOverlay",e,!0)},d.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Hl,"agTooltipComponent",e,!0)},d.prototype.getSetFilterCellRendererDetails=function(e,d){return this.getCompDetails(e,Rl,null,d)},d.prototype.getFloatingFilterCompDetails=function(e,d,a){return this.getCompDetails(e,Wl,a,d)},d.prototype.getToolPanelCompDetails=function(e,d){return this.getCompDetails(e,jl,null,d,!0)},d.prototype.getStatusPanelCompDetails=function(e,d){return this.getCompDetails(e,Ul,null,d,!0)},d.prototype.getCompDetails=function(e,d,a,t,i){var s=this;void 0===i&&(i=!1);var o=d.propertyName,l=d.cellRenderer,m=this.getCompKeys(e,d,t),u=m.compName,n=m.jsComp,r=m.fwComp,f=m.paramsFromSelector,p=m.popupFromSelector,c=m.popupPositionFromSelector,_=function(e){var d=s.userComponentRegistry.retrieve(o,e);d&&(n=d.componentFromFramework?void 0:d.component,r=d.componentFromFramework?d.component:void 0)};if(null!=u&&_(u),null==n&&null==r&&null!=a&&_(a),n&&l&&!this.agComponentUtils.doesImplementIComponent(n)&&(n=this.agComponentUtils.adaptFunction(o,n)),n||r){var y=this.mergeParamsWithApplicationProvidedParams(e,d,t,f),C=null==n,q=n||r;return{componentFromFramework:C,componentClass:q,params:y,type:d,popupFromSelector:p,popupPositionFromSelector:c,newAgStackInstance:function(){return s.newAgStackInstance(q,C,y,d)}}}i&&console.error("AG Grid: Could not find component ".concat(u,", did you forget to configure this component?"))},d.prototype.getCompKeys=function(e,d,a){var t,i,s,o,l,m,u=this,n=d.propertyName;if(e){var r=e,f=r[n+"Selector"],p=f?f(a):null,c=function(e){if("string"===typeof e)t=e;else if(null!=e&&!0!==e){u.getFrameworkOverrides().isFrameworkComponent(e)?s=e:i=e}};p?(c(p.component),o=p.params,l=p.popup,m=p.popupPosition):c(r[n])}return{compName:t,jsComp:i,fwComp:s,paramsFromSelector:o,popupFromSelector:l,popupPositionFromSelector:m}},d.prototype.newAgStackInstance=function(e,d,a,t){var i,s=t.propertyName;if(!d)i=new e;else{var o=this.componentMetadataProvider.retrieve(s);i=this.frameworkComponentWrapper.wrap(e,o.mandatoryMethodList,o.optionalMethodList,t)}var l=this.initComponent(i,a);return null==l?ri.resolve(i):l.then((function(){return i}))},d.prototype.mergeParamsWithApplicationProvidedParams=function(e,d,a,t){void 0===t&&(t=null);var i={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};O(i,a);var s=e&&e[d.propertyName+"Params"];"function"===typeof s?O(i,s(a)):"object"===typeof s&&O(i,s);return O(i,t),i},d.prototype.initComponent=function(e,d){if(this.context.createBean(e),null!=e.init)return e.init(d)},d.prototype.getDefaultFloatingFilterType=function(e,d){if(null==e)return null;var a=null,t=this.getCompKeys(e,Nl),i=t.compName,s=t.jsComp,o=t.fwComp;i?a=$l.getFloatingFilterType(i):null==s&&null==o&&!0===e.filter&&(a=d());return a},Jl([ae("gridOptions")],d.prototype,"gridOptions",void 0),Jl([ae("agComponentUtils")],d.prototype,"agComponentUtils",void 0),Jl([ae("componentMetadataProvider")],d.prototype,"componentMetadataProvider",void 0),Jl([ae("userComponentRegistry")],d.prototype,"userComponentRegistry",void 0),Jl([te("frameworkComponentWrapper")],d.prototype,"frameworkComponentWrapper",void 0),d=Jl([de("userComponentFactory")],d)}(Ue),em=function(){function e(){}return e.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0},e.ALL_PROPERTIES=Object.keys(e.ColDefPropertyMap),e}();!function(e){e[e.SINGLE_SHEET=0]="SINGLE_SHEET",e[e.MULTI_SHEET=1]="MULTI_SHEET"}(No||(No={}));var dm,am=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),tm=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},im=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.dragEndFunctions=[],d.dragSources=[],d}return am(d,e),d.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},d.prototype.removeListener=function(e){var d=e.dragSource.eElement,a=e.mouseDownListener;if(d.removeEventListener("mousedown",a),e.touchEnabled){var t=e.touchStartListener;d.removeEventListener("touchstart",t,{passive:!0})}},d.prototype.removeDragSource=function(e){var d=this.dragSources.find((function(d){return d.dragSource===e}));d&&(this.removeListener(d),Se(this.dragSources,d))},d.prototype.isDragging=function(){return this.dragging},d.prototype.addDragSource=function(e){var d=this,a=this.onMouseDown.bind(this,e),t=e.eElement,i=e.includeTouch,s=e.stopPropagationForTouch;t.addEventListener("mousedown",a);var o=null,l=this.gridOptionsService.get("suppressTouch");i&&!l&&(o=function(a){dt(a.target)||(a.cancelable&&(a.preventDefault(),s&&a.stopPropagation()),d.onTouchStart(e,a))},t.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:a,touchStartListener:o,touchEnabled:!!i})},d.prototype.getStartTarget=function(){return this.startTarget},d.prototype.onTouchStart=function(e,d){var a=this;this.currentDragParams=e,this.dragging=!1;var t=d.touches[0];this.touchLastTime=t,this.touchStart=t;var i=function(d){return a.onTouchUp(d,e.eElement)},s=d.target,o=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:s,type:"touchmove",listener:function(d){return a.onTouchMove(d,e.eElement)},options:{passive:!0}},{target:s,type:"touchend",listener:i,options:{passive:!0}},{target:s,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(o),0===e.dragStartPixels&&this.onCommonMove(t,this.touchStart,e.eElement)},d.prototype.onMouseDown=function(e,d){var a=this,t=d;if((!e.skipMouseEvent||!e.skipMouseEvent(d))&&!t._alreadyProcessedByDragService&&(t._alreadyProcessedByDragService=!0,0===d.button)){this.shouldPreventMouseEvent(d)&&d.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=d,this.startTarget=d.target;var i=this.gridOptionsService.getRootNode(),s=[{target:i,type:"mousemove",listener:function(d){return a.onMouseMove(d,e.eElement)}},{target:i,type:"mouseup",listener:function(d){return a.onMouseUp(d,e.eElement)}},{target:i,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onMouseMove(d,e.eElement)}},d.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var d=e.target,a=e.type,t=e.listener,i=e.options;d.addEventListener(a,t,i)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var d=e.target,a=e.type,t=e.listener,i=e.options;d.removeEventListener(a,t,i)}))}))},d.prototype.isEventNearStartEvent=function(e,d){var a=this.currentDragParams.dragStartPixels;return ei(e,d,i(a)?a:4)},d.prototype.getFirstActiveTouch=function(e){for(var d=0;dt.right-i,this.tickUp=e.clientYt.bottom-i&&!a,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var d=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(d-e),this.tickDown&&this.setVerticalPosition(d+e)}if(this.scrollHorizontally){var a=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(a-e),this.tickRight&&this.setHorizontalPosition(a+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),om=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),lm=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},mm="ag-list-item-hovered",um=function(e){function d(d,a,t){var i=e.call(this)||this;return i.comp=d,i.virtualList=a,i.params=t,i.currentDragValue=null,i.lastHoveredListItem=null,i}return om(d,e),d.prototype.postConstruct=function(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},d.prototype.listItemDragStart=function(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},d.prototype.listItemDragEnd=function(){var e=this;window.setTimeout((function(){e.currentDragValue=null,e.moveBlocked=!1}),10)},d.prototype.createDropTarget=function(){var e=this,d={isInterestedIn:function(d){return d===e.params.dragSourceType},getIconName:function(){return Wo[e.moveBlocked?"ICON_NOT_ALLOWED":"ICON_MOVE"]},getContainer:function(){return e.comp.getGui()},onDragging:function(d){return e.onDragging(d)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}};this.dragAndDropService.addDropTarget(d)},d.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();this.autoScrollService=new sm({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(d){return e.scrollTop=d}})},d.prototype.onDragging=function(e){if(this.currentDragValue&&!this.moveBlocked){var d=this.getListDragItem(e),a=this.virtualList.getComponentAt(d.rowIndex);if(a){var t=a.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===d.rowIndex&&this.lastHoveredListItem.position===d.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=d,Ja(t,mm),Ja(t,"ag-item-highlight-".concat(d.position)))}}},d.prototype.getListDragItem=function(e){var d=this.virtualList.getGui(),a=parseFloat(window.getComputedStyle(d).paddingTop),t=this.virtualList.getRowHeight(),i=this.virtualList.getScrollTop(),s=Math.max(0,(e.y-a+i)/t),o=this.params.getNumRows(this.comp)-1,l=0|Math.min(o,s);return{rowIndex:l,position:Math.round(s)>s||s>o?"bottom":"top",component:this.virtualList.getComponentAt(l)}},d.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},d.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},d.prototype.clearHoveredItems=function(){this.virtualList.getGui().querySelectorAll(".".concat(mm)).forEach((function(e){[mm,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach((function(d){e.classList.remove(d)}))})),this.lastHoveredListItem=null},lm([ae("dragAndDropService")],d.prototype,"dragAndDropService",void 0),lm([Z],d.prototype,"postConstruct",null),d}(Ue);!function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(dm||(dm={}));var nm=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o};function rm(e){var d=e;return null!=d&&null!=d.getFrameworkComponentInstance?d.getFrameworkComponentInstance():e}var fm,pm=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},e.prototype.getGridId=function(){return this.context.getGridId()},e.prototype.addDetailGridInfo=function(e,d){this.detailGridInfoMap[e]=d},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var d=0;y(this.detailGridInfoMap,(function(a,t){i(t)&&(e(t,d),d++)}))},e.prototype.getDataAsCsv=function(e){if(K.__assertRegistered(j.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){K.__assertRegistered(j.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(e)},e.prototype.assertNotExcelMultiSheet=function(e,d){return!!K.__assertRegistered(j.ExcelExportModule,"api."+e,this.context.getGridId())&&(this.excelCreator.getFactoryMode()!==No.MULTI_SHEET||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1))},e.prototype.getDataAsExcel=function(e){if(this.assertNotExcelMultiSheet("getDataAsExcel",e))return this.excelCreator.getDataAsExcel(e)},e.prototype.exportDataAsExcel=function(e){this.assertNotExcelMultiSheet("exportDataAsExcel",e)&&this.excelCreator.exportDataAsExcel(e)},e.prototype.getSheetDataForExcel=function(e){if(K.__assertRegistered(j.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId()))return this.excelCreator.setFactoryMode(No.MULTI_SHEET),this.excelCreator.getSheetDataForExcel(e)},e.prototype.getMultipleSheetsAsExcel=function(e){if(K.__assertRegistered(j.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(K.__assertRegistered(j.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setGridAriaProperty=function(e,d){if(e){var a=this.ctrlsService.getGridBodyCtrl().getGui(),t="aria-".concat(e);null===d?a.removeAttribute(t):a.setAttribute(t,d)}},e.prototype.logMissingRowModel=function(e){for(var d=[],a=1;a= 0")):this.serverSideRowModel?this.serverSideRowModel.applyRowData(e.successParams,t,i):this.logMissingRowModel("setServerSideDatasource","serverSide")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel)return this.clientSideRowModel.updateRowData(e);this.logMissingRowModel("applyTransaction","clientSide")},e.prototype.applyTransactionAsync=function(e,d){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,d):this.logMissingRowModel("applyTransactionAsync","clientSide")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel("flushAsyncTransactions","clientSide")},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},e.prototype.refreshServerSide=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):this.logMissingRowModel("refreshServerSide","serverSide")},e.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},e.prototype.sizeColumnsToFit=function(e){"number"===typeof e?this.columnModel.sizeColumnsToFit(e,"api"):this.gridBodyCtrl.sizeColumnsToFit(e)},e.prototype.setColumnGroupOpened=function(e,d){this.columnModel.setColumnGroupOpened(e,d,"api")},e.prototype.getColumnGroup=function(e,d){return this.columnModel.getColumnGroup(e,d)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,d){return this.columnModel.getDisplayNameForColumn(e,d)||""},e.prototype.getDisplayNameForColumnGroup=function(e,d){return this.columnModel.getDisplayNameForColumnGroup(e,d)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,d){this.columnModel.setColumnVisible(e,d,"api")},e.prototype.setColumnsVisible=function(e,d){this.columnModel.setColumnsVisible(e,d,"api")},e.prototype.setColumnPinned=function(e,d){this.columnModel.setColumnPinned(e,d,"api")},e.prototype.setColumnsPinned=function(e,d){this.columnModel.setColumnsPinned(e,d,"api")},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,d){this.columnModel.moveColumn(e,d,"api")},e.prototype.moveColumnByIndex=function(e,d){this.columnModel.moveColumnByIndex(e,d,"api")},e.prototype.moveColumns=function(e,d){this.columnModel.moveColumns(e,d,"api")},e.prototype.moveRowGroupColumn=function(e,d){this.columnModel.moveRowGroupColumn(e,d)},e.prototype.setColumnAggFunc=function(e,d){this.columnModel.setColumnAggFunc(e,d)},e.prototype.setColumnWidth=function(e,d,a,t){void 0===a&&(a=!0),this.columnModel.setColumnWidths([{key:e,newWidth:d}],!1,a,t)},e.prototype.setColumnWidths=function(e,d,a){void 0===d&&(d=!0),this.columnModel.setColumnWidths(e,!1,d,a)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getPivotResultColumn=function(e,d){return this.columnModel.getSecondaryPivotColumn(e,d)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,d){return this.columnModel.autoSizeColumn(e,d,"api")},e.prototype.autoSizeColumns=function(e,d){this.columnModel.autoSizeColumns({columns:e,skipHeader:d})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setPivotResultColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.getState=function(){return this.stateService.getState()},e.prototype.getGridOption=function(e){return this.gos.get(e)},e.prototype.setGridOption=function(e,d){var a;this.updateGridOptions(((a={})[e]=d,a))},e.prototype.updateGridOptions=function(e){this.gos.updateGridOptions({options:e})},e.prototype.__internalUpdateGridOptions=function(e){this.gos.updateGridOptions({options:e,source:"gridOptionsUpdated"})},e.prototype.deprecatedUpdateGridOption=function(e,d){v("set".concat(e.charAt(0).toUpperCase()).concat(e.slice(1,e.length)," is deprecated. Please use 'api.setGridOption('").concat(e,"', newValue)' or 'api.updateGridOptions({ ").concat(e,": newValue })' instead.")),this.setGridOption(e,d)},e.prototype.setPivotMode=function(e){this.deprecatedUpdateGridOption("pivotMode",e)},e.prototype.setPinnedTopRowData=function(e){this.deprecatedUpdateGridOption("pinnedTopRowData",e)},e.prototype.setPinnedBottomRowData=function(e){this.deprecatedUpdateGridOption("pinnedBottomRowData",e)},e.prototype.setPopupParent=function(e){this.deprecatedUpdateGridOption("popupParent",e)},e.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(e){this.deprecatedUpdateGridOption("suppressModelUpdateAfterUpdateTransaction",e)},e.prototype.setDataTypeDefinitions=function(e){this.deprecatedUpdateGridOption("dataTypeDefinitions",e)},e.prototype.setPagination=function(e){this.deprecatedUpdateGridOption("pagination",e)},e.prototype.paginationSetPageSize=function(e){this.deprecatedUpdateGridOption("paginationPageSize",e)},e.prototype.setSideBar=function(e){this.deprecatedUpdateGridOption("sideBar",e)},e.prototype.setSuppressClipboardPaste=function(e){this.deprecatedUpdateGridOption("suppressClipboardPaste",e)},e.prototype.setGroupRemoveSingleChildren=function(e){this.deprecatedUpdateGridOption("groupRemoveSingleChildren",e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.deprecatedUpdateGridOption("groupRemoveLowestSingleChildren",e)},e.prototype.setGroupDisplayType=function(e){this.deprecatedUpdateGridOption("groupDisplayType",e)},e.prototype.setGroupIncludeFooter=function(e){this.deprecatedUpdateGridOption("groupIncludeFooter",e)},e.prototype.setGroupIncludeTotalFooter=function(e){this.deprecatedUpdateGridOption("groupIncludeTotalFooter",e)},e.prototype.setRowClass=function(e){this.deprecatedUpdateGridOption("rowClass",e)},e.prototype.setDeltaSort=function(e){this.deprecatedUpdateGridOption("deltaSort",e)},e.prototype.setSuppressRowDrag=function(e){this.deprecatedUpdateGridOption("suppressRowDrag",e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.deprecatedUpdateGridOption("suppressMoveWhenRowDragging",e)},e.prototype.setSuppressRowClickSelection=function(e){this.deprecatedUpdateGridOption("suppressRowClickSelection",e)},e.prototype.setEnableAdvancedFilter=function(e){this.deprecatedUpdateGridOption("enableAdvancedFilter",e)},e.prototype.setIncludeHiddenColumnsInAdvancedFilter=function(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInAdvancedFilter",e)},e.prototype.setAdvancedFilterParent=function(e){this.deprecatedUpdateGridOption("advancedFilterParent",e)},e.prototype.setAdvancedFilterBuilderParams=function(e){this.deprecatedUpdateGridOption("advancedFilterBuilderParams",e)},e.prototype.setQuickFilter=function(e){v("setQuickFilter is deprecated. Please use 'api.setGridOption('quickFilterText', newValue)' or 'api.updateGridOptions({ quickFilterText: newValue })' instead."),this.gos.updateGridOptions({options:{quickFilterText:e}})},e.prototype.setExcludeHiddenColumnsFromQuickFilter=function(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",!e)},e.prototype.setIncludeHiddenColumnsInQuickFilter=function(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",e)},e.prototype.setQuickFilterParser=function(e){this.deprecatedUpdateGridOption("quickFilterParser",e)},e.prototype.setQuickFilterMatcher=function(e){this.deprecatedUpdateGridOption("quickFilterMatcher",e)},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.deprecatedUpdateGridOption("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.deprecatedUpdateGridOption("alwaysShowVerticalScroll",e)},e.prototype.setFunctionsReadOnly=function(e){this.deprecatedUpdateGridOption("functionsReadOnly",e)},e.prototype.setColumnDefs=function(e,d){void 0===d&&(d="api"),v("setColumnDefs is deprecated. Please use 'api.setGridOption('columnDefs', newValue)' or 'api.updateGridOptions({ columnDefs: newValue })' instead."),this.gos.updateGridOptions({options:{columnDefs:e},source:d})},e.prototype.setAutoGroupColumnDef=function(e,d){void 0===d&&(d="api"),v("setAutoGroupColumnDef is deprecated. Please use 'api.setGridOption('autoGroupColumnDef', newValue)' or 'api.updateGridOptions({ autoGroupColumnDef: newValue })' instead."),this.gos.updateGridOptions({options:{autoGroupColumnDef:e},source:d})},e.prototype.setDefaultColDef=function(e,d){void 0===d&&(d="api"),v("setDefaultColDef is deprecated. Please use 'api.setGridOption('defaultColDef', newValue)' or 'api.updateGridOptions({ defaultColDef: newValue })' instead."),this.gos.updateGridOptions({options:{defaultColDef:e},source:d})},e.prototype.setColumnTypes=function(e,d){void 0===d&&(d="api"),v("setColumnTypes is deprecated. Please use 'api.setGridOption('columnTypes', newValue)' or 'api.updateGridOptions({ columnTypes: newValue })' instead."),this.gos.updateGridOptions({options:{columnTypes:e},source:d})},e.prototype.setTreeData=function(e){this.deprecatedUpdateGridOption("treeData",e)},e.prototype.setServerSideDatasource=function(e){this.deprecatedUpdateGridOption("serverSideDatasource",e)},e.prototype.setCacheBlockSize=function(e){this.deprecatedUpdateGridOption("cacheBlockSize",e)},e.prototype.setDatasource=function(e){this.deprecatedUpdateGridOption("datasource",e)},e.prototype.setViewportDatasource=function(e){this.deprecatedUpdateGridOption("viewportDatasource",e)},e.prototype.setRowData=function(e){this.deprecatedUpdateGridOption("rowData",e)},e.prototype.setEnableCellTextSelection=function(e){this.deprecatedUpdateGridOption("enableCellTextSelection",e)},e.prototype.setHeaderHeight=function(e){this.deprecatedUpdateGridOption("headerHeight",e)},e.prototype.setDomLayout=function(e){this.deprecatedUpdateGridOption("domLayout",e)},e.prototype.setFillHandleDirection=function(e){this.deprecatedUpdateGridOption("fillHandleDirection",e)},e.prototype.setGroupHeaderHeight=function(e){this.deprecatedUpdateGridOption("groupHeaderHeight",e)},e.prototype.setFloatingFiltersHeight=function(e){this.deprecatedUpdateGridOption("floatingFiltersHeight",e)},e.prototype.setPivotHeaderHeight=function(e){this.deprecatedUpdateGridOption("pivotHeaderHeight",e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.deprecatedUpdateGridOption("pivotGroupHeaderHeight",e)},e.prototype.setAnimateRows=function(e){this.deprecatedUpdateGridOption("animateRows",e)},e.prototype.setIsExternalFilterPresent=function(e){this.deprecatedUpdateGridOption("isExternalFilterPresent",e)},e.prototype.setDoesExternalFilterPass=function(e){this.deprecatedUpdateGridOption("doesExternalFilterPass",e)},e.prototype.setNavigateToNextCell=function(e){this.deprecatedUpdateGridOption("navigateToNextCell",e)},e.prototype.setTabToNextCell=function(e){this.deprecatedUpdateGridOption("tabToNextCell",e)},e.prototype.setTabToNextHeader=function(e){this.deprecatedUpdateGridOption("tabToNextHeader",e)},e.prototype.setNavigateToNextHeader=function(e){this.deprecatedUpdateGridOption("navigateToNextHeader",e)},e.prototype.setRowGroupPanelShow=function(e){this.deprecatedUpdateGridOption("rowGroupPanelShow",e)},e.prototype.setGetGroupRowAgg=function(e){this.deprecatedUpdateGridOption("getGroupRowAgg",e)},e.prototype.setGetBusinessKeyForNode=function(e){this.deprecatedUpdateGridOption("getBusinessKeyForNode",e)},e.prototype.setGetChildCount=function(e){this.deprecatedUpdateGridOption("getChildCount",e)},e.prototype.setProcessRowPostCreate=function(e){this.deprecatedUpdateGridOption("processRowPostCreate",e)},e.prototype.setGetRowId=function(e){v("getRowId is a static property and can no longer be updated.")},e.prototype.setGetRowClass=function(e){this.deprecatedUpdateGridOption("getRowClass",e)},e.prototype.setIsFullWidthRow=function(e){this.deprecatedUpdateGridOption("isFullWidthRow",e)},e.prototype.setIsRowSelectable=function(e){this.deprecatedUpdateGridOption("isRowSelectable",e)},e.prototype.setIsRowMaster=function(e){this.deprecatedUpdateGridOption("isRowMaster",e)},e.prototype.setPostSortRows=function(e){this.deprecatedUpdateGridOption("postSortRows",e)},e.prototype.setGetDocument=function(e){this.deprecatedUpdateGridOption("getDocument",e)},e.prototype.setGetContextMenuItems=function(e){this.deprecatedUpdateGridOption("getContextMenuItems",e)},e.prototype.setGetMainMenuItems=function(e){this.deprecatedUpdateGridOption("getMainMenuItems",e)},e.prototype.setProcessCellForClipboard=function(e){this.deprecatedUpdateGridOption("processCellForClipboard",e)},e.prototype.setSendToClipboard=function(e){this.deprecatedUpdateGridOption("sendToClipboard",e)},e.prototype.setProcessCellFromClipboard=function(e){this.deprecatedUpdateGridOption("processCellFromClipboard",e)},e.prototype.setProcessPivotResultColDef=function(e){this.deprecatedUpdateGridOption("processPivotResultColDef",e)},e.prototype.setProcessPivotResultColGroupDef=function(e){this.deprecatedUpdateGridOption("processPivotResultColGroupDef",e)},e.prototype.setPostProcessPopup=function(e){this.deprecatedUpdateGridOption("postProcessPopup",e)},e.prototype.setInitialGroupOrderComparator=function(e){this.deprecatedUpdateGridOption("initialGroupOrderComparator",e)},e.prototype.setGetChartToolbarItems=function(e){this.deprecatedUpdateGridOption("getChartToolbarItems",e)},e.prototype.setPaginationNumberFormatter=function(e){this.deprecatedUpdateGridOption("paginationNumberFormatter",e)},e.prototype.setGetServerSideGroupLevelParams=function(e){this.deprecatedUpdateGridOption("getServerSideGroupLevelParams",e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.deprecatedUpdateGridOption("isServerSideGroupOpenByDefault",e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.deprecatedUpdateGridOption("isApplyServerSideTransaction",e)},e.prototype.setIsServerSideGroup=function(e){this.deprecatedUpdateGridOption("isServerSideGroup",e)},e.prototype.setGetServerSideGroupKey=function(e){this.deprecatedUpdateGridOption("getServerSideGroupKey",e)},e.prototype.setGetRowStyle=function(e){this.deprecatedUpdateGridOption("getRowStyle",e)},e.prototype.setGetRowHeight=function(e){this.deprecatedUpdateGridOption("getRowHeight",e)},nm([te("csvCreator")],e.prototype,"csvCreator",void 0),nm([te("excelCreator")],e.prototype,"excelCreator",void 0),nm([ae("rowRenderer")],e.prototype,"rowRenderer",void 0),nm([ae("navigationService")],e.prototype,"navigationService",void 0),nm([ae("filterManager")],e.prototype,"filterManager",void 0),nm([ae("columnModel")],e.prototype,"columnModel",void 0),nm([ae("selectionService")],e.prototype,"selectionService",void 0),nm([ae("gridOptionsService")],e.prototype,"gos",void 0),nm([ae("valueService")],e.prototype,"valueService",void 0),nm([ae("alignedGridsService")],e.prototype,"alignedGridsService",void 0),nm([ae("eventService")],e.prototype,"eventService",void 0),nm([ae("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),nm([ae("context")],e.prototype,"context",void 0),nm([ae("rowModel")],e.prototype,"rowModel",void 0),nm([ae("sortController")],e.prototype,"sortController",void 0),nm([ae("paginationProxy")],e.prototype,"paginationProxy",void 0),nm([ae("focusService")],e.prototype,"focusService",void 0),nm([ae("dragAndDropService")],e.prototype,"dragAndDropService",void 0),nm([te("rangeService")],e.prototype,"rangeService",void 0),nm([te("clipboardService")],e.prototype,"clipboardService",void 0),nm([te("aggFuncService")],e.prototype,"aggFuncService",void 0),nm([ae("menuFactory")],e.prototype,"menuFactory",void 0),nm([te("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),nm([ae("valueCache")],e.prototype,"valueCache",void 0),nm([ae("animationFrameService")],e.prototype,"animationFrameService",void 0),nm([te("statusBarService")],e.prototype,"statusBarService",void 0),nm([te("chartService")],e.prototype,"chartService",void 0),nm([te("undoRedoService")],e.prototype,"undoRedoService",void 0),nm([te("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),nm([te("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),nm([ae("ctrlsService")],e.prototype,"ctrlsService",void 0),nm([ae("overlayService")],e.prototype,"overlayService",void 0),nm([te("sideBarService")],e.prototype,"sideBarService",void 0),nm([ae("stateService")],e.prototype,"stateService",void 0),nm([ae("expansionService")],e.prototype,"expansionService",void 0),nm([ae("apiEventService")],e.prototype,"apiEventService",void 0),nm([ae("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),nm([Z],e.prototype,"init",null),e=nm([de("gridApi")],e)}(),cm=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),_m=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ym=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.quickFilter=null,d.quickFilterParts=null,d}var a;return cm(d,e),a=d,d.prototype.postConstruct=function(){var e=this;this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,Je.EVENT_NEW_COLUMNS_LOADED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_VISIBLE,(function(){e.gridOptionsService.get("includeHiddenColumnsInQuickFilter")||e.resetQuickFilterCache()})),this.addManagedPropertyListener("quickFilterText",(function(d){return e.setQuickFilter(d.currentValue)})),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",(function(){return e.onIncludeHiddenColumnsInQuickFilterChanged()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.parser=this.gridOptionsService.get("quickFilterParser"),this.matcher=this.gridOptionsService.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],(function(){return e.setQuickFilterParserAndMatcher()}))},d.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},d.prototype.doesRowPassQuickFilter=function(e){var d=this,a=this.gridOptionsService.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(a,e):this.quickFilterParts.every((function(t){return a?d.doesRowPassQuickFilterCache(e,t):d.doesRowPassQuickFilterNoCache(e,t)}))},d.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},d.prototype.setQuickFilterParts=function(){var e=this.quickFilter,d=this.parser;this.quickFilterParts=e?d?d(e):e.split(" "):null},d.prototype.parseQuickFilter=function(e){return i(e)?this.gridOptionsService.isRowModelType("clientSide")?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},d.prototype.setQuickFilter=function(e){if(null==e||"string"===typeof e){var d=this.parseQuickFilter(e);this.quickFilter!==d&&(this.quickFilter=d,this.setQuickFilterParts(),this.dispatchEvent({type:a.EVENT_QUICK_FILTER_CHANGED}))}else console.warn("AG Grid - Grid option quickFilterText only supports string inputs, received: ".concat(typeof e))},d.prototype.setQuickFilterParserAndMatcher=function(){var e=this.gridOptionsService.get("quickFilterParser"),d=this.gridOptionsService.get("quickFilterMatcher"),t=e!==this.parser||d!==this.matcher;this.parser=e,this.matcher=d,t&&(this.setQuickFilterParts(),this.dispatchEvent({type:a.EVENT_QUICK_FILTER_CHANGED}))},d.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:a.EVENT_QUICK_FILTER_CHANGED})},d.prototype.doesRowPassQuickFilterNoCache=function(e,d){var a=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(t){var s=a.getQuickFilterTextForColumn(t,e);return i(s)&&s.indexOf(d)>=0}))},d.prototype.doesRowPassQuickFilterCache=function(e,d){return this.checkGenerateQuickFilterAggregateText(e),e.quickFilterAggregateText.indexOf(d)>=0},d.prototype.doesRowPassQuickFilterMatcher=function(e,d){var a;e?(this.checkGenerateQuickFilterAggregateText(d),a=d.quickFilterAggregateText):a=this.getQuickFilterAggregateText(d);var t=this.quickFilterParts;return(0,this.matcher)(t,a)},d.prototype.checkGenerateQuickFilterAggregateText=function(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getQuickFilterAggregateText(e))},d.prototype.getQuickFilterTextForColumn=function(e,d){var a=this.valueService.getValue(e,d,!0),t=e.getColDef();if(t.getQuickFilterText){var s={value:a,node:d,data:d.data,column:e,colDef:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};a=t.getQuickFilterText(s)}return i(a)?a.toString().toUpperCase():null},d.prototype.getQuickFilterAggregateText=function(e){var d=this,t=[];return this.columnModel.getAllColumnsForQuickFilter().forEach((function(a){var s=d.getQuickFilterTextForColumn(a,e);i(s)&&t.push(s)})),t.join(a.QUICK_FILTER_SEPARATOR)},d.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",d.QUICK_FILTER_SEPARATOR="\n",_m([ae("valueService")],d.prototype,"valueService",void 0),_m([ae("columnModel")],d.prototype,"columnModel",void 0),_m([ae("rowModel")],d.prototype,"rowModel",void 0),_m([Z],d.prototype,"postConstruct",null),d=a=_m([de("quickFilterService")],d)}(Ue),Cm=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),qm=function(){return qm=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Pm=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.allColumnFilters=new Map,d.allColumnListeners=new Map,d.activeAggregateFilters=[],d.activeColumnFilters=[],d.processingFilterChange=!1,d.filterModelUpdateQueue=[],d.advancedFilterModelUpdateQueue=[],d}return Cm(d,e),d.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,Je.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Je.EVENT_NEW_COLUMNS_LOADED,(function(){return e.updateAdvancedFilterColumns()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_VISIBLE,(function(){return e.updateAdvancedFilterColumns()})),this.addManagedListener(this.eventService,Je.EVENT_ROW_DATA_UPDATED,(function(){return e.onNewRowsLoaded("rowDataUpdated")})),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],(function(){e.onFilterChanged({source:"api"})})),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",(function(){e.updateAggFiltering(),e.onFilterChanged()})),this.addManagedPropertyListener("advancedFilterModel",(function(d){return e.setAdvancedFilterModel(d.currentValue)})),this.addManagedListener(this.eventService,Je.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,(function(d){var a=d.enabled;return e.onAdvancedFilterEnabledChanged(a)})),this.addManagedListener(this.eventService,Je.EVENT_DATA_TYPES_INFERRED,(function(){return e.processFilterModelUpdateQueue()})),this.addManagedListener(this.quickFilterService,ym.EVENT_QUICK_FILTER_CHANGED,(function(){return e.onFilterChanged({source:"quickFilter"})}))},d.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"===typeof e&&e({})},d.prototype.doesExternalFilterPass=function(e){var d=this.gridOptionsService.get("doesExternalFilterPass");return"function"===typeof d&&d(e)},d.prototype.setFilterModel=function(e,d){var a=this;if(void 0===d&&(d="api"),this.isAdvancedFilterEnabled())this.warnAdvancedFilters();else if(this.dataTypeService.isPendingInference())this.filterModelUpdateQueue.push({model:e,source:d});else{var t=[],i=this.getFilterModel();if(e){var s=ti(Object.keys(e));this.allColumnFilters.forEach((function(d,i){var o=e[i];t.push(a.setModelOnFilterWrapper(d.filterPromise,o)),s.delete(i)})),s.forEach((function(d){var i=a.columnModel.getPrimaryColumn(d)||a.columnModel.getGridColumn(d);if(i)if(i.isFilterAllowed()){var s=a.getOrCreateFilterWrapper(i,"NO_UI");s?t.push(a.setModelOnFilterWrapper(s.filterPromise,e[d])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+d)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+d);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+d)}))}else this.allColumnFilters.forEach((function(e){t.push(a.setModelOnFilterWrapper(e.filterPromise,null))}));ri.all(t).then((function(){var e=a.getFilterModel(),t=[];a.allColumnFilters.forEach((function(d,a){var s=i?i[a]:null,o=e?e[a]:null;li.jsonEquals(s,o)||t.push(d.column)})),t.length>0&&a.onFilterChanged({columns:t,source:d})}))}},d.prototype.setModelOnFilterWrapper=function(e,d){return new ri((function(a){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),a()),(e.setModel(d)||ri.resolve()).then((function(){return a()}))}))}))},d.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(d,a){var t=d.filterPromise.resolveNow(null,(function(e){return e}));if(null==t)return null;if("function"===typeof t.getModel){var s=t.getModel();i(s)&&(e[a]=s)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},d.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},d.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},d.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},d.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},d.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},d.prototype.onAdvancedFilterEnabledChanged=function(e){var d,a=this;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach((function(e){return a.disposeFilterWrapper(e,"advancedFilterEnabled")})),this.onFilterChanged({source:"advancedFilter"})):(null===(d=this.advancedFilterService)||void 0===d?void 0:d.isFilterPresent())&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},d.prototype.isAdvancedFilterEnabled=function(){var e;return null===(e=this.advancedFilterService)||void 0===e?void 0:e.isEnabled()},d.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},d.prototype.doAggregateFiltersPass=function(e,d){return this.doColumnFiltersPass(e,d,!0)},d.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var d=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},a=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach((function(t){if(t.filterPromise.resolveNow(!1,d)){var i=t.filterPromise.resolveNow(null,(function(e){return e}));!function(d){if(!d.isPrimary())return!0;var t=!e.columnModel.isPivotActive();return!(!d.isValueActive()||!t)&&(!!e.columnModel.isPivotMode()||a)}(t.column)?e.activeColumnFilters.push(i):e.activeAggregateFilters.push(i)}}))},d.prototype.updateFilterFlagInColumns=function(e,d){this.allColumnFilters.forEach((function(a){var t=a.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));a.column.setFilterActive(t,e,d)}))},d.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},d.prototype.doColumnFiltersPass=function(e,d,a){for(var t=e.data,i=e.aggData,s=a?this.activeAggregateFilters:this.activeColumnFilters,o=a?i:t,l=0;l0?this.onFilterChanged({columns:d,source:"api"}):this.updateDependantFilters()},d.prototype.updateDependantFilters=function(){var e=this,d=this.columnModel.getGroupAutoColumns();null===d||void 0===d||d.forEach((function(d){"agGroupColumnFilter"===d.getColDef().filter&&e.getOrCreateFilterWrapper(d,"NO_UI")}))},d.prototype.isFilterAllowed=function(e){var d,a;if(this.isAdvancedFilterEnabled())return!1;if(!e.isFilterAllowed())return!1;var t=this.allColumnFilters.get(e.getColId());return null===(a=null===(d=null===t||void 0===t?void 0:t.filterPromise)||void 0===d?void 0:d.resolveNow(!0,(function(e){return"function"!==typeof(null===e||void 0===e?void 0:e.isFilterAllowed)||(null===e||void 0===e?void 0:e.isFilterAllowed())})))||void 0===a||a},d.prototype.getFloatingFilterCompDetails=function(e,d){var a=this,t=e.getColDef(),i=this.createFilterParams(e,t),s=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(t,Nl,i),o=this.userComponentFactory.getDefaultFloatingFilterType(t,(function(){return a.getDefaultFloatingFilter(e)}));null==o&&(o="agReadOnlyFloatingFilter");var l={column:e,filterParams:s,currentParentModel:function(){return a.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:function(d){var t=a.getFilterComponent(e,"NO_UI");null!=t&&t.then((function(e){d(rm(e))}))},showParentFilter:d,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(t,l,o)},d.prototype.getCurrentFloatingFilterParentModel=function(e){var d=this.getFilterComponent(e,"NO_UI",!1);return d?d.resolveNow(null,(function(e){return e&&e.getModel()})):null},d.prototype.destroyFilter=function(e,d){void 0===d&&(d="api");var a=e.getColId(),t=this.allColumnFilters.get(a);this.disposeColumnListener(a),t&&(this.disposeFilterWrapper(t,d),this.onFilterChanged({columns:[e],source:"api"}))},d.prototype.disposeColumnListener=function(e){var d=this.allColumnListeners.get(e);d&&(this.allColumnListeners.delete(e),d())},d.prototype.disposeFilterWrapper=function(e,d){var a=this;e.filterPromise.then((function(t){a.getContext().destroyBean(t),e.column.setFilterActive(!1,"filterDestroyed"),a.allColumnFilters.delete(e.column.getColId());var i={type:Je.EVENT_FILTER_DESTROYED,source:d,column:e.column};a.eventService.dispatchEvent(i)}))},d.prototype.filterModifiedCallbackFactory=function(e,d){var a=this;return function(){var t={type:Je.EVENT_FILTER_MODIFIED,column:d,filterInstance:e};a.eventService.dispatchEvent(t)}},d.prototype.filterChangedCallbackFactory=function(e,d){var a=this;return function(t){var i,s=null!==(i=null===t||void 0===t?void 0:t.source)&&void 0!==i?i:"api",o={filter:e,additionalEventAttributes:t,columns:[d],source:s};a.callOnFilterChangedOutsideRenderCycle(o)}},d.prototype.checkDestroyFilter=function(e){var d=this,a=this.allColumnFilters.get(e);if(a){var t=a.column,i=(t.isFilterAllowed()?this.createFilterInstance(t):{compDetails:null}).compDetails;if(this.areFilterCompsDifferent(a.compDetails,i))this.destroyFilter(t,"columnChanged");else{var s=t.getColDef().filterParams;a.filterPromise?a.filterPromise.then((function(e){!(null===e||void 0===e?void 0:e.refresh)||e.refresh(qm(qm(qm({},d.createFilterParams(t,t.getColDef())),{filterModifiedCallback:d.filterModifiedCallbackFactory(e,t),filterChangedCallback:d.filterChangedCallbackFactory(e,t),doesRowPassOtherFilter:function(a){return d.doesRowPassOtherFilters(e,a)}}),s))||d.destroyFilter(t,"columnChanged")})):this.destroyFilter(t,"columnChanged")}}},d.prototype.setColumnFilterWrapper=function(e,d){var a=this,t=e.getColId();this.allColumnFilters.set(t,d),this.allColumnListeners.set(t,this.addManagedListener(e,ce.EVENT_COL_DEF_CHANGED,(function(){return a.checkDestroyFilter(t)})))},d.prototype.areFilterCompsDifferent=function(e,d){if(!d||!e)return!0;var a=e.componentClass,t=d.componentClass;return!(a===t||(null===a||void 0===a?void 0:a.render)&&(null===t||void 0===t?void 0:t.render)&&a.render===t.render)},d.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},d.prototype.setAdvancedFilterModel=function(e){this.isAdvancedFilterEnabled()&&(this.dataTypeService.isPendingInference()?this.advancedFilterModelUpdateQueue.push(e):(this.advancedFilterService.setModel(null!==e&&void 0!==e?e:null),this.onFilterChanged({source:"advancedFilter"})))},d.prototype.showAdvancedFilterBuilder=function(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)},d.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},d.prototype.hasFloatingFilters=function(){return!this.isAdvancedFilterEnabled()&&this.columnModel.getAllGridColumns().some((function(e){return e.getColDef().floatingFilter}))},d.prototype.getFilterInstance=function(e,d){if(!this.isAdvancedFilterEnabled()){var a=this.getFilterInstanceImpl(e,(function(e){if(d){var a=rm(e);d(a)}}));return rm(a)}this.warnAdvancedFilters()},d.prototype.getFilterInstanceImpl=function(e,d){var a=this.columnModel.getPrimaryColumn(e);if(a){var t=this.getFilterComponent(a,"NO_UI"),i=t&&t.resolveNow(null,(function(e){return e}));return i?setTimeout(d,0,i):t&&t.then((function(e){d(e)})),i}},d.prototype.warnAdvancedFilters=function(){v("Column Filter API methods have been disabled as Advanced Filters are enabled.")},d.prototype.setupAdvancedFilterHeaderComp=function(e){var d;null===(d=this.advancedFilterService)||void 0===d||d.getCtrl().setupHeaderComp(e)},d.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},d.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0},d.prototype.processFilterModelUpdateQueue=function(){var e=this;this.filterModelUpdateQueue.forEach((function(d){var a=d.model,t=d.source;return e.setFilterModel(a,t)})),this.filterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue.forEach((function(d){return e.setAdvancedFilterModel(d)})),this.advancedFilterModelUpdateQueue=[]},d.prototype.destroy=function(){var d=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return d.disposeFilterWrapper(e,"gridDestroyed")})),this.allColumnListeners.clear()},bm([ae("valueService")],d.prototype,"valueService",void 0),bm([ae("columnModel")],d.prototype,"columnModel",void 0),bm([ae("rowModel")],d.prototype,"rowModel",void 0),bm([ae("userComponentFactory")],d.prototype,"userComponentFactory",void 0),bm([ae("rowRenderer")],d.prototype,"rowRenderer",void 0),bm([ae("dataTypeService")],d.prototype,"dataTypeService",void 0),bm([ae("quickFilterService")],d.prototype,"quickFilterService",void 0),bm([te("advancedFilterService")],d.prototype,"advancedFilterService",void 0),bm([Z],d.prototype,"init",null),d=bm([de("filterManager")],d)}(Ue),hm=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Tm=function(e){function d(d,a){var t=e.call(this,d)||this;return t.ctrl=a,t}return hm(d,e),d.prototype.getCtrl=function(){return this.ctrl},d}(hi),Sm=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Om=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Lm=function(e){function d(a){return e.call(this,d.TEMPLATE,a)||this}return Sm(d,e),d.prototype.postConstruct=function(){var e=this,d=this.getGui(),a={addOrRemoveCssClass:function(d,a){return e.addOrRemoveCssClass(d,a)},addOrRemoveBodyCssClass:function(d,a){return e.eFloatingFilterBody.classList.toggle(d,a)},setButtonWrapperDisplayed:function(d){return at(e.eButtonWrapper,d)},setCompDetails:function(d){return e.setCompDetails(d)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return d.style.width=e},setMenuIcon:function(d){return e.eButtonShowMainFilter.appendChild(d)}};this.ctrl.setComp(a,d,this.eButtonShowMainFilter,this.eFloatingFilterBody)},d.prototype.setCompDetails=function(e){var d=this;if(!e)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return d.afterCompCreated(e)}))},d.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},d.prototype.afterCompCreated=function(e){e&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()):this.destroyBean(e))},d.TEMPLATE='
\n
\n \n
',Om([Si("eFloatingFilterBody")],d.prototype,"eFloatingFilterBody",void 0),Om([Si("eButtonWrapper")],d.prototype,"eButtonWrapper",void 0),Om([Si("eButtonShowMainFilter")],d.prototype,"eButtonShowMainFilter",void 0),Om([Z],d.prototype,"postConstruct",null),Om([ee],d.prototype,"destroyFloatingFilterComp",null),d}(Tm),gm=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Im=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o};!function(e){e.AUTO_HEIGHT="ag-layout-auto-height",e.NORMAL="ag-layout-normal",e.PRINT="ag-layout-print"}(fm||(fm={}));var Bm,Gm,Dm=function(e){function d(d){var a=e.call(this)||this;return a.view=d,a}return gm(d,e),d.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},d.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),d={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},a=d.autoHeight?fm.AUTO_HEIGHT:d.print?fm.PRINT:fm.NORMAL;this.view.updateLayoutClasses(a,d)},d.prototype.getDomLayout=function(){var e,d=null!==(e=this.gridOptionsService.get("domLayout"))&&void 0!==e?e:"normal";return-1===["normal","print","autoHeight"].indexOf(d)?(v("".concat(d," is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")),"normal"):d},Im([Z],d.prototype,"postConstruct",null),d}(Ue),vm=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Mm=function(){return Mm=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o};!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(Bm||(Bm={})),function(e){e[e.Container=0]="Container",e[e.FakeContainer=1]="FakeContainer"}(Gm||(Gm={}));var xm,Em=function(e){function d(d){var a=e.call(this)||this;return a.lastScrollSource=[null,null],a.scrollLeft=-1,a.nextScrollTop=-1,a.scrollTop=-1,a.eBodyViewport=d,a.resetLastHScrollDebounced=V((function(){return a.lastScrollSource[Bm.Horizontal]=null}),500),a.resetLastVScrollDebounced=V((function(){return a.lastScrollSource[Bm.Vertical]=null}),500),a}return vm(d,e),d.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.get("enableRtl"),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(d){e.centerRowContainerCtrl=d.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},d.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),d=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),e.onScrollCallback(this.onFakeHScroll.bind(this));var a=this.gridOptionsService.get("debounceVerticalScrollbar"),t=a?V(this.onVScroll.bind(this),100):this.onVScroll.bind(this),i=a?V(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t),d.onScrollCallback(i)},d.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},d.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var d=this.enableRtl?e:-e,a=this.ctrlsService.getTopCenterRowContainerCtrl(),t=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),i=this.ctrlsService.getBottomCenterRowContainerCtrl(),s=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-d),i.setContainerTranslateX(d),a.setContainerTranslateX(d),t.setContainerTranslateX(d);var o=this.centerRowContainerCtrl.getViewportElement(),l=this.lastScrollSource[Bm.Horizontal]===Gm.Container;e=Math.abs(e),l?s.setScrollPosition(e):ct(o,e,this.enableRtl)}},d.prototype.isControllingScroll=function(e,d){return null==this.lastScrollSource[d]?(this.lastScrollSource[d]=e,!0):this.lastScrollSource[d]===e},d.prototype.onFakeHScroll=function(){this.isControllingScroll(Gm.FakeContainer,Bm.Horizontal)&&this.onHScrollCommon(Gm.FakeContainer)},d.prototype.onHScroll=function(){this.isControllingScroll(Gm.Container,Bm.Horizontal)&&this.onHScrollCommon(Gm.Container)},d.prototype.onHScrollCommon=function(e){var d,a=this.centerRowContainerCtrl.getViewportElement(),t=a.scrollLeft;this.shouldBlockScrollUpdate(Bm.Horizontal,t,!0)||(d=e===Gm.Container?pt(a,this.enableRtl):this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(d)),this.resetLastHScrollDebounced())},d.prototype.onFakeVScroll=function(){this.isControllingScroll(Gm.FakeContainer,Bm.Vertical)&&this.onVScrollCommon(Gm.FakeContainer)},d.prototype.onVScroll=function(){this.isControllingScroll(Gm.Container,Bm.Vertical)&&this.onVScrollCommon(Gm.Container)},d.prototype.onVScrollCommon=function(e){var d;d=e===Gm.Container?this.eBodyViewport.scrollTop:this.ctrlsService.getFakeVScrollComp().getScrollPosition(),this.shouldBlockScrollUpdate(Bm.Vertical,d,!0)||(this.animationFrameService.setScrollTop(d),this.nextScrollTop=d,e===Gm.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(d):this.eBodyViewport.scrollTop=d,this.gridOptionsService.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},d.prototype.doHorizontalScroll=function(e){var d=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===e&&e===d||(this.scrollLeft=e,this.fireScrollEvent(Bm.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},d.prototype.fireScrollEvent=function(e){var d=this,a={type:Je.EVENT_BODY_SCROLL,direction:e===Bm.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(a),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Mm(Mm({},a),{type:Je.EVENT_BODY_SCROLL_END});d.eventService.dispatchEvent(e)}),100)},d.prototype.shouldBlockScrollUpdate=function(e,d,a){return void 0===a&&(a=!1),!(a&&!Ga())&&(e===Bm.Vertical?this.shouldBlockVerticalScroll(d):this.shouldBlockHorizontalScroll(d))},d.prototype.shouldBlockVerticalScroll=function(e){var d=lt(this.eBodyViewport),a=this.eBodyViewport.scrollHeight;return e<0||e+d>a},d.prototype.shouldBlockHorizontalScroll=function(e){var d=this.centerRowContainerCtrl.getCenterWidth(),a=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&ft()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+d>a},d.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(Bm.Vertical)},d.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(Gm.Container)},d.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},d.prototype.setHorizontalScrollPosition=function(e,d){void 0===d&&(d=!1);var a=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!d&&this.shouldBlockScrollUpdate(Bm.Horizontal,e)&&(e=this.enableRtl&&ft()?e>0?0:a:Math.min(Math.max(e,0),a)),ct(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},d.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},d.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},d.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},d.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},d.prototype.scrollHorizontally=function(e){var d=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(d+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-d},d.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},d.prototype.ensureNodeVisible=function(e,d){void 0===d&&(d=null);for(var a=this.rowModel.getRowCount(),t=-1,i=0;i=0&&this.ensureIndexVisible(t,d)},d.prototype.ensureIndexVisible=function(e,d){if(!this.gridOptionsService.isDomLayout("print")){var a=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=a)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsService.get("pagination")&&!this.gridOptionsService.get("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(e);var t,i=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),s=this.paginationProxy.getRow(e);do{var o=s.rowTop,l=s.rowHeight,m=this.paginationProxy.getPixelOffset(),u=s.rowTop-m,n=u+s.rowHeight,r=this.getVScrollPosition(),f=this.heightScaler.getDivStretchOffset(),p=r.top+f,c=r.bottom+f,_=c-p,y=this.heightScaler.getScrollPositionForPixel(u),C=this.heightScaler.getScrollPositionForPixel(n-_),q=Math.min((y+C)/2,u),b=null;"top"===d?b=y:"bottom"===d?b=C:"middle"===d?b=q:p+i>u?b=y-i:co:ts}},d.prototype.getColumnBounds=function(e){var d=this.enableRtl,a=this.columnModel.getBodyContainerWidth(),t=e.getActualWidth(),i=e.getLeft(),s=d?-1:1,o=d?a-i:i;return{colLeft:o,colMiddle:o+t/2*s,colRight:o+t*s}},d.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),d=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:d,end:e+d,width:e}},wm([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),wm([ae("animationFrameService")],d.prototype,"animationFrameService",void 0),wm([ae("paginationProxy")],d.prototype,"paginationProxy",void 0),wm([ae("rowModel")],d.prototype,"rowModel",void 0),wm([ae("rowContainerHeightService")],d.prototype,"heightScaler",void 0),wm([ae("rowRenderer")],d.prototype,"rowRenderer",void 0),wm([ae("columnModel")],d.prototype,"columnModel",void 0),wm([Z],d.prototype,"postConstruct",null),d}(Ue),Rm=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Am=function(){return Am=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},km=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Vm=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;ithis.paginationProxy.getCurrentPageHeight()||(s=this.rowModel.getRowIndexAtPixel(i),a=this.rowModel.getRow(s)),d.vDirection){case ks.Down:t="down";break;case ks.Up:t="up";break;default:t=null}return{type:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:d.event,node:d.dragItem.rowNode,nodes:d.dragItem.rowNodes,overIndex:s,overNode:a,y:i,vDirection:t}},d.prototype.dispatchGridEvent=function(e,d){var a=this.draggingToRowDragEvent(e,d);this.eventService.dispatchEvent(a)},d.prototype.onDragLeave=function(e){this.dispatchGridEvent(Je.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},d.prototype.onDragStop=function(e){this.dispatchGridEvent(Je.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsService.get("rowDragManaged")||!this.gridOptionsService.get("suppressMoveWhenRowDragging")&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},d.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Fm([ae("dragAndDropService")],d.prototype,"dragAndDropService",void 0),Fm([ae("rowModel")],d.prototype,"rowModel",void 0),Fm([ae("paginationProxy")],d.prototype,"paginationProxy",void 0),Fm([ae("columnModel")],d.prototype,"columnModel",void 0),Fm([ae("focusService")],d.prototype,"focusService",void 0),Fm([ae("sortController")],d.prototype,"sortController",void 0),Fm([ae("filterManager")],d.prototype,"filterManager",void 0),Fm([ae("selectionService")],d.prototype,"selectionService",void 0),Fm([ae("mouseEventService")],d.prototype,"mouseEventService",void 0),Fm([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),Fm([te("rangeService")],d.prototype,"rangeService",void 0),Fm([Z],d.prototype,"postConstruct",null),d}(Ue),Nm=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Wm=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o};!function(e){e.ANIMATION_ON="ag-row-animation",e.ANIMATION_OFF="ag-row-no-animation"}(xm||(xm={}));var jm,Um,zm="ag-force-vertical-scroll",Qm=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.stickyTopHeight=0,d}return Nm(d,e),d.prototype.getScrollFeature=function(){return this.bodyScrollFeature},d.prototype.getBodyViewportElement=function(){return this.eBodyViewport},d.prototype.setComp=function(e,d,a,t,i,s){var o=this;this.comp=e,this.eGridBody=d,this.eBodyViewport=a,this.eTop=t,this.eBottom=i,this.eStickyTop=s,this.setCellTextSelection(this.gridOptionsService.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",(function(e){return o.setCellTextSelection(e.currentValue)})),this.createManagedBean(new Dm(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Em(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([t,a,i,s]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(t),this.ctrlsService.registerGridBodyCtrl(this)},d.prototype.getComp=function(){return this.comp},d.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Je.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},d.prototype.addFocusListeners=function(e){var d=this;e.forEach((function(e){d.addManagedListener(e,"focusin",(function(d){var a=st(d.target,"ag-root",e);e.classList.toggle("ag-has-focus",!a)})),d.addManagedListener(e,"focusout",(function(d){var a=d.target,t=d.relatedTarget,i=e.contains(t),s=st(t,"ag-root",e);st(a,"ag-root",e)||i&&!s||e.classList.remove("ag-has-focus")}))}))},d.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss("ag-column-moving",e)},d.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),this.comp.setCellSelectableCss("ag-selectable",e)},d.prototype.onScrollVisibilityChanged=function(){var e=this,d=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(d),this.setStickyTopWidth(d);var a=d&&this.gridOptionsService.getScrollbarWidth()||0,t=Aa()?16:0,i="calc(100% + ".concat(a+t,"px)");this.animationFrameService.requestAnimationFrame((function(){return e.comp.setBodyViewportWidth(i)}))},d.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e.length)},d.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},d.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.get("stopEditingWhenCellsLoseFocus")){var d=function(d){var t=d.relatedTarget;if(null!==va(t)){var i=a.some((function(e){return e.contains(t)}))&&e.mouseEventService.isElementInThisGrid(t);if(!i){var s=e.popupService;i=s.getActivePopups().some((function(e){return e.contains(t)}))||s.isElementWithinCustomPopup(t)}i||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},a=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];a.forEach((function(a){return e.addManagedListener(a,"focusout",d)}))}},d.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),d=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,a=-1===d?-1:e+d;this.comp.setRowCount(a)},d.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},d.prototype.setVerticalScrollPaddingVisible=function(e){var d=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(d)},d.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowVerticalScroll"),d=e?zm:null,a=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(d,e),e||a&>(this.eBodyViewport)},d.prototype.setupRowAnimationCssClass=function(){var e=this,d=function(){var d=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),a=d?xm.ANIMATION_ON:xm.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(a,d)};d(),this.addManagedListener(this.eventService,Je.EVENT_HEIGHT_SCALE_CHANGED,d),this.addManagedPropertyListener("animateRows",d)},d.prototype.getGridBodyElement=function(){return this.eGridBody},d.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},d.prototype.addFullWidthContainerWheelListener=function(){var e=this,d=this.eBodyViewport.querySelector(".ag-full-width-container"),a=this.eBodyViewport.querySelector(".ag-center-cols-viewport");d&&a&&this.addManagedListener(d,"wheel",(function(d){return e.onFullWidthContainerWheel(d,a)}))},d.prototype.onFullWidthContainerWheel=function(e,d){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),d.scrollBy({left:e.deltaX}))},d.prototype.onBodyViewportContextMenu=function(e,d,a){if(e||a){if(this.gridOptionsService.get("preventDefaultOnContextMenu"))(e||a).preventDefault();var t=(e||d).target;if(t===this.eBodyViewport||t===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;e?this.contextMenuFactory.onContextMenu(e,null,null,null,null,this.eGridBody):a&&this.contextMenuFactory.onContextMenu(null,a,null,null,null,this.eGridBody)}}},d.prototype.mockContextMenuForIPad=function(e){if(Ga()){var d=new ao(this.eBodyViewport);this.addManagedListener(d,ao.EVENT_LONG_TAP,(function(d){e(void 0,d.touchStart,d.touchEvent)})),this.addDestroyFunc((function(){return d.destroy()}))}},d.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},d.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},d.prototype.getGui=function(){return this.eGridBody},d.prototype.scrollVertically=function(e){var d=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(d+e),this.eBodyViewport.scrollTop-d},d.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Hm(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},d.prototype.getRowDragFeature=function(){return this.rowDragFeature},d.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},d.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,d=e.getPinnedTopTotalHeight();d&&(d+=1);var a=e.getPinnedBottomTotalHeight();a&&(a+=1),this.comp.setTopHeight(d),this.comp.setBottomHeight(a),this.comp.setTopDisplay(d?"inherit":"none"),this.comp.setBottomDisplay(a?"inherit":"none"),this.setStickyTopOffsetTop()},d.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight("".concat(e,"px")),this.stickyTopHeight=e},d.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},d.prototype.setStickyTopWidth=function(e){if(e){var d=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - ".concat(d,"px)"))}else this.comp.setStickyTopWidth("100%")},d.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},d.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight()+this.filterManager.getHeaderHeight(),d=this.pinnedRowModel.getPinnedTopTotalHeight(),a=0;e>0&&(a+=e+1),d>0&&(a+=d+1),this.comp.setStickyTopTop("".concat(a,"px"))},d.prototype.sizeColumnsToFit=function(e,d){var a=this,t=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,i=mt(this.eGridBody)-t;i>0?this.columnModel.sizeColumnsToFit(i,"sizeColumnsToFit",!1,e):void 0===d?window.setTimeout((function(){a.sizeColumnsToFit(e,100)}),0):100===d?window.setTimeout((function(){a.sizeColumnsToFit(e,500)}),100):500===d?window.setTimeout((function(){a.sizeColumnsToFit(e,-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},d.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},d.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Wm([ae("animationFrameService")],d.prototype,"animationFrameService",void 0),Wm([ae("rowContainerHeightService")],d.prototype,"rowContainerHeightService",void 0),Wm([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),Wm([ae("columnModel")],d.prototype,"columnModel",void 0),Wm([ae("scrollVisibleService")],d.prototype,"scrollVisibleService",void 0),Wm([te("contextMenuFactory")],d.prototype,"contextMenuFactory",void 0),Wm([ae("headerNavigationService")],d.prototype,"headerNavigationService",void 0),Wm([ae("dragAndDropService")],d.prototype,"dragAndDropService",void 0),Wm([ae("pinnedRowModel")],d.prototype,"pinnedRowModel",void 0),Wm([ae("rowRenderer")],d.prototype,"rowRenderer",void 0),Wm([ae("popupService")],d.prototype,"popupService",void 0),Wm([ae("mouseEventService")],d.prototype,"mouseEventService",void 0),Wm([ae("rowModel")],d.prototype,"rowModel",void 0),Wm([ae("filterManager")],d.prototype,"filterManager",void 0),d}(Ue);!function(e){e[e.FILL=0]="FILL",e[e.RANGE=1]="RANGE"}(jm||(jm={})),function(e){e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION"}(Um||(Um={}));var Km,Ym="ag-cell-range-selected",$m=function(){function e(e,d){this.beans=e,this.cellCtrl=d}return e.prototype.setComp=function(e,d){this.cellComp=e,this.eGui=d,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Ym,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("".concat(Ym,"-1"),1===this.rangeCount),this.cellComp.addOrRemoveCssClass("".concat(Ym,"-2"),2===this.rangeCount),this.cellComp.addOrRemoveCssClass("".concat(Ym,"-3"),3===this.rangeCount),this.cellComp.addOrRemoveCssClass("".concat(Ym,"-4"),this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),fa(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),d=this.isSingleCell(),a=!d&&e.top,t=!d&&e.right,i=!d&&e.bottom,s=!d&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",a),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",t),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",s)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var d=e.getCellRanges();return d.length>0&&d.every((function(e){return Be([Um.DIMENSION,Um.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,d,a=this,t=this.beans.gridOptionsService.get("enableRtl"),i=!1,s=!1,o=!1,l=!1,m=this.cellCtrl.getCellPosition().column,u=this.beans,n=u.rangeService,r=u.columnModel;t?(e=r.getDisplayedColAfter(m),d=r.getDisplayedColBefore(m)):(e=r.getDisplayedColBefore(m),d=r.getDisplayedColAfter(m));var f=n.getCellRanges().filter((function(e){return n.isCellInSpecificRange(a.cellCtrl.getCellPosition(),e)}));e||(l=!0),d||(s=!0);for(var p=0;p=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},iu=function(){function e(){}return e.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},tu([ae("resizeObserverService")],e.prototype,"resizeObserverService",void 0),tu([ae("paginationProxy")],e.prototype,"paginationProxy",void 0),tu([ae("context")],e.prototype,"context",void 0),tu([ae("columnApi")],e.prototype,"columnApi",void 0),tu([ae("gridApi")],e.prototype,"gridApi",void 0),tu([ae("gridOptionsService")],e.prototype,"gridOptionsService",void 0),tu([ae("expressionService")],e.prototype,"expressionService",void 0),tu([ae("environment")],e.prototype,"environment",void 0),tu([ae("rowRenderer")],e.prototype,"rowRenderer",void 0),tu([ae("templateService")],e.prototype,"templateService",void 0),tu([ae("valueService")],e.prototype,"valueService",void 0),tu([ae("eventService")],e.prototype,"eventService",void 0),tu([ae("columnModel")],e.prototype,"columnModel",void 0),tu([ae("headerNavigationService")],e.prototype,"headerNavigationService",void 0),tu([ae("navigationService")],e.prototype,"navigationService",void 0),tu([ae("columnAnimationService")],e.prototype,"columnAnimationService",void 0),tu([te("rangeService")],e.prototype,"rangeService",void 0),tu([ae("focusService")],e.prototype,"focusService",void 0),tu([te("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),tu([ae("popupService")],e.prototype,"popupService",void 0),tu([ae("valueFormatterService")],e.prototype,"valueFormatterService",void 0),tu([ae("stylingService")],e.prototype,"stylingService",void 0),tu([ae("columnHoverService")],e.prototype,"columnHoverService",void 0),tu([ae("userComponentFactory")],e.prototype,"userComponentFactory",void 0),tu([ae("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),tu([ae("animationFrameService")],e.prototype,"animationFrameService",void 0),tu([ae("dragService")],e.prototype,"dragService",void 0),tu([ae("dragAndDropService")],e.prototype,"dragAndDropService",void 0),tu([ae("sortController")],e.prototype,"sortController",void 0),tu([ae("filterManager")],e.prototype,"filterManager",void 0),tu([ae("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),tu([ae("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),tu([ae("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),tu([ae("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),tu([ae("selectionService")],e.prototype,"selectionService",void 0),tu([te("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),tu([ae("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),tu([ae("rowModel")],e.prototype,"rowModel",void 0),tu([ae("ctrlsService")],e.prototype,"ctrlsService",void 0),tu([ae("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),tu([ae("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),tu([ae("valueCache")],e.prototype,"valueCache",void 0),tu([ae("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),tu([ae("localeService")],e.prototype,"localeService",void 0),tu([ae("valueParserService")],e.prototype,"valueParserService",void 0),tu([ae("syncService")],e.prototype,"syncService",void 0),tu([Z],e.prototype,"postConstruct",null),e=tu([de("beans")],e)}(),su=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ou=function(e){function d(d,a,t){var i=e.call(this)||this;return i.cellCtrl=d,i.beans=a,i.column=t,i}return su(d,e),d.prototype.onMouseEvent=function(e,d){if(!Re(d))switch(e){case"click":this.onCellClicked(d);break;case"mousedown":case"touchstart":this.onMouseDown(d);break;case"dblclick":this.onCellDoubleClicked(d);break;case"mouseout":this.onMouseOut(d);break;case"mouseover":this.onMouseOver(d)}},d.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var d=this.beans,a=d.eventService,t=d.rangeService,i=d.gridOptionsService,s=e.ctrlKey||e.metaKey;t&&s&&t.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&t.intersectLastRange(!0);var o=this.cellCtrl.createEvent(e,Je.EVENT_CELL_CLICKED);a.dispatchEvent(o);var l=this.column.getColDef();l.onCellClicked&&window.setTimeout((function(){return l.onCellClicked(o)}),0),!((i.get("singleClickEdit")||l.singleClickEdit)&&!i.get("suppressClickEdit"))||e.shiftKey&&0!=(null===t||void 0===t?void 0:t.getCellRanges().length)||this.cellCtrl.startRowOrCellEdit()},d.prototype.isDoubleClickOnIPad=function(){if(!Ga()||Ae("dblclick"))return!1;var e=(new Date).getTime(),d=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,d},d.prototype.onCellDoubleClicked=function(e){var d=this.column.getColDef(),a=this.cellCtrl.createEvent(e,Je.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(a),"function"===typeof d.onCellDoubleClicked&&window.setTimeout((function(){return d.onCellDoubleClicked(a)}),0),!this.beans.gridOptionsService.get("singleClickEdit")&&!this.beans.gridOptionsService.get("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,e)},d.prototype.onMouseDown=function(e){var d=e.ctrlKey,a=e.metaKey,t=e.shiftKey,i=e.target,s=this.cellCtrl,o=this.beans,l=o.eventService,m=o.rangeService,u=o.focusService;if(!this.isRightClickInExistingRange(e)){var n=m&&0!=m.getCellRanges().length;if(!t||!n){var r=Oa()&&!s.isEditing()&&!dt(i);s.focusCell(r)}if(t&&n&&!u.isCellFocused(s.getCellPosition())){e.preventDefault();var f=u.getFocusedCell();if(f){var p=f.column,c=f.rowIndex,_=f.rowPinned,y=o.rowRenderer.getRowByPosition({rowIndex:c,rowPinned:_}),C=null===y||void 0===y?void 0:y.getCellCtrl(p);(null===C||void 0===C?void 0:C.isEditing())&&C.stopEditing(),u.setFocusedCell({column:p,rowIndex:c,rowPinned:_,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(i)){if(m){var q=this.cellCtrl.getCellPosition();if(t)m.extendLatestRangeToCell(q);else{var b=d||a;m.setRangeToCell(q,b)}}l.dispatchEvent(this.cellCtrl.createEvent(e,Je.EVENT_CELL_MOUSE_DOWN))}}},d.prototype.isRightClickInExistingRange=function(e){var d=this.beans.rangeService;if(d){var a=d.isCellInAnyRange(this.cellCtrl.getCellPosition()),t=2===e.button||e.ctrlKey&&this.beans.gridOptionsService.get("allowContextMenuWithControlKey");if(a&&t)return!0}return!1},d.prototype.containsWidget=function(e){return st(e,"ag-selection-checkbox",3)},d.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var d=this.cellCtrl.createEvent(e,Je.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(d),this.beans.columnHoverService.clearMouseOver()}},d.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var d=this.cellCtrl.createEvent(e,Je.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(d),this.beans.columnHoverService.setMouseOver([this.column])}},d.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var d=this.cellCtrl.getGui(),a=d.contains(e.target),t=d.contains(e.relatedTarget);return a&&t},d.prototype.destroy=function(){},d}(iu),lu=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),mu=function(e){function d(d,a,t,i,s){var o=e.call(this)||this;return o.cellCtrl=d,o.beans=a,o.rowNode=i,o.rowCtrl=s,o}return lu(d,e),d.prototype.setComp=function(e){this.eGui=e},d.prototype.onKeyDown=function(e){var d=e.key;switch(d){case Qt.ENTER:this.onEnterKeyDown(e);break;case Qt.F2:this.onF2KeyDown(e);break;case Qt.ESCAPE:this.onEscapeKeyDown(e);break;case Qt.TAB:this.onTabKeyDown(e);break;case Qt.BACKSPACE:case Qt.DELETE:this.onBackspaceOrDeleteKeyDown(d,e);break;case Qt.DOWN:case Qt.UP:case Qt.RIGHT:case Qt.LEFT:this.onNavigationKeyDown(e,d)}},d.prototype.onNavigationKeyDown=function(e,d){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,d,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},d.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var d=this.beans.rangeService.extendLatestRangeInDirection(e);d&&this.beans.navigationService.ensureCellVisible(d)}},d.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},d.prototype.onBackspaceOrDeleteKeyDown=function(e,d){var a=this,t=a.cellCtrl,i=a.beans,s=a.rowNode,o=i.gridOptionsService,l=i.rangeService,m=i.eventService;t.isEditing()||(m.dispatchEvent({type:Je.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Jt(e,o.get("enableCellEditingOnBackspace"))?l&&o.get("enableRangeSelection")?l.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):t.isCellEditable()&&s.setDataValue(t.getColumn(),null,"cellClear"):t.startRowOrCellEdit(e,d),m.dispatchEvent({type:Je.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},d.prototype.onEnterKeyDown=function(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.get("enterNavigatesVertically")){var d=e.shiftKey?Qt.UP:Qt.DOWN;this.beans.navigationService.navigateToNextCell(null,d,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(Qt.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()},d.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Qt.F2,e)},d.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},d.prototype.processCharacter=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var d=e.key;" "===d?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(d,e),e.preventDefault())}},d.prototype.onSpaceKeyDown=function(e){var d=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&d.isRowSelection()){var a=this.rowNode.isSelected(),t=!a;if(t||!d.get("suppressRowDeselection")){var i=this.beans.gridOptionsService.get("groupSelectsFiltered"),s=this.rowNode.setSelectedParams({newValue:t,rangeSelect:e.shiftKey,groupSelectsFiltered:i,event:e,source:"spaceKey"});void 0===a&&0===s&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:i,event:e,source:"spaceKey"})}}e.preventDefault()},d.prototype.destroy=function(){e.prototype.destroy.call(this)},d}(Ue),uu=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),nu=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ru=function(e){function d(d,a,t){var i=e.call(this,'
')||this;return i.rowNode=d,i.column=a,i.eCell=t,i}return uu(d,e),d.prototype.postConstruct=function(){this.getGui().appendChild(Ut("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},d.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},d.prototype.onDragStart=function(e){var d=this,a=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);a?a({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var a=JSON.stringify(d.rowNode.data);e.dataTransfer.setData("application/json",a),e.dataTransfer.setData("text/plain",a)}catch(t){}}()},d.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},nu([Z],d.prototype,"postConstruct",null),d}(hi),fu=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},pu=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},hu=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Tu=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i=0)&&a}return a},d.prototype.getDomOrder=function(){return this.gridOptionsService.get("ensureDomOrder")||this.gridOptionsService.isDomLayout("print")},d.prototype.listenOnDomOrder=function(e){var d=this,a=function(){e.rowComp.setDomOrder(d.getDomOrder())};this.addManagedPropertyListener("domLayout",a),this.addManagedPropertyListener("ensureDomOrder",a)},d.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var d=i(this.rowNode.oldRowTop),a=this.beans.columnModel.isPinningLeft(),t=this.beans.columnModel.isPinningRight();if(d){if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows"))return void(this.slideInAnimation.fullWidth=!0);this.slideInAnimation.center=!0,this.slideInAnimation.left=a,this.slideInAnimation.right=t}else{if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows"))return void(this.fadeInAnimation.fullWidth=!0);this.fadeInAnimation.center=!0,this.fadeInAnimation.left=a,this.fadeInAnimation.right=t}}},d.prototype.isEditing=function(){return this.editingRow},d.prototype.stopRowEditing=function(e){this.stopEditing(e)},d.prototype.isFullWidth=function(){return this.rowType!==Km.Normal},d.prototype.getRowType=function(){return this.rowType},d.prototype.refreshFullWidth=function(){var e=this,d=function(d,a){if(!d)return!0;var t=d.rowComp.getFullWidthCellRenderer();if(!t)return!1;if(!t.refresh)return!1;var i=e.createFullWidthParams(d.element,a);return t.refresh(i)},a=d(this.fullWidthGui,null),t=d(this.centerGui,null),i=d(this.leftGui,"left"),s=d(this.rightGui,"right");return a&&t&&i&&s},d.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,wo.EVENT_HEIGHT_CHANGED,(function(){return e.onRowHeightChanged()})),this.addManagedListener(this.rowNode,wo.EVENT_ROW_SELECTED,(function(){return e.onRowSelected()})),this.addManagedListener(this.rowNode,wo.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,wo.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,wo.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var d=this.beans.eventService;this.addManagedListener(d,Je.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(d,Je.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(d,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(d,Je.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(d,Je.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(d,Je.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(d,Je.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(d,Je.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(d,Je.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addDestroyFunc((function(){e.destroyBeans(e.rowDragComps,e.beans.context)})),this.addManagedPropertyListeners(["rowDragEntireRow"],(function(){e.gridOptionsService.get("rowDragEntireRow")?e.allRowGuis.forEach((function(d){e.addRowDraggerToRow(d)})):(e.destroyBeans(e.rowDragComps,e.beans.context),e.rowDragComps=[])})),this.addListenersForCellComps()},d.prototype.onColumnMoved=function(){this.updateColumnLists()},d.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,wo.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,wo.EVENT_CELL_CHANGED,(function(d){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(d)}))}))},d.prototype.onRowNodeDataChanged=function(e){var d=this;this.isFullWidth()!==!!this.rowNode.isFullWidthCell()?this.beans.rowRenderer.redrawRow(this.rowNode):this.isFullWidth()?this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode):(this.getAllCellCtrls().forEach((function(d){return d.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.allRowGuis.forEach((function(e){d.setRowCompRowId(e.rowComp),d.updateRowBusinessKey(),d.setRowCompRowBusinessKey(e.rowComp)})),this.onRowSelected(),this.postProcessCss())},d.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},d.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},d.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(d){var a=e===dm.Above,t=e===dm.Below;d.rowComp.addOrRemoveCssClass("ag-row-highlight-above",a),d.rowComp.addOrRemoveCssClass("ag-row-highlight-below",t)}))},d.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},d.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(d){return d.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},d.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),d=1==this.rowNode.expanded;this.allRowGuis.forEach((function(a){a.rowComp.addOrRemoveCssClass("ag-row-group",e),a.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&d),a.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!d),ea(a.element,e&&d)}))},d.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},d.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},d.prototype.getRowPosition=function(){return{rowPinned:t(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},d.prototype.onKeyboardNavigate=function(e){var d=this.allRowGuis.find((function(d){return d.element.contains(e.target)}));if((d?d.element:null)===e.target){var a=this.rowNode,t=this.beans.focusService.getFocusedCell(),i={rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:t&&t.column};this.beans.navigationService.navigateToNextCell(e,e.key,i,!0),e.preventDefault()}},d.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Re(e)){var d=this.allRowGuis.find((function(d){return d.element.contains(e.target)})),a=d?d.element:null,t=a===e.target,i=null;t||(i=this.beans.focusService.findNextFocusableElement(a,!1,e.shiftKey)),(this.isFullWidth()&&t||!i)&&this.beans.navigationService.onTabKeyDown(this,e)}},d.prototype.onFullWidthRowFocused=function(e){var d,a=this.rowNode,t=!!e&&(this.isFullWidth()&&e.rowIndex===a.rowIndex&&e.rowPinned==a.rowPinned),i=this.fullWidthGui?this.fullWidthGui.element:null===(d=this.centerGui)||void 0===d?void 0:d.element;i&&(i.classList.toggle("ag-full-width-focus",t),t&&i.focus({preventScroll:!0}))},d.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},d.prototype.removeCellCtrl=function(e,d){var a={list:[],map:{}};return e.list.forEach((function(e){e!==d&&(a.list.push(e),a.map[e.getInstanceId()]=e)})),a},d.prototype.onMouseEvent=function(e,d){switch(e){case"dblclick":this.onRowDblClick(d);break;case"click":this.onRowClick(d);break;case"touchstart":case"mousedown":this.onRowMouseDown(d)}},d.prototype.createRowEvent=function(e,d){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,event:d}},d.prototype.createRowEventWithSource=function(e,d){var a=this.createRowEvent(e,d);return a.source=this,a},d.prototype.onRowDblClick=function(e){if(!Re(e)){var d=this.createRowEventWithSource(Je.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(d)}},d.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=st(e.target,"ag-row-drag",3),this.isFullWidth()){var d=this.rowNode,a=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:d.rowIndex,column:a.getAllDisplayedColumns()[0],rowPinned:d.rowPinned,forceBrowserFocus:!0})}},d.prototype.onRowClick=function(e){if(!(Re(e)||this.lastMouseDownOnDragger)){var d=this.createRowEventWithSource(Je.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(d);var a=e.ctrlKey||e.metaKey,t=e.shiftKey;if(!(this.gridOptionsService.get("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()||this.gridOptionsService.get("suppressRowClickSelection"))){var i=this.gridOptionsService.get("rowMultiSelectWithClick"),s=!this.gridOptionsService.get("suppressRowDeselection"),o="rowClicked";if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1,event:e,source:o}):a?s&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:o}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!t,rangeSelect:t,event:e,source:o});else{var l=!i&&!a;this.rowNode.setSelectedParams({newValue:!0,clearSelection:l,rangeSelect:t,event:e,source:o})}}}},d.prototype.setupDetailRowAutoHeight=function(e){var d=this;if(this.rowType===Km.FullWidthDetail&&this.gridOptionsService.get("detailRowAutoHeight")){var a=function(){var a=e.clientHeight;if(null!=a&&a>0){d.beans.frameworkOverrides.setTimeout((function(){d.rowNode.setRowHeight(a),d.beans.clientSideRowModel?d.beans.clientSideRowModel.onRowHeightChanged():d.beans.serverSideRowModel&&d.beans.serverSideRowModel.onRowHeightChanged()}),0)}},t=this.beans.resizeObserverService.observeResize(e,a);this.addDestroyFunc(t),a()}},d.prototype.createFullWidthParams=function(e,d){var a=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,eGridCell:e,eParentOfValue:e,pinned:d,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,d,t,i){return a.addFullWidthRowDragging(e,d,t,i)}}},d.prototype.addFullWidthRowDragging=function(e,d,a,t){if(void 0===a&&(a=""),this.isFullWidth()){var i=new zo((function(){return a}),this.rowNode,void 0,e,d,t);this.createManagedBean(i,this.beans.context)}},d.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var d="ag-row-level-"+e,a="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(d,!0),e.rowComp.addOrRemoveCssClass(a,!1)}))}this.rowLevel=e},d.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},d.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},d.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},d.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),d=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(d){return d.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==d&&(this.lastRowOnPage=d,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",d)})))},d.prototype.stopEditing=function(e){var d,a;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var t=this.getAllCellCtrls(),i=this.editingRow;this.stoppingRowEdit=!0;var s=!1;try{for(var o=Pu(t),l=o.next();!l.done;l=o.next()){var m=l.value.stopEditing(e);i&&!e&&!s&&m&&(s=!0)}}catch(n){d={error:n}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(d)throw d.error}}if(s){var u=this.createRowEvent(Je.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}i&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},d.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(d){d.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),d.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},d.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(d){return d.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var d=e?this.createRowEvent(Je.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Je.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(d)},d.prototype.startRowEditing=function(e,d,a){(void 0===e&&(e=null),void 0===d&&(d=null),void 0===a&&(a=null),this.editingRow)||this.getAllCellCtrls().reduce((function(t,i){var s=i===d;return s?i.startEditing(e,s,a):i.startEditing(null,s,a),!!t||i.isEditing()}),!1)&&this.setEditingRow(!0)},d.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:Tu(Tu(Tu([],hu(this.centerCellCtrls.list),!1),hu(this.leftCellCtrls.list),!1),hu(this.rightCellCtrls.list),!1)},d.prototype.postProcessClassesFromGridOptions=function(){var e=this,d=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);d&&d.length&&d.forEach((function(d){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(d,!0)}))}))},d.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(d){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(d,!0)}))}),(function(d){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(d,!1)}))}))},d.prototype.setStylesFromGridOptions=function(e,d){var a=this;e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(d,(function(e){return e.rowComp.setUserStyles(a.rowStyles)}))},d.prototype.getPinnedForContainer=function(e){return e===Ou.LEFT?"left":e===Ou.RIGHT?"right":null},d.prototype.getInitialRowClasses=function(e){var d=this.getPinnedForContainer(e),a={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:d};return this.beans.rowCssClassCalculator.getInitialRowClasses(a)},d.prototype.processStylesFromGridOptions=function(){var e=this.gridOptionsService.get("rowStyle");if(!e||"function"!==typeof e){var d,a=this.gridOptionsService.getCallback("getRowStyle");if(a)d=a({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return d||e?Object.assign({},e,d):this.emptyStyle}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},d.prototype.onRowSelected=function(e){var d=this,a=!!this.rowNode.isSelected();this.forEachGui(e,(function(e){e.rowComp.addOrRemoveCssClass("ag-row-selected",a),fa(e.element,!!a||void 0);var t=d.createAriaLabel();zd(e.element,null==t?"":t)}))},d.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.gridOptionsService.get("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to ".concat(e?"deselect":"select"," this row."))},d.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},d.prototype.addHoverFunctionality=function(e){var d=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return d.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return d.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,wo.EVENT_MOUSE_ENTER,(function(){d.beans.dragService.isDragging()||d.gridOptionsService.get("suppressRowHoverHighlight")||(e.classList.add("ag-row-hover"),d.rowNode.setHovered(!0))})),this.addManagedListener(this.rowNode,wo.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover"),d.rowNode.setHovered(!1)})))},d.prototype.roundRowTopToBounds=function(e){var d=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),a=this.applyPaginationOffset(d.top,!0)-100,t=this.applyPaginationOffset(d.bottom,!0)+100;return Math.min(Math.max(a,e),t)},d.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},d.prototype.forEachGui=function(e,d){e?d(e):this.allRowGuis.forEach(d)},d.prototype.onRowHeightChanged=function(e){if(null!=this.rowNode.rowHeight){var d=this.rowNode.rowHeight,a=this.beans.environment.getDefaultRowHeight(),t=this.gridOptionsService.isGetRowHeightFunction()?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,i=t?"".concat(Math.min(a,t)-2,"px"):void 0;this.forEachGui(e,(function(e){e.element.style.height="".concat(d,"px"),i&&e.element.style.setProperty("--ag-line-height",i)}))}},d.prototype.addEventListener=function(d,a){e.prototype.addEventListener.call(this,d,a)},d.prototype.removeEventListener=function(d,a){e.prototype.removeEventListener.call(this,d,a)},d.prototype.destroyFirstPass=function(){this.active=!1,this.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var d=this.createRowEvent(Je.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(d),this.beans.eventService.dispatchEvent(d),e.prototype.destroy.call(this)},d.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},d.prototype.destroySecondPass=function(){this.allRowGuis.length=0,this.stopEditing();var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},d.prototype.setFocusedClasses=function(e){var d=this;this.forEachGui(e,(function(e){e.rowComp.addOrRemoveCssClass("ag-row-focus",d.rowFocused),e.rowComp.addOrRemoveCssClass("ag-row-no-focus",!d.rowFocused)}))},d.prototype.onCellFocused=function(){this.onCellFocusChanged()},d.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},d.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},d.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},d.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},d.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},d.prototype.applyPaginationOffset=function(e,d){return void 0===d&&(d=!1),this.rowNode.isRowPinned()||this.rowNode.sticky?e:e+this.beans.paginationProxy.getPixelOffset()*(d?1:-1)},d.prototype.setRowTop=function(e){if(!this.printLayout&&i(e)){var d=this.applyPaginationOffset(e),a=this.rowNode.isRowPinned()||this.rowNode.sticky?d:this.beans.rowContainerHeightService.getRealPixelPosition(d),t="".concat(a,"px");this.setRowTopStyle(t)}},d.prototype.getInitialRowTop=function(e){return this.gridOptionsService.get("suppressRowTransform")?this.getInitialRowTopShared(e):void 0},d.prototype.getInitialTransform=function(e){return this.gridOptionsService.get("suppressRowTransform")?void 0:"translateY(".concat(this.getInitialRowTopShared(e),")")},d.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var d;if(this.isSticky())d=this.rowNode.stickyRowTop;else{var a=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(a);d=this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t)}return d+"px"},d.prototype.setRowTopStyle=function(e){var d=this.gridOptionsService.get("suppressRowTransform");this.allRowGuis.forEach((function(a){return d?a.rowComp.setTop(e):a.rowComp.setTransform("translateY(".concat(e,")"))}))},d.prototype.getRowNode=function(){return this.rowNode},d.prototype.getCellCtrl=function(e){var d=null;return this.getAllCellCtrls().forEach((function(a){a.getColumn()==e&&(d=a)})),null!=d||this.getAllCellCtrls().forEach((function(a){a.getColSpanningList().indexOf(e)>=0&&(d=a)})),d},d.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},d.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},d.prototype.updateRowIndexes=function(e){var d=this.rowNode.getRowIndexString(),a=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),t=this.rowNode.rowIndex%2===0,i=a+this.rowNode.rowIndex+1;this.forEachGui(e,(function(e){e.rowComp.setRowIndex(d),e.rowComp.addOrRemoveCssClass("ag-row-even",t),e.rowComp.addOrRemoveCssClass("ag-row-odd",!t),oa(e.element,i)}))},d.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},d.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},d.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},d.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},d.DOM_DATA_KEY_ROW_CTRL="renderedRow",d}(Ue),Iu=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Bu=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Gu=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Du=function(e){function d(d){var a=e.call(this)||this;return a.element=d,a}return Iu(d,e),d.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},d.prototype.addKeyboardListeners=function(){var e="keydown",d=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,d)},d.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Ae("touchstart")?"touchstart":"mousedown"].forEach((function(d){var a=e.processMouseEvent.bind(e,d);e.addManagedListener(e.element,d,a)}))},d.prototype.processMouseEvent=function(e,d){if(this.mouseEventService.isEventFromThisGrid(d)&&!Re(d)){var a=this.getRowForEvent(d),t=this.mouseEventService.getRenderedCellForEvent(d);"contextmenu"===e?this.handleContextMenuMouseEvent(d,null,a,t):(t&&t.onMouseEvent(e,d),a&&a.onMouseEvent(e,d))}},d.prototype.mockContextMenuForIPad=function(){var e=this;if(Ga()){var d=new ao(this.element);this.addManagedListener(d,ao.EVENT_LONG_TAP,(function(d){var a=e.getRowForEvent(d.touchEvent),t=e.mouseEventService.getRenderedCellForEvent(d.touchEvent);e.handleContextMenuMouseEvent(null,d.touchEvent,a,t)})),this.addDestroyFunc((function(){return d.destroy()}))}},d.prototype.getRowForEvent=function(e){for(var d=e.target;d;){var a=this.gridOptionsService.getDomData(d,gu.DOM_DATA_KEY_ROW_CTRL);if(a)return a;d=d.parentElement}return null},d.prototype.handleContextMenuMouseEvent=function(e,d,a,t){var i=a?a.getRowNode():null,s=t?t.getColumn():null,o=null;if(s){var l=e||d;t.dispatchCellContextMenuEvent(l),o=this.valueService.getValue(s,i)}var m=this.ctrlsService.getGridBodyCtrl(),u=t?t.getGui():m.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,d,i,s,o,u)},d.prototype.getControlsForEventTarget=function(e){return{cellCtrl:Fe(this.gridOptionsService,e,qu.DOM_DATA_KEY_CELL_CTRL),rowCtrl:Fe(this.gridOptionsService,e,gu.DOM_DATA_KEY_ROW_CTRL)}},d.prototype.processKeyboardEvent=function(e,d){var a=this.getControlsForEventTarget(d.target),t=a.cellCtrl,i=a.rowCtrl;d.defaultPrevented||(t?this.processCellKeyboardEvent(t,e,d):i&&i.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,d))},d.prototype.processCellKeyboardEvent=function(e,d,a){var t=e.getRowNode(),i=e.getColumn(),s=e.isEditing();Yt(this.gridOptionsService,a,t,i,s)||"keydown"===d&&(!s&&this.navigationService.handlePageScrollingKey(a)||e.onKeyDown(a),this.doGridOperations(a,e.isEditing()),Kt(a)&&e.processCharacter(a));if("keydown"===d){var o=e.createEvent(a,Je.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(o)}},d.prototype.processFullWidthRowKeyboardEvent=function(e,d,a){var t=e.getRowNode(),i=this.focusService.getFocusedCell(),s=i&&i.column;if(!Yt(this.gridOptionsService,a,t,s,!1)){var o=a.key;if("keydown"===d)switch(o){case Qt.PAGE_HOME:case Qt.PAGE_END:case Qt.PAGE_UP:case Qt.PAGE_DOWN:this.navigationService.handlePageScrollingKey(a,!0);break;case Qt.UP:case Qt.DOWN:e.onKeyboardNavigate(a);break;case Qt.TAB:e.onTabKeyDown(a)}}if("keydown"===d){var l=e.createRowEvent(Je.EVENT_CELL_KEY_DOWN,a);this.eventService.dispatchEvent(l)}},d.prototype.doGridOperations=function(e,d){if((e.ctrlKey||e.metaKey)&&!d&&this.mouseEventService.isEventFromThisGrid(e)){var a=Xt(e);return a===Qt.A?this.onCtrlAndA(e):a===Qt.C?this.onCtrlAndC(e):a===Qt.D?this.onCtrlAndD(e):a===Qt.V?this.onCtrlAndV(e):a===Qt.X?this.onCtrlAndX(e):a===Qt.Y?this.onCtrlAndY():a===Qt.Z?this.onCtrlAndZ(e):void 0}},d.prototype.onCtrlAndA=function(e){var d=this,a=d.pinnedRowModel,t=d.paginationProxy,i=d.rangeService;if(i&&t.isRowsToRender()){var s=Gu([a.isEmpty("top"),a.isEmpty("bottom")],2),l=s[0]?null:"top",m=void 0,u=void 0;s[1]?(m=null,u=this.paginationProxy.getRowCount()-1):(m="bottom",u=a.getPinnedBottomRowData().length-1);var n=this.columnModel.getAllDisplayedColumns();if(o(n))return;i.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:u,rowEndPinned:m,columnStart:n[0],columnEnd:be(n)})}e.preventDefault()},d.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsService.get("enableCellTextSelection")){var d=this.getControlsForEventTarget(e.target),a=d.cellCtrl,t=d.rowCtrl;(null===a||void 0===a?void 0:a.isEditing())||(null===t||void 0===t?void 0:t.isEditing())||(e.preventDefault(),this.clipboardService.copyToClipboard())}},d.prototype.onCtrlAndX=function(e){if(this.clipboardService&&!this.gridOptionsService.get("enableCellTextSelection")&&!this.gridOptionsService.get("suppressCutToClipboard")){var d=this.getControlsForEventTarget(e.target),a=d.cellCtrl,t=d.rowCtrl;(null===a||void 0===a?void 0:a.isEditing())||(null===t||void 0===t?void 0:t.isEditing())||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},d.prototype.onCtrlAndV=function(e){var d=this.getControlsForEventTarget(e.target),a=d.cellCtrl,t=d.rowCtrl;(null===a||void 0===a?void 0:a.isEditing())||(null===t||void 0===t?void 0:t.isEditing())||this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},d.prototype.onCtrlAndD=function(e){this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},d.prototype.onCtrlAndZ=function(e){this.gridOptionsService.get("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},d.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},Bu([ae("mouseEventService")],d.prototype,"mouseEventService",void 0),Bu([ae("valueService")],d.prototype,"valueService",void 0),Bu([te("contextMenuFactory")],d.prototype,"contextMenuFactory",void 0),Bu([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),Bu([ae("navigationService")],d.prototype,"navigationService",void 0),Bu([ae("focusService")],d.prototype,"focusService",void 0),Bu([ae("undoRedoService")],d.prototype,"undoRedoService",void 0),Bu([ae("columnModel")],d.prototype,"columnModel",void 0),Bu([ae("paginationProxy")],d.prototype,"paginationProxy",void 0),Bu([ae("pinnedRowModel")],d.prototype,"pinnedRowModel",void 0),Bu([te("rangeService")],d.prototype,"rangeService",void 0),Bu([te("clipboardService")],d.prototype,"clipboardService",void 0),Bu([Z],d.prototype,"postConstruct",null),d}(Ue),vu=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Mu=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},wu=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},xu=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i0;){var m;if(i0)l-=(m=a[s++]).getActualWidth(),o.push(m)}return o},d.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},d.prototype.getBodyHeight=function(){return this.bodyHeight},d.prototype.checkBodyHeight=function(){var e=lt(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var d={type:Je.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(d)}},d.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},d.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},d.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},d.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),d=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,d)},Mu([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),Mu([ae("pinnedWidthService")],d.prototype,"pinnedWidthService",void 0),Mu([ae("columnModel")],d.prototype,"columnModel",void 0),Mu([ae("scrollVisibleService")],d.prototype,"scrollVisibleService",void 0),Mu([Z],d.prototype,"postConstruct",null),d}(Ue),Ru=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Au=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Fu=function(e){function d(d){var a=e.call(this)||this;return a.element=d,a}return Ru(d,e),d.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Je.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},d.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),d=e>0;at(this.element,d),Bt(this.element,e)},d.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},Au([ae("pinnedWidthService")],d.prototype,"pinnedWidthService",void 0),Au([Z],d.prototype,"postConstruct",null),d}(Ue),ku=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Vu=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Hu=function(e){function d(d){var a=e.call(this)||this;return a.element=d,a}return ku(d,e),d.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},d.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),d=e>0;at(this.element,d),Bt(this.element,e)},d.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},Vu([ae("pinnedWidthService")],d.prototype,"pinnedWidthService",void 0),Vu([Z],d.prototype,"postConstruct",null),d}(Ue),Nu=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Wu=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ju=function(e){function d(d,a){var t=e.call(this)||this;return t.eContainer=d,t.eViewport=a,t}return Nu(d,e),d.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Je.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},d.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),d=null!=e?"".concat(e,"px"):"";this.eContainer.style.height=d,this.eViewport&&(this.eViewport.style.height=d)},Wu([ae("rowContainerHeightService")],d.prototype,"maxDivHeightScaler",void 0),Wu([Z],d.prototype,"postConstruct",null),d}(Ue),Uu=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),zu=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Qu=function(e){function d(d){var a=e.call(this)||this;return a.eContainer=d,a}return Uu(d,e),d.prototype.postConstruct=function(){var e=this;s(this.rangeService)||(this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListener("enableRangeSelection",(function(d){d.currentValue?e.enableFeature():e.disableFeature()})),this.addDestroyFunc((function(){return e.disableFeature()})),this.gridOptionsService.get("enableRangeSelection")&&this.enableFeature())},d.prototype.enableFeature=function(){this.dragService.addDragSource(this.params)},d.prototype.disableFeature=function(){this.dragService.removeDragSource(this.params)},zu([te("rangeService")],d.prototype,"rangeService",void 0),zu([ae("dragService")],d.prototype,"dragService",void 0),zu([Z],d.prototype,"postConstruct",null),d}(Ue),Ku=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Yu=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},$u=function(e){function d(d,a){void 0===a&&(a=!1);var t=e.call(this)||this;return t.callback=d,t.addSpacer=a,t}return Ku(d,e),d.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,Je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},d.prototype.setWidth=function(){var e,d=this.columnModel,a=this.gridOptionsService.isDomLayout("print"),t=d.getBodyContainerWidth(),i=d.getDisplayedColumnsLeftWidth(),s=d.getDisplayedColumnsRightWidth();a?e=t+i+s:(e=t,this.addSpacer&&0===(this.gridOptionsService.get("enableRtl")?i:s)&&this.scrollVisibleService.isVerticalScrollShowing()&&(e+=this.gridOptionsService.getScrollbarWidth()));this.callback(e)},Yu([ae("columnModel")],d.prototype,"columnModel",void 0),Yu([ae("scrollVisibleService")],d.prototype,"scrollVisibleService",void 0),Yu([Z],d.prototype,"postConstruct",null),d}(Ue),Xu=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Ju=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Zu=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},en=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i=0&&d()},d.prototype.getContainerElement=function(){return this.eContainer},d.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},d.prototype.setComp=function(e,d,a){var t=this;this.comp=e,this.eContainer=d,this.eViewport=a,this.createManagedBean(new Du(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var i=[Su.TOP_CENTER,Su.TOP_LEFT,Su.TOP_RIGHT],s=[Su.STICKY_TOP_CENTER,Su.STICKY_TOP_LEFT,Su.STICKY_TOP_RIGHT],o=[Su.BOTTOM_CENTER,Su.BOTTOM_LEFT,Su.BOTTOM_RIGHT],l=[Su.CENTER,Su.LEFT,Su.RIGHT],m=en(en(en(en([],Zu(i),!1),Zu(o),!1),Zu(l),!1),Zu(s),!1),u=[Su.CENTER,Su.LEFT,Su.RIGHT,Su.FULL_WIDTH],n=[Su.CENTER,Su.TOP_CENTER,Su.STICKY_TOP_CENTER,Su.BOTTOM_CENTER],r=[Su.LEFT,Su.BOTTOM_LEFT,Su.TOP_LEFT,Su.STICKY_TOP_LEFT],f=[Su.RIGHT,Su.BOTTOM_RIGHT,Su.TOP_RIGHT,Su.STICKY_TOP_RIGHT];this.forContainers(r,(function(){t.pinnedWidthFeature=t.createManagedBean(new Fu(t.eContainer)),t.addManagedListener(t.eventService,Je.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return t.onPinnedWidthChanged()}))})),this.forContainers(f,(function(){t.pinnedWidthFeature=t.createManagedBean(new Hu(t.eContainer)),t.addManagedListener(t.eventService,Je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return t.onPinnedWidthChanged()}))})),this.forContainers(u,(function(){return t.createManagedBean(new ju(t.eContainer,t.name===Su.CENTER?a:void 0))})),this.forContainers(m,(function(){return t.createManagedBean(new Qu(t.eContainer))})),this.forContainers(n,(function(){return t.createManagedBean(new $u((function(e){return t.comp.setContainerWidth("".concat(e,"px"))})))})),this.addListeners(),this.registerWithCtrlsService()},d.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_ROWS_CHANGED,(function(d){return e.onDisplayedRowsChanged(d.afterScroll)})),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},d.prototype.listenOnDomOrder=function(){var e=this;if([Su.STICKY_TOP_CENTER,Su.STICKY_TOP_LEFT,Su.STICKY_TOP_RIGHT,Su.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var d=function(){var d=e.gridOptionsService.get("ensureDomOrder"),a=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(d||a)};this.addManagedPropertyListener("domLayout",d),d()}},d.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([Su.TOP_CENTER,Su.STICKY_TOP_CENTER,Su.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},d.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([Su.CENTER],(function(){return e.onHorizontalViewportChanged()}))},d.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([Su.CENTER],(function(){return e.onHorizontalViewportChanged()}))},d.prototype.addPreventScrollWhileDragging=function(){var e=this,d=function(d){e.dragService.isDragging()&&d.cancelable&&d.preventDefault()};this.eContainer.addEventListener("touchmove",d,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",d)}))},d.prototype.onHorizontalViewportChanged=function(e){void 0===e&&(e=!1);var d=this.getCenterWidth(),a=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(d,a,e)},d.prototype.getCenterWidth=function(){return mt(this.eViewport)},d.prototype.getCenterViewportScrollLeft=function(){return pt(this.eViewport,this.enableRtl)},d.prototype.registerViewportResizeListener=function(e){var d=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return d()}))},d.prototype.isViewportVisible=function(){return Ct(this.eViewport)},d.prototype.getViewportScrollLeft=function(){return pt(this.eViewport,this.enableRtl)},d.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.get("alwaysShowHorizontalScroll")||Lt(this.eViewport)},d.prototype.getViewportElement=function(){return this.eViewport},d.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX(".concat(e,"px)")},d.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},d.prototype.setCenterViewportScrollLeft=function(e){ct(this.eViewport,e,this.enableRtl)},d.prototype.isContainerVisible=function(){return!d.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},d.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())},d.prototype.onDisplayedRowsChanged=function(e){var d=this;if(void 0===e&&(e=!1),this.visible){var a=this.gridOptionsService.isDomLayout("print"),t=this.gridOptionsService.get("embedFullWidthRows")||a,i=this.getRowCtrls().filter((function(e){var a=e.isFullWidth();return d.isFullWithContainer?!t&&a:t||!a}));this.comp.setRowCtrls(i,e)}else this.comp.setRowCtrls(this.EMPTY_CTRLS,!1)},d.prototype.getRowCtrls=function(){switch(this.name){case Su.TOP_CENTER:case Su.TOP_LEFT:case Su.TOP_RIGHT:case Su.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case Su.STICKY_TOP_CENTER:case Su.STICKY_TOP_LEFT:case Su.STICKY_TOP_RIGHT:case Su.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case Su.BOTTOM_CENTER:case Su.BOTTOM_LEFT:case Su.BOTTOM_RIGHT:case Su.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},Ju([ae("scrollVisibleService")],d.prototype,"scrollVisibleService",void 0),Ju([ae("dragService")],d.prototype,"dragService",void 0),Ju([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),Ju([ae("columnModel")],d.prototype,"columnModel",void 0),Ju([ae("resizeObserverService")],d.prototype,"resizeObserverService",void 0),Ju([ae("animationFrameService")],d.prototype,"animationFrameService",void 0),Ju([ae("rowRenderer")],d.prototype,"rowRenderer",void 0),Ju([Z],d.prototype,"postConstruct",null),d}(Ue),on=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ln=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},mn='
\n \n \n \n \n \n \n \n
'),un=function(e){function d(){return e.call(this,mn)||this}return on(d,e),d.prototype.init=function(){var e=this,d=function(e,d){var a="".concat(e,"px");d.style.minHeight=a,d.style.height=a},a={setRowAnimationCssOnBodyViewport:function(d,a){return e.setRowAnimationCssOnBodyViewport(d,a)},setColumnCount:function(d){return la(e.getGui(),d)},setRowCount:function(d){return sa(e.getGui(),d)},setTopHeight:function(a){return d(a,e.eTop)},setBottomHeight:function(a){return d(a,e.eBottom)},setTopDisplay:function(d){return e.eTop.style.display=d},setBottomDisplay:function(d){return e.eBottom.style.display=d},setStickyTopHeight:function(d){return e.eStickyTop.style.height=d},setStickyTopTop:function(d){return e.eStickyTop.style.top=d},setStickyTopWidth:function(d){return e.eStickyTop.style.width=d},setColumnMovingCss:function(d,a){return e.addOrRemoveCssClass(d,a)},updateLayoutClasses:function(d,a){[e.eBodyViewport.classList,e.eBody.classList].forEach((function(e){e.toggle(fm.AUTO_HEIGHT,a.autoHeight),e.toggle(fm.NORMAL,a.normal),e.toggle(fm.PRINT,a.print)})),e.addOrRemoveCssClass(fm.AUTO_HEIGHT,a.autoHeight),e.addOrRemoveCssClass(fm.NORMAL,a.normal),e.addOrRemoveCssClass(fm.PRINT,a.print)},setAlwaysVerticalScrollClass:function(d,a){return e.eBodyViewport.classList.toggle(zm,a)},registerBodyViewportResizeListener:function(d){var a=e.resizeObserverService.observeResize(e.eBodyViewport,d);e.addDestroyFunc((function(){return a()}))},setPinnedTopBottomOverflowY:function(d){return e.eTop.style.overflowY=e.eBottom.style.overflowY=d},setCellSelectableCss:function(d,a){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle(d,a)}))},setBodyViewportWidth:function(d){return e.eBodyViewport.style.width=d}};this.ctrl=this.createManagedBean(new Qm),this.ctrl.setComp(a,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService&&this.gridOptionsService.get("enableRangeSelection")||"multiple"===this.gridOptionsService.get("rowSelection"))&&ia(this.getGui(),!0)},d.prototype.setRowAnimationCssOnBodyViewport=function(e,d){var a=this.eBodyViewport.classList;a.toggle(xm.ANIMATION_ON,d),a.toggle(xm.ANIMATION_OFF,!d)},d.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},ln([ae("resizeObserverService")],d.prototype,"resizeObserverService",void 0),ln([te("rangeService")],d.prototype,"rangeService",void 0),ln([Si("eBodyViewport")],d.prototype,"eBodyViewport",void 0),ln([Si("eStickyTop")],d.prototype,"eStickyTop",void 0),ln([Si("eTop")],d.prototype,"eTop",void 0),ln([Si("eBottom")],d.prototype,"eBottom",void 0),ln([Si("gridHeader")],d.prototype,"headerRootComp",void 0),ln([Si("eBody")],d.prototype,"eBody",void 0),ln([Z],d.prototype,"init",null),d}(hi),nn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),rn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},fn=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return nn(d,e),d.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},d.prototype.onDisplayedColumnsChanged=function(){this.update()},d.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},d.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},d.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var d={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(d)}},d.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var d={type:Je.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(d)}},d.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},d.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},rn([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),rn([Z],d.prototype,"postConstruct",null),d=rn([de("scrollVisibleService")],d)}(Ue),pn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),cn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},_n=function(e){function d(){var d=null!==e&&e.apply(this,arguments)||this;return d.gridInstanceId=a.gridInstanceSequence.next(),d}var a;return pn(d,e),a=d,d.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[a.GRID_DOM_KEY]=this.gridInstanceId},d.prototype.getRenderedCellForEvent=function(e){return Fe(this.gridOptionsService,e.target,qu.DOM_DATA_KEY_CELL_CTRL)},d.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},d.prototype.isElementInThisGrid=function(e){for(var d=e;d;){var t=d[a.GRID_DOM_KEY];if(i(t))return t===this.gridInstanceId;d=d.parentElement}return!1},d.prototype.getCellPositionForEvent=function(e){var d=this.getRenderedCellForEvent(e);return d?d.getCellPosition():null},d.prototype.getNormalisedPosition=function(e){var d,a,t=this.gridOptionsService.isDomLayout("normal"),i=e;if(null!=i.clientX||null!=i.clientY?(d=i.clientX,a=i.clientY):(d=i.x,a=i.y),t){var s=this.ctrlsService.getGridBodyCtrl(),o=s.getScrollFeature().getVScrollPosition();d+=s.getScrollFeature().getHScrollPosition().left,a+=o.top}return{x:d,y:a}},d.gridInstanceSequence=new mi,d.GRID_DOM_KEY="__ag_grid_instance",cn([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),d=a=cn([de("mouseEventService")],d)}(Ue),yn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Cn=function(){return Cn=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},bn=function(e){function d(){var d=e.call(this)||this;return d.onPageDown=H(d.onPageDown,100),d.onPageUp=H(d.onPageUp,100),d}return yn(d,e),d.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(d){e.gridBodyCon=d.gridBodyCtrl}))},d.prototype.handlePageScrollingKey=function(e,d){void 0===d&&(d=!1);var a=e.key,t=e.altKey,i=e.ctrlKey||e.metaKey,s=!!this.rangeService&&e.shiftKey,o=this.mouseEventService.getCellPositionForEvent(e),l=!1;switch(a){case Qt.PAGE_HOME:case Qt.PAGE_END:i||t||(this.onHomeOrEndKey(a),l=!0);break;case Qt.LEFT:case Qt.RIGHT:case Qt.UP:case Qt.DOWN:if(!o)return!1;!i||t||s||(this.onCtrlUpDownLeftRight(a,o),l=!0);break;case Qt.PAGE_DOWN:case Qt.PAGE_UP:i||t||(l=this.handlePageUpDown(a,o,d))}return l&&e.preventDefault(),l},d.prototype.handlePageUpDown=function(e,d,a){return a&&(d=this.focusService.getFocusedCell()),!!d&&(e===Qt.PAGE_UP?this.onPageUp(d):this.onPageDown(d),!0)},d.prototype.navigateTo=function(e){var d=e.scrollIndex,a=e.scrollType,t=e.scrollColumn,s=e.focusIndex,o=e.focusColumn;if(i(t)&&!t.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(t),i(d)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(d,a),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(s),this.focusService.setFocusedCell({rowIndex:s,column:o,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:s,rowPinned:null,column:o};this.rangeService.setRangeToCell(l)}},d.prototype.onPageDown=function(e){var d=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),a=this.getViewportHeight(),t=this.paginationProxy.getPixelOffset(),i=d.top+a,s=this.paginationProxy.getRowIndexAtPixel(i+t);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,s):this.navigateToNextPage(e,s)},d.prototype.onPageUp=function(e){var d=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),a=this.paginationProxy.getPixelOffset(),t=d.top,i=this.paginationProxy.getRowIndexAtPixel(t+a);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i,!0):this.navigateToNextPage(e,i,!0)},d.prototype.navigateToNextPage=function(e,d,a){void 0===a&&(a=!1);var t,i=this.getViewportHeight(),s=this.paginationProxy.getPageFirstRow(),o=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),m=this.paginationProxy.getRow(e.rowIndex),u=a?(null===m||void 0===m?void 0:m.rowHeight)-i-l:i-l,n=(null===m||void 0===m?void 0:m.rowTop)+u,r=this.paginationProxy.getRowIndexAtPixel(n+l);if(r===e.rowIndex){var f=a?-1:1;d=r=e.rowIndex+f}a?(t="bottom",ro&&(r=o),d>o&&(d=o)),this.isRowTallerThanView(r)&&(d=r,t="top"),this.navigateTo({scrollIndex:d,scrollType:t,scrollColumn:null,focusIndex:r,focusColumn:e.column})},d.prototype.navigateToNextPageWithAutoHeight=function(e,d,a){var t=this;void 0===a&&(a=!1),this.navigateTo({scrollIndex:d,scrollType:a?"bottom":"top",scrollColumn:null,focusIndex:d,focusColumn:e.column}),setTimeout((function(){var i=t.getNextFocusIndexForAutoHeight(e,a);t.navigateTo({scrollIndex:d,scrollType:a?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column,isAsync:!0})}),50)},d.prototype.getNextFocusIndexForAutoHeight=function(e,d){var a;void 0===d&&(d=!1);for(var t=d?-1:1,i=this.getViewportHeight(),s=this.paginationProxy.getPageLastRow(),o=0,l=e.rowIndex;l>=0&&l<=s;){var m=this.paginationProxy.getRow(l);if(m){var u=null!==(a=m.rowHeight)&&void 0!==a?a:0;if(o+u>i)break;o+=u}l+=t}return Math.max(0,Math.min(l,s))},d.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),d=this.gridOptionsService.getScrollbarWidth(),a=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(a-=d),a},d.prototype.isRowTallerThanView=function(e){var d=this.paginationProxy.getRow(e);if(!d)return!1;var a=d.rowHeight;return"number"===typeof a&&a>this.getViewportHeight()},d.prototype.onCtrlUpDownLeftRight=function(e,d){var a=this.cellNavigationService.getNextCellToFocus(e,d,!0),t=a.rowIndex,i=a.column;this.navigateTo({scrollIndex:t,scrollType:null,scrollColumn:i,focusIndex:t,focusColumn:i})},d.prototype.onHomeOrEndKey=function(e){var d=e===Qt.PAGE_HOME,a=this.columnModel.getAllDisplayedColumns(),t=d?a[0]:be(a),i=d?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:t,focusIndex:i,focusColumn:t})},d.prototype.onTabKeyDown=function(e,d){var a=d.shiftKey;if(this.tabToNextCellCommon(e,a,d))d.preventDefault();else if(a){var t=e.getRowPosition(),i=t.rowIndex;(t.rowPinned?0===i:i===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.get("headerHeight")?this.focusService.focusNextGridCoreContainer(!0,!0):(d.preventDefault(),this.focusService.focusPreviousFromFirstCell(d)))}else e instanceof qu&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(a)&&d.preventDefault()},d.prototype.tabToNextCell=function(e,d){var a=this.focusService.getFocusedCell();if(!a)return!1;var t=this.getCellByPosition(a);return!!(t||(t=this.rowRenderer.getRowByPosition(a))&&t.isFullWidth())&&this.tabToNextCellCommon(t,e,d)},d.prototype.tabToNextCellCommon=function(e,d,a){var t=e.isEditing();if(!t&&e instanceof qu){var i=e.getRowCtrl();i&&(t=i.isEditing())}return(t?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(e,d,a):this.moveToNextEditingCell(e,d,a):this.moveToNextCellNotEditing(e,d))||!!this.focusService.getFocusedHeader()},d.prototype.moveToNextEditingCell=function(e,d,a){void 0===a&&(a=null);var t=e.getCellPosition();e.getGui().focus(),e.stopEditing();var i=this.findNextCellToFocusOn(t,d,!0);return null!=i&&(i.startEditing(null,!0,a),i.focusCell(!1),!0)},d.prototype.moveToNextEditingRow=function(e,d,a){void 0===a&&(a=null);var t=e.getCellPosition(),i=this.findNextCellToFocusOn(t,d,!0);if(null==i)return!1;var s=i.getCellPosition(),o=this.isCellEditable(t),l=this.isCellEditable(s),m=s&&t.rowIndex===s.rowIndex&&t.rowPinned===s.rowPinned;(o&&e.setFocusOutOnEditor(),m)||(e.getRowCtrl().stopEditing(),i.getRowCtrl().startRowEditing(void 0,void 0,a));return l?(i.setFocusInOnEditor(),i.focusCell()):i.focusCell(!0),!0},d.prototype.moveToNextCellNotEditing=function(e,d){var a,t=this.columnModel.getAllDisplayedColumns();a=e instanceof gu?Cn(Cn({},e.getRowPosition()),{column:d?t[0]:be(t)}):e.getCellPosition();var s=this.findNextCellToFocusOn(a,d,!1);if(s instanceof qu)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s.getRowPosition(),d);return i(s)},d.prototype.findNextCellToFocusOn=function(e,d,a){for(var t=e;;){e!==t&&(e=t),d||(t=this.getLastCellOfColSpan(t)),t=this.cellNavigationService.getNextTabbedCell(t,d);var s=this.gridOptionsService.getCallback("tabToNextCell");if(i(s)){var o=s({backwards:d,editing:a,previousCellPosition:e,nextCellPosition:t||null});i(o)?(o.floating&&(v("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),o.rowPinned=o.floating),t={rowIndex:o.rowIndex,column:o.column,rowPinned:o.rowPinned}):t=null}if(!t)return null;if(t.rowIndex<0){var l=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l+t.rowIndex,column:t.column},fromCell:!0}),null}var m="fullRow"===this.gridOptionsService.get("editType");if(a&&!m)if(!this.isCellEditable(t))continue;this.ensureCellVisible(t);var u=this.getCellByPosition(t);if(!u){var n=this.rowRenderer.getRowByPosition(t);if(!n||!n.isFullWidth()||a)continue;return n}if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(t),u}},d.prototype.isCellEditable=function(e){var d=this.lookupRowNodeForCell(e);return!!d&&e.column.isCellEditable(d)},d.prototype.getCellByPosition=function(e){var d=this.rowRenderer.getRowByPosition(e);return d?d.getCellCtrl(e.column):null},d.prototype.lookupRowNodeForCell=function(e){return"top"===e.rowPinned?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):"bottom"===e.rowPinned?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},d.prototype.navigateToNextCell=function(e,d,a,t){for(var o=a,l=!1;o&&(o===a||!this.isValidNavigateCell(o));)this.gridOptionsService.get("enableRtl")?d===Qt.LEFT&&(o=this.getLastCellOfColSpan(o)):d===Qt.RIGHT&&(o=this.getLastCellOfColSpan(o)),l=s(o=this.cellNavigationService.getNextCellToFocus(d,o));if(l&&e&&e.key===Qt.UP&&(o={rowIndex:-1,rowPinned:null,column:a.column}),t){var m=this.gridOptionsService.getCallback("navigateToNextCell");if(i(m)){var u=m({key:d,previousCellPosition:a,nextCellPosition:o||null,event:e});i(u)?(u.floating&&(v("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),u.rowPinned=u.floating),o={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):o=null}}if(o)if(o.rowIndex<0){var n=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:n+o.rowIndex,column:a.column},event:e||void 0,fromCell:!0})}else{var r=this.getNormalisedPosition(o);r?this.focusPosition(r):this.tryToFocusFullWidthRow(o)}},d.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var d=this.getCellByPosition(e);return d?(e=d.getCellPosition(),this.ensureCellVisible(e),e):null},d.prototype.tryToFocusFullWidthRow=function(e,d){void 0===d&&(d=!1);var a=this.columnModel.getAllDisplayedColumns(),t=this.rowRenderer.getRowByPosition(e);if(!t||!t.isFullWidth())return!1;var i=this.focusService.getFocusedCell(),s={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(d?be(a):a[0])};this.focusPosition(s);var o=null!=i&&this.rowPositionUtils.before(s,i),l={type:Je.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:s.column,isFullWidthCell:!0,floating:s.rowPinned,fromBelow:o};return this.eventService.dispatchEvent(l),!0},d.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},d.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},d.prototype.getLastCellOfColSpan=function(e){var d=this.getCellByPosition(e);if(!d)return e;var a=d.getColSpanningList();return 1===a.length?e:{rowIndex:e.rowIndex,column:be(a),rowPinned:e.rowPinned}},d.prototype.ensureCellVisible=function(e){var d=this.gridOptionsService.isGroupRowsSticky(),a=this.rowModel.getRow(e.rowIndex);!(d&&(null===a||void 0===a?void 0:a.sticky))&&s(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},qn([ae("mouseEventService")],d.prototype,"mouseEventService",void 0),qn([ae("paginationProxy")],d.prototype,"paginationProxy",void 0),qn([ae("focusService")],d.prototype,"focusService",void 0),qn([te("rangeService")],d.prototype,"rangeService",void 0),qn([ae("columnModel")],d.prototype,"columnModel",void 0),qn([ae("rowModel")],d.prototype,"rowModel",void 0),qn([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),qn([ae("rowRenderer")],d.prototype,"rowRenderer",void 0),qn([ae("headerNavigationService")],d.prototype,"headerNavigationService",void 0),qn([ae("rowPositionUtils")],d.prototype,"rowPositionUtils",void 0),qn([ae("cellNavigationService")],d.prototype,"cellNavigationService",void 0),qn([ae("pinnedRowModel")],d.prototype,"pinnedRowModel",void 0),qn([Z],d.prototype,"postConstruct",null),d=qn([de("navigationService")],d)}(Ue),Pn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),hn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Tn=function(e){function d(d){var a=e.call(this,'
')||this;return a.params=d,a}return Pn(d,e),d.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),d.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},d.prototype.addKeyDownListener=function(){var e=this,d=this.getGui(),a=this.params;this.addManagedListener(d,"keydown",(function(d){Yt(e.gridOptionsService,d,a.node,a.column,!0)||a.onKeyDown(d)}))},d.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",hn([Z],d.prototype,"postConstruct",null),d}(po),Sn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),On=function(e){function d(d,a,t,i,s){var o=e.call(this)||this;o.rendererVersion=0,o.editorVersion=0,o.beans=d,o.column=a.getColumn(),o.rowNode=a.getRowNode(),o.rowCtrl=a.getRowCtrl(),o.eRow=i,o.cellCtrl=a,o.setTemplate('
'));var l=o.getGui();o.forceWrapper=a.isForceWrapper(),o.refreshWrapper(!1);var m=function(e,d){null!=d&&""!=d?l.setAttribute(e,d):l.removeAttribute(e)};Hd(l,a.getCellAriaRole()),m("col-id",a.getColumnIdSanitised());var u=a.getTabIndex();void 0!==u&&m("tabindex",u.toString());var n={addOrRemoveCssClass:function(e,d){return o.addOrRemoveCssClass(e,d)},setUserStyles:function(e){return Ot(l,e)},getFocusableElement:function(){return o.getFocusableElement()},setIncludeSelection:function(e){return o.includeSelection=e},setIncludeRowDrag:function(e){return o.includeRowDrag=e},setIncludeDndSource:function(e){return o.includeDndSource=e},setRenderDetails:function(e,d,a){return o.setRenderDetails(e,d,a)},setEditDetails:function(e,d,a){return o.setEditDetails(e,d,a)},getCellEditor:function(){return o.cellEditor||null},getCellRenderer:function(){return o.cellRenderer||null},getParentOfValue:function(){return o.getParentOfValue()}};return a.setComp(n,o.getGui(),o.eCellWrapper,t,s),o}return Sn(d,e),d.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},d.prototype.setRenderDetails=function(e,d,a){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var t=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e)!(a||t)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(d)}},d.prototype.setEditDetails=function(e,d,a){e?this.createCellEditorInstance(e,d,a):this.destroyEditor()},d.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},d.prototype.refreshWrapper=function(e){var d=this.includeRowDrag||this.includeDndSource||this.includeSelection,a=d||this.forceWrapper,t=a&&null==this.eCellWrapper;t&&(this.eCellWrapper=qt(''),this.getGui().appendChild(this.eCellWrapper));var i=!a&&null!=this.eCellWrapper;i&&(yt(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!a);var s=!e&&a,o=s&&null==this.eCellValue;o&&(this.eCellValue=qt(''),this.eCellWrapper.appendChild(this.eCellValue));var l=!s&&null!=this.eCellValue;l&&(yt(this.eCellValue),this.eCellValue=void 0);var m=t||i||o||l;return m&&this.removeControls(),e||d&&this.addControls(),m},d.prototype.addControls=function(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},d.prototype.createCellEditorInstance=function(e,d,a){var t=this,i=this.editorVersion,o=e.newAgStackInstance();if(o){var l=e.params;o.then((function(e){return t.afterCellEditorCreated(i,e,l,d,a)})),s(this.cellEditor)&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},d.prototype.insertValueWithoutCellRenderer=function(e){var d=this.getParentOfValue();_t(d);var a=null!=e?od(e):null;null!=a&&(d.innerHTML=a)},d.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},d.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),yt(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},d.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),yt(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},d.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var d=this.cellRenderer.refresh(e.params);return!0===d||void 0===d},d.prototype.createCellRendererInstance=function(e){var d=this,a=!this.beans.gridOptionsService.get("suppressAnimationFrame"),t=this.rendererVersion,i=e.componentClass,s=function(){if(!(d.rendererVersion!==t||!d.isAlive())){var a=e.newAgStackInstance(),s=d.afterCellRendererCreated.bind(d,t,i);a&&a.then(s)}};a&&this.firstRender?this.beans.animationFrameService.createTask(s,this.rowNode.rowIndex,"createTasksP2"):s()},d.prototype.getCtrl=function(){return this.cellCtrl},d.prototype.getRowCtrl=function(){return this.rowCtrl},d.prototype.getCellRenderer=function(){return this.cellRenderer},d.prototype.getCellEditor=function(){return this.cellEditor},d.prototype.afterCellRendererCreated=function(e,d,a){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(a);else if(this.cellRenderer=a,this.cellRendererClass=d,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var t=this.getParentOfValue();_t(t),t.appendChild(this.cellRendererGui)}},d.prototype.afterCellEditorCreated=function(e,d,a,t,i){if(e!==this.editorVersion)this.beans.context.destroyBean(d);else{if(d.isCancelBeforeStart&&d.isCancelBeforeStart())return this.beans.context.destroyBean(d),void this.cellCtrl.stopEditing(!0);if(!d.getGui)return console.warn("AG Grid: cellEditor for column ".concat(this.column.getId()," is missing getGui() method")),void this.beans.context.destroyBean(d);this.cellEditor=d,this.cellEditorGui=d.getGui();var s=t||void 0!==d.isPopup&&d.isPopup();s?this.addPopupCellEditor(a,i):this.addInCellEditor(),this.refreshEditStyles(!0,s),d.afterGuiAttached&&d.afterGuiAttached()}},d.prototype.refreshEditStyles=function(e,d){var a;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!d),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!d),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!d),null===(a=this.rowCtrl)||void 0===a||a.setInlineEditingCss(e)},d.prototype.addInCellEditor=function(){var e=this.getGui(),d=this.beans.gridOptionsService.getDocument();(e.contains(d.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},d.prototype.addPopupCellEditor=function(e,d){var a=this;"fullRow"===this.beans.gridOptionsService.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var t=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Tn(e));var i=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&i.appendChild(this.cellEditorGui);var s=this.beans.popupService,o=this.beans.gridOptionsService.get("stopEditingWhenCellsLoseFocus"),l=null!=d?d:t.getPopupPosition?t.getPopupPosition():"over",m=this.beans.gridOptionsService.get("enableRtl"),u={ePopup:i,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:l,alignSide:m?"right":"left",keepWithinBounds:!0},n=s.positionPopupByComponent.bind(s,u),r=this.beans.localeService.getLocaleTextFunc(),f=s.addPopup({modal:o,eChild:i,closeOnEsc:!0,closedCallback:function(){a.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:n,ariaLabel:r("ariaLabelCellEditor","Cell Editor")});f&&(this.hideEditorPopup=f.hideFunc)},d.prototype.detach=function(){this.eRow.removeChild(this.getGui())},d.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},d.prototype.clearParentOfValue=function(){var e=this.getGui(),d=this.beans.gridOptionsService.getDocument();e.contains(d.activeElement)&&Da()&&e.focus({preventScroll:!0}),_t(this.getParentOfValue())},d}(hi),Ln=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),gn=function(e){function d(d,a,t){var i=e.call(this)||this;i.cellComps={},i.beans=a,i.rowCtrl=d,i.setTemplate('
'));var s=i.getGui(),o=s.style;i.domOrder=i.rowCtrl.getDomOrder(),Hd(s,"row");var l=i.rowCtrl.getTabIndex();null!=l&&s.setAttribute("tabindex",l.toString());var m={setDomOrder:function(e){return i.domOrder=e},setCellCtrls:function(e){return i.setCellCtrls(e)},showFullWidth:function(e){return i.showFullWidth(e)},getFullWidthCellRenderer:function(){return i.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,d){return i.addOrRemoveCssClass(e,d)},setUserStyles:function(e){return Ot(s,e)},setTop:function(e){return o.top=e},setTransform:function(e){return o.transform=e},setRowIndex:function(e){return s.setAttribute("row-index",e)},setRowId:function(e){return s.setAttribute("row-id",e)},setRowBusinessKey:function(e){return s.setAttribute("row-business-key",e)}};return d.setComp(m,i.getGui(),t),i.addDestroyFunc((function(){d.unsetComp(t)})),i}return Ln(d,e),d.prototype.getInitialStyle=function(e){var d=this.rowCtrl.getInitialTransform(e),a=this.rowCtrl.getInitialRowTop(e);return d?"transform: ".concat(d):"top: ".concat(a)},d.prototype.showFullWidth=function(e){var d=this,a=e.newAgStackInstance();a&&a.then((function(e){if(d.isAlive()){var a=e.getGui();d.getGui().appendChild(a),d.rowCtrl.setupDetailRowAutoHeight(a),d.setFullWidthRowComp(e)}else d.beans.context.destroyBean(e)}))},d.prototype.setCellCtrls=function(e){var d=this,a=Object.assign({},this.cellComps);e.forEach((function(e){var t=e.getInstanceId();null==d.cellComps[t]?d.newCellComp(e):a[t]=null}));var t=S(a).filter((function(e){return null!=e}));this.destroyCells(t),this.ensureDomOrder(e)},d.prototype.ensureDomOrder=function(e){var d=this;if(this.domOrder){var a=[];e.forEach((function(e){var t=d.cellComps[e.getInstanceId()];t&&a.push(t.getGui())})),Tt(this.getGui(),a)}},d.prototype.newCellComp=function(e){var d=new On(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=d,this.getGui().appendChild(d.getGui())},d.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},d.prototype.destroyAllCells=function(){var e=S(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},d.prototype.setFullWidthRowComp=function(e){var d=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((function(){d.fullWidthCellRenderer=d.beans.context.destroyBean(d.fullWidthCellRenderer)}))},d.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},d.prototype.destroyCells=function(e){var d=this;e.forEach((function(e){if(e){var a=e.getCtrl().getInstanceId();d.cellComps[a]===e&&(e.detach(),e.destroy(),d.cellComps[a]=null)}}))},d}(hi),In=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Bn=function(){return Bn=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o};var Dn,vn=function(e){function d(){var d=e.call(this,function(){var e=hi.elementGettingCreated.getAttribute("name"),d=sn.getRowContainerCssClasses(e);return e===Su.CENTER||e===Su.TOP_CENTER||e===Su.STICKY_TOP_CENTER||e===Su.BOTTOM_CENTER?''):'
')}())||this;return d.rowComps={},d.name=hi.elementGettingCreated.getAttribute("name"),d.type=dn(d.name),d}return In(d,e),d.prototype.postConstruct=function(){var e=this,d={setViewportHeight:function(d){return e.eViewport.style.height=d},setRowCtrls:function(d){return e.setRowCtrls(d)},setDomOrder:function(d){e.domOrder=d},setContainerWidth:function(d){return e.eContainer.style.width=d}};this.createManagedBean(new sn(this.name)).setComp(d,this.eContainer,this.eViewport)},d.prototype.preDestroy=function(){this.setRowCtrls([])},d.prototype.setRowCtrls=function(e){var d=this,a=Bn({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((function(e){var t=e.getInstanceId(),i=a[t];if(i)d.rowComps[t]=i,delete a[t],d.ensureDomOrder(i.getGui());else{if(!e.getRowNode().displayed)return;var s=new gn(e,d.beans,d.type);d.rowComps[t]=s,d.appendRow(s.getGui())}})),S(a).forEach((function(e){d.eContainer.removeChild(e.getGui()),e.destroy()})),Hd(this.eContainer,e.length?"rowgroup":"presentation")},d.prototype.appendRow=function(e){this.domOrder?St(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},d.prototype.ensureDomOrder=function(e){this.domOrder&&(ht(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},Gn([ae("beans")],d.prototype,"beans",void 0),Gn([Si("eViewport")],d.prototype,"eViewport",void 0),Gn([Si("eContainer")],d.prototype,"eContainer",void 0),Gn([Z],d.prototype,"postConstruct",null),Gn([ee],d.prototype,"preDestroy",null),d}(hi),Mn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},wn=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var d=this;if(this.clearColumnsList(),!this.gridOptionsService.get("functionsReadOnly")){var a=e.dragItem.columns;a&&a.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?d.columnsToAggregate.push(e):e.isAllowRowGroup()?d.columnsToGroup.push(e):e.isAllowPivot()&&d.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Wo.ICON_PINNED:Wo.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},Mn([ae("columnModel")],e.prototype,"columnModel",void 0),Mn([ae("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),xn=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},En=function(){function e(){}return e.attemptMoveColumns=function(e){var d=e.isFromHeader,a=e.hDirection,t=e.xPosition,i=e.fromEnter,s=e.fakeEvent,o=e.pinned,l=e.gridOptionsService,m=e.columnModel,u=a===Vs.Left,n=a===Vs.Right,r=e.allMovingColumns;if(d){var f=[];r.forEach((function(e){for(var d,a=null,t=e.getParent();null!=t&&1===t.getDisplayedLeafColumns().length;)a=t,t=t.getParent();null!=a?(!!(null===(d=a.getColGroupDef())||void 0===d?void 0:d.marryChildren)?a.getProvidedColumnGroup().getLeafColumns():a.getLeafColumns()).forEach((function(e){f.includes(e)||f.push(e)})):f.includes(e)||f.push(e)})),r=f}var p=r.slice();m.sortColumnsLikeGridColumns(p);var c=this.calculateValidMoves({movingCols:p,draggingRight:n,xPosition:t,pinned:o,gridOptionsService:l,columnModel:m}),_=this.calculateOldIndex(p,m);if(0!==c.length){var y=c[0],C=null!==_&&!i;if(d&&(C=null!==_),C&&!s){if(u&&y>=_)return;if(n&&y<=_)return}for(var q=m.getAllDisplayedColumns(),b=[],P=null,h=0;ho.length?[s,o]:[o,s],2))[0],o=i[1],s.forEach((function(e){-1===o.indexOf(e)&&a++}))},i=0;i0){for(var C=0;C0){var q=f[c-1];m=p.indexOf(q)+1}else-1===(m=p.indexOf(f[0]))&&(m=0);var b=[m],P=function(e,d){return e-d};if(a){for(var h=m+1,T=n.length-1;h<=T;)b.push(h),h++;b.sort(P)}else{h=m,T=n.length-1;for(var S=n[h];h<=T&&u.indexOf(S)<0;)h++,b.push(h),S=n[h];h=m-1;for(;h>=0;)b.push(h),h--;b.sort(P).reverse()}return b},e.normaliseX=function(e,d,a,t,i){var s=i.getHeaderRowContainerCtrl(d).getViewport();(a&&(e-=s.getBoundingClientRect().left),t.get("enableRtl"))&&(e=s.clientWidth-e);return null==d&&(e+=i.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e}(),Rn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},An=function(){function e(e,d){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.eContainer=d,this.centerContainer=!i(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?Wo.ICON_PINNED:Wo.ICON_MOVE},e.prototype.onDragEnter=function(e){var d=e.dragItem.columns;if(e.dragSource.type===Fo.ToolPanel)this.setColumnsVisible(d,!0,"uiColumnDragged");else{var a=e.dragItem.visibleState,t=(d||[]).filter((function(e){return a[e.getId()]}));this.setColumnsVisible(t,!0,"uiColumnDragged")}this.setColumnsPinned(d,this.pinned,"uiColumnDragged"),this.onDragging(e,!0,!0)},e.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.setColumnsVisible=function(e,d,a){if(void 0===a&&(a="api"),e){var t=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(t,d,a)}},e.prototype.setColumnsPinned=function(e,d,a){if(void 0===a&&(a="api"),e){var t=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(t,d,a)}},e.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var d=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),a=d+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.get("enableRtl")?(this.needToMoveRight=ea-50):(this.needToMoveLeft=ea-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,d,a,t){var i,o=this;if(void 0===e&&(e=this.lastDraggingEvent),void 0===d&&(d=!1),void 0===a&&(a=!1),void 0===t&&(t=!1),t){if(this.lastMovedInfo){var l=this.lastMovedInfo,m=l.columns,u=l.toIndex;En.moveColumns(m,u,"uiColumnMoved",!0,this.columnModel)}}else if(this.lastDraggingEvent=e,!s(e.hDirection)){var n=En.normaliseX(e.x,this.pinned,!1,this.gridOptionsService,this.ctrlsService);d||this.checkCenterForScrolling(n);var r=this.normaliseDirection(e.hDirection),f=e.dragSource.type,p=(null===(i=e.dragSource.getDragItem().columns)||void 0===i?void 0:i.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==o.pinned})))||[],c=En.attemptMoveColumns({allMovingColumns:p,isFromHeader:f===Fo.HeaderCell,hDirection:r,xPosition:n,pinned:this.pinned,fromEnter:d,fakeEvent:a,gridOptionsService:this.gridOptionsService,columnModel:this.columnModel});c&&(this.lastMovedInfo=c)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsService.get("enableRtl"))return e;switch(e){case Vs.Left:return Vs.Right;case Vs.Right:return Vs.Left;default:console.error("AG Grid: Unknown direction ".concat(e))}},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(Wo.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Wo.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Wo.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var d=null,a=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?d=a.scrollHorizontally(-e):this.needToMoveRight&&(d=a.scrollHorizontally(e)),0!==d)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var t=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(t.length>0&&(this.dragAndDropService.setGhostIcon(Wo.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?"left":"right";this.setColumnsPinned(t,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Rn([ae("columnModel")],e.prototype,"columnModel",void 0),Rn([ae("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Rn([ae("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Rn([ae("ctrlsService")],e.prototype,"ctrlsService",void 0),Rn([Z],e.prototype,"init",null),e}(),Fn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),kn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Vn=function(e){function d(d,a){var t=e.call(this)||this;return t.pinned=d,t.eContainer=a,t}return Fn(d,e),d.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(d){switch(e.pinned){case"left":e.eSecondaryContainers=[[d.gridBodyCtrl.getBodyViewportElement(),d.leftRowContainerCtrl.getContainerElement()],[d.bottomLeftRowContainerCtrl.getContainerElement()],[d.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[d.gridBodyCtrl.getBodyViewportElement(),d.rightRowContainerCtrl.getContainerElement()],[d.bottomRightRowContainerCtrl.getContainerElement()],[d.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[d.gridBodyCtrl.getBodyViewportElement(),d.centerRowContainerCtrl.getViewportElement()],[d.bottomCenterRowContainerCtrl.getViewportElement()],[d.topCenterRowContainerCtrl.getViewportElement()]]}}))},d.prototype.isInterestedIn=function(e){return e===Fo.HeaderCell||e===Fo.ToolPanel&&this.gridOptionsService.get("allowDragFromColumnsToolPanel")},d.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},d.prototype.getContainer=function(){return this.eContainer},d.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new An(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new wn(this.pinned)),this.dragAndDropService.addDropTarget(this)},d.prototype.getIconName=function(){return this.currentDropListener.getIconName()},d.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Fo.ToolPanel},d.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},d.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},d.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},d.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},kn([ae("dragAndDropService")],d.prototype,"dragAndDropService",void 0),kn([ae("columnModel")],d.prototype,"columnModel",void 0),kn([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),kn([Z],d.prototype,"postConstruct",null),kn([Z],d.prototype,"init",null),d}(Ue),Hn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Nn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Wn=function(e){function d(a){var t=e.call(this,d.TEMPLATE,a)||this;return t.headerCompVersion=0,t.column=a.getColumnGroupChild(),t.pinned=a.getPinned(),t}return Hn(d,e),d.prototype.postConstruct=function(){var e,d,a=this,t=this.getGui();e="col-id",null!=(d=this.column.getColId())&&""!=d?t.setAttribute(e,d):t.removeAttribute(e);var i={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(e,d){return a.addOrRemoveCssClass(e,d)},setAriaDescription:function(e){return Kd(t,e)},setAriaSort:function(e){return e?na(t,e):ra(t)},setUserCompDetails:function(e){return a.setUserCompDetails(e)},getUserCompInstance:function(){return a.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var s=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",s)},d.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},d.prototype.setUserCompDetails=function(e){var d=this;this.headerCompVersion++;var a=this.headerCompVersion;e.newAgStackInstance().then((function(e){return d.afterCompCreated(a,e)}))},d.prototype.afterCompCreated=function(e,d){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=d,this.headerCompGui=d.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(d)},d.TEMPLATE='
\n \n \n
',Nn([Si("eResize")],d.prototype,"eResize",void 0),Nn([Si("eHeaderCompWrapper")],d.prototype,"eHeaderCompWrapper",void 0),Nn([Z],d.prototype,"postConstruct",null),Nn([ee],d.prototype,"destroyHeaderComp",null),d}(Tm),jn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Un=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},zn=function(e){function d(a){return e.call(this,d.TEMPLATE,a)||this}return jn(d,e),d.prototype.postConstruct=function(){var e=this,d=this.getGui();d.setAttribute("col-id",this.ctrl.getColId());var a={addOrRemoveCssClass:function(d,a){return e.addOrRemoveCssClass(d,a)},setResizableDisplayed:function(d){return at(e.eResize,d)},setWidth:function(e){return d.style.width=e},setAriaExpanded:function(e){return a="aria-expanded",void 0!=(t=e)?d.setAttribute(a,t):d.removeAttribute(a);var a,t},setUserCompDetails:function(d){return e.setUserCompDetails(d)},getUserCompInstance:function(){return e.headerGroupComp}};this.ctrl.setComp(a,d,this.eResize)},d.prototype.setUserCompDetails=function(e){var d=this;e.newAgStackInstance().then((function(e){return d.afterHeaderCompCreated(e)}))},d.prototype.afterHeaderCompCreated=function(e){var d=this,a=function(){return d.destroyBean(e)};if(this.isAlive()){var t=this.getGui(),i=e.getGui();t.appendChild(i),this.addDestroyFunc(a),this.headerGroupComp=e,this.ctrl.setDragSource(t)}else a()},d.TEMPLATE='
\n \n
',Un([ae("userComponentFactory")],d.prototype,"userComponentFactory",void 0),Un([Si("eResize")],d.prototype,"eResize",void 0),Un([Z],d.prototype,"postConstruct",null),d}(Tm),Qn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Kn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o};!function(e){e.COLUMN_GROUP="group",e.COLUMN="column",e.FLOATING_FILTER="filter"}(Dn||(Dn={}));var Yn,$n=function(e){function d(d){var a=e.call(this)||this;return a.headerComps={},a.ctrl=d,a.setTemplate('
')),a}return Qn(d,e),d.prototype.init=function(){var e=this;this.getGui().style.transform=this.ctrl.getTransform(),oa(this.getGui(),this.ctrl.getAriaRowIndex());var d={setHeight:function(d){return e.getGui().style.height=d},setTop:function(d){return e.getGui().style.top=d},setHeaderCtrls:function(d,a){return e.setHeaderCtrls(d,a)},setWidth:function(d){return e.getGui().style.width=d}};this.ctrl.setComp(d)},d.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},d.prototype.setHeaderCtrls=function(e,d){var a=this;if(this.isAlive()){var t=this.headerComps;if(this.headerComps={},e.forEach((function(e){var d=e.getInstanceId(),i=t[d];delete t[d],null==i&&(i=a.createHeaderComp(e),a.getGui().appendChild(i.getGui())),a.headerComps[d]=i})),y(t,(function(e,d){a.getGui().removeChild(d.getGui()),a.destroyBean(d)})),d){var i=S(this.headerComps);i.sort((function(e,d){return e.getCtrl().getColumnGroupChild().getLeft()-d.getCtrl().getColumnGroupChild().getLeft()}));var s=i.map((function(e){return e.getGui()}));Tt(this.getGui(),s)}}},d.prototype.createHeaderComp=function(e){var d;switch(this.ctrl.getType()){case Dn.COLUMN_GROUP:d=new zn(e);break;case Dn.FLOATING_FILTER:d=new Lm(e);break;default:d=new Wn(e)}return this.createBean(d),d.setParentComponent(this),d},Kn([Z],d.prototype,"init",null),Kn([ee],d.prototype,"destroyHeaderCtrls",null),d}(hi),Xn=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Jn=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Zn=0,er=function(e){function d(d,a){var t=e.call(this)||this;return t.resizeToggleTimeout=0,t.resizeMultiplier=1,t.resizeFeature=null,t.lastFocusEvent=null,t.dragSource=null,t.columnGroupChild=d,t.parentRowCtrl=a,t.instanceId=d.getUniqueId()+"-"+Zn++,t}return Xn(d,e),d.prototype.shouldStopEventPropagation=function(e){var d=this.focusService.getFocusedHeader(),a=d.headerRowIndex,t=d.column;return $t(this.gridOptionsService,e,a,t)},d.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},d.prototype.setGui=function(e){this.eGui=e,this.addDomData(),this.addManagedListener(this.beans.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onDisplayedColumnsChanged()},d.prototype.onDisplayedColumnsChanged=function(){this.comp&&this.column&&(this.refreshFirstAndLastStyles(),this.refreshAriaColIndex())},d.prototype.refreshFirstAndLastStyles=function(){var e=this,d=e.comp,a=e.column,t=e.beans;cu.refreshFirstAndLastStyles(d,a,t.columnModel)},d.prototype.refreshAriaColIndex=function(){var e=this.beans,d=this.column,a=e.columnModel.getAriaColumnIndex(d);ma(this.eGui,a)},d.prototype.addResizeAndMoveKeyboardListeners=function(){this.resizeFeature&&(this.addManagedListener(this.eGui,"keydown",this.onGuiKeyDown.bind(this)),this.addManagedListener(this.eGui,"keyup",this.onGuiKeyUp.bind(this)))},d.prototype.onGuiKeyDown=function(e){var d,a=this.gridOptionsService.getDocument().activeElement,t=e.key===Qt.LEFT||e.key===Qt.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),a===this.eGui&&(e.shiftKey||e.altKey)&&((this.isResizing||t)&&(e.preventDefault(),e.stopImmediatePropagation()),t)){var i=e.key===Qt.LEFT!==this.gridOptionsService.get("enableRtl"),s=Vs[i?"Left":"Right"];e.altKey?(this.isResizing=!0,this.resizeMultiplier+=1,this.resizeHeader(s,e.shiftKey),null===(d=this.resizeFeature)||void 0===d||d.toggleColumnResizing(!0)):this.moveHeader(s)}},d.prototype.onGuiKeyUp=function(){var e=this;this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=setTimeout((function(){var d;null===(d=e.resizeFeature)||void 0===d||d.toggleColumnResizing(!1)}),150))},d.prototype.handleKeyDown=function(e){var d=this.getWrapperHasFocus();switch(e.key){case Qt.PAGE_DOWN:case Qt.PAGE_UP:case Qt.PAGE_HOME:case Qt.PAGE_END:d&&e.preventDefault()}},d.prototype.addDomData=function(){var e=this,a=d.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,a,this),this.addDestroyFunc((function(){return e.gridOptionsService.setDomData(e.eGui,a,null)}))},d.prototype.getGui=function(){return this.eGui},d.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},d.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},d.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},d.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},d.prototype.getInstanceId=function(){return this.instanceId},d.prototype.getColumnGroupChild=function(){return this.columnGroupChild},d.prototype.removeDragSource=function(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)},d.prototype.destroy=function(){e.prototype.destroy.call(this),this.removeDragSource(),this.comp=null,this.column=null,this.resizeFeature=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null,this.eGui=null},d.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Jn([ae("focusService")],d.prototype,"focusService",void 0),Jn([ae("beans")],d.prototype,"beans",void 0),Jn([ae("userComponentFactory")],d.prototype,"userComponentFactory",void 0),Jn([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),Jn([ae("dragAndDropService")],d.prototype,"dragAndDropService",void 0),d}(Ue),dr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),ar=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},tr=function(e){function d(d,a,t,i){var s=e.call(this)||this;return s.columnOrGroup=d,s.eCell=a,s.ariaEl=s.eCell.querySelector("[role=columnheader]")||s.eCell,s.colsSpanning=i,s.beans=t,s}return dr(d,e),d.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},d.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.get("enableRtl")&&this.colsSpanning?be(this.colsSpanning):this.columnOrGroup},d.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ce.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},d.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.get("suppressColumnMoveAnimation"),d=i(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&d&&!e?this.animateInLeft():this.onLeftChanged()},d.prototype.animateInLeft=function(){var e=this,d=this.getColumnOrGroup(),a=d.getLeft(),t=d.getOldLeft(),i=this.modifyLeftForPrintLayout(d,t),s=this.modifyLeftForPrintLayout(d,a);this.setLeft(i),this.actualLeft=s,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===s&&e.setLeft(s)}))},d.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),d=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,d),this.setLeft(this.actualLeft)},d.prototype.modifyLeftForPrintLayout=function(e,d){if(!this.beans.gridOptionsService.isDomLayout("print"))return d;if("left"===e.getPinned())return d;var a=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===e.getPinned()?a+this.beans.columnModel.getBodyContainerWidth()+d:a+d},d.prototype.setLeft=function(e){if(i(e)&&(this.eCell.style.left="".concat(e,"px")),this.columnOrGroup instanceof ce)this.columnOrGroup;else{var d=this.columnOrGroup.getLeafColumns();if(!d.length)return;d.length>1&&ua(this.ariaEl,d.length),d[0]}},ar([Z],d.prototype,"postConstruct",null),d}(Ue),ir=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),sr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},or=function(e){function d(d,a){var t=e.call(this)||this;return t.columns=d,t.element=a,t}return ir(d,e),d.prototype.postConstruct=function(){this.gridOptionsService.get("columnHoverHighlight")&&this.addMouseHoverListeners()},d.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},d.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},d.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},sr([ae("columnHoverService")],d.prototype,"columnHoverService",void 0),sr([Z],d.prototype,"postConstruct",null),d}(Ue),lr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),mr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ur=function(e){function d(d,a){var t=e.call(this,d,a)||this;return t.iconCreated=!1,t.column=d,t}return lr(d,e),d.prototype.setComp=function(e,d,a,t){this.comp=e,this.eButtonShowMainFilter=a,this.eFloatingFilterBody=t,this.setGui(d),this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,ce.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},d.prototype.resizeHeader=function(){},d.prototype.moveHeader=function(){},d.prototype.setupActive=function(){var e=this.column.getColDef(),d=!!e.filter,a=!!e.floatingFilter;this.active=d&&a},d.prototype.setupUi=function(){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){var e=Ut("filter",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}},d.prototype.setupFocus=function(){this.createManagedBean(new xi(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},d.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc();zd(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))},d.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsService.getDocument().activeElement===this.eGui)){var d=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(d)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void d.focus();var a=this.findNextColumnWithFloatingFilter(e.shiftKey);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:a},event:e})&&e.preventDefault()}},d.prototype.findNextColumnWithFloatingFilter=function(e){var d=this.beans.columnModel,a=this.column;do{if(!(a=e?d.getDisplayedColBefore(a):d.getDisplayedColAfter(a)))break}while(!a.getColDef().filter||!a.getColDef().floatingFilter);return a},d.prototype.handleKeyDown=function(d){e.prototype.handleKeyDown.call(this,d);var a=this.getWrapperHasFocus();switch(d.key){case Qt.UP:case Qt.DOWN:a||d.preventDefault();case Qt.LEFT:case Qt.RIGHT:if(a)return;d.stopPropagation();case Qt.ENTER:a&&this.focusService.focusInto(this.eGui)&&d.preventDefault();break;case Qt.ESCAPE:a||this.eGui.focus()}},d.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var d=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),a=!!e.relatedTarget&&st(e.relatedTarget,"ag-floating-filter");if(d&&a&&e.target===this.eGui){var t=this.lastFocusEvent,i=!(!t||t.key!==Qt.TAB);if(t&&i){var s=t.shiftKey;this.focusService.focusInto(this.eGui,s)}}var o=this.getRowIndex();this.beans.focusService.setFocusedHeader(o,this.column)}},d.prototype.setupHover=function(){var e=this;this.createManagedBean(new or([this.column],this.eGui));var d=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var d=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",d)}};this.addManagedListener(this.eventService,Je.EVENT_COLUMN_HOVER_CHANGED,d),d()},d.prototype.setupLeft=function(){var e=new tr(this.column,this.eGui,this.beans);this.createManagedBean(e)},d.prototype.setupFilterButton=function(){var e=this.column.getColDef();this.suppressFilterButton=!!e.floatingFilterComponentParams&&!!e.floatingFilterComponentParams.suppressFilterButton},d.prototype.setupUserComp=function(){var e=this;if(this.active){var d=this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return e.showParentFilter()}));d&&this.setCompDetails(d)}},d.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setCompDetails(e)},d.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},d.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var d=function(d){var a=e.comp.getFloatingFilterComp();a&&a.then((function(a){if(a){var t=e.filterManager.getCurrentFloatingFilterParentModel(e.column);a.onParentModelChanged(t,d)}}))};this.destroySyncListener=this.addManagedListener(this.column,ce.EVENT_FILTER_CHANGED,d),this.filterManager.isFilterActive(this.column)&&d(null)}},d.prototype.setupWidth=function(){var e=this,d=function(){var d="".concat(e.column.getActualWidth(),"px");e.comp.setWidth(d)};this.addManagedListener(this.column,ce.EVENT_WIDTH_CHANGED,d),d()},d.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,ce.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)))},d.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},d.prototype.onColDefChanged=function(){var e,d,a=this,t=this.active;this.setupActive();var i=!t&&this.active;t&&!this.active&&(null===(e=this.destroySyncListener)||void 0===e||e.call(this),null===(d=this.destroyFilterChangedListener)||void 0===d||d.call(this));var s=this.active?this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return a.showParentFilter()})):null,o=this.comp.getFloatingFilterComp();o&&s?o.then((function(e){var d;!e||a.filterManager.areFilterCompsDifferent(null!==(d=a.userCompDetails)&&void 0!==d?d:null,s)?a.updateCompDetails(s,i):a.updateFloatingFilterParams(s)})):this.updateCompDetails(s,i)},d.prototype.updateCompDetails=function(e,d){this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),d&&(this.setupSyncWithFilter(),this.setupFilterChangedListener())},d.prototype.updateFloatingFilterParams=function(e){var d;if(e){var a=e.params;null===(d=this.comp.getFloatingFilterComp())||void 0===d||d.then((function(e){(null===e||void 0===e?void 0:e.onParamsUpdated)&&"function"===typeof e.onParamsUpdated&&e.onParamsUpdated(a)}))}},d.prototype.destroy=function(){e.prototype.destroy.call(this),this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.destroySyncListener=null,this.destroyFilterChangedListener=null},mr([ae("filterManager")],d.prototype,"filterManager",void 0),mr([ae("columnHoverService")],d.prototype,"columnHoverService",void 0),mr([ae("menuFactory")],d.prototype,"menuFactory",void 0),d}(er),nr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),rr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},fr=function(e){function d(d,a,t,i,s){var o=e.call(this)||this;return o.pinned=d,o.column=a,o.eResize=t,o.comp=i,o.ctrl=s,o}return nr(d,e),d.prototype.postConstruct=function(){var e,d,a=this,t=[],i=function(){t.forEach((function(e){return e()})),t.length=0},s=function(){var s=a.column.isResizable(),o=!a.gridOptionsService.get("suppressAutoSize")&&!a.column.getColDef().suppressAutoSize;(s!==e||o!==d)&&(e=s,d=o,i(),function(){if(at(a.eResize,e),e){var i=a.horizontalResizeService.addResizeBar({eResizeBar:a.eResize,onResizeStart:a.onResizeStart.bind(a),onResizing:a.onResizing.bind(a,!1),onResizeEnd:a.onResizing.bind(a,!0)});if(t.push(i),d){var s=a.gridOptionsService.get("skipHeaderOnAutoSize"),o=function(){a.columnModel.autoSizeColumn(a.column,s,"uiColumnResized")};a.eResize.addEventListener("dblclick",o);var l=new ao(a.eResize);l.addEventListener(ao.EVENT_DOUBLE_TAP,o),t.push((function(){a.eResize.removeEventListener("dblclick",o),l.removeEventListener(ao.EVENT_DOUBLE_TAP,o),l.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(s)},d.prototype.onResizing=function(e,d){var a=this,t=a.column,i=a.lastResizeAmount,s=a.resizeStartWidth,o=this.normaliseResizeAmount(d),l=[{key:t,newWidth:s+o}];if(this.column.getPinned()&&this.pinnedWidthService.getPinnedLeftWidth()+this.pinnedWidthService.getPinnedRightWidth()+(o-i)>mt(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50)return;this.lastResizeAmount=o,this.columnModel.setColumnWidths(l,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)},d.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)},d.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},d.prototype.normaliseResizeAmount=function(e){var d=e,a="left"!==this.pinned,t="right"===this.pinned;return this.gridOptionsService.get("enableRtl")?a&&(d*=-1):t&&(d*=-1),d},rr([ae("horizontalResizeService")],d.prototype,"horizontalResizeService",void 0),rr([ae("pinnedWidthService")],d.prototype,"pinnedWidthService",void 0),rr([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),rr([ae("columnModel")],d.prototype,"columnModel",void 0),rr([Z],d.prototype,"postConstruct",null),d}(Ue),pr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),cr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},_r=function(e){function d(d){var a=e.call(this)||this;return a.cbSelectAllVisible=!1,a.processingEventFromCheckbox=!1,a.column=d,a}return pr(d,e),d.prototype.onSpaceKeyDown=function(e){var d=this.cbSelectAll,a=this.gridOptionsService.getDocument();d.isDisplayed()&&!d.getGui().contains(a.activeElement)&&(e.preventDefault(),d.setValue(!d.getValue()))},d.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},d.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ls),this.cbSelectAll.addCssClass("ag-header-select-all"),Hd(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Je.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Je.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),Jd(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},d.prototype.onNewColumnsLoaded=function(){this.showOrHideSelectAll()},d.prototype.onDisplayedColumnsChanged=function(){this.isAlive()&&this.showOrHideSelectAll()},d.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},d.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},d.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},d.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},d.prototype.refreshSelectAllLabel=function(){var e=this.localeService.getLocaleTextFunc(),d=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),a=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll","".concat(a," (").concat(d,")")):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel("".concat(a," (").concat(d,")")),this.headerCellCtrl.refreshAriaDescription()},d.prototype.checkSelectionType=function(e){return!("multiple"!==this.gridOptionsService.get("rowSelection"))||(console.warn("AG Grid: ".concat(e," is only available if using 'multiple' rowSelection.")),!1)},d.prototype.checkRightRowModelType=function(e){var d=this.rowModel.getType();return!("clientSide"!==d&&"serverSide"!==d)||(console.warn("AG Grid: ".concat(e," is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ").concat(d,".")),!1)},d.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),d=this.isFilteredOnly(),a=this.isCurrentPageOnly(),t="uiSelectAll";a?t="uiSelectAllCurrentPage":d&&(t="uiSelectAllFiltered");var i={source:t,justFiltered:d,justCurrentPage:a};e?this.selectionService.selectAllRowNodes(i):this.selectionService.deselectAllRowNodes(i)}},d.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"===typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api,context:this.gridOptionsService.context}));return!!e&&(this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"))},d.prototype.isFilteredOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionFilteredOnly},d.prototype.isCurrentPageOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly},cr([ae("rowModel")],d.prototype,"rowModel",void 0),cr([ae("selectionService")],d.prototype,"selectionService",void 0),d}(Ue),yr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Cr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},qr=function(e){var d="function"===typeof Symbol&&Symbol.iterator,a=d&&e[d],t=0;if(a)return a.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},br=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Pr=function(e){function d(d,a){var t=e.call(this,d,a)||this;return t.refreshFunctions=[],t.userHeaderClasses=new Set,t.ariaDescriptionProperties=new Map,t.column=d,t}return yr(d,e),d.prototype.setComp=function(e,d,a,t){var i=this;this.comp=e,this.setGui(d),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(t),this.addColumnHoverListener(),this.setupFilterClass(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.resizeFeature=this.createManagedBean(new fr(this.getPinned(),this.column,a,e,this)),this.createManagedBean(new or([this.column],d)),this.createManagedBean(new tr(this.column,d,this.beans)),this.createManagedBean(new xi(d,{shouldStopEventPropagation:function(e){return i.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(),this.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],this.refresh.bind(this)),this.addManagedListener(this.column,ce.EVENT_COL_DEF_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},d.prototype.resizeHeader=function(e,d){var a,t;if(this.column.isResizable()){var i=this.column.getPinned(),s=this.gridOptionsService.get("enableRtl"),o=this.column.getActualWidth(),l=null!==(a=this.column.getMinWidth())&&void 0!==a?a:0,m=null!==(t=this.column.getMaxWidth())&&void 0!==t?t:Number.MAX_SAFE_INTEGER,u=e===Vs.Left;i&&s!==("right"===i)&&(u=!u);var n=(u?-1:1)*this.resizeMultiplier,r=Math.min(Math.max(o+n,l),m);if(i)if(this.pinnedWidthService.getPinnedLeftWidth()+this.pinnedWidthService.getPinnedRightWidth()+n>mt(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50)return;this.columnModel.setColumnWidths([{key:this.column,newWidth:r}],d,!0)}},d.prototype.moveHeader=function(e){var d=this,a=d.eGui,t=d.column,i=d.columnModel,s=d.gridOptionsService,o=d.ctrlsService,l=this.getPinned(),m=a.getBoundingClientRect().left,u=t.getActualWidth(),n=s.get("enableRtl"),r=e===Vs.Left!==n,f=En.normaliseX(r?m-20:m+u+20,l,!0,s,o);En.attemptMoveColumns({allMovingColumns:[t],isFromHeader:!0,hDirection:e,xPosition:f,pinned:l,fromEnter:!1,fakeEvent:!1,gridOptionsService:s,columnModel:i}),o.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(t,"auto")},d.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},d.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},d.prototype.lookupUserCompDetails=function(){var e=this.createParams(),d=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(d,e)},d.prototype.createParams=function(){var e=this;return{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,showColumnMenu:function(d){e.gridApi.showColumnMenuAfterButtonClick(e.column,d)},progressSort:function(d){e.sortController.progressSort(e.column,!!d,"uiColumnSorted")},setSort:function(d,a){e.sortController.setSortForColumn(e.column,d,!!a,"uiColumnSorted")},api:this.gridApi,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()}},d.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new _r(this.column)),this.selectAllFeature.setComp(this)},d.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},d.prototype.handleKeyDown=function(d){e.prototype.handleKeyDown.call(this,d),d.key===Qt.SPACE&&this.selectAllFeature.onSpaceKeyDown(d),d.key===Qt.ENTER&&this.onEnterKeyDown(d)},d.prototype.onEnterKeyDown=function(e){var d=this.comp.getUserCompInstance();if(d)if(e.ctrlKey||e.metaKey)this.menuEnabled&&d.showMenu&&(e.preventDefault(),d.showMenu());else if(this.sortable){var a=e.shiftKey;this.sortController.progressSort(this.column,a,"uiColumnSorted")}},d.prototype.isMenuEnabled=function(){return this.menuEnabled},d.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var d=this.getRowIndex();this.focusService.setFocusedHeader(d,this.column)}this.setActiveHeader(!0)},d.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},d.prototype.setupTooltip=function(){var e=this,d={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},a=this.createManagedBean(new au(d,this.beans));a.setComp(this.eGui),this.refreshFunctions.push((function(){return a.refreshToolTip()}))},d.prototype.setupClassesFromColDef=function(){var e=this,d=function(){var d=e.column.getColDef(),a=cu.getHeaderClassesFromColDef(d,e.gridOptionsService,e.column,null),t=e.userHeaderClasses;e.userHeaderClasses=new Set(a),a.forEach((function(d){t.has(d)?t.delete(d):e.comp.addOrRemoveCssClass(d,!0)})),t.forEach((function(d){return e.comp.addOrRemoveCssClass(d,!1)}))};this.refreshFunctions.push(d),d()},d.prototype.setDragSource=function(e){var d=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var a=this,t=a.column,i=a.columnModel,s=a.displayName,o=a.dragAndDropService,l=a.gridOptionsService,m=!this.gridOptionsService.get("suppressDragLeaveHidesColumns"),u=this.dragSource={type:Fo.HeaderCell,eElement:e,getDefaultIconName:function(){return m?Wo.ICON_HIDE:Wo.ICON_NOT_ALLOWED},getDragItem:function(){return d.createDragItem(t)},dragItemName:s,onDragStarted:function(){m=!l.get("suppressDragLeaveHidesColumns"),t.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return t.setMoving(!1,"uiColumnMoved")},onGridEnter:function(e){var d;if(m){var a=(null===(d=null===e||void 0===e?void 0:e.columns)||void 0===d?void 0:d.filter((function(e){return!e.getColDef().lockVisible})))||[];i.setColumnsVisible(a,!0,"uiColumnMoved")}},onGridExit:function(e){var d;if(m){var a=(null===(d=null===e||void 0===e?void 0:e.columns)||void 0===d?void 0:d.filter((function(e){return!e.getColDef().lockVisible})))||[];i.setColumnsVisible(a,!1,"uiColumnMoved")}}};o.addDragSource(u,!0)}},d.prototype.createDragItem=function(e){var d={};return d[e.getId()]=e.isVisible(),{columns:[e],visibleState:d}},d.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},d.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},d.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(e){return e()}))},d.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},d.prototype.attemptHeaderCompRefresh=function(e){var d=this.comp.getUserCompInstance();return!!d&&(!!d.refresh&&d.refresh(e))},d.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},d.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},d.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsService.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},d.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},d.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},d.prototype.onColumnValueChanged=function(){this.checkDisplayName()},d.prototype.setupWidth=function(){var e=this,d=function(){var d=e.column.getActualWidth();e.comp.setWidth("".concat(d,"px"))};this.addManagedListener(this.column,ce.EVENT_WIDTH_CHANGED,d),d()},d.prototype.setupMovingCss=function(){var e=this,d=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,ce.EVENT_MOVING_CHANGED,d),d()},d.prototype.setupMenuClass=function(){var e=this,d=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,ce.EVENT_MENU_VISIBLE_CHANGED,d),d()},d.prototype.setupSortableClass=function(){var e=this,d=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};d(),this.addRefreshFunction(d),this.addManagedListener(this.eventService,ce.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},d.prototype.setupFilterClass=function(){var e=this,d=function(){var d=e.column.isFilterActive();e.comp.addOrRemoveCssClass("ag-header-cell-filtered",d),e.refreshAria()};this.addManagedListener(this.column,ce.EVENT_FILTER_ACTIVE_CHANGED,d),d()},d.prototype.setupWrapTextClass=function(){var e=this,d=function(){var d=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",d)};d(),this.addRefreshFunction(d)},d.prototype.onDisplayedColumnsChanged=function(){e.prototype.onDisplayedColumnsChanged.call(this),this.isAlive()&&this.onHeaderHeightChanged()},d.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},d.prototype.refreshSpanHeaderHeight=function(){var e=this,d=e.eGui,a=e.column,t=e.comp,i=e.columnModel;if(e.gridOptionsService,!a.isSpanHeaderHeight())return d.style.removeProperty("top"),d.style.removeProperty("height"),t.addOrRemoveCssClass("ag-header-span-height",!1),void t.addOrRemoveCssClass("ag-header-span-total",!1);var s=this.getColumnGroupPaddingInfo(),o=s.numberOfParents,l=s.isSpanningTotal;t.addOrRemoveCssClass("ag-header-span-height",o>0);var m=i.getColumnHeaderRowHeight();if(0===o)return t.addOrRemoveCssClass("ag-header-span-total",!1),d.style.setProperty("top","0px"),void d.style.setProperty("height","".concat(m,"px"));t.addOrRemoveCssClass("ag-header-span-total",l);var u=o*(i.isPivotMode()?i.getPivotGroupHeaderHeight():i.getGroupHeaderHeight());d.style.setProperty("top","".concat(-u,"px")),d.style.setProperty("height","".concat(m+u,"px"))},d.prototype.getColumnGroupPaddingInfo=function(){var e=this.column.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var d=e.getPaddingLevel()+1,a=!0;e;){if(!e.isPadding()){a=!1;break}e=e.getParent()}return{numberOfParents:d,isSpanningTotal:a}},d.prototype.setupAutoHeight=function(e){var d,a=this,t=function(d){if(a.isAlive()){var i=ot(a.getGui()),s=i.paddingTop+i.paddingBottom+i.borderBottomWidth+i.borderTopWidth,o=e.offsetHeight+s;if(d<5){var l=a.beans.gridOptionsService.getDocument();if(!l||!l.contains(e)||0==o)return void a.beans.frameworkOverrides.setTimeout((function(){return t(d+1)}),0)}a.columnModel.setColumnHeaderHeight(a.column,o)}},i=!1,s=function(){var e=a.column.isAutoHeaderHeight();e&&!i&&o(),!e&&i&&l()},o=function(){i=!0,t(0),a.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),d=a.resizeObserverService.observeResize(e,(function(){return t(0)}))},l=function(){i=!1,d&&d(),a.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),d=void 0};s(),this.addDestroyFunc((function(){return l()})),this.addManagedListener(this.column,ce.EVENT_WIDTH_CHANGED,(function(){return i&&t(0)})),this.addManagedListener(this.eventService,ce.EVENT_SORT_CHANGED,(function(){i&&a.beans.frameworkOverrides.setTimeout((function(){return t(0)}))})),this.addRefreshFunction(s)},d.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),d=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Nd(d)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},d.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},d.prototype.refreshAriaFiltered=function(){var e=this.localeService.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)},d.prototype.setAriaDescriptionProperty=function(e,d){null!=d?this.ariaDescriptionProperties.set(e,d):this.ariaDescriptionProperties.delete(e)},d.prototype.refreshAriaDescription=function(){var e,d,a=null;try{for(var t=qr(this.ariaDescriptionProperties),i=t.next();!i.done;i=t.next()){var s=br(i.value,2),o=s[0],l=s[1];a="filter"===o?"".concat(l," ").concat(a||""):"".concat(a||""," ").concat(l)}}catch(m){e={error:m}}finally{try{i&&!i.done&&(d=t.return)&&d.call(t)}finally{if(e)throw e.error}}this.comp.setAriaDescription(null!==a&&void 0!==a?a:void 0)},d.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFiltered(),this.refreshAriaDescription()},d.prototype.addColumnHoverListener=function(){var e=this,d=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var d=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",d)}};this.addManagedListener(this.eventService,Je.EVENT_COLUMN_HOVER_CHANGED,d),d()},d.prototype.getColId=function(){return this.column.getColId()},d.prototype.addActiveHeaderMouseListeners=function(){var e=this,d=function(d){return e.setActiveHeader("mouseenter"===d.type)};this.addManagedListener(this.getGui(),"mouseenter",d),this.addManagedListener(this.getGui(),"mouseleave",d)},d.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},d.prototype.destroy=function(){e.prototype.destroy.call(this),this.refreshFunctions=null,this.selectAllFeature=null,this.dragSourceElement=null,this.userCompDetails=null,this.userHeaderClasses=null,this.ariaDescriptionProperties=null},Cr([ae("columnModel")],d.prototype,"columnModel",void 0),Cr([ae("pinnedWidthService")],d.prototype,"pinnedWidthService",void 0),Cr([ae("columnHoverService")],d.prototype,"columnHoverService",void 0),Cr([ae("sortController")],d.prototype,"sortController",void 0),Cr([ae("menuFactory")],d.prototype,"menuFactory",void 0),Cr([ae("resizeObserverService")],d.prototype,"resizeObserverService",void 0),Cr([ae("gridApi")],d.prototype,"gridApi",void 0),d}(er),hr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Tr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Sr=function(e){function d(d,a,t,i){var s=e.call(this)||this;return s.eResize=a,s.comp=d,s.pinned=t,s.columnGroup=i,s}return hr(d,e),d.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var d=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(d),!this.gridOptionsService.get("suppressAutoSize")){var a=this.gridOptionsService.get("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",(function(){var d=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||d.push(e.getColId())})),d.length>0&&e.columnModel.autoSizeColumns({columns:d,skipHeader:a,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit("uiColumnResized")}))}}else this.comp.setResizableDisplayed(!1)},d.prototype.onResizeStart=function(e){var d=this.getInitialValues(e);this.storeLocalValues(d),this.toggleColumnResizing(!0)},d.prototype.onResizing=function(e,d,a){void 0===a&&(a="uiColumnResized");var t=this.normaliseDragChange(d),i=this.resizeStartWidth+t;this.resizeColumnsFromLocalValues(i,a,e)},d.prototype.getInitialValues=function(e){var d=this.getColumnsToResize(),a=this.getInitialSizeOfColumns(d),t={columnsToResize:d,resizeStartWidth:a,resizeRatios:this.getSizeRatiosOfColumns(d,a)},i=null;if(e&&(i=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),i){var s=i.getDisplayedLeafColumns(),o=t.groupAfterColumns=s.filter((function(e){return e.isResizable()})),l=t.groupAfterStartWidth=this.getInitialSizeOfColumns(o);t.groupAfterRatios=this.getSizeRatiosOfColumns(o,l)}else t.groupAfterColumns=void 0,t.groupAfterStartWidth=void 0,t.groupAfterRatios=void 0;return t},d.prototype.storeLocalValues=function(e){var d=e.columnsToResize,a=e.resizeStartWidth,t=e.resizeRatios,i=e.groupAfterColumns,s=e.groupAfterStartWidth,o=e.groupAfterRatios;this.resizeCols=d,this.resizeStartWidth=a,this.resizeRatios=t,this.resizeTakeFromCols=i,this.resizeTakeFromStartWidth=s,this.resizeTakeFromRatios=o},d.prototype.clearLocalValues=function(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0},d.prototype.resizeLeafColumnsToFit=function(e){var d=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),a=this.getInitialValues();d>a.resizeStartWidth&&this.resizeColumns(a,d,e,!0)},d.prototype.resizeColumnsFromLocalValues=function(e,d,a){var t,i,s;if(void 0===a&&(a=!0),this.resizeCols&&this.resizeRatios){var o={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:null!==(t=this.resizeTakeFromCols)&&void 0!==t?t:void 0,groupAfterStartWidth:null!==(i=this.resizeTakeFromStartWidth)&&void 0!==i?i:void 0,groupAfterRatios:null!==(s=this.resizeTakeFromRatios)&&void 0!==s?s:void 0};this.resizeColumns(o,e,d,a)}},d.prototype.resizeColumns=function(e,d,a,t){void 0===t&&(t=!0);var i=e.columnsToResize,s=e.resizeStartWidth,o=e.resizeRatios,l=e.groupAfterColumns,m=e.groupAfterStartWidth,u=e.groupAfterRatios,n=[];if(n.push({columns:i,ratios:o,width:d}),l){var r=d-s;n.push({columns:l,ratios:u,width:m-r})}this.columnModel.resizeColumnSets({resizeSets:n,finished:t,source:a}),t&&this.toggleColumnResizing(!1)},d.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},d.prototype.getColumnsToResize=function(){return this.columnGroup.getDisplayedLeafColumns().filter((function(e){return e.isResizable()}))},d.prototype.getInitialSizeOfColumns=function(e){return e.reduce((function(e,d){return e+d.getActualWidth()}),0)},d.prototype.getSizeRatiosOfColumns=function(e,d){return e.map((function(e){return e.getActualWidth()/d}))},d.prototype.normaliseDragChange=function(e){var d=e;return this.gridOptionsService.get("enableRtl")?"left"!==this.pinned&&(d*=-1):"right"===this.pinned&&(d*=-1),d},d.prototype.destroy=function(){e.prototype.destroy.call(this),this.clearLocalValues()},Tr([ae("horizontalResizeService")],d.prototype,"horizontalResizeService",void 0),Tr([ae("autoWidthCalculator")],d.prototype,"autoWidthCalculator",void 0),Tr([ae("columnModel")],d.prototype,"columnModel",void 0),Tr([Z],d.prototype,"postConstruct",null),d}(Ue),Or=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Lr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},gr=function(e){function d(d,a){var t=e.call(this)||this;return t.removeChildListenersFuncs=[],t.columnGroup=a,t.comp=d,t}return Or(d,e),d.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Xe.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},d.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var d=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(a){a.addEventListener("widthChanged",d),a.addEventListener("visibleChanged",d),e.removeChildListenersFuncs.push((function(){a.removeEventListener("widthChanged",d),a.removeEventListener("visibleChanged",d)}))}))},d.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},d.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},d.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth("".concat(e,"px")),this.comp.addOrRemoveCssClass("ag-hidden",0===e)},Lr([Z],d.prototype,"postConstruct",null),d}(Ue),Ir=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Br=function(){return Br=Object.assign||function(e){for(var d,a=1,t=arguments.length;a=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Dr=function(e){function d(d,a){var t=e.call(this,d,a)||this;return t.onSuppressColMoveChange=function(){if(t.isSuppressMoving())t.removeDragSource();else if(!t.dragSource){var e=t.getGui();t.setDragSource(e)}},t.column=d,t}return Ir(d,e),d.prototype.setComp=function(e,d,a){this.comp=e,this.setGui(d),this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.column,"header"),this.addClasses(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var t=this.getParentRowCtrl().getPinned(),i=this.column.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new or(i,d)),this.createManagedBean(new tr(this.column,d,this.beans)),this.createManagedBean(new gr(e,this.column)),this.resizeFeature=this.createManagedBean(new Sr(e,a,t,this.column)),this.createManagedBean(new xi(d,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addManagedPropertyListener(Je.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners()},d.prototype.resizeHeader=function(e,d){if(this.resizeFeature){var a=(e===Vs.Left?-1:1)*this.resizeMultiplier,t=this.resizeFeature.getInitialValues(d);this.resizeFeature.resizeColumns(t,t.resizeStartWidth+a,"uiColumnResized",!0)}},d.prototype.moveHeader=function(e){var d=this,a=d.eGui,t=d.column,i=d.columnModel,s=d.gridOptionsService,o=d.ctrlsService,l=s.get("enableRtl"),m=e===Vs.Left,u=this.getPinned(),n=a.getBoundingClientRect(),r=n.left,f=n.width,p=En.normaliseX(m!==l?r-20:r+f+20,u,!0,s,o),c=t.getGroupId(),_=this.focusService.getFocusedHeader();En.attemptMoveColumns({allMovingColumns:this.column.getLeafColumns(),isFromHeader:!0,hDirection:e,xPosition:p,pinned:u,fromEnter:!1,fakeEvent:!1,gridOptionsService:s,columnModel:i});var y=t.getDisplayedLeafColumns(),C=m?y[0]:be(y);this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(C,"auto"),!this.isAlive()&&_&&this.restoreFocus(c,t,_)},d.prototype.restoreFocus=function(e,d,a){var t=d.getLeafColumns();if(t.length){var i=t[0].getParent();if(i){var s=this.findGroupWidthId(i,e);s&&this.focusService.focusHeaderPosition({headerPosition:Br(Br({},a),{column:s})})}}},d.prototype.findGroupWidthId=function(e,d){for(;e;){if(e.getGroupId()===d)return e;e=e.getParent()}return null},d.prototype.resizeLeafColumnsToFit=function(e){this.resizeFeature&&this.resizeFeature.resizeLeafColumnsToFit(e)},d.prototype.setupUserComp=function(){var e=this,d={displayName:this.displayName,columnGroup:this.column,setExpanded:function(d){e.columnModel.setColumnGroupOpened(e.column.getProvidedColumnGroup(),d,"gridInitializing")},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context},a=this.userComponentFactory.getHeaderGroupCompDetails(d);this.comp.setUserCompDetails(a)},d.prototype.setupTooltip=function(){var e=this,d=this.column.getColGroupDef(),a={getColumn:function(){return e.column},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return d&&d.headerTooltip}};d&&(a.getColDef=function(){return d}),this.createManagedBean(new au(a,this.beans)).setComp(this.eGui)},d.prototype.setupExpandable=function(){var e=this.column.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,ye.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,ye.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},d.prototype.refreshExpanded=function(){var e=this.column;this.expandable=e.isExpandable();var d=e.isExpanded();this.expandable?this.comp.setAriaExpanded(d?"true":"false"):this.comp.setAriaExpanded(void 0)},d.prototype.getColId=function(){return this.column.getUniqueId()},d.prototype.addClasses=function(){var e=this,d=this.column.getColGroupDef(),a=cu.getHeaderClassesFromColDef(d,this.gridOptionsService,null,this.column);this.column.isPadding()?(a.push("ag-header-group-cell-no-group"),this.column.getLeafColumns().every((function(e){return e.isSpanHeaderHeight()}))&&a.push("ag-header-span-height")):a.push("ag-header-group-cell-with-group");a.forEach((function(d){return e.comp.addOrRemoveCssClass(d,!0)}))},d.prototype.setupMovingCss=function(){var e=this,d=this.column.getProvidedColumnGroup().getLeafColumns(),a=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};d.forEach((function(d){e.addManagedListener(d,ce.EVENT_MOVING_CHANGED,a)})),a()},d.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var d=this.getRowIndex();this.beans.focusService.setFocusedHeader(d,this.column)}},d.prototype.handleKeyDown=function(d){e.prototype.handleKeyDown.call(this,d);var a=this.getWrapperHasFocus();if(this.expandable&&a&&d.key===Qt.ENTER){var t=this.column,i=!t.isExpanded();this.columnModel.setColumnGroupOpened(t.getProvidedColumnGroup(),i,"uiColumnExpanded")}},d.prototype.setDragSource=function(e){var d=this;if(!this.isSuppressMoving()&&(this.removeDragSource(),e)){var a=this,t=a.column,i=a.columnModel,s=a.displayName,o=a.gridOptionsService,l=a.dragAndDropService,m=t.getProvidedColumnGroup().getLeafColumns(),u=!o.get("suppressDragLeaveHidesColumns"),n=this.dragSource={type:Fo.HeaderCell,eElement:e,getDefaultIconName:function(){return u?Wo.ICON_HIDE:Wo.ICON_NOT_ALLOWED},dragItemName:s,getDragItem:function(){return d.getDragItemForGroup(t)},onDragStarted:function(){u=!o.get("suppressDragLeaveHidesColumns"),m.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return m.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(e){var d;if(u){var a=(null===(d=null===e||void 0===e?void 0:e.columns)||void 0===d?void 0:d.filter((function(e){return!e.getColDef().lockVisible})))||[];i.setColumnsVisible(a,!0,"uiColumnMoved")}},onGridExit:function(e){var d;if(u){var a=(null===(d=null===e||void 0===e?void 0:e.columns)||void 0===d?void 0:d.filter((function(e){return!e.getColDef().lockVisible})))||[];i.setColumnsVisible(a,!1,"uiColumnMoved")}}};l.addDragSource(n,!0)}},d.prototype.getDragItemForGroup=function(e){var d=e.getProvidedColumnGroup().getLeafColumns(),a={};d.forEach((function(e){return a[e.getId()]=e.isVisible()}));var t=[];return this.columnModel.getAllDisplayedColumns().forEach((function(e){d.indexOf(e)>=0&&(t.push(e),Se(d,e))})),d.forEach((function(e){return t.push(e)})),{columns:t,visibleState:a}},d.prototype.isSuppressMoving=function(){var e=!1;return this.column.getLeafColumns().forEach((function(d){(d.getColDef().suppressMovable||d.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsService.get("suppressMovableColumns")},Gr([ae("columnModel")],d.prototype,"columnModel",void 0),d}(er),vr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Mr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},wr=function(e){var d="function"===typeof Symbol&&Symbol.iterator,a=d&&e[d],t=0;if(a)return a.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},xr=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Er=0,Rr=function(e){function d(d,a,t){var i=e.call(this)||this;i.instanceId=Er++,i.rowIndex=d,i.pinned=a,i.type=t;var s=t==Dn.COLUMN_GROUP?"ag-header-row-column-group":t==Dn.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.headerRowClass="ag-header-row ".concat(s),i}return vr(d,e),d.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.get("ensureDomOrder")},d.prototype.getInstanceId=function(){return this.instanceId},d.prototype.setComp=function(e,d){void 0===d&&(d=!0),this.comp=e,d&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},d.prototype.getHeaderRowClass=function(){return this.headerRowClass},d.prototype.getAriaRowIndex=function(){return this.rowIndex+1},d.prototype.getTransform=function(){if(Oa())return"translateZ(0)"},d.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Je.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_VIRTUAL_COLUMNS_CHANGED,(function(d){return e.onVirtualColumnsChanged(d.afterScroll)})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",(function(d){return e.isEnsureDomOrder=d.currentValue})),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},d.prototype.getHeaderCellCtrl=function(e){if(this.headerCellCtrls)return r(this.headerCellCtrls).find((function(d){return d.getColumnGroupChild()===e}))},d.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},d.prototype.getType=function(){return this.type},d.prototype.onColumnResized=function(){this.setWidth()},d.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth("".concat(e,"px"))},d.prototype.getWidthForRow=function(){return this.isPrintLayout?null!=this.pinned?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},d.prototype.onRowHeightChanged=function(){var e=this.getTopAndHeight(),d=e.topOffset,a=e.rowHeight;this.comp.setTop(d+"px"),this.comp.setHeight(a+"px")},d.prototype.getTopAndHeight=function(){var e=this.columnModel.getHeaderRowCount(),d=[],a=0;this.filterManager.hasFloatingFilters()&&(e++,a=1);for(var t=this.columnModel.getColumnGroupHeaderRowHeight(),i=this.columnModel.getColumnHeaderRowHeight(),s=e-(1+a),o=0;o=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},kr=function(e,d){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var t,i,s=a.call(e),o=[];try{for(;(void 0===d||d-- >0)&&!(t=s.next()).done;)o.push(t.value)}catch(l){i={error:l}}finally{try{t&&!t.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},Vr=function(e,d,a){if(a||2===arguments.length)for(var t,i=0,s=d.length;i=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},jr=function(e){function d(d){var a=e.call(this)||this;return a.headerRowComps={},a.rowCompsList=[],a.pinned=d,a}return Nr(d,e),d.prototype.init=function(){var e=this;this.selectAndSetTemplate();var d={setDisplayed:function(d){return e.setDisplayed(d)},setCtrls:function(d){return e.setCtrls(d)},setCenterWidth:function(d){return e.eCenterContainer.style.width=d},setViewportScrollLeft:function(d){return e.getGui().scrollLeft=d},setPinnedContainerWidth:function(d){var a=e.getGui();a.style.width=d,a.style.maxWidth=d,a.style.minWidth=d}};this.createManagedBean(new Hr(this.pinned)).setComp(d,this.getGui())},d.prototype.selectAndSetTemplate=function(){var e="left"==this.pinned,a="right"==this.pinned,t=e?d.PINNED_LEFT_TEMPLATE:a?d.PINNED_RIGHT_TEMPLATE:d.CENTER_TEMPLATE;this.setTemplate(t),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},d.prototype.destroyRowComps=function(){this.setCtrls([])},d.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},d.prototype.setCtrls=function(e){var d,a=this,t=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var i=e.getInstanceId(),s=t[i];delete t[i];var o=s||a.createBean(new $n(e));a.headerRowComps[i]=o,a.rowCompsList.push(o),function(e){var t=e.getGui();t.parentElement!=a.eRowContainer&&a.eRowContainer.appendChild(t),d&&ht(a.eRowContainer,t,d),d=t}(o)})),S(t).forEach((function(e){return a.destroyRowComp(e)}))},d.PINNED_LEFT_TEMPLATE='',d.PINNED_RIGHT_TEMPLATE='',d.CENTER_TEMPLATE='',Wr([Si("eCenterContainer")],d.prototype,"eCenterContainer",void 0),Wr([Z],d.prototype,"init",null),Wr([ee],d.prototype,"destroyRowComps",null),d}(hi),Ur=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),zr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o};!function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(Yn||(Yn={}));var Qr,Kr=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return Ur(d,e),d.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(d){e.gridBodyCon=d.gridBodyCtrl}))},d.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},d.prototype.navigateVertically=function(e,d,a){if(d||(d=this.focusService.getFocusedHeader()),!d)return!1;var t=d.headerRowIndex,i=d.column,s=this.getHeaderRowCount(),o=e===Yn.UP?this.headerPositionUtils.getColumnVisibleParent(i,t):this.headerPositionUtils.getColumnVisibleChild(i,t),l=o.nextRow,m=o.nextFocusColumn,u=!1;return l<0&&(l=0,m=i,u=!0),l>=s&&(l=-1),!(!u&&!m)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:m},allowUserOverride:!0,event:a})},d.prototype.navigateHorizontally=function(e,d,a){void 0===d&&(d=!1);var t,i,s=this.focusService.getFocusedHeader();return e===Yn.LEFT!==this.gridOptionsService.get("enableRtl")?(i="Before",t=this.headerPositionUtils.findHeader(s,i)):(i="After",t=this.headerPositionUtils.findHeader(s,i)),t||!d?this.focusService.focusHeaderPosition({headerPosition:t,direction:i,fromTab:d,allowUserOverride:!0,event:a}):this.focusNextHeaderRow(s,i,a)},d.prototype.focusNextHeaderRow=function(e,d,a){var t,i=e.headerRowIndex,s=null;return"Before"===d?i>0&&(t=i-1,s=this.headerPositionUtils.findColAtEdgeForHeaderRow(t,"end")):(t=i+1,s=this.headerPositionUtils.findColAtEdgeForHeaderRow(t,"start")),this.focusService.focusHeaderPosition({headerPosition:s,direction:d,fromTab:!0,allowUserOverride:!0,event:a})},d.prototype.scrollToColumn=function(e,d){if(void 0===d&&(d="After"),!e.getPinned()){var a;if(e instanceof Xe){var t=e.getDisplayedLeafColumns();a="Before"===d?be(t):t[0]}else a=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(a)}},zr([ae("focusService")],d.prototype,"focusService",void 0),zr([ae("headerPositionUtils")],d.prototype,"headerPositionUtils",void 0),zr([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),zr([Z],d.prototype,"postConstruct",null),d=zr([de("headerNavigationService")],d)}(Ue),Yr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),$r=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},Xr=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return Yr(d,e),d.prototype.setComp=function(e,d,a){this.comp=e,this.eGui=d,this.createManagedBean(new xi(a,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},d.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_GRID_STYLES_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,e)},d.prototype.getHeaderHeight=function(){return this.headerHeight},d.prototype.setHeaderHeight=function(){var e,d=this.columnModel,a=0,t=d.getHeaderRowCount();this.filterManager.hasFloatingFilters()&&(t++,a=1);var i=this.columnModel.getColumnGroupHeaderRowHeight(),s=this.columnModel.getColumnHeaderRowHeight(),o=t-(1+a);if(e=a*d.getFloatingFiltersHeight(),e+=o*i,e+=s,this.headerHeight!==e){this.headerHeight=e;var l="".concat(e+1,"px");this.comp.setHeightAndMinHeight(l),this.eventService.dispatchEvent({type:Je.EVENT_HEADER_HEIGHT_CHANGED})}},d.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},d.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns().some((function(e){return e.isSpanHeaderHeight()}));this.comp.addOrRemoveCssClass("ag-header-allow-overflow",e)},d.prototype.onTabKeyDown=function(e){var d=this.gridOptionsService.get("enableRtl"),a=e.shiftKey!==d?Yn.LEFT:Yn.RIGHT;(this.headerNavigationService.navigateHorizontally(a,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},d.prototype.handleKeyDown=function(e){var d=null;switch(e.key){case Qt.LEFT:d=Yn.LEFT;case Qt.RIGHT:i(d)||(d=Yn.RIGHT),this.headerNavigationService.navigateHorizontally(d,!1,e);break;case Qt.UP:d=Yn.UP;case Qt.DOWN:i(d)||(d=Yn.DOWN),this.headerNavigationService.navigateVertically(d,null,e)&&e.preventDefault();break;default:return}},d.prototype.onFocusOut=function(e){var d=this.gridOptionsService.getDocument(),a=e.relatedTarget;!a&&this.eGui.contains(d.activeElement)||this.eGui.contains(a)||this.focusService.clearFocusedHeader()},$r([ae("headerNavigationService")],d.prototype,"headerNavigationService",void 0),$r([ae("focusService")],d.prototype,"focusService",void 0),$r([ae("columnModel")],d.prototype,"columnModel",void 0),$r([ae("ctrlsService")],d.prototype,"ctrlsService",void 0),$r([ae("filterManager")],d.prototype,"filterManager",void 0),d}(Ue),Jr=function(){var e=function(d,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a])},e(d,a)};return function(d,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=d}e(d,a),d.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}}(),Zr=function(e,d,a,t){var i,s=arguments.length,o=s<3?d:null===t?t=Object.getOwnPropertyDescriptor(d,a):t;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,d,a,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(o=(s<3?i(o):s>3?i(d,a,o):i(d,a))||o);return s>3&&o&&Object.defineProperty(d,a,o),o},ef=function(e){function d(){return e.call(this,d.TEMPLATE)||this}return Jr(d,e),d.prototype.postConstruct=function(){var e=this,d={addOrRemoveCssClass:function(d,a){return e.addOrRemoveCssClass(d,a)},setHeightAndMinHeight:function(d){e.getGui().style.height=d,e.getGui().style.minHeight=d}};this.createManagedBean(new Xr).setComp(d,this.getGui(),this.getFocusableElement());var a=function(d){e.createManagedBean(d),e.appendChild(d)};a(new jr("left")),a(new jr(null)),a(new jr("right"))},d.TEMPLATE='