UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

18 lines 1.2 MB
/**
          * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v30.2.1
          * @link https://www.ag-grid.com/
          * @license MIT
          */
/**
          * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v30.2.1
          * @link https://www.ag-grid.com/
          * @license MIT
          */
function t(t){return null==t||""===t?null:t}function e(t,e){return void 0===e&&(e=!1),null!=t&&(""!==t||e)}function o(t){return!e(t)}function n(t){return null==t||0===t.length}function i(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function r(t){if(void 0!==t){if(null===t||""===t)return null;if("number"==typeof t)return isNaN(t)?void 0:t;var e=parseInt(t,10);return isNaN(e)?void 0:e}}function s(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function a(t){if(t instanceof Set||t instanceof Map){var e=[];return t.forEach((function(t){return e.push(t)})),e}return Object.values(t)}var l=Object.freeze({__proto__:null,makeNull:t,exists:e,missing:o,missingOrEmpty:n,toStringOrNull:i,attrToNumber:r,attrToBoolean:s,attrToString:function(t){if(null!=t&&""!==t)return t},referenceCompare:function(t,e){return null==t&&null==e||(null!=t||null==e)&&((null==t||null!=e)&&t===e)},jsonEquals:function(t,e){return(t?JSON.stringify(t):null)===(e?JSON.stringify(e):null)},defaultComparator:function(t,e,o){void 0===o&&(o=!1);var n=null==t,i=null==e;if(t&&t.toNumber&&(t=t.toNumber()),e&&e.toNumber&&(e=e.toNumber()),n&&i)return 0;if(n)return-1;if(i)return 1;function r(t,e){return t>e?1:t<e?-1:0}if("string"!=typeof t)return r(t,e);if(!o)return r(t,e);try{return t.localeCompare(e)}catch(o){return r(t,e)}},values:a}),u=function(){function t(){this.existingKeys={}}return t.prototype.addExistingKeys=function(t){for(var e=0;e<t.length;e++)this.existingKeys[t[e]]=!0},t.prototype.getUniqueKey=function(t,e){t=i(t);for(var o=0;;){var n=void 0;if(t?(n=t,0!==o&&(n+="_"+o)):e?(n=e,0!==o&&(n+="_"+o)):n=o,!this.existingKeys[n])return this.existingKeys[n]=!0,String(n);o++}},t}(),c=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s};function d(t,e){var o,n;if(null!=t)if(Array.isArray(t))for(var i=0;i<t.length;i++)e(i.toString(),t[i]);else try{for(var r=c(Object.entries(t)),s=r.next();!s.done;s=r.next()){var a=p(s.value,2);e(a[0],a[1])}}catch(t){o={error:t}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}}function h(t){for(var e={},o=Object.keys(t),n=0;n<o.length;n++){var i=o[n],r=t[i];e[i]=r}return e}function f(t,e){if(t){var o=t,n={};return Object.keys(o).forEach((function(t){if(!(e&&e.indexOf(t)>=0)){var i=o[t],r=R(i)&&i.constructor===Object;n[t]=r?f(i):i}})),n}}function g(t,e){return t[e]}function v(t,e,o){t[e]=o}function y(t,e,o,n){var i=g(t,o);void 0!==i&&v(e,o,n?n(i):i)}function m(t){var e={};return t.filter((function(t){return null!=t})).forEach((function(t){Object.keys(t).forEach((function(t){return e[t]=null}))})),Object.keys(e)}function C(t){if(!t)return[];var e=Object;if("function"==typeof e.values)return e.values(t);var o=[];for(var n in t)t.hasOwnProperty(n)&&t.propertyIsEnumerable(n)&&o.push(t[n]);return o}function w(t,o,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1),e(o)&&d(o,(function(e,o){var r=t[e];if(r!==o){if(i)if(null==r&&null!=o)"object"==typeof o&&o.constructor===Object&&(r={},t[e]=r);R(o)&&R(r)&&!Array.isArray(r)?w(r,o,n,i):(n||void 0!==o)&&(t[e]=o)}}))}function S(t,e,o){if(e&&t){if(!o)return t[e];for(var n=e.split("."),i=t,r=0;r<n.length;r++){if(null==i)return;i=i[n[r]]}return i}}function E(t,e){Object.keys(t).forEach((function(e){"object"==typeof t[e]&&(t[e]=void 0)}));var o=Object.getPrototypeOf(t),n={};Object.keys(o).forEach((function(t){if("function"==typeof o[t]){n[t]={value:function(){console.warn("AG Grid: "+e+" function "+t+"() cannot be called as the grid has been destroyed.\n                     Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n                     be keeping the API reference, your application has a memory leak! Remove the API reference\n                     when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(t,n)}function R(t){return"object"==typeof t&&null!==t}var b=Object.freeze({__proto__:null,iterateObject:d,cloneObject:h,deepCloneObject:function(t){return JSON.parse(JSON.stringify(t))},deepCloneDefinition:f,getProperty:g,setProperty:v,copyPropertiesIfPresent:function(t,e){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];o.forEach((function(o){return y(t,e,o)}))},copyPropertyIfPresent:y,getAllKeysInObjects:m,getAllValuesInObject:C,mergeDeep:w,missingOrEmptyObject:function(t){return o(t)||0===Object.keys(t).length},get:function(t,e,o){if(null==t)return o;for(var n=e.split("."),i=t;n.length>1;)if(null==(i=i[n.shift()]))return o;var r=i[n[0]];return null!=r?r:o},set:function(t,e,o){if(null!=t){var n=e.split("."),i=t;n.forEach((function(t,e){i[t]||(i[t]={}),e<n.length-1&&(i=i[t])})),i[n[n.length-1]]=o}},getValueUsingField:S,removeAllReferences:E,isNonNullObject:R}),O={};function T(t,e){O[e]||(t(),O[e]=!0)}function D(t){if(t.name)return t.name;var e=/function\s+([^\(]+)/.exec(t.toString());return e&&2===e.length?e[1].trim():null}function P(t){return!!(t&&t.constructor&&t.call&&t.apply)}function _(t){I(t,400)}var A=[],F=!1;function L(t){A.push(t),F||(F=!0,window.setTimeout((function(){var t=A.slice();A.length=0,F=!1,t.forEach((function(t){return t()}))}),0))}function I(t,e){void 0===e&&(e=0),t.length>0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),e)}function N(t,e){var o;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=this;window.clearTimeout(o),o=window.setTimeout((function(){t.apply(r,n)}),e)}}function M(t,e){var o=0;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=this,s=(new Date).getTime();s-o<e||(o=s,t.apply(r,n))}}function G(t,e,o,n){void 0===o&&(o=100);var i=(new Date).getTime(),r=null,s=!1,a=function(){var a=(new Date).getTime()-i>o;(t()||a)&&(e(),s=!0,null!=r&&(window.clearInterval(r),r=null),a&&n&&console.warn(n))};a(),s||(r=window.setInterval(a,10))}function x(t){t&&t()}var V,H=Object.freeze({__proto__:null,doOnce:T,getFunctionName:D,isFunction:P,executeInAWhile:_,executeNextVMTurn:L,executeAfter:I,debounce:N,throttle:M,waitUntil:G,compose:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}},callIfPresent:x,noop:function(){}});!function(t){t.CommunityCoreModule="@ag-grid-community/core",t.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",t.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",t.CsvExportModule="@ag-grid-community/csv-export",t.EnterpriseCoreModule="@ag-grid-enterprise/core",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",t.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",t.MenuModule="@ag-grid-enterprise/menu",t.SetFilterModule="@ag-grid-enterprise/set-filter",t.MultiFilterModule="@ag-grid-enterprise/multi-filter",t.StatusBarModule="@ag-grid-enterprise/status-bar",t.SideBarModule="@ag-grid-enterprise/side-bar",t.RangeSelectionModule="@ag-grid-enterprise/range-selection",t.MasterDetailModule="@ag-grid-enterprise/master-detail",t.RichSelectModule="@ag-grid-enterprise/rich-select",t.GridChartsModule="@ag-grid-enterprise/charts",t.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",t.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",t.ExcelExportModule="@ag-grid-enterprise/excel-export",t.ClipboardModule="@ag-grid-enterprise/clipboard",t.SparklinesModule="@ag-grid-enterprise/sparklines",t.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue"}(V||(V={}));var k=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},B=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},j=function(){function t(){}return t.register=function(e){t.__register(e,!0,void 0)},t.registerModules=function(e){t.__registerModules(e,!0,void 0)},t.__register=function(e,o,n){t.runVersionChecks(e),void 0!==n?(t.areGridScopedModules=!0,void 0===t.gridModulesMap[n]&&(t.gridModulesMap[n]={}),t.gridModulesMap[n][e.moduleName]=e):t.globalModulesMap[e.moduleName]=e,t.setModuleBased(o)},t.__unRegisterGridModules=function(e){delete t.gridModulesMap[e]},t.__registerModules=function(e,o,n){t.setModuleBased(o),e&&e.forEach((function(e){return t.__register(e,o,n)}))},t.isValidModuleVersion=function(e){var o=k(e.version.split(".")||[],2),n=o[0],i=o[1],r=k(t.currentModuleVersion.split(".")||[],2),s=r[0],a=r[1];return n===s&&i===a},t.runVersionChecks=function(e){if(t.currentModuleVersion||(t.currentModuleVersion=e.version),e.version?t.isValidModuleVersion(e)||console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+e.moduleName+"' is version "+e.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+e.moduleName+"' is incompatible. Please update all modules to the same version."),e.validate){var o=e.validate();if(!o.isValid){var n=o;console.error("AG Grid: "+n.message)}}},t.setModuleBased=function(e){void 0===t.moduleBased?t.moduleBased=e:t.moduleBased!==e&&T((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},t.__setIsBundled=function(){t.isBundled=!0},t.__assertRegistered=function(e,o,n){var i;if(this.__isRegistered(e,n))return!0;var r,s=o+e;if(t.isBundled)r="AG Grid: unable to use "+o+" as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n        \n        <script src=\"https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js\"><\/script>\n        \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise";else if(t.moduleBased||void 0===t.moduleBased){var a=null===(i=Object.entries(V).find((function(t){var o=k(t,2);return o[0],o[1]===e})))||void 0===i?void 0:i[0];r="AG Grid: unable to use "+o+" as the "+a+" is not registered"+(t.areGridScopedModules?" for gridId: "+n:"")+". Check if you have registered the module:\n           \n    import { ModuleRegistry } from '@ag-grid-community/core';\n    import { "+a+" } from '"+e+"';\n    \n    ModuleRegistry.registerModules([ "+a+" ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/"}else r="AG Grid: unable to use "+o+" 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 T((function(){console.warn(r)}),s),!1},t.__isRegistered=function(e,o){var n;return!!t.globalModulesMap[e]||!!(null===(n=t.gridModulesMap[o])||void 0===n?void 0:n[e])},t.__getRegisteredModules=function(e){return B(B([],k(a(t.globalModulesMap))),k(a(t.gridModulesMap[e]||{})))},t.__getGridRegisteredModules=function(e){var o;return a(null!==(o=t.gridModulesMap[e])&&void 0!==o?o:{})||[]},t.__isPackageBased=function(){return!t.moduleBased},t.globalModulesMap={},t.gridModulesMap={},t.areGridScopedModules=!1,t}(),W=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},U=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},z=function(){function t(t,e){if(this.beanWrappers={},this.destroyed=!1,t&&t.beanClasses){this.contextParams=t,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return t.prototype.getBeanInstances=function(){return a(this.beanWrappers).map((function(t){return t.beanInstance}))},t.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},t.prototype.wireBeans=function(t,o){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),e(o)&&t.forEach(o),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),d(this.beanWrappers,(function(e,o){var n;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var i=t.getBeansForParameters(n,o.bean.name),r=new(o.bean.bind.apply(o.bean,U([null],W(i))));o.beanInstance=r}));var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},t.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var o=void 0;return o=t.prototype.constructor?D(t.prototype.constructor):""+t,void console.error("Context item "+o+" is not a bean")}var n={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=n},t.prototype.autoWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,n){var i=o.agClassAttributes;i&&i.forEach((function(o){var i=e.lookupBeanInstance(n,o.beanName,o.optional);t[o.attributeName]=i}))}))}))},t.prototype.methodWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,n){d(o.autowireMethods,(function(o,i){if("agConstructor"!==o){var r=e.getBeansForParameters(i,n);t[o].apply(t,r)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,e){for(var o=Object.getPrototypeOf(t);null!=o;){var n=o.constructor;if(n.hasOwnProperty("__agBeanMetaData"))e(n.__agBeanMetaData,this.getBeanName(n));o=Object.getPrototypeOf(o)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString();return e.substring(9,e.indexOf("("))},t.prototype.getBeansForParameters=function(t,e){var o=this,n=[];return t&&d(t,(function(t,i){var r=o.lookupBeanInstance(e,i);n[Number(t)]=r})),n},t.prototype.lookupBeanInstance=function(t,e,o){if(void 0===o&&(o=!1),this.destroyed)return this.logger.log("AG Grid: bean reference "+e+" is used after the grid is destroyed!"),null;if("context"===e)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var n=this.beanWrappers[e];return n?n.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+t),null)},t.prototype.callLifeCycleMethods=function(t,e){var o=this;t.forEach((function(t){return o.callLifeCycleMethodsOnBean(t,e)}))},t.prototype.callLifeCycleMethodsOnBean=function(t,e,o){var n={};this.forEachMetaDataInHierarchy(t,(function(t){var i=t[e];i&&i.forEach((function(t){t!=o&&(n[t]=!0)}))})),Object.keys(n).forEach((function(e){return t[e]()}))},t.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,j.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}},t.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},t.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach((function(t){e.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy");var o=t;"function"==typeof o.destroy&&o.destroy()})),[]):[]},t.prototype.isDestroyed=function(){return this.destroyed},t.prototype.getGridId=function(){return this.contextParams.gridId},t}();function K(t,e,o){var n=tt(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(e)}function Y(t,e,o){var n=tt(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(e)}function q(t,e,o){var n=tt(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(e)}function Q(t){return function(e){tt(e).beanName=t}}function X(t){return function(e,o,n){Z(e,t,!1,e,o,null)}}function J(t){return function(e,o,n){Z(e,t,!0,e,o,null)}}function Z(t,e,o,n,i,r){if(null!==e)if("number"!=typeof r){var s=tt(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:i,beanName:e,optional:o})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function $(t){return function(e,o,n){var i,r="function"==typeof e?e:e.constructor;if("number"==typeof n){var s=void 0;o?(i=tt(r),s=o):(i=tt(r),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][n]=t}}}function tt(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}var et=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ot=function(t,e){return function(o,n){e(o,n,t)}},nt=function(){function t(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return t.prototype.setBeans=function(t,e,o,n,i){if(void 0===n&&(n=null),void 0===i&&(i=null),this.frameworkOverrides=o,this.gridOptionsService=e,n){var r=e.useAsyncEvents();this.addGlobalListener(n,r)}i&&this.addGlobalListener(i,!1)},t.prototype.getListeners=function(t,e,o){var n=e?this.allAsyncListeners:this.allSyncListeners,i=n.get(t);return!i&&o&&(i=new Set,n.set(t,i)),i},t.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},t.prototype.addEventListener=function(t,e,o){void 0===o&&(o=!1),this.getListeners(t,o,!0).add(e)},t.prototype.removeEventListener=function(t,e,o){void 0===o&&(o=!1);var n=this.getListeners(t,o,!1);n&&(n.delete(e),0===n.size&&(o?this.allAsyncListeners:this.allSyncListeners).delete(t))},t.prototype.addGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},t.prototype.removeGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},t.prototype.dispatchEvent=function(t){var e=t;if(this.gridOptionsService){var o=this.gridOptionsService,n=o.api,i=o.columnApi,r=o.context;e.api=n,e.columnApi=i,e.context=r}this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,e){var o=this,n=t.type;if(e&&"event"in t){var i=t.event;i instanceof Event&&(t.eventPath=i.composedPath())}var r=new Set(this.getListeners(n,e,!1));r.size>0&&function(n){n.forEach((function(n){e?o.dispatchAsync((function(){return n(t)})):n(t)}))}(r),new Set(e?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(i){e?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(n,(function(){return i(n,t)}),!0)})):o.frameworkOverrides.dispatchEvent(n,(function(){return i(n,t)}),!0)}))},t.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},t.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach((function(t){return t()}))},et([ot(0,$("loggerFactory")),ot(1,$("gridOptionsService")),ot(2,$("frameworkOverrides")),ot(3,$("globalEventListener")),ot(4,$("globalSyncEventListener"))],t.prototype,"setBeans",null),t=et([Q("eventService")],t)}(),it=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},rt=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},st=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},at=0;function lt(){return at++}var ut=function(){function t(t,e,o,n){this.instanceId=lt(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new nt,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=o,this.primary=n,this.setState(t)}return t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setState=function(t){void 0!==t.sort?"asc"!==t.sort&&"desc"!==t.sort||(this.sort=t.sort):"asc"!==t.initialSort&&"desc"!==t.initialSort||(this.sort=t.initialSort);var e=r(t.sortIndex),o=r(t.initialSortIndex);void 0!==e?null!==e&&(this.sortIndex=e):null!==o&&(this.sortIndex=o);var n=s(t.hide),i=s(t.initialHide);this.visible=void 0!==n?!n:!i,void 0!==t.pinned?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var a=r(t.flex),l=r(t.initialFlex);void 0!==a?this.flex=a:void 0!==l&&(this.flex=l)},t.prototype.setColDef=function(t,e){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged","api"))},t.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},t.prototype.setParent=function(t){this.parent=t},t.prototype.getParent=function(){return this.parent},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.validate()},t.prototype.initDotNotation=function(){var t=this.gridOptionsService.is("suppressFieldDotNotation");this.fieldContainsDots=e(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=e(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},t.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},t.prototype.initTooltip=function(){this.tooltipEnabled=e(this.colDef.tooltipField)||e(this.colDef.tooltipValueGetter)||e(this.colDef.tooltipComponent)},t.prototype.resetActualWidth=function(t){void 0===t&&(t="api");var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(t){if(o(this.colDef)||o(this.colDef.showRowGroup))return!1;var e=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===t;return e||n},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){return!!this.colDef.filter},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function o(t,e,o){T((function(){o?console.warn(t,o):T((function(){return console.warn(t)}),e)}),e)}if(this.gridOptionsService.isRowModelType("clientSide")&&!j.__isRegistered(V.RowGroupingModule,this.gridOptionsService.getGridId())){(n=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter((function(o){return e(t[o])}))).length>0&&j.__assertRegistered(V.RowGroupingModule,n.map((function(t){return"colDef."+t})).join(", "),this.gridOptionsService.getGridId())}if("agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||j.__assertRegistered(V.RichSelectModule,this.colDef.cellEditor,this.gridOptionsService.getGridId()),this.gridOptionsService.is("treeData")){(n=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter((function(o){return e(t[o])}))).length>0&&o("AG Grid: "+n.join()+" is not possible when doing tree data, your column definition should not have "+n.join(),"TreeDataCannotRowGroup")}if(e(t.menuTabs))if(Array.isArray(t.menuTabs)){var n,i=["filterMenuTab"],r=["columnsMenuTab","generalMenuTab"];(n=r.filter((function(e){return t.menuTabs.includes(e)}))).length>0&&j.__assertRegistered(V.MenuModule,"menuTab(s): "+n.map((function(t){return"'"+t+"'"})).join(),this.gridOptionsService.getGridId()),t.menuTabs.forEach((function(t){r.includes(t)||i.includes(t)||o("AG Grid: '"+t+"' is not valid for 'colDef.menuTabs'. Valid values are: "+st(st([],rt(i)),rt(r)).map((function(t){return"'"+t+"'"})).join()+".","wrongValue_menuTabs_"+t)}))}else o("AG Grid: The typeof 'colDef.menuTabs' should be an array not:"+typeof t.menuTabs,"wrongType_menuTabs");e(t.columnsMenuParams)&&j.__assertRegistered(V.MenuModule,"columnsMenuParams",this.gridOptionsService.getGridId()),e(t.columnsMenuParams)&&j.__assertRegistered(V.ColumnsToolPanelModule,"columnsMenuParams",this.gridOptionsService.getGridId()),e(this.colDef.width)&&"number"!=typeof this.colDef.width&&o("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),e(t.columnGroupShow)&&"closed"!==t.columnGroupShow&&"open"!==t.columnGroupShow&&o("AG Grid: '"+t.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null","columnGroupShow_invalid")},t.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},t.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},t.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var e=this.createColumnFunctionCallbackParams(t);return(0,this.colDef.suppressNavigable)(e)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsService.is("enableGroupEdit"))&&this.isColumnFunc(t,this.colDef.editable)},t.prototype.isSuppressFillHandle=function(){return!!s(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!s(this.colDef.autoHeight)},t.prototype.isAutoHeaderHeight=function(){return!!s(this.colDef.autoHeaderHeight)},t.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},t.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!!s(this.colDef.resizable)},t.prototype.isColumnFunc=function(t,e){return"boolean"==typeof e?e:"function"==typeof e&&e(this.createColumnFunctionCallbackParams(t))},t.prototype.setMoving=function(t,e){void 0===e&&(e="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",e))},t.prototype.createColumnEvent=function(t,e){return{type:t,column:this,columns:[this],source:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(t,e){void 0===e&&(e="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",e))),this.dispatchStateUpdatedEvent("sort")},t.prototype.setMenuVisible=function(t,e){void 0===e&&(e="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",e)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return"asc"===this.sort},t.prototype.isSortDescending=function(){return"desc"===this.sort},t.prototype.isSortNone=function(){return o(this.sort)},t.prototype.isSorting=function(){return e(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(t){this.sortIndex=t,this.dispatchStateUpdatedEvent("sortIndex")},t.prototype.setAggFunc=function(t){this.aggFunc=t,this.dispatchStateUpdatedEvent("aggFunc")},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(t,e){void 0===e&&(e="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",e)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(t,e,o){void 0===e&&(e="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",e)));var n=this.createColumnEvent("filterChanged",e);o&&w(n,o),this.eventService.dispatchEvent(n)},t.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},t.prototype.setPinned=function(t){this.pinned=!0===t||"left"===t?"left":"right"===t?"right":null,this.dispatchStateUpdatedEvent("pinned")},t.prototype.setFirstRightPinned=function(t,e){void 0===e&&(e="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",e)))},t.prototype.setLastLeftPinned=function(t,e){void 0===e&&(e="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",e)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},t.prototype.isPinnedLeft=function(){return"left"===this.pinned},t.prototype.isPinnedRight=function(){return"right"===this.pinned},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(t,e){void 0===e&&(e="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",e))),this.dispatchStateUpdatedEvent("hide")},t.prototype.isVisible=function(){return this.visible},t.prototype.isSpanHeaderHeight=function(){var t=this.getColDef();return!t.suppressSpanHeaderHeight&&!t.autoHeaderHeight},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.colId},t.prototype.getUniqueId=function(){return this.colId},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},t.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},t.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.getColSpan=function(t){if(o(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),n=this.colDef.colSpan(e);return Math.max(n,1)},t.prototype.getRowSpan=function(t){if(o(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),n=this.colDef.rowSpan(e);return Math.max(n,1)},t.prototype.setActualWidth=function(t,e,o){void 0===e&&(e="api"),void 0===o&&(o=!1),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&"flex"!==e&&"gridInitializing"!==e&&(this.flex=null),o||this.fireColumnWidthChangedEvent(e)),this.dispatchStateUpdatedEvent("width")},t.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))},t.prototype.isGreaterThanMax=function(t){return null!=this.maxWidth&&t>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t),this.dispatchStateUpdatedEvent("flex")},t.prototype.setMinimum=function(t){void 0===t&&(t="api"),e(this.minWidth)&&this.setActualWidth(this.minWidth,t)},t.prototype.setRowGroupActive=function(t,e){void 0===e&&(e="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",e))),this.dispatchStateUpdatedEvent("rowGroup")},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(t,e){void 0===e&&(e="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",e))),this.dispatchStateUpdatedEvent("pivot")},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(t,e){void 0===e&&(e="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",e)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(t){var e=this.getColDef().menuTabs;return null==e&&(e=t),e},t.prototype.dispatchStateUpdatedEvent=function(e){this.eventService.dispatchEvent({type:t.EVENT_STATE_UPDATED,key:e})},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_COL_DEF_CHANGED="colDefChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",t.EVENT_STATE_UPDATED="columnStateUpdated",it([X("gridOptionsService")],t.prototype,"gridOptionsService",void 0),it([X("columnUtils")],t.prototype,"columnUtils",void 0),it([X("columnHoverService")],t.prototype,"columnHoverService",void 0),it([Y],t.prototype,"initialise",null),t}(),ct=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},pt=function(){function t(t,e,o,n){this.localEventService=new nt,this.expandable=!1,this.instanceId=lt(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=o,this.level=n}return t.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},t.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.getLevel=function(){return this.level},t.prototype.isVisible=function(){return!!this.children&&this.children.some((function(t){return t.isVisible()}))},t.prototype.isPadding=function(){return this.padding},t.prototype.setExpanded=function(e){this.expanded=void 0!==e&&e;var o={type:t.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},t.prototype.isExpandable=function(){return this.expandable},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getId=function(){return this.getGroupId()},t.prototype.setChildren=function(t){this.children=t},t.prototype.getChildren=function(){return this.children},t.prototype.getColGroupDef=function(){return this.colGroupDef},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.addLeafColumns=function(e){this.children&&this.children.forEach((function(o){o instanceof ut?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},t.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((function(t){return t.addEventListener("visibleChanged",e)})),this.expandableListenerRemoveCallback=function(){t.getLeafColumns().forEach((function(t){return t.removeEventListener("visibleChanged",e)})),t.expandableListenerRemoveCallback=null}},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var e=!1,o=!1,n=!1,i=this.findChildrenRemovingPadding(),r=0,s=i.length;r<s;r++){var a=i[r];if(a.isVisible()){var l=a.getColumnGroupShow();"open"===l?(e=!0,n=!0):"closed"===l?(o=!0,n=!0):(e=!0,o=!0)}}var u=e&&o&&n;if(this.expandable!==u){this.expandable=u;var c={type:t.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},t.prototype.findChildrenRemovingPadding=function(){var e=[],o=function(n){n.forEach((function(n){n instanceof t&&n.isPadding()?o(n.children):e.push(n)}))};return o(this.children),e},t.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},t.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_EXPANDABLE_CHANGED="expandableChanged",ct([q],t.prototype,"destroy",null),t}(),dt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function ht(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];for(var n=0;n<t.length;n++){var i=t[n];if(e(i))return i}return null}function ft(t){if(t&&t.length)return t[t.length-1]}function gt(t,e,o){return null==t&&null==e||null!=t&&null!=e&&t.length===e.length&&t.every((function(t,n){return o?o(t,e[n]):e[n]===t}))}function vt(t){return t.sort((function(t,e){return t-e}))}function yt(t,e){var o=t.indexOf(e);o>=0&&(t[o]=t[t.length-1],t.pop())}function mt(t,e){var o=t.indexOf(e);o>=0&&t.splice(o,1)}function Ct(t,e){for(var o=0;o<e.length;o++)yt(t,e[o])}function wt(t,e){for(var o=0;o<e.length;o++)mt(t,e[o])}function St(t,e,o){t.splice(o,0,e)}function Et(t,e,o){wt(t,e),e.slice().reverse().forEach((function(e){return St(t,e,o)}))}function Rt(t,e){return t.indexOf(e)>-1}function bt(t){return[].concat.apply([],t)}function Ot(t,e){null!=e&&null!=t&&e.forEach((function(e){return t.push(e)}))}var Tt=Object.freeze({__proto__:null,firstExistingValue:ht,existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:ft,areEqual:gt,shallowCompare:function(t,e){return gt(t,e)},sortNumerically:vt,removeRepeatsFromArray:function(t,e){if(t)for(var o=t.length-2;o>=0;o--){var n=t[o]===e,i=t[o+1]===e;n&&i&&t.splice(o+1,1)}},removeFromUnorderedArray:yt,removeFromArray:mt,removeAllFromUnorderedArray:Ct,removeAllFromArray:wt,insertIntoArray:St,insertArrayIntoArray:function(t,e,o){if(null!=t&&null!=e)for(var n=e.length-1;n>=0;n--){St(t,e[n],o)}},moveInArray:Et,includes:Rt,flatten:bt,pushAll:Ot,toStrings:function(t){return t.map(i)},forEachReverse:function(t,e){if(null!=t)for(var o=t.length-1;o>=0;o--)e(t[o],o)}}),Dt=["touchstart","touchend","touchmove","touchcancel","scroll"],Pt={};function _t(t){t.__ag_Grid_Stop_Propagation=!0}function At(t){return!0===t.__ag_Grid_Stop_Propagation}var Ft,Lt=(Ft={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof Pt[t])return Pt[t];var e=document.createElement(Ft[t]||"div");return Pt[t="on"+t]=t in e});function It(t,e,o){for(var n=e;n;){var i=t.getDomData(n,o);if(i)return i;n=n.parentElement}return null}function Nt(t,e){return!(!e||!t)&&Gt(e).indexOf(t)>=0}function Mt(t){for(var e=[],o=t.target;o;)e.push(o),o=o.parentElement;return e}function Gt(t){var e=t;return e.path?e.path:e.composedPath?e.composedPath():Mt(e)}function xt(t,e,o,n){var i=Rt(Dt,o)?{passive:!0}:void 0;t&&t.addEventListener&&t.addEventListener(e,o,n,i)}var Vt,Ht=Object.freeze({__proto__:null,stopPropagationForAgGrid:_t,isStopPropagationForAgGrid:At,isEventSupported:Lt,getCtrlForEventTarget:It,isElementInEventPath:Nt,createEventPath:Mt,getEventPath:Gt,addSafePassiveEventListener:xt}),kt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Bt=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=function(){return!t.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},t.prototype.getContext=function(){return this.context},t.prototype.destroy=function(){this.destroyFunctions.forEach((function(t){return t()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:t.EVENT_DESTROYED})},t.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new nt),this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},t.prototype.dispatchEventAsync=function(t){var e=this;window.setTimeout((function(){return e.dispatchEvent(t)}),0)},t.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},t.prototype.addManagedListener=function(t,e,o){var n=this;if(!this.destroyed){t instanceof HTMLElement?xt(this.getFrameworkOverrides(),t,e,o):t.addEventListener(e,o);var i=function(){return t.removeEventListener(e,o),n.destroyFunctions=n.destroyFunctions.filter((function(t){return t!==i})),null};return this.destroyFunctions.push(i),i}},t.prototype.setupGridOptionListener=function(t,e){var o=this;this.gridOptionsService.addEventListener(t,e);var n=function(){return o.gridOptionsService.removeEventListener(t,e),o.destroyFunctions=o.destroyFunctions.filter((function(t){return t!==n})),null};this.destroyFunctions.push(n)},t.prototype.addManagedPropertyListener=function(t,e){this.destroyed||this.setupGridOptionListener(t,e)},t.prototype.addManagedPropertyListeners=function(t,e){var o=this;if(!this.destroyed){var n=t.join("-")+this.propertyListenerId++,i=function(t){if(t.changeSet){if(t.changeSet&&t.changeSet.id===o.lastChangeSetIdLookup[n])return;o.lastChangeSetIdLookup[n]=t.changeSet.id}var i={type:"gridPropertyChanged",changeSet:t.changeSet};e(i)};t.forEach((function(t){return o.setupGridOptionListener(t,i)}))}},t.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},t.prototype.createManagedBean=function(t,e){var o=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),o},t.prototype.createBean=function(t,e,o){return(e||this.getContext()).createBean(t,o)},t.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},t.prototype.destroyBeans=function(t,e){var o=this;return t&&t.forEach((function(t){return o.destroyBean(t,e)})),[]},t.EVENT_DESTROYED="destroyed",kt([X("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),kt([X("context")],t.prototype,"context",void 0),kt([X("eventService")],t.prototype,"eventService",void 0),kt([X("gridOptionsService")],t.prototype,"gridOptionsService",void 0),kt([X("localeService")],t.prototype,"localeService",void 0),kt([X("environment")],t.prototype,"environment",void 0),kt([q],t.prototype,"destroy",null),t}(),jt=(Vt=function(t,e){return(Vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Vt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Wt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ut=function(t,e){return function(o,n){e(o,n,t)}},zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,o){var n=new u,i=this.extractExistingTreeData(o),r=i.existingCols,s=i.existingGroups,a=i.existingColKeys;n.addExistingKeys(a);var l=this.recursivelyCreateColumns(t,0,e,r,n,s),c=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+c);var p=this.balanceColumnTree(l,0,c,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,p,(function(t,e){t instanceof pt&&t.setupExpandable(),t.setOriginalParent(e)})),{columnTree:p,treeDept:c}},e.prototype.extractExistingTreeData=function(t){var e=[],o=[],n=[];return t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){if(t instanceof pt){var i=t;o.push(i)}else{var r=t;n.push(r.getId()),e.push(r)}})),{existingCols:e,existingGroups:o,existingColKeys:n}},e.prototype.createForAutoGroups=function(t,e){var o=this;return t.map((function(t){return o.createAutoGroupTreeItem(e,t)}))},e.prototype.createAutoGroupTreeItem=function(t,e){for(var o=this.findDepth(t),n=e,i=o-1;i>=0;i--){var r=new pt(null,"FAKE_PATH_"+e.getId()+"}_"+i,!0,i);this.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return 0===o&&e.setOriginalParent(null),n},e.prototype.findDepth=function(t){for(var e=0,o=t;o&&o[0]&&o[0]instanceof pt;)e++,o=o[0].getChildren();return e},e.prototype.balanceColumnTree=function(t,e,o,n){for(var i=[],r=0;r<t.length;r++){var s=t[r];if(s instanceof pt){var a=s,l=this.balanceColumnTree(a.getChildren(),e+1,o,n);a.setChildren(l),i.push(a)}else{for(var u=void 0,c=void 0,p=o-1;p>=e;p--){var d=n.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new pt(h,d,!0,e);this.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(i.push(u),t.some((function(t){return t instanceof pt}))){c.setChildren([s]);continue}c.setChildren(t);break}i.push(s)}}return i},e.prototype.findMaxDept=function(t,e){for(var o=e,n=0;n<t.length;n++){var i=t[n];if(i instanceof pt){var r=i,s=this.findMaxDept(r.getChildren(),e+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(t,e,o,n,i,r){if(!t)return[];for(var s=new Array(t.length),a=0;a<s.length;a++){var l=t[a];this.isColumnGroup(l)?s[a]=this.createColumnGroup(o,l,e,n,i,r):s[a]=this.createColumn(o,l,n,i)}return s},e.prototype.createColumnGroup=function(t,e,o,n,i,r){var s=this.createMergedColGroupDef(e),a=i.getUniqueKey(s.groupId||null,null),l=new pt(s,a,!1,o);this.createBean(l);var u=this.findExistingGroup(e,r);u&&r.splice(u.idx,1);var c=null==u?void 0:u.group;c&&l.setExpanded(c.isExpanded());var p=this.recursivelyCreateColumns(s.children,o+1,t,n,i,r);return l.setChildren(p),l},e.prototype.createMergedColGroupDef=function(t){var e={};return Object.assign(e,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(e,t),e},e.prototype.createColumn=function(t,e,o,n){var i=this.findExistingColumn(e,o);i&&(null==o||o.splice(i.idx,1));var r=null==i?void 0:i.column;if(r){a=this.addColumnDefaultAndTypes(e,r.getColId());r.setColDef(a,e),this.applyColumnState(r,a)}else{var s=n.getUniqueKey(e.colId,e.field),a=this.addColumnDefaultAndTypes(e,s);r=new ut(a,e,s,t),this.context.createBean(r)}return this.dataTypeService.addColumnListeners(r),r},e.prototype.applyColumnState=function(t,e){var o=r(e.flex);if(void 0!==o&&t.setFlex(o),t.getFlex()<=0){var n=r(e.width);if(null!=n)t.setActualWidth(n);else{var i=t.getActualWidth();t.setActualWidth(i)}}void 0!==e.sort&&("asc"==e.sort||"desc"==e.sort?t.setSort(e.sort):t.setSort(void 0));var a=r(e.sortIndex);void 0!==a&&t.setSortIndex(a);var l=s(e.hide);void 0!==l&&t.setVisible(!l),void 0!==e.pinned&&t.setPinned(e.pinned)},e.prototype.findExistingColumn=function(t,e){if(e)for(var o=0;o<e.length;o++){var n=e[o].getUserProvidedColDef();if(n)if(null!=t.colId){if(e[o].getId()===t.colId)return{idx:o,column:e[o]}}else if(null!=t.field){if(n.field===t.field)return{idx:o,column:e[o]}}else if(n===t)return{idx:o,column:e[o]}}},e.prototype.findExistingGroup=function(t,e){if(null!=t.groupId)for(var o=0;o<e.length;o++){var n=e[o];if(n.getColGroupDef()&&n.getId()===t.groupId)return{idx:o,group:n}}},e.prototype.addColumnDefaultAndTypes=function(t,e){var o={};w(o,this.gridOptionsService.get("defaultColDef"),!1,!0);var n=this.dataTypeService.updateColDefAndGetColumnType(o,t,e);n&&this.assignColumnTypes(n,o),w(o,t,!1,!0);var i=this.gridOptionsService.get("autoGroupColumnDef"),r=this.gridOptionsService.isColumnsSortingCoupledToGroup();return t.rowGroup&&i&&r&&w(o,{sort:i.sort,initialSort:i.initialSort},!1,!0),this.dataTypeService.validateColDef(o),o},e.prototype.assignColumnTypes=function(t,e){if(t.length){var o=Object.assign({},dt);d(this.gridOptionsService.get("columnTypes")||{},(function(t,e){t in o?console.warn("AG Grid: the column type '"+t+"' is a default column type and cannot be overridden."):o[t]=e})),t.forEach((function(t){var n=o[t.trim()];n?w(e,n,!1,!0):console.warn("AG Grid: colDef.type '"+t+"' does not correspond to defined gridOptions.columnTypes")}))}},e.prototype.isColumnGroup=function(t){return void 0!==t.children},Wt([X("columnUtils")],e.prototype,"columnUtils",void 0),Wt([X("dataTypeService")],e.prototype,"dataTypeService",void 0),Wt([Ut(0,$("loggerFactory"))],e.prototype,"setBeans",null),e=Wt([Q("columnFactory")],e)}(Bt),Kt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Yt=function(){function t(t,e,o,n){this.displayedChildren=[],this.localEventService=new nt,this.groupId=e,this.partId=o,this.providedColumnGroup=t,this.pinned=n}return t.createUniqueId=function(t,e){return t+"_"+e},t.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(t){this.parent=t},t.prototype.getUniqueId=function(){return t.createUniqueId(this.groupId,this.partId)},t.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},t.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!(!t||0===t.length)&&t.every((function(t){return t.isMoving()}))},t.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(e){e instanceof t&&e.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsService.is("enableRtl")){var e=ft(this.displayedChildren).getLeft();this.setLeft(e)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.setLeft=function(e){this.oldLeft=e,this.left!==e&&(this.left=e,this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_LEFT_CHANGED)))},t.prototype.getPinned=function(){return this.pinned},t.prototype.createAgEvent=function(t){return{type:t}},t.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getPartId=function(){return this.partId},t.prototype.isChildInThisGroupDeepSearch=function(e){var o=!1;return this.children.forEach((function(n){e===n&&(o=!0),n instanceof t&&n.isChildInThisGroupDeepSearch(e)&&(o=!0)})),o},t.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach((function(e){t+=e.getActualWidth()})),t},t.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach((function(e){e.isResizable()&&(t=!0)})),t},t.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach((function(e){t+=e.getMinWidth()||0})),t},t.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},t.prototype.getDisplayedChildren=function(){return this.displayedChildren},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},t.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},t.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},t.prototype.addDisplayedLeafColumns=function(e){this.displayedChildren.forEach((function(o){o instanceof ut?e.push(o):o instanceof t&&o.addDisplayedLeafColumns(e)}))},t.prototype.addLeafColumns=function(e){this.children.forEach((function(o){o instanceof ut?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},t.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},t.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},t.prototype.calculateDisplayedColumns=function(){var e=this;this.displayedChildren=[];for(var o=this;null!=o&&o.isPadding();)o=o.getParent();if(!(!!o&&o.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(n){if(!(n instanceof t&&(!n.displayedChildren||!n.displayedChildren.length)))switch(n.getColumnGroupShow()){case"open":o.providedColumnGroup.isExpanded()&&e.displayedChildren.push(n);break;case"closed":o.providedColumnGroup.isExpanded()||e.displayedChildren.push(n);break;default:e.displayedChildren.push(n)}})),this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",Kt([X("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),qt=function(){function t(){}return t.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",t.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",t.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",t.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",t.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",t.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",t.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",t.EVENT_COLUMN_MOVED="columnMoved",t.EVENT_COLUMN_VISIBLE="columnVisible",t.EVENT_COLUMN_PINNED="columnPinned",t.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",t.EVENT_COLUMN_RESIZED="columnResized",t.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",t.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",t.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",t.EVENT_ROW_GROUP_OPENED="rowGroupOpened",t.EVENT_ROW_DATA_CHANGED="rowDataChanged",t.EVENT_ROW_DATA_UPDATED="rowDataUpdated",t.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",t.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",t.EVENT_CHART_CREATED="chartCreated",t.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",t.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",t.EVENT_CHART_DESTROYED="chartDestroyed",t.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",t.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",t.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",t.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",t.EVENT_MODEL_UPDATED="modelUpdated",t.EVENT_CUT_START="cutStart",t.EVENT_CUT_END="cutEnd",t.EVENT_PASTE_START="pasteStart",t.EVENT_PASTE_END="pasteEnd",t.EVENT_FILL_START="fillStart",t.EVENT_FILL_END="fillEnd",t.EVENT_RANGE_DELETE_START="rangeDeleteStart",t.EVENT_RANGE_DELETE_END="rangeDeleteEnd",t.EVENT_UNDO_STARTED="undoStarted",t.EVENT_UNDO_ENDED="undoEnded",t.EVENT_REDO_STARTED="redoStarted",t.EVENT_REDO_ENDED="redoEnded",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",t.EVENT_CELL_CLICKED="cellClicked",t.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",t.EVENT_CELL_MOUSE_DOWN="cellMouseDown",t.EVENT_CELL_CONTEXT_MENU="cellContextMenu",t.EVENT_CELL_VALUE_CHANGED="cellValueChanged",t.EVENT_CELL_EDIT_REQUEST="cellEditRequest",t.EVENT_ROW_VALUE_CHANGED="rowValueChanged",t.EVENT_CELL_FOCUSED="cellFocused",t.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",t.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_TOOLTIP_SHOW="tooltipShow",t.EVENT_TOOLTIP_HIDE="tooltipHide",t.EVENT_CELL_KEY_DOWN="cellKeyDown",t.EVENT_CELL_MOUSE_OVER="cellMouseOver",t.EVENT_CELL_MOUSE_OUT="cellMouseOut",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_MODIFIED="filterModified",t.EVENT_FILTER_OPENED="filterOpened",t.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",t.EVENT_ROW_CLICKED="rowClicked",t.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",t.EVENT_GRID_READY="gridReady",t.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",t.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",t.EVENT_VIEWPORT_CHANGED="viewportChanged",t.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",t.EVENT_FIRST_DATA_RENDERED="firstDataRendered",t.EVENT_DRAG_STARTED="dragStarted",t.EVENT_DRAG_STOPPED="dragStopped",t.EVENT_CHECKBOX_CHANGED="checkboxChanged",t.EVENT_ROW_EDITING_STARTED="rowEditingStarted",t.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",t.EVENT_CELL_EDITING_STARTED="cellEditingStarted",t.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",t.EVENT_BODY_SCROLL="bodyScroll",t.EVENT_BODY_SCROLL_END="bodyScrollEnd",t.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",t.EVENT_PAGINATION_CHANGED="paginationChanged",t.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",t.EVENT_STORE_REFRESHED="storeRefreshed",t.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",t.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",t.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",t.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",t.EVENT_FLASH_CELLS="flashCells",t.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",t.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",t.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",t.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",t.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",t.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",t.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",t.EVENT_ROW_DRAG_ENTER="rowDragEnter",t.EVENT_ROW_DRAG_MOVE="rowDragMove",t.EVENT_ROW_DRAG_LEAVE="rowDragLeave",t.EVENT_ROW_DRAG_END="rowDragEnd",t.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",t.EVENT_POPUP_TO_FRONT="popupToFront",t.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",t.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",t.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",t.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",t.EVENT_KEYBOARD_FOCUS="keyboardFocus",t.EVENT_MOUSE_FOCUS="mouseFocus",t.EVENT_STORE_UPDATED="storeUpdated",t.EVENT_FILTER_DESTROYED="filterDestroyed",t.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",t.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",t.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",t.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",t.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",t}(),Qt=function(){function t(){this.existingIds={}}return t.prototype.getInstanceIdForKey=function(t){var e,o=this.existingIds[t];return e="number"!=typeof o?0:o+1,this.existingIds[t]=e,e},t}(),Xt=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Jt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Zt="ag-Grid-AutoColumn",$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xt(e,t),e.prototype.createAutoGroupColumns=function(t){var e=this,o=[],n=this.gridOptionsService.is("treeData"),i=this.gridOptionsService.isGroupMultiAutoColumn();return n&&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?t.forEach((function(t,n){o.push(e.createOneAutoGroupColumn(t,n))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.updateAutoGroupColumns=function(t){var e=this;t.forEach((function(t,o){return e.updateOneAutoGroupColumn(t,o)}))},e.prototype.createOneAutoGroupColumn=function(t,e){var o;o=t?"ag-Grid-AutoColumn-"+t.getId():"ag-Grid-AutoColumn";var n=this.createAutoGroupColDef(o,t,e);n.colId=o;var i=new ut(n,null,o,!0);return this.context.createBean(i),i},e.prototype.updateOneAutoGroupColumn=function(t,e){var o=t.getColDef(),n="string"==typeof o.showRowGroup?o.showRowGroup:void 0,i=null!=n?this.columnModel.getPrimaryColumn(n):void 0,r=this.createAutoGroupColDef(t.getId(),null!=i?i:void 0,e);t.setColDef(r,null),this.columnFactory.applyColumnState(t,r)},e.prototype.createAutoGroupColDef=function(t,e,n){var i=this.createBaseColDef(e);(w(i,this.gridOptionsService.get("autoGroupColumnDef")),i=this.columnFactory.addColumnDefaultAndTypes(i,t),this.gridOptionsService.is("treeData"))||o(i.field)&&o(i.valueGetter)&&o(i.filterValueGetter)&&"agGroupColumnFilter"!==i.filter&&(i.filter=!1);n&&n>0&&(i.headerCheckboxSelection=!1);var r=this.gridOptionsService.isColumnsSortingCoupledToGroup(),s=i.valueGetter||null!=i.field;return r&&!s&&(i.sortIndex=void 0,i.initialSort=void 0),i},e.prototype.createBaseColDef=function(t){var e=this.gridOptionsService.get("autoGroupColumnDef"),o={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(e&&(e.cellRenderer||e.cellRendererSelector)||(o.cellRenderer="agGroupCellRenderer"),t){var n=t.getColDef();Object.assign(o,{headerName:this.columnModel.getDisplayNameForColumn(t,"header"),headerValueGetter:n.headerValueGetter}),n.cellRenderer&&Object.assign(o,{cellRendererParams:{innerRenderer:n.cellRenderer,innerRendererParams:n.cellRendererParams}}),o.showRowGroup=t.getColId()}else o.showRowGroup=!0;return o},Jt([X("columnModel")],e.prototype,"columnModel",void 0),Jt([X("columnFactory")],e.prototype,"columnFactory",void 0),e=Jt([Q("autoGroupColService")],e)}(Bt),te=/[&<>"']/g,ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function oe(t,e){if(null==t)return null;var o=t.toString().toString();return e?o:o.replace(te,(function(t){return ee[t]}))}function ne(t){if(!t||null==t)return null;return t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map((function(t){return t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):"")})).join(" ")}function ie(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLocaleLowerCase()}))}var re=Object.freeze({__proto__:null,utf8_encode:function(t){var e=String.fromCharCode;function o(t,o){return e(t>>o&63|128)}function n(t){if(t>=0&&t<=31&&10!==t)return"_x"+t.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&t))return e(t);var n="";return 0==(4294965248&t)?n=e(t>>6&31|192):0==(4294901760&t)?(!function(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}(t),n=e(t>>12&15|224),n+=o(t,6)):0==(4292870144&t)&&(n=e(t>>18&7|240),n+=o(t,12),n+=o(t,6)),n+=e(63&t|128)}for(var i=function(t){var e=[];if(!t)return[];for(var o,n,i=t.length,r=0;r<i;)(o=t.charCodeAt(r++))>=55296&&o<=56319&&r<i?56320==(64512&(n=t.charCodeAt(r++)))?e.push(((1023&o)<<10)+(1023&n)+65536):(e.push(o),r--):e.push(o);return e}(t),r=i.length,s=-1,a="";++s<r;)a+=n(i[s]);return a},capitalise:function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()},escapeString:oe,camelCaseToHumanText:ne,camelCaseToHyphenated:ie});function se(t){var e=new Map;return t.forEach((function(t){return e.set(t[0],t[1])})),e}var ae=Object.freeze({__proto__:null,convertToMap:se,mapById:function(t,e){var o=new Map;return t.forEach((function(t){return o.set(e(t),t)})),o},keys:function(t){var e=[];return t.forEach((function(t,o){return e.push(o)})),e}}),le=function(){function t(){}return t.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,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},t.ALL_PROPERTIES=Object.keys(t.ColDefPropertyMap),t}(),ue=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},ce=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},pe=function(){function t(){}return t.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator"],t.OBJECT_PROPERTIES=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterModel","advancedFilterParent","advancedFilterBuilderParams"],t.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],t.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],t.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSelectsChildren","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDown","enterMovesDownAfterEdit","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideFilterAllLevels","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideOnlyRefreshFilteredGroups","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","suppressCutToClipboard","enableAdvancedFilter","includeHiddenColumnsInAdvancedFilter"],t.FUNCTIONAL_PROPERTIES=["doesExternalFilterPass","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher"],t.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","groupIncludeFooter","loadingCellRendererSelector","getRowId","groupAggFiltering"],t.FUNCTION_PROPERTIES=ce(ce([],ue(t.FUNCTIONAL_PROPERTIES)),ue(t.CALLBACK_PROPERTIES)),t.ALL_PROPERTIES=ce(ce(ce(ce(ce(ce([],ue(t.ARRAY_PROPERTIES)),ue(t.OBJECT_PROPERTIES)),ue(t.STRING_PROPERTIES)),ue(t.NUMBER_PROPERTIES)),ue(t.FUNCTION_PROPERTIES)),ue(t.BOOLEAN_PROPERTIES)),t}(),de=function(){return(de=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},he=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},fe=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ge=function(){function t(){}return t.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},t.getCoercionLookup=function(){var e={};return fe(fe(fe(fe(fe([],he(t.ARRAY_PROPERTIES)),he(t.OBJECT_PROPERTIES)),he(t.STRING_PROPERTIES)),he(t.FUNCTION_PROPERTIES)),he(t.EVENT_CALLBACKS)).forEach((function(t){return e[t]="none"})),t.BOOLEAN_PROPERTIES.forEach((function(t){return e[t]="boolean"})),t.NUMBER_PROPERTIES.forEach((function(t){return e[t]="number"})),e},t.getValue=function(e,o){var n=t.coercionLookup[e];if(n){var i=o;switch(n){case"number":i=t.toNumber(o);break;case"boolean":i=t.toBoolean(o);break;case"none":"groupAggFiltering"===e&&"function"!=typeof o&&(i=t.toBoolean(o))}return i}},t.getGridOptionKeys=function(e,o){return o?Object.keys(t.coercionLookup):Object.keys(e)},t.copyAttributesToGridOptions=function(e,o,n){void 0===n&&(n=!1),"object"!=typeof e&&(e={});var i=e;return t.getGridOptionKeys(o,n).forEach((function(e){var n=o[e];if(void 0!==n){var r=t.getValue(e,n);void 0!==r&&(i[e]=r)}})),e},t.processOnChange=function(e,o){var n=this;if(e&&0!==Object.keys(e).length){this.changeSetId++;var i=de({},e);i.columnTypes&&(o.setColumnTypes(i.columnTypes.currentValue,"gridOptionsChanged"),delete i.columnTypes),i.autoGroupColumnDef&&(o.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.defaultColDef&&(o.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.columnDefs&&(o.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs);var r=Object.keys(i).map((function(e){var n=e,r=t.getValue(n,i[n].currentValue);return{gridKey:n,coercedValue:r,isChanged:o.__setPropertyOnly(n,r)}})).filter((function(t){return t.isChanged})),s=r.map((function(t){return t.gridKey}));r.forEach((function(t){return o.__updateProperty(t.gridKey,t.coercedValue,t.isChanged,{id:n.changeSetId,properties:s})}));var a={type:qt.EVENT_COMPONENT_STATE_CHANGED};d(e,(function(t,e){a[t]=e})),o.dispatchEvent(a)}},t.toBoolean=function(t){return"boolean"==typeof t?t:"string"==typeof t&&("TRUE"===t.toUpperCase()||""==t)},t.toNumber=function(t){return"number"==typeof t?t:"string"==typeof t?Number(t):void 0},t.EVENTS=a(qt),t.EXCLUDED_INTERNAL_EVENTS=[qt.EVENT_SCROLLBAR_WIDTH_CHANGED,qt.EVENT_CHECKBOX_CHANGED,qt.EVENT_HEIGHT_SCALE_CHANGED,qt.EVENT_BODY_HEIGHT_CHANGED,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,qt.EVENT_SCROLL_VISIBILITY_CHANGED,qt.EVENT_COLUMN_HOVER_CHANGED,qt.EVENT_FLASH_CELLS,qt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,qt.EVENT_DISPLAYED_ROWS_CHANGED,qt.EVENT_LEFT_PINNED_WIDTH_CHANGED,qt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,qt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,qt.EVENT_POPUP_TO_FRONT,qt.EVENT_KEYBOARD_FOCUS,qt.EVENT_MOUSE_FOCUS,qt.EVENT_STORE_UPDATED,qt.EVENT_COLUMN_PANEL_ITEM_DRAG_START,qt.EVENT_COLUMN_PANEL_ITEM_DRAG_END,qt.EVENT_FILL_START,qt.EVENT_FILL_END,qt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,qt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,qt.EVENT_FULL_WIDTH_ROW_FOCUSED,qt.EVENT_HEADER_HEIGHT_CHANGED,qt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,qt.EVENT_CELL_FOCUS_CLEARED,qt.EVENT_GRID_STYLES_CHANGED,qt.EVENT_FILTER_DESTROYED,qt.EVENT_ROW_DATA_UPDATE_STARTED,qt.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,qt.EVENT_DATA_TYPES_INFERRED,qt.EVENT_FIELD_VALUE_CHANGED,qt.EVENT_FIELD_PICKER_VALUE_SELECTED],t.PUBLIC_EVENTS=t.EVENTS.filter((function(e){return!Rt(t.EXCLUDED_INTERNAL_EVENTS,e)})),t.EVENT_CALLBACKS=t.EVENTS.map((function(e){return t.getCallbackForEvent(e)})),t.STRING_PROPERTIES=pe.STRING_PROPERTIES,t.OBJECT_PROPERTIES=pe.OBJECT_PROPERTIES,t.ARRAY_PROPERTIES=pe.ARRAY_PROPERTIES,t.NUMBER_PROPERTIES=pe.NUMBER_PROPERTIES,t.BOOLEAN_PROPERTIES=pe.BOOLEAN_PROPERTIES,t.FUNCTION_PROPERTIES=pe.FUNCTION_PROPERTIES,t.ALL_PROPERTIES=pe.ALL_PROPERTIES,t.ALL_PROPERTIES_SET=new Set(pe.ALL_PROPERTIES),t.changeSetId=0,t.coercionLookup=t.getCoercionLookup(),t}(),ve=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function ye(t,e,o){var n={},i=t.filter((function(t){return!e.some((function(e){return e===t}))}));return i.length>0&&i.forEach((function(t){return n[t]=me(t,o).values})),n}function me(t,e,o,n){var i,r,s=e.map((function(e,o){return{value:e,relevance:Ce(t.toLowerCase(),e.toLocaleLowerCase()),idx:o}}));if(s.sort((function(t,e){return e.relevance-t.relevance})),o&&(s=s.filter((function(t){return 0!==t.relevance}))),s.length>0&&n&&n>0){var a=s[0].relevance*n;s=s.filter((function(t){return a-t.relevance<0}))}var l=[],u=[];try{for(var c=ve(s),p=c.next();!p.done;p=c.next()){var d=p.value;l.push(d.value),u.push(d.idx)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}return{values:l,indices:u}}function Ce(t,e){for(var o=t.replace(/\s/g,""),n=e.replace(/\s/g,""),i=0,r=-1,s=0;s<o.length;s++){var a=n.indexOf(o[s],r+1);-1!==a&&(i+=100-100*(r=a)/1e4*100)}return i}var we=Object.freeze({__proto__:null,fuzzyCheckStrings:ye,fuzzySuggestions:me}),Se=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ee=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Re=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t};function be(t,e,o,n){var i=o?"Please use '"+o+"' instead. ":"";T((function(){return console.warn("AG Grid: since v"+t+", '"+e+"' is deprecated. "+i+(null!=n?n:""))}),"Deprecated_"+e)}var Oe=["__ob__","__v_skip","__metadata__"],Te=function(){function t(){this.deprecatedProperties={rememberGroupStateWhenNewData:{version:"24",message:"Now that transaction updates are possible and they keep group state, this feature is no longer needed."},serverSideFilteringAlwaysResets:{version:"28.0",newProp:"serverSideOnlyRefreshFilteredGroups",copyToNewProp:!0},serverSideSortingAlwaysResets:{version:"28.0",newProp:"serverSideSortAllLevels",copyToNewProp:!0},suppressReactUi:{version:"28",message:"The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."},processSecondaryColDef:{version:"28",newProp:"processPivotResultColDef",copyToNewProp:!0},processSecondaryColGroupDef:{version:"28",newProp:"processPivotResultColGroupDef",copyToNewProp:!0},getServerSideStoreParams:{version:"28",newProp:"getServerSideGroupLevelParams",copyToNewProp:!0},serverSideInfiniteScroll:{version:"29",message:"Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`."},enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"},onColumnAggFuncChangeRequest:{version:"29.2"},serverSideFilterAllLevels:{version:"30",message:"All server-side group levels are now filtered by default. This can be toggled using `serverSideOnlyRefreshFilteredGroups`."},suppressAggAtRootLevel:{version:"30",message:"The root level aggregation is now suppressed by default. This can be toggled using  `alwaysAggregateAtRootLevel`."},excludeHiddenColumnsFromQuickFilter:{version:"30",message:"Hidden columns are now excluded from the Quick Filter by default. This can be toggled using `includeHiddenColumnsInQuickFilter`."},enterMovesDown:{version:"30",newProp:"enterNavigatesVertically",copyToNewProp:!0},enterMovesDownAfterEdit:{version:"30",newProp:"enterNavigatesVerticallyAfterEdit",copyToNewProp:!0},suppressParentsInRowNodes:{version:"30.2",message:"Using suppressParentsInRowNodes is no longer recommended. To serialize nodes it is now recommended to instead remove the parent node reference before serialization."}}}return t.prototype.pickOneWarning=function(t,e){console.warn("AG Grid: "+t+" and "+e+" do not work with each other, you need to pick one.")},t.prototype.init=function(){var t=this;if(this.checkForDeprecated(),this.checkForViolations(),!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.checkColumnDefViolations(),this.gridOptionsService.is("groupSelectsChildren")&&this.gridOptionsService.is("suppressParentsInRowNodes")&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.gridOptionsService.is("groupSelectsChildren")&&"multiple"!==this.gridOptionsService.get("rowSelection")&&console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.gridOptionsService.is("groupRemoveSingleChildren")&&this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRemoveSingleChildren","groupHideOpenParents"),this.gridOptionsService.isRowModelType("serverSide")){var e=function(t,e){return"AG Grid: '"+t+"' is not supported on the Server-Side Row Model."+(e?" Please use "+e+" instead.":"")};this.gridOptionsService.exists("groupDefaultExpanded")&&console.warn(e("groupDefaultExpanded","isServerSideGroupOpenByDefault callback")),this.gridOptionsService.exists("groupIncludeFooter")&&this.gridOptionsService.is("suppressServerSideInfiniteScroll")&&console.warn(e("groupIncludeFooter")),this.gridOptionsService.exists("groupIncludeTotalFooter")&&console.warn(e("groupIncludeTotalFooter"))}this.gridOptionsService.is("enableRangeSelection")?j.__assertRegistered(V.RangeSelectionModule,"enableRangeSelection",this.gridOptionsService.getGridId()):(this.gridOptionsService.is("enableRangeHandle")||this.gridOptionsService.is("enableFillHandle"))&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var o=function(e,o){return t.gridOptionsService.exists(e)&&j.__assertRegistered(o,e,t.gridOptionsService.getGridId())};o("sideBar",V.SideBarModule),o("statusBar",V.StatusBarModule),o("enableCharts",V.GridChartsModule),o("getMainMenuItems",V.MenuModule),o("getContextMenuItems",V.MenuModule),o("allowContextMenuWithControlKey",V.MenuModule),o("enableAdvancedFilter",V.AdvancedFilterModule),o("treeData",V.RowGroupingModule),o("enableRangeSelection",V.RangeSelectionModule),o("masterDetail",V.MasterDetailModule)},t.prototype.checkColumnDefProperties=function(){var t=this;if(null!=this.gridOptions.columnDefs){var e=le.ALL_PROPERTIES,o=function(n,i){var r=Object.getOwnPropertyNames(n);t.checkProperties(r,Re(Re([],Ee(e)),Ee(Oe)),e,i,"https://www.ag-grid.com/javascript-data-grid/column-properties/"),n.children&&n.children.forEach((function(t){return o(t,"columnDefs.children")}))};this.gridOptions.columnDefs.forEach((function(t){return o(t,"columnDefs")})),this.gridOptions.defaultColDef&&o(this.gridOptions.defaultColDef,"defaultColDef")}},t.prototype.checkColumnDefViolations=function(){var t,e=null!==(t=this.gridOptionsService.get("rowModelType"))&&void 0!==t?t:"clientSide",o={infinite:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],viewport:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],serverSide:["headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],clientSide:[]}[e];if(o){var n="multiple"===this.gridOptionsService.get("rowSelection"),i=["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],r=function(t){n||i.forEach((function(e){e in t&&t[e]&&console.warn("AG Grid: Column property "+e+" is not supported unless rowSelection='multiple'.")})),o.forEach((function(o){o in t&&t[o]&&console.warn("AG Grid: Column property "+o+" is not supported with the row model type "+e+".")}))};null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){return r(t)})),null!=this.gridOptions.autoGroupColumnDef&&r(this.gridOptions.autoGroupColumnDef),null!=this.gridOptions.defaultColDef&&r(this.gridOptions.defaultColDef)}},t.prototype.checkGridOptionsProperties=function(){var t=Object.getOwnPropertyNames(this.gridOptions),e=Re(Re([],Ee(pe.ALL_PROPERTIES)),Ee(ge.EVENT_CALLBACKS)),o=Re(Re(Re(Re([],Ee(e)),["api","columnApi"]),Ee(Oe)),Ee(Object.keys(this.deprecatedProperties)));this.checkProperties(t,o,e,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},t.prototype.checkProperties=function(t,e,o,n,i){var r=ye(t,e,o);d(r,(function(t,e){T((function(){return console.warn("AG Grid: invalid "+n+" property '"+t+"' did you mean any of these: "+e.slice(0,8).join(", "))}),"invalidProperty"+n+t)})),Object.keys(r).length>0&&T((function(){return console.warn("AG Grid: to see all the valid "+n+" properties please check: "+i)}),"invalidProperties"+n+i)},t.prototype.checkForDeprecated=function(){var t=this.gridOptions;Object.entries(this.deprecatedProperties).forEach((function(e){var o,n=Ee(e,2),i=n[0],r=n[1],s=t[i];s&&(be(r.version,i,r.newProp,r.message),r.copyToNewProp&&r.newProp&&null==t[r.newProp]&&(t[r.newProp]=null!==(o=r.newPropValue)&&void 0!==o?o:s))})),t.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),t.suppressServerSideInfiniteScroll="partial"!==t.serverSideStoreType)},t.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data.")),this.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),this.gridOptionsService.exists("getServerSideGroupKey")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},Se([X("gridOptions")],t.prototype,"gridOptions",void 0),Se([X("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Se([Y],t.prototype,"init",null),t=Se([Q("gridOptionsValidator")],t)}();function De(t,e){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(e)<0?(console.warn("AG Grid: '"+e+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):e===t}var Pe=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_e=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ae=function(t,e){return function(o,n){e(o,n,t)}},Fe=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(o[n[i]]=t[n[i]])}return o},Le=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Ie=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Ne=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Me=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.shouldQueueResizeOperations=!1,e.resizeOperationQueue=[],e}return Pe(i,t),i.prototype.init=function(){var t=this;this.suppressColumnVirtualisation=this.gridOptionsService.is("suppressColumnVirtualisation");var e=this.gridOptionsService.is("pivotMode");this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.addManagedPropertyListeners(["groupDisplayType","treeData"],(function(){return t.buildAutoGroupColumns()})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListener("defaultColDef",(function(e){return t.onSharedColDefChanged(e.source)})),this.addManagedPropertyListener("columnTypes",(function(e){return t.onSharedColDefChanged(e.source)}))},i.prototype.buildAutoGroupColumns=function(){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged"))},i.prototype.onAutoGroupColumnDefChanged=function(){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns)},i.prototype.onSharedColDefChanged=function(t){void 0===t&&(t="api"),this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns),this.createColumnsFromColumnDefs(!0,t)},i.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api");var o=!!this.columnDefs;this.columnDefs=t,this.createColumnsFromColumnDefs(o,e)},i.prototype.recreateColumnDefs=function(t){void 0===t&&(t="api"),this.onSharedColDefChanged(t)},i.prototype.destroyOldColumns=function(t,e){var o={};if(t){this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){o[t.getInstanceId()]=t})),e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(t){o[t.getInstanceId()]=null}));var n=Object.values(o).filter((function(t){return null!=t}));this.destroyBeans(n)}},i.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},i.prototype.createColumnsFromColumnDefs=function(t,e){var o=this;void 0===e&&(e="api");var n=t?this.compareColumnStatesAndDispatchEvents(e):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,r=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,r);this.destroyOldColumns(this.primaryColumnTree,s.columnTree),this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(t){return o.primaryColumnsMap[t.getId()]=t})),this.extractRowGroupColumns(e,i),this.extractPivotColumns(e,i),this.extractValueColumns(e,i),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a||this.autoGroupsNeedBuilding)&&(this.updateGridColumns(),t&&this.gridColsArePrimary&&!this.gridOptionsService.is("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(e),this.checkViewportColumns()),this.dispatchEverythingChanged(e),n&&n(),this.dispatchNewColumnsLoaded(e)},i.prototype.dispatchNewColumnsLoaded=function(t){var e={type:qt.EVENT_NEW_COLUMNS_LOADED,source:t};this.eventService.dispatchEvent(e)},i.prototype.dispatchEverythingChanged=function(t){void 0===t&&(t="api");var e={type:qt.EVENT_COLUMN_EVERYTHING_CHANGED,source:t};this.eventService.dispatchEvent(e)},i.prototype.orderGridColumnsLikePrimary=function(){var t=this,e=this.primaryColumns;if(e){var o=e.filter((function(e){return t.gridColumns.indexOf(e)>=0})),n=this.gridColumns.filter((function(t){return o.indexOf(t)<0}));this.gridColumns=Ie(Ie([],Le(n)),Le(o)),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},i.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},i.prototype.setViewport=function(){this.gridOptionsService.is("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)},i.prototype.getDisplayedColumnsStartingAt=function(t){for(var e=t,o=[];null!=e;)o.push(e),e=this.getDisplayedColAfter(e);return o},i.prototype.checkViewportColumns=function(t){if((void 0===t&&(t=!1),null!=this.displayedColumnsCenter)&&this.extractViewport()){var e={type:qt.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:t};this.eventService.dispatchEvent(e)}},i.prototype.setViewportPosition=function(t,e,o){void 0===o&&(o=!1),(t!==this.scrollWidth||e!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=e,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(o))},i.prototype.isPivotMode=function(){return this.pivotMode},i.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsService.is("treeData")||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},i.prototype.setPivotMode=function(t,e){if(void 0===e&&(e="api"),t!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=t,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(e);var o={type:qt.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},i.prototype.getSecondaryPivotColumn=function(t,e){if(o(this.secondaryColumns))return null;var n=this.getPrimaryColumn(e),i=null;return this.secondaryColumns.forEach((function(e){var o=e.getColDef().pivotKeys,r=e.getColDef().pivotValueColumn;gt(o,t)&&r===n&&(i=e)})),i},i.prototype.setBeans=function(t){this.logger=t.create("columnModel")},i.prototype.setFirstRightAndLastLeftPinned=function(t){var e,o;this.gridOptionsService.is("enableRtl")?(e=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?ft(this.displayedColumnsRight):null):(e=this.displayedColumnsLeft?ft(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(n){n.setLastLeftPinned(n===e,t),n.setFirstRightPinned(n===o,t)}))},i.prototype.autoSizeColumns=function(t){var e=this;if(this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return e.autoSizeColumns(t)}));else{var o=t.columns,n=t.skipHeader,i=t.skipHeaderGroups,r=t.stopAtGroup,s=t.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=n?n:this.gridOptionsService.is("skipHeaderOnAutoSize"),p=null!=i?i:c;0!==u;)u=0,this.actionOnGridColumns(o,(function(t){if(l.indexOf(t)>=0)return!1;var o=e.autoWidthCalculator.getPreferredWidthForColumn(t,c);if(o>0){var n=e.normaliseColumnWidth(t,o);t.setActualWidth(n,a),l.push(t),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(o,a,r),this.dispatchColumnResizedEvent(l,!0,"autosizeColumns")}},i.prototype.dispatchColumnResizedEvent=function(t,e,o,n){if(void 0===n&&(n=null),t&&t.length){var i={type:qt.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:n,finished:e,source:o};this.eventService.dispatchEvent(i)}},i.prototype.dispatchColumnChangedEvent=function(t,e,o){var n={type:t,columns:e,column:e&&1==e.length?e[0]:null,source:o};this.eventService.dispatchEvent(n)},i.prototype.dispatchColumnMovedEvent=function(t){var e=t.movedColumns,o=t.source,n=t.toIndex,i=t.finished,r={type:qt.EVENT_COLUMN_MOVED,columns:e,column:e&&1===e.length?e[0]:null,toIndex:n,finished:i,source:o};this.eventService.dispatchEvent(r)},i.prototype.dispatchColumnPinnedEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,n=this.getCommonValue(t,(function(t){return t.getPinned()})),i={type:qt.EVENT_COLUMN_PINNED,pinned:null!=n?n:null,columns:t,column:o,source:e};this.eventService.dispatchEvent(i)}},i.prototype.dispatchColumnVisibleEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,n=this.getCommonValue(t,(function(t){return t.isVisible()})),i={type:qt.EVENT_COLUMN_VISIBLE,visible:n,columns:t,column:o,source:e};this.eventService.dispatchEvent(i)}},i.prototype.autoSizeColumn=function(t,e,o){void 0===o&&(o="api"),t&&this.autoSizeColumns({columns:[t],skipHeader:e,skipHeaderGroups:!0,source:o})},i.prototype.autoSizeColumnGroupsByColumns=function(t,e,o){var n,i,r,s,a,l=new Set;this.getGridColumns(t).forEach((function(t){for(var e=t.getParent();e&&e!=o;)e.isPadding()||l.add(e),e=e.getParent()}));try{for(var u=Ne(l),c=u.next();!c.done;c=u.next()){var p=c.value;try{for(var d=(r=void 0,Ne(this.ctrlsService.getHeaderRowContainerCtrls())),h=d.next();!h.done;h=d.next()){if(a=h.value.getHeaderCtrlForColumn(p))break}}catch(t){r={error:t}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(r)throw r.error}}a&&a.resizeLeafColumnsToFit(e)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return[]},i.prototype.autoSizeAllColumns=function(t,e){var o=this;if(void 0===e&&(e="api"),this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return o.autoSizeAllColumns(t,e)}));else{var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:t,source:e})}},i.prototype.getColumnsFromTree=function(t){var e=[],o=function(t){for(var n=0;n<t.length;n++){var i=t[n];i instanceof ut?e.push(i):i instanceof pt&&o(i.getChildren())}};return o(t),e},i.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},i.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},i.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},i.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},i.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},i.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},i.prototype.isColumnDisplayed=function(t){return this.getAllDisplayedColumns().indexOf(t)>=0},i.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},i.prototype.getViewportColumns=function(){return this.viewportColumns},i.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsLeft):this.displayedColumnsLeft},i.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsRight):this.displayedColumnsRight},i.prototype.isColSpanActive=function(){return this.colSpanActive},i.prototype.getDisplayedColumnsForRow=function(t,e,o,n){for(var i,r=[],s=null,a=function(a){var l,u=e[a],c=e.length-a,p=Math.min(u.getColSpan(t),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(e[a+f]);a+=h}if(o?(l=!1,d.forEach((function(t){o(t)&&(l=!0)}))):l=!0,l){if(0===r.length&&s)!!n&&n(u)&&r.push(s);r.push(u)}s=u,i=a},l=0;l<e.length;l++)a(l),l=i;return r},i.prototype.getViewportCenterColumnsForRow=function(t){var o=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(t,this.displayedColumnsCenter,n,(function(t){var n=t.getLeft();return e(n)&&n>o.viewportLeft}))},i.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},i.prototype.isColumnInHeaderViewport=function(t){return!!t.isAutoHeaderHeight()||this.isColumnInRowViewport(t)},i.prototype.isColumnInRowViewport=function(t){if(t.isAutoHeight())return!0;var e=t.getLeft()||0,o=e+t.getActualWidth(),n=this.viewportLeft-200,i=this.viewportRight+200;return!(e<n&&o<n)&&!(e>i&&o>i)},i.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},i.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},i.prototype.updatePrimaryColumnList=function(t,e,o,i,r,s){var a=this;if(void 0===s&&(s="api"),t&&!n(t)){var l=!1;if(t.forEach((function(t){var n=a.getPrimaryColumn(t);if(n){if(o){if(e.indexOf(n)>=0)return;e.push(n)}else{if(e.indexOf(n)<0)return;mt(e,n)}i(n),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s);var u={type:r,columns:e,column:1===e.length?e[0]:null,source:s};this.eventService.dispatchEvent(u)}}},i.prototype.setRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),e)},i.prototype.setRowGroupActive=function(t,e,o){t!==e.isRowGroupActive()&&(e.setRowGroupActive(t,o),t&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(e,!1,o),t||this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(e,!0,o))},i.prototype.addRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.addRowGroupColumns([t],e)},i.prototype.addRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),qt.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},i.prototype.removeRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),qt.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},i.prototype.removeRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.removeRowGroupColumns([t],e)},i.prototype.addPivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,e)}),qt.EVENT_COLUMN_PIVOT_CHANGED,e)},i.prototype.setPivotColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.pivotColumns,qt.EVENT_COLUMN_PIVOT_CHANGED,!0,(function(t,o){o.setPivotActive(t,e)}),e)},i.prototype.addPivotColumn=function(t,e){void 0===e&&(e="api"),this.addPivotColumns([t],e)},i.prototype.removePivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,e)}),qt.EVENT_COLUMN_PIVOT_CHANGED,e)},i.prototype.removePivotColumn=function(t,e){void 0===e&&(e="api"),this.removePivotColumns([t],e)},i.prototype.setPrimaryColumnList=function(t,o,n,i,r,s){var a=this,l=new Map;o.forEach((function(t,e){return l.set(t,e)})),o.length=0,e(t)&&t.forEach((function(t){var e=a.getPrimaryColumn(t);e&&o.push(e)})),o.forEach((function(t,e){var o=l.get(t);void 0!==o?i&&o!==e||l.delete(t):l.set(t,0)})),(this.primaryColumns||[]).forEach((function(t){var e=o.indexOf(t)>=0;r(e,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s),this.dispatchColumnChangedEvent(n,Ie([],Le(l.keys())),s)},i.prototype.setValueColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.valueColumns,qt.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),e)},i.prototype.setValueActive=function(t,e,o){if(t!==e.isValueActive()&&(e.setValueActive(t,o),t&&!e.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(e);e.setAggFunc(n)}},i.prototype.addValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),qt.EVENT_COLUMN_VALUE_CHANGED,e)},i.prototype.addValueColumn=function(t,e){void 0===e&&(e="api"),t&&this.addValueColumns([t],e)},i.prototype.removeValueColumn=function(t,e){void 0===e&&(e="api"),this.removeValueColumns([t],e)},i.prototype.removeValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),qt.EVENT_COLUMN_VALUE_CHANGED,e)},i.prototype.normaliseColumnWidth=function(t,o){var n=t.getMinWidth();e(n)&&o<n&&(o=n);var i=t.getMaxWidth();return e(i)&&t.isGreaterThanMax(o)&&(o=i),o},i.prototype.getPrimaryOrGridColumn=function(t){return this.getPrimaryColumn(t)||this.getGridColumn(t)},i.prototype.setColumnWidths=function(t,e,o,n){var i=this;void 0===n&&(n="api");var r=[];t.forEach((function(t){var o=i.getPrimaryOrGridColumn(t.key);if(o&&(r.push({width:t.newWidth,ratios:[1],columns:[o]}),"shift"===i.gridOptionsService.get("colResizeDefault")&&(e=!e),e)){var n=i.getDisplayedColAfter(o);if(!n)return;var s=o.getActualWidth()-t.newWidth,a=n.getActualWidth()+s;r.push({width:a,ratios:[1],columns:[n]})}})),0!==r.length&&this.resizeColumnSets({resizeSets:r,finished:o,source:n})},i.prototype.checkMinAndMaxWidthsForSet=function(t){var o=t.columns,n=t.width,i=0,r=0,s=!0;return o.forEach((function(t){var o=t.getMinWidth();i+=o||0;var n=t.getMaxWidth();e(n)&&n>0?r+=n:s=!1})),n>=i&&(!s||n<=r)},i.prototype.resizeColumnSets=function(t){var o=this,n=t.resizeSets,i=t.finished,r=t.source;if(!n||n.every((function(t){return o.checkMinAndMaxWidthsForSet(t)}))){var s=[],a=[];n.forEach((function(t){var o=t.width,n=t.columns,i=t.ratios,l={},u={};n.forEach((function(t){return a.push(t)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var t=[],r=0,s=o;n.forEach((function(e,o){if(u[e.getId()])s-=l[e.getId()];else{t.push(e);var n=i[o];r+=n}}));var a=1/r;t.forEach((function(n,r){var p;r===t.length-1?p=s:(p=Math.round(i[r]*o*a),s-=p);var d=n.getMinWidth(),h=n.getMaxWidth();e(d)&&p<d?(p=d,u[n.getId()]=!0,c=!0):e(h)&&h>0&&p>h&&(p=h,u[n.getId()]=!0,c=!0),l[n.getId()]=p}))};c;){if("break"===d())break}n.forEach((function(t){var e=l[t.getId()];t.getActualWidth()!==e&&(t.setActualWidth(e,r),s.push(t))}))}));var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(r),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||i)&&this.dispatchColumnResizedEvent(c,i,r,u)}else if(i){var p=n&&n.length>0?n[0].columns:null;this.dispatchColumnResizedEvent(p,i,r)}},i.prototype.setColumnAggFunc=function(t,e,o){if(void 0===o&&(o="api"),t){var n=this.getPrimaryColumn(t);n&&(n.setAggFunc(e),this.dispatchColumnChangedEvent(qt.EVENT_COLUMN_VALUE_CHANGED,[n],o))}},i.prototype.moveRowGroupColumn=function(t,e,o){void 0===o&&(o="api");var n=this.rowGroupColumns[t],i=this.rowGroupColumns.slice(t,e);this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(e,0,n);var r={type:qt.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:i,column:1===i.length?i[0]:null,source:o};this.eventService.dispatchEvent(r)},i.prototype.moveColumns=function(t,e,o,n){if(void 0===o&&(o="api"),void 0===n&&(n=!0),this.columnAnimationService.start(),e>this.gridColumns.length-t.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+e),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var i=this.getGridColumns(t);!this.doesMovePassRules(i,e)||(Et(this.gridColumns,i,e),this.updateDisplayedColumns(o),this.dispatchColumnMovedEvent({movedColumns:i,source:o,toIndex:e,finished:n}),this.columnAnimationService.finish())},i.prototype.doesMovePassRules=function(t,e){var o=this.getProposedColumnOrder(t,e);return this.doesOrderPassRules(o)},i.prototype.doesOrderPassRules=function(t){return!!this.doesMovePassMarryChildren(t)&&!!this.doesMovePassLockedPositions(t)},i.prototype.getProposedColumnOrder=function(t,e){var o=this.gridColumns.slice();return Et(o,t,e),o},i.prototype.sortColumnsLikeGridColumns=function(t){var e=this;!t||t.length<=1||(t.filter((function(t){return e.gridColumns.indexOf(t)<0})).length>0||t.sort((function(t,o){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(o)})))},i.prototype.doesMovePassLockedPositions=function(t){var e=0,o=!0;return t.forEach((function(t){var n,i=(n=t.getColDef().lockPosition)?!0===n||"left"===n?0:2:1;i<e&&(o=!1),e=i})),o},i.prototype.doesMovePassMarryChildren=function(t){var e=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof pt){var n=o,i=n.getColGroupDef();if(i&&i.marryChildren){var r=[];n.getLeafColumns().forEach((function(e){var o=t.indexOf(e);r.push(o)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>n.getLeafColumns().length-1&&(e=!1)}}})),e},i.prototype.moveColumn=function(t,e,o){void 0===o&&(o="api"),this.moveColumns([t],e,o)},i.prototype.moveColumnByIndex=function(t,e,o){void 0===o&&(o="api");var n=this.gridColumns[t];this.moveColumn(n,e,o)},i.prototype.getColumnDefs=function(){var t=this;if(this.primaryColumns){var e=this.primaryColumns.slice();return this.gridColsArePrimary?e.sort((function(e,o){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)})):this.lastPrimaryOrder&&e.sort((function(e,o){return t.lastPrimaryOrder.indexOf(e)-t.lastPrimaryOrder.indexOf(o)})),this.columnDefFactory.buildColumnDefs(e,this.rowGroupColumns,this.pivotColumns)}},i.prototype.getBodyContainerWidth=function(){return this.bodyWidth},i.prototype.getContainerWidth=function(t){switch(t){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},i.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedColumnsCenter),e=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==t,this.bodyWidth!==t||this.leftWidth!==e||this.rightWidth!==o){this.bodyWidth=t,this.leftWidth=e,this.rightWidth=o;var n={type:qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(n)}},i.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},i.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},i.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},i.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},i.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},i.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},i.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},i.prototype.getDisplayedColumns=function(t){switch(t){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},i.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},i.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},i.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},i.prototype.getAllGridColumns=function(){return this.gridColumns},i.prototype.isEmpty=function(){return n(this.gridColumns)},i.prototype.isRowGroupEmpty=function(){return n(this.rowGroupColumns)},i.prototype.setColumnVisible=function(t,e,o){void 0===o&&(o="api"),this.setColumnsVisible([t],e,o)},i.prototype.setColumnsVisible=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o="api"),this.applyColumnState({state:t.map((function(t){return{colId:"string"==typeof t?t:t.getColId(),hide:!e}}))},o)},i.prototype.setColumnPinned=function(t,e,o){void 0===o&&(o="api"),t&&this.setColumnsPinned([t],e,o)},i.prototype.setColumnsPinned=function(t,e,o){var n;(void 0===o&&(o="api"),this.gridOptionsService.isDomLayout("print"))?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),n=!0===e||"left"===e?"left":"right"===e?"right":null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==n&&(t.setPinned(n),!0)}),o,(function(){return{type:qt.EVENT_COLUMN_PINNED,pinned:n,column:null,columns:null,source:o}})),this.columnAnimationService.finish())},i.prototype.actionOnGridColumns=function(t,o,i,r){var s=this;if(!n(t)){var a=[];if(t.forEach((function(t){var e=s.getGridColumn(t);e&&(!1!==o(e)&&a.push(e))})),a.length&&(this.updateDisplayedColumns(i),e(r)&&r)){var l=r();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},i.prototype.getDisplayedColBefore=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o>0?e[o-1]:null},i.prototype.getDisplayedColAfter=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o<e.length-1?e[o+1]:null},i.prototype.getDisplayedGroupAfter=function(t){return this.getDisplayedGroupAtDirection(t,"After")},i.prototype.getDisplayedGroupBefore=function(t){return this.getDisplayedGroupAtDirection(t,"Before")},i.prototype.getDisplayedGroupAtDirection=function(t,e){for(var o=t.getProvidedColumnGroup().getLevel()+t.getPaddingLevel(),n=t.getDisplayedLeafColumns(),i="After"===e?ft(n):n[0],r="getDisplayedCol"+e;;){var s=this[r](i);if(!s)return null;var a=this.getColumnGroupAtLevel(s,o);if(a!==t)return a}},i.prototype.getColumnGroupAtLevel=function(t,e){for(var o=t.getParent();;){if(o.getProvidedColumnGroup().getLevel()+o.getPaddingLevel()<=e)break;o=o.getParent()}return o},i.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},i.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},i.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t;return(t=[]).concat.apply(t,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},i.prototype.createStateItemFromColumn=function(t){var e=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,o=t.isPivotActive()?this.pivotColumns.indexOf(t):null,n=t.isValueActive()?t.getAggFunc():null,i=null!=t.getSort()?t.getSort():null,r=null!=t.getSortIndex()?t.getSortIndex():null,s=null!=t.getFlex()&&t.getFlex()>0?t.getFlex():null;return{colId:t.getColId(),width:t.getActualWidth(),hide:!t.isVisible(),pinned:t.getPinned(),sort:i,sortIndex:r,aggFunc:n,rowGroup:t.isRowGroupActive(),rowGroupIndex:e,pivot:t.isPivotActive(),pivotIndex:o,flex:s}},i.prototype.getColumnState=function(){if(o(this.primaryColumns)||!this.isAlive())return[];var t=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(t),t},i.prototype.orderColumnStateList=function(t){var e=se(this.gridColumns.map((function(t,e){return[t.getColId(),e]})));t.sort((function(t,o){return(e.has(t.colId)?e.get(t.colId):-1)-(e.has(o.colId)?e.get(o.colId):-1)}))},i.prototype.resetColumnState=function(t){var e=this;void 0===t&&(t="api");var n=this.getColumnsFromTree(this.primaryColumnTree),i=[],r=1e3,s=1e3,a=[];this.groupAutoColumns&&(a=a.concat(this.groupAutoColumns)),n&&(a=a.concat(n)),a.forEach((function(t){var n=e.getColumnStateFromColDef(t);o(n.rowGroupIndex)&&n.rowGroup&&(n.rowGroupIndex=r++),o(n.pivotIndex)&&n.pivot&&(n.pivotIndex=s++),i.push(n)})),this.applyColumnState({state:i,applyOrder:!0},t)},i.prototype.getColumnStateFromColDef=function(t){var e=function(t,e){return null!=t?t:null!=e?e:null},o=t.getColDef(),n=e(o.sort,o.initialSort),i=e(o.sortIndex,o.initialSortIndex),r=e(o.hide,o.initialHide),s=e(o.pinned,o.initialPinned),a=e(o.width,o.initialWidth),l=e(o.flex,o.initialFlex),u=e(o.rowGroupIndex,o.initialRowGroupIndex),c=e(o.rowGroup,o.initialRowGroup);null!=u||null!=c&&0!=c||(u=null,c=null);var p=e(o.pivotIndex,o.initialPivotIndex),d=e(o.pivot,o.initialPivot);null!=p||null!=d&&0!=d||(p=null,d=null);var h=e(o.aggFunc,o.initialAggFunc);return{colId:t.getColId(),sort:n,sortIndex:i,hide:r,pinned:s,width:a,flex:l,rowGroup:c,rowGroupIndex:u,pivot:d,pivotIndex:p,aggFunc:h}},i.prototype.applyColumnState=function(t,o){var i=this;if(n(this.primaryColumns))return!1;if(t&&t.state&&!t.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 r=function(e,n,r){var s=i.compareColumnStatesAndDispatchEvents(o);i.autoGroupsNeedBuilding=!0;var a=n.slice(),l={},u={},c=[],p=[],d=0,h=i.rowGroupColumns.slice(),f=i.pivotColumns.slice();e.forEach((function(e){var n=e.colId||"";if(n.startsWith("ag-Grid-AutoColumn"))return c.push(e),void p.push(e);var s=r(n);s?(i.syncColumnWithStateItem(s,e,t.defaultState,l,u,!1,o),mt(a,s)):(p.push(e),d+=1)}));var g=function(e){return i.syncColumnWithStateItem(e,null,t.defaultState,l,u,!1,o)};a.forEach(g);var v=function(t,e,o,n){var i=t[o.getId()],r=t[n.getId()],s=null!=i,a=null!=r;if(s&&a)return i-r;if(s)return-1;if(a)return 1;var l=e.indexOf(o),u=e.indexOf(n),c=l>=0;return c&&u>=0?l-u:c?-1:1};i.rowGroupColumns.sort(v.bind(i,l,h)),i.pivotColumns.sort(v.bind(i,u,f)),i.updateGridColumns();var y=i.groupAutoColumns?i.groupAutoColumns.slice():[];return c.forEach((function(e){var n=i.getAutoColumn(e.colId);mt(y,n),i.syncColumnWithStateItem(n,e,t.defaultState,null,null,!0,o)})),y.forEach(g),i.applyOrderAfterApplyState(t),i.updateDisplayedColumns(o),i.dispatchEverythingChanged(o),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var s=r(t.state||[],this.primaryColumns||[],(function(t){return i.getPrimaryColumn(t)})),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||e(t.defaultState))&&(l=r(a,this.secondaryColumns||[],(function(t){return i.getSecondaryColumn(t)})).unmatchedCount),this.columnAnimationService.finish(),0===l},i.prototype.applyOrderAfterApplyState=function(t){var e=this;if(t.applyOrder&&t.state){var o=[],n={};t.state.forEach((function(t){if(t.colId&&!n[t.colId]){var i=e.gridColumnsMap[t.colId];i&&(o.push(i),n[t.colId]=!0)}}));var i=0;this.gridColumns.forEach((function(t){var e=t.getColId();null!=n[e]||(e.startsWith("ag-Grid-AutoColumn")?St(o,t,i++):o.push(t))})),o=this.placeLockedColumns(o),this.doesMovePassMarryChildren(o)?this.gridColumns=o:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},i.prototype.compareColumnStatesAndDispatchEvents=function(t){var e=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},n=this.getColumnState(),i={};return n.forEach((function(t){i[t.colId]=t})),function(){var r=e.getPrimaryAndSecondaryAndAutoColumns(),s=function(o,n,i,r){if(!gt(n.map(r),i.map(r))){var s=new Set(n);i.forEach((function(t){s.delete(t)||s.add(t)}));var a=Ie([],Le(s)),l={type:o,columns:a,column:1===a.length?a[0]:null,source:t};e.eventService.dispatchEvent(l)}},a=function(t){var e=[];return r.forEach((function(o){var n=i[o.getColId()];n&&t(n,o)&&e.push(o)})),e},l=function(t){return t.getColId()};s(qt.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,e.rowGroupColumns,l),s(qt.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,e.pivotColumns,l);var u=a((function(t,e){var o=null!=t.aggFunc,n=o!=e.isValueActive(),i=o&&t.aggFunc!=e.getAggFunc();return n||i}));u.length>0&&e.dispatchColumnChangedEvent(qt.EVENT_COLUMN_VALUE_CHANGED,u,t);e.dispatchColumnResizedEvent(a((function(t,e){return t.width!=e.getActualWidth()})),!0,t);e.dispatchColumnPinnedEvent(a((function(t,e){return t.pinned!=e.getPinned()})),t);e.dispatchColumnVisibleEvent(a((function(t,e){return t.hide==e.isVisible()})),t);a((function(t,e){return t.sort!=e.getSort()||t.sortIndex!=e.getSortIndex()})).length>0&&e.sortController.dispatchSortChangedEvents(t),e.normaliseColumnMovedEventForColumnState(n,t)}},i.prototype.getCommonValue=function(t,e){if(t&&0!=t.length){for(var o=e(t[0]),n=1;n<t.length;n++)if(o!==e(t[n]))return;return o}},i.prototype.normaliseColumnMovedEventForColumnState=function(t,e){var o=this,n=this.getColumnState(),i={};n.forEach((function(t){return i[t.colId]=t}));var r={};t.forEach((function(t){i[t.colId]&&(r[t.colId]=!0)}));var s=t.filter((function(t){return r[t.colId]})),a=n.filter((function(t){return r[t.colId]})),l=[];a.forEach((function(t,e){var n=s&&s[e];if(n&&n.colId!==t.colId){var i=o.getGridColumn(n.colId);i&&l.push(i)}})),l.length&&this.dispatchColumnMovedEvent({movedColumns:l,source:e,finished:!0})},i.prototype.syncColumnWithStateItem=function(t,o,n,i,r,s,a){if(t){var l=function(t,i){var r={value1:void 0,value2:void 0},s=!1;return o&&(void 0!==o[t]&&(r.value1=o[t],s=!0),e(i)&&void 0!==o[i]&&(r.value2=o[i],s=!0)),!s&&n&&(void 0!==n[t]&&(r.value1=n[t]),e(i)&&void 0!==n[i]&&(r.value2=n[i])),r},u=l("hide").value1;void 0!==u&&t.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&t.setPinned(c);var p=this.columnUtils.calculateColMinWidth(t.getColDef()),d=l("flex").value1;if(void 0!==d&&t.setFlex(d),t.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&t.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&("desc"===f||"asc"===f?t.setSort(f,a):t.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&t.setSortIndex(g),!s&&t.isPrimary()){var v=l("aggFunc").value1;void 0!==v&&("string"==typeof v?(t.setAggFunc(v),t.isValueActive()||(t.setValueActive(!0,a),this.valueColumns.push(t))):(e(v)&&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."),t.isValueActive()&&(t.setValueActive(!1,a),mt(this.valueColumns,t))));var y=l("rowGroup","rowGroupIndex"),m=y.value1,C=y.value2;void 0===m&&void 0===C||("number"==typeof C||m?(t.isRowGroupActive()||(t.setRowGroupActive(!0,a),this.rowGroupColumns.push(t)),i&&"number"==typeof C&&(i[t.getId()]=C)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,a),mt(this.rowGroupColumns,t)));var w=l("pivot","pivotIndex"),S=w.value1,E=w.value2;void 0===S&&void 0===E||("number"==typeof E||S?(t.isPivotActive()||(t.setPivotActive(!0,a),this.pivotColumns.push(t)),r&&"number"==typeof E&&(r[t.getId()]=E)):t.isPivotActive()&&(t.setPivotActive(!1,a),mt(this.pivotColumns,t)))}}},i.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},i.prototype.getColumns=function(t,e){var o=[];return t&&t.forEach((function(t){var n=e(t);n&&o.push(n)})),o},i.prototype.getColumnWithValidation=function(t){if(null==t)return null;var e=this.getGridColumn(t);return e||console.warn("AG Grid: could not find column "+t),e},i.prototype.getPrimaryColumn=function(t){return this.primaryColumns?this.getColumn(t,this.primaryColumns,this.primaryColumnsMap):null},i.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns,this.gridColumnsMap)},i.prototype.lookupGridColumn=function(t){return this.gridColumnsMap[t]},i.prototype.getSecondaryColumn=function(t){return this.secondaryColumns?this.getColumn(t,this.secondaryColumns,this.secondaryColumnsMap):null},i.prototype.getColumn=function(t,e,o){if(!t)return null;if("string"==typeof t&&o[t])return o[t];for(var n=0;n<e.length;n++)if(this.columnsMatch(e[n],t))return e[n];return this.getAutoColumn(t)},i.prototype.getSourceColumnsForGroupColumn=function(t){var e=t.getColDef().showRowGroup;if(!e)return null;if(!0===e)return this.rowGroupColumns.slice(0);var o=this.getPrimaryColumn(e);return o?[o]:null},i.prototype.getAutoColumn=function(t){var n=this;return this.groupAutoColumns&&e(this.groupAutoColumns)&&!o(this.groupAutoColumns)&&this.groupAutoColumns.find((function(e){return n.columnsMatch(e,t)}))||null},i.prototype.columnsMatch=function(t,e){var o=t===e,n=t.getColDef()===e,i=t.getColId()==e;return o||n||i},i.prototype.getDisplayNameForColumn=function(t,e,o){if(void 0===o&&(o=!1),!t)return null;var n=this.getHeaderName(t.getColDef(),t,null,null,e);return o?this.wrapHeaderNameWithAggFunc(t,n):n},i.prototype.getDisplayNameForProvidedColumnGroup=function(t,e,o){var n=e?e.getColGroupDef():null;return n?this.getHeaderName(n,null,t,e,o):null},i.prototype.getDisplayNameForColumnGroup=function(t,e){return this.getDisplayNameForProvidedColumnGroup(t,t.getProvidedColumnGroup(),e)},i.prototype.getHeaderName=function(t,e,o,n,i){var r=t.headerValueGetter;if(r){var s={colDef:t,column:e,columnGroup:o,providedColumnGroup:n,location:i,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return"function"==typeof r?r(s):"string"==typeof r?this.expressionService.evaluate(r,s):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}return null!=t.headerName?t.headerName:t.field?ne(t.field):""},i.prototype.wrapHeaderNameWithAggFunc=function(t,o){if(this.gridOptionsService.is("suppressAggFuncInHeader"))return o;var n,i=t.getColDef().pivotValueColumn,r=null;if(e(i)){var s=this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn")&&1===this.valueColumns.length,a=void 0!==t.getColDef().pivotTotalColumnIds;if(s&&!a)return o;r=i?i.getAggFunc():null,n=!0}else{var l=t.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(r=t.getAggFunc(),n=!0):n=!1}if(n){var c="string"==typeof r?r:"func";return this.localeService.getLocaleTextFunc()(c,c)+"("+o+")"}return o},i.prototype.getColumnGroup=function(t,e){if(!t)return null;if(t instanceof Yt)return t;var o=this.getAllDisplayedTrees(),n="number"==typeof e,i=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof Yt){var r=o;(n?t===r.getGroupId()&&e===r.getPartId():t===r.getGroupId())&&(i=r)}})),i},i.prototype.isReady=function(){return this.ready},i.prototype.extractValueColumns=function(t,e){this.valueColumns=this.extractColumns(e,this.valueColumns,(function(e,o){return e.setValueActive(o,t)}),(function(){}),(function(){}),(function(t){var e=t.aggFunc;return null===e||""===e?null:void 0!==e?!!e:void 0}),(function(t){return null!=t.initialAggFunc&&""!=t.initialAggFunc})),this.valueColumns.forEach((function(t){var e=t.getColDef();null!=e.aggFunc&&""!=e.aggFunc?t.setAggFunc(e.aggFunc):t.getAggFunc()||t.setAggFunc(e.initialAggFunc)}))},i.prototype.extractRowGroupColumns=function(t,e){this.rowGroupColumns=this.extractColumns(e,this.rowGroupColumns,(function(e,o){return e.setRowGroupActive(o,t)}),(function(t){return t.rowGroupIndex}),(function(t){return t.initialRowGroupIndex}),(function(t){return t.rowGroup}),(function(t){return t.initialRowGroup}))},i.prototype.extractColumns=function(t,e,o,n,i,a,l){void 0===t&&(t=[]),void 0===e&&(e=[]);var u=[],c=[];(this.primaryColumns||[]).forEach((function(o){var p=t.indexOf(o)<0,d=o.getColDef(),h=s(a(d)),f=s(l(d)),g=r(n(d)),v=r(i(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==v)&&(null!=v&&v>=0):e.indexOf(o)>=0)&&((p?null!=g||null!=v:null!=g)?u.push(o):c.push(o))}));var p=function(t){var e=n(t.getColDef()),o=i(t.getColDef());return null!=e?e:o};u.sort((function(t,e){var o=p(t),n=p(e);return o===n?0:o<n?-1:1}));var d=[].concat(u);return e.forEach((function(t){c.indexOf(t)>=0&&d.push(t)})),c.forEach((function(t){d.indexOf(t)<0&&d.push(t)})),e.forEach((function(t){d.indexOf(t)<0&&o(t,!1)})),d.forEach((function(t){e.indexOf(t)<0&&o(t,!0)})),d},i.prototype.extractPivotColumns=function(t,e){this.pivotColumns=this.extractColumns(e,this.pivotColumns,(function(e,o){return e.setPivotActive(o,t)}),(function(t){return t.pivotIndex}),(function(t){return t.initialPivotIndex}),(function(t){return t.pivot}),(function(t){return t.initialPivot}))},i.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var e=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof pt){var o=t.getColGroupDef(),n={groupId:t.getGroupId(),open:o?o.openByDefault:void 0};e.push(n)}})),this.setColumnGroupState(e,t)},i.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(e){e instanceof pt&&t.push({groupId:e.getGroupId(),open:e.isExpanded()})})),t},i.prototype.setColumnGroupState=function(t,e){var o=this;void 0===e&&(e="api"),this.columnAnimationService.start();var n=[];t.forEach((function(t){var e=t.groupId,i=t.open,r=o.getProvidedColumnGroup(e);r&&r.isExpanded()!==i&&(o.logger.log("columnGroupOpened("+r.getGroupId()+","+i+")"),r.setExpanded(i),n.push(r))})),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e),n.forEach((function(t){var e={type:qt.EVENT_COLUMN_GROUP_OPENED,columnGroup:t};o.eventService.dispatchEvent(e)})),this.columnAnimationService.finish()},i.prototype.setColumnGroupOpened=function(t,e,o){var n;void 0===o&&(o="api"),n=t instanceof pt?t.getId():t||"",this.setColumnGroupState([{groupId:n,open:e}],o)},i.prototype.getProvidedColumnGroup=function(t){"string"!=typeof t&&console.error("AG Grid: group key must be a string");var e=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){o instanceof pt&&o.getId()===t&&(e=o)})),e},i.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&o(this.secondaryColumns)?this.gridColumns.filter((function(e){var o=t.groupAutoColumns&&Rt(t.groupAutoColumns,e),n=t.valueColumns&&Rt(t.valueColumns,e);return o||n})):this.gridColumns.filter((function(e){return t.groupAutoColumns&&Rt(t.groupAutoColumns,e)||e.isVisible()}))},i.prototype.checkColSpanActiveInCols=function(t){var o=!1;return t.forEach((function(t){e(t.getColDef().colSpan)&&(o=!0)})),o},i.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};this.gridColumns.forEach((function(o){var n=o.getColDef(),i=n.showRowGroup;n&&e(i)&&(t.groupDisplayColumns.push(o),"string"==typeof i?t.groupDisplayColumnsMap[i]=o:!0===i&&t.getRowGroupColumns().forEach((function(e){t.groupDisplayColumnsMap[e.getId()]=o})))}))},i.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},i.prototype.getGroupDisplayColumnForGroup=function(t){return this.groupDisplayColumnsMap[t]},i.prototype.updateDisplayedColumns=function(t){var e=this.calculateColumnsForDisplay();this.buildDisplayedTrees(e),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},i.prototype.isSecondaryColumnsPresent=function(){return e(this.secondaryColumns)},i.prototype.setSecondaryColumns=function(t,e){var n=this;void 0===e&&(e="api");var i=t&&t.length>0;if(i||!o(this.secondaryColumns)){if(i){this.processSecondaryColumnDefinitions(t);var r=this.columnFactory.createColumnTree(t,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,r.columnTree),this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(t){return n.secondaryColumnsMap[t.getId()]=t})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(e)}},i.prototype.processSecondaryColumnDefinitions=function(t){var o=this.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),n=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(o||n){var i=function(t){t.forEach((function(t){if(e(t.children)){var r=t;n&&n(r),i(r.children)}else{o&&o(t)}}))};t&&i(t)}},i.prototype.updateGridColumns=function(){var t,e=this,o=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var n=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,n&&(t=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,t=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&t){var i=se(this.groupAutoColumns.map((function(t){return[t,!0]})));t=t.filter((function(t){return!i.has(t)})),t=Ie(Ie([],Le(this.groupAutoColumns)),Le(t))}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(t),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive(),!gt(o,this.gridBalancedTree)){var r={type:qt.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(r)}},i.prototype.setAutoHeightActive=function(){if((this.autoHeightActive=this.gridColumns.filter((function(t){return t.isAutoHeight()})).length>0,this.autoHeightActive)&&(this.autoHeightActiveAtLeastOnce=!0,!(this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide")))){T((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}},i.prototype.orderGridColsLike=function(t){if(!o(t)){var e=se(t.map((function(t,e){return[t,e]}))),n=!0;if(this.gridColumns.forEach((function(t){e.has(t)&&(n=!1)})),!n){var i=se(this.gridColumns.map((function(t){return[t,!0]}))),r=t.filter((function(t){return i.has(t)})),s=se(r.map((function(t){return[t,!0]}))),a=this.gridColumns.filter((function(t){return!s.has(t)})),l=r.slice();a.forEach((function(t){var e=t.getOriginalParent();if(e){for(var o=[];!o.length&&e;){e.getLeafColumns().forEach((function(t){var e=l.indexOf(t)>=0,n=o.indexOf(t)<0;e&&n&&o.push(t)})),e=e.getOriginalParent()}if(o.length){var n=o.map((function(t){return l.indexOf(t)})),i=Math.max.apply(Math,Ie([],Le(n)));St(l,t,i+1)}else l.push(t)}else l.push(t)})),this.gridColumns=l}}},i.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},i.prototype.refreshQuickFilterColumns=function(){var t,e=null!==(t=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)&&void 0!==t?t:[];this.groupAutoColumns&&(e=e.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.is("includeHiddenColumnsInQuickFilter")?e:e.filter((function(t){return t.isVisible()||t.isRowGroupActive()}))},i.prototype.placeLockedColumns=function(t){var e=[],o=[],n=[];return t.forEach((function(t){var i=t.getColDef().lockPosition;"right"===i?n.push(t):"left"===i||!0===i?e.push(t):o.push(t)})),Ie(Ie(Ie([],Le(e)),Le(o)),Le(n))},i.prototype.addAutoGroupToGridColumns=function(){if(o(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,t),this.groupAutoColsBalancedTree=t,this.gridBalancedTree=t.concat(this.gridBalancedTree)},i.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},i.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(t),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var e={type:qt.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)},i.prototype.deriveDisplayedColumns=function(t){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(t),this.displayedAutoHeightCols=this.displayedColumns.filter((function(t){return t.isAutoHeight()}))},i.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},i.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},i.prototype.joinDisplayedColumns=function(){this.gridOptionsService.is("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},i.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},i.prototype.setLeftValuesOfColumns=function(t){var e=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),n=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(i){if(n){var r=e.getWidthOfColsInList(i);i.forEach((function(e){r-=e.getActualWidth(),e.setLeft(r,t)}))}else{var s=0;i.forEach((function(e){e.setLeft(s,t),s+=e.getActualWidth()}))}Ct(o,i)})),o.forEach((function(e){e.setLeft(null,t)}))}},i.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(t){t.forEach((function(t){t instanceof Yt&&t.checkLeft()}))}))},i.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,e){e.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof ut&&e.push(t)}))},i.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)},i.prototype.getVirtualHeaderGroupRow=function(t,e){var n;switch(t){case"left":n=this.viewportRowLeft[e];break;case"right":n=this.viewportRowRight[e];break;default:n=this.viewportRowCenter[e]}return o(n)&&(n=[]),n},i.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var t={};this.headerViewportColumns.forEach((function(e){return t[e.getId()]=!0}));var e=function(o,n,i){for(var r=!1,s=0;s<o.length;s++){var a=o[s],l=!1;if(a instanceof ut)l=!0===t[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=e(u,n,i+1))}l&&(r=!0,n[i]||(n[i]=[]),n[i].push(a))}return r};e(this.displayedTreeLeft,this.viewportRowLeft,0),e(this.displayedTreeRight,this.viewportRowRight,0),e(this.displayedTreeCentre,this.viewportRowCenter,0)},i.prototype.extractViewport=function(){this.extractViewportColumns();var t=this.viewportColumns.map((function(t){return t.getId()+"-"+(t.getPinned()||"normal")})).join("#"),e=this.viewportColumnsHash!==t;return e&&(this.viewportColumnsHash=t,this.calculateHeaderRows()),e},i.prototype.refreshFlexedColumns=function(t){var o;void 0===t&&(t={});var n=t.source?t.source:"flex";if(null!=t.viewportWidth&&(this.flexViewportWidth=t.viewportWidth),!this.flexViewportWidth)return[];var i=-1;if(t.resizingCols)for(var r=new Set(t.resizingCols),s=this.displayedColumnsCenter,a=s.length-1;a>=0;a--)if(r.has(s[a])){i=a;break}var l=0,u=[],c=0,p=0;for(a=0;a<this.displayedColumnsCenter.length;a++){this.displayedColumnsCenter[a].getFlex()&&a>i?(u.push(this.displayedColumnsCenter[a]),p+=this.displayedColumnsCenter[a].getFlex(),c+=null!==(o=this.displayedColumnsCenter[a].getMinWidth())&&void 0!==o?o:0):l+=this.displayedColumnsCenter[a].getActualWidth()}if(!u.length)return[];var d=[];l+c>this.flexViewportWidth&&(u.forEach((function(t){var e;return t.setActualWidth(null!==(e=t.getMinWidth())&&void 0!==e?e:0,n)})),d=u,u=[]);var h,f=[];t:for(;;){var g=(h=this.flexViewportWidth-l)/p;for(a=0;a<u.length;a++){var v=u[a],y=g*v.getFlex(),m=0,C=v.getMinWidth(),w=v.getMaxWidth();if(e(C)&&y<C?m=C:e(w)&&y>w&&(m=w),m){v.setActualWidth(m,n),yt(u,v),p-=v.getFlex(),d.push(v),l+=v.getActualWidth();continue t}f[a]=Math.round(y)}break}var S=h;return u.forEach((function(t,e){t.setActualWidth(Math.min(f[e],S),n),d.push(t),S-=f[e]})),t.skipSetLeft||this.setLeftValues(n),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.dispatchColumnResizedEvent(d,!0,n,u),u},i.prototype.sizeColumnsToFit=function(t,o,n,i){var r,s,a,l,u,c=this;if(void 0===o&&(o="sizeColumnsToFit"),this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return c.sizeColumnsToFit(t,o,n,i)}));else{var p={};i&&(null===(r=null==i?void 0:i.columnLimits)||void 0===r||r.forEach((function(t){var e=t.key,o=Fe(t,["key"]);p["string"==typeof e?e:e.getColId()]=o})));var d=this.getAllDisplayedColumns(),h=t===this.getWidthOfColsInList(d);if(!(t<=0||!d.length||h)){var f=[],g=[];d.forEach((function(t){!0===t.getColDef().suppressSizeToFit?g.push(t):f.push(t)}));var v=f.slice(0),y=!1,m=function(t){mt(f,t),g.push(t)};for(f.forEach((function(t){var e,n;t.resetActualWidth(o);var r=null==p?void 0:p[t.getId()],s=null!==(e=null==r?void 0:r.minWidth)&&void 0!==e?e:null==i?void 0:i.defaultMinWidth,a=null!==(n=null==r?void 0:r.maxWidth)&&void 0!==n?n:null==i?void 0:i.defaultMaxWidth,l=t.getActualWidth();"number"==typeof s&&l<s?t.setActualWidth(s,o,!0):"number"==typeof a&&l>a&&t.setActualWidth(a,o,!0)}));!y;){y=!0;var C=t-this.getWidthOfColsInList(g);if(C<=0)f.forEach((function(t){var e,n,r=null!==(n=null===(e=null==p?void 0:p[t.getId()])||void 0===e?void 0:e.minWidth)&&void 0!==n?n:null==i?void 0:i.defaultMinWidth;"number"!=typeof r?t.setMinimum(o):t.setActualWidth(r,o,!0)}));else for(var w=C/this.getWidthOfColsInList(f),S=C,E=f.length-1;E>=0;E--){var R=f[E],b=null==p?void 0:p[R.getId()],O=null!==(s=null==b?void 0:b.minWidth)&&void 0!==s?s:null==i?void 0:i.defaultMinWidth,T=null!==(a=null==b?void 0:b.maxWidth)&&void 0!==a?a:null==i?void 0:i.defaultMaxWidth,D=null!==(l=R.getMinWidth())&&void 0!==l?l:0,P=null!==(u=R.getMaxWidth())&&void 0!==u?u:Number.MAX_VALUE,_="number"==typeof O&&O>D?O:R.getMinWidth(),A="number"==typeof T&&T<P?T:R.getMaxWidth(),F=Math.round(R.getActualWidth()*w);e(_)&&F<_?(F=_,m(R),y=!1):e(A)&&F>A?(F=A,m(R),y=!1):0===E&&(F=S),R.setActualWidth(F,o,!0),S-=F}}v.forEach((function(t){t.fireColumnWidthChangedEvent(o)})),this.setLeftValues(o),this.updateBodyWidths(),n||this.dispatchColumnResizedEvent(v,!0,o)}}},i.prototype.buildDisplayedTrees=function(t){var e=[],o=[],n=[];t.forEach((function(t){switch(t.getPinned()){case"left":e.push(t);break;case"right":o.push(t);break;default:n.push(t)}}));var i=new Qt;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(e,i,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,i,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(n,i,null,this.displayedTreeCentre),this.updateDisplayedMap()},i.prototype.updateDisplayedMap=function(){var t=this;this.displayedColumnsAndGroupsMap={};var e=function(e){t.displayedColumnsAndGroupsMap[e.getUniqueId()]=e};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,e)},i.prototype.isDisplayed=function(t){return this.displayedColumnsAndGroupsMap[t.getUniqueId()]===t},i.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var t=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(t,(function(t){t instanceof Yt&&t.calculateDisplayedColumns()}))},i.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},i.prototype.createGroupAutoColumnsIfNeeded=function(){var t=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),o=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.gridOptionsService.is("treeData"))&&!o&&!e){var n=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);if(!this.autoColsEqual(n,this.groupAutoColumns)||t)return this.groupAutoColumns=n,!0}else this.groupAutoColumns=null;return!1},i.prototype.isGroupSuppressAutoColumn=function(){var t=this.gridOptionsService.get("groupDisplayType");if(!!t&&De("custom",t))return!0;var e,o,n,i=this.gridOptionsService.get("treeDataDisplayType");return!!i&&(e="custom",(n=["auto","custom"]).indexOf(o=i)<0?(console.warn("AG Grid: '"+o+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):o===e)},i.prototype.autoColsEqual=function(t,e){return gt(t,e,(function(t,e){return t.getColId()===e.getColId()}))},i.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,e){return t+e.getActualWidth()}),0)},i.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},i.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsService.is("enableRtl"),e=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&e.reverse();for(var o=0;o<e.length;o++){var n=this[e[o]]();if(n.length)return t?ft(n):n[0]}return null},i.prototype.setColumnHeaderHeight=function(t,e){if(t.setAutoHeaderHeight(e)){var o={type:qt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:t,columns:[t],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(o)}},i.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},i.prototype.getColumnHeaderRowHeight=function(){var t=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),e=this.getAllDisplayedColumns().filter((function(t){return t.isAutoHeaderHeight()})).map((function(t){return t.getAutoHeaderHeight()||0}));return Math.max.apply(Math,Ie([t],Le(e)))},i.prototype.getHeaderHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("headerHeight"))&&void 0!==t?t:this.environment.getFromTheme(25,"headerHeight")},i.prototype.getFloatingFiltersHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("floatingFiltersHeight"))&&void 0!==t?t:this.getHeaderHeight()},i.prototype.getGroupHeaderHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("groupHeaderHeight"))&&void 0!==t?t:this.getHeaderHeight()},i.prototype.getPivotHeaderHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("pivotHeaderHeight"))&&void 0!==t?t:this.getHeaderHeight()},i.prototype.getPivotGroupHeaderHeight=function(){var t;return null!==(t=this.gridOptionsService.getNum("pivotGroupHeaderHeight"))&&void 0!==t?t:this.getGroupHeaderHeight()},i.prototype.queueResizeOperations=function(){this.shouldQueueResizeOperations=!0},i.prototype.processResizeOperations=function(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach((function(t){return t()})),this.resizeOperationQueue=[]},i.prototype.resetColumnDefIntoColumn=function(t){var e=t.getUserProvidedColDef();if(!e)return!1;var o=this.columnFactory.addColumnDefaultAndTypes(e,t.getColId());return t.setColDef(o,e),!0},i.prototype.generateColumnStateForRowGroupAndPivotIndexes=function(t,e){var o=this,n={},i=function(t,e,i,r,s,a){if(!e.length||!o.primaryColumns)return[];for(var l=Object.keys(t),u=new Set(l),c=new Set(l),p=new Set(e.map((function(t){var e=t.getColId();return c.delete(e),e})).concat(l)),d=[],h={},f=0,g=0;g<o.primaryColumns.length;g++){var v=o.primaryColumns[g].getColId();p.has(v)&&(d.push(v),h[v]=f++)}var y=1e3,m=!1,C=0,w=function(e){for(var o=h[e],n=C;n<o;n++){var i=d[n];c.has(i)&&(t[i][s]=y++,c.delete(i))}C=o};e.forEach((function(e){var o=e.getColId();if(u.has(o))w(o),t[o][s]=y++;else{var l=e.getColDef();if(null===l[s]||void 0===l[s]&&null==l[a]){if(!m)l[i]||void 0===l[i]&&l[r]?w(o):(c.forEach((function(e){t[e][s]=y+h[e]})),y+=d.length,m=!0);n[o]||(n[o]={colId:o}),n[o][s]=y++}}}))};return i(t,this.rowGroupColumns,"rowGroup","initialRowGroup","rowGroupIndex","initialRowGroupIndex"),i(e,this.pivotColumns,"pivot","initialPivot","pivotIndex","initialPivotIndex"),Object.values(n)},_e([X("expressionService")],i.prototype,"expressionService",void 0),_e([X("columnFactory")],i.prototype,"columnFactory",void 0),_e([X("displayedGroupCreator")],i.prototype,"displayedGroupCreator",void 0),_e([X("ctrlsService")],i.prototype,"ctrlsService",void 0),_e([X("autoWidthCalculator")],i.prototype,"autoWidthCalculator",void 0),_e([X("columnUtils")],i.prototype,"columnUtils",void 0),_e([X("columnAnimationService")],i.prototype,"columnAnimationService",void 0),_e([X("autoGroupColService")],i.prototype,"autoGroupColService",void 0),_e([J("aggFuncService")],i.prototype,"aggFuncService",void 0),_e([J("valueCache")],i.prototype,"valueCache",void 0),_e([J("animationFrameService")],i.prototype,"animationFrameService",void 0),_e([X("sortController")],i.prototype,"sortController",void 0),_e([X("columnDefFactory")],i.prototype,"columnDefFactory",void 0),_e([Y],i.prototype,"init",null),_e([q],i.prototype,"destroyColumns",null),_e([Ae(0,$("loggerFactory"))],i.prototype,"setBeans",null),i=_e([Q("columnModel")],i)}(Bt),Ge=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xe=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ve=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ge(e,t),e.prototype.calculateColMinWidth=function(t){return null!=t.minWidth?t.minWidth:this.environment.getMinColWidth()},e.prototype.calculateColMaxWidth=function(t){return null!=t.maxWidth?t.maxWidth:Number.MAX_SAFE_INTEGER},e.prototype.calculateColInitialWidth=function(t){var e,o=this.calculateColMinWidth(t),n=this.calculateColMaxWidth(t),i=r(t.width),s=r(t.initialWidth);return e=null!=i?i:null!=s?s:200,Math.max(Math.min(e,n),o)},e.prototype.getOriginalPathForColumn=function(t,e){var o=[],n=!1,i=function(e,r){for(var s=0;s<e.length;s++){if(n)return;var a=e[s];if(a instanceof pt)i(a.getChildren(),r+1),o[r]=a;else a===t&&(n=!0)}};return i(e,0),n?o:null},e.prototype.depthFirstOriginalTreeSearch=function(t,e,o){var n=this;e&&e.forEach((function(e){e instanceof pt&&n.depthFirstOriginalTreeSearch(e,e.getChildren(),o),o(e,t)}))},e.prototype.depthFirstAllColumnTreeSearch=function(t,e){var o=this;t&&t.forEach((function(t){t instanceof Yt&&o.depthFirstAllColumnTreeSearch(t.getChildren(),e),e(t)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(t,e){var o=this;t&&t.forEach((function(t){t instanceof Yt&&o.depthFirstDisplayedColumnTreeSearch(t.getDisplayedChildren(),e),e(t)}))},e=xe([Q("columnUtils")],e)}(Bt),He=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ke=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Be=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return He(o,t),o.prototype.createDisplayedGroups=function(t,e,o,n){for(var i=this,r=this.mapOldGroupsById(n),s=[],a=t,l=function(){var t=a;a=[];for(var n=0,l=function(l){var u=n;n=l;var c=t[u],p=(c instanceof Yt?c.getProvidedColumnGroup():c).getOriginalParent();if(null!=p){var d=i.createColumnGroup(p,e,r,o);for(h=u;h<l;h++)d.addChild(t[h]);a.push(d)}else for(var h=u;h<l;h++)s.push(t[h])},u=1;u<t.length;u++){var c=t[u],p=(c instanceof Yt?c.getProvidedColumnGroup():c).getOriginalParent(),d=t[n];p!==(d instanceof Yt?d.getProvidedColumnGroup():d).getOriginalParent()&&l(u)}n<t.length&&l(t.length)};a.length;)l();return this.setupParentsIntoColumns(s,null),s},o.prototype.createColumnGroup=function(t,o,n,i){var r=t.getGroupId(),s=o.getInstanceIdForKey(r),a=n[Yt.createUniqueId(r,s)];return a&&a.getProvidedColumnGroup()!==t&&(a=null),e(a)?a.reset():(a=new Yt(t,r,s,i),this.context.createBean(a)),a},o.prototype.mapOldGroupsById=function(t){var e={},o=function(t){t.forEach((function(t){if(t instanceof Yt){var n=t;e[t.getUniqueId()]=n,o(n.getChildren())}}))};return t&&o(t),e},o.prototype.setupParentsIntoColumns=function(t,e){var o=this;t.forEach((function(t){if(t.setParent(e),t instanceof Yt){var n=t;o.setupParentsIntoColumns(n.getChildren(),n)}}))},o=ke([Q("displayedGroupCreator")],o)}(Bt),je=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),We=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ue=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}return je(e,t),e.prototype.setupComponents=function(t){var e=this;t&&t.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(t){var e=t.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[e]=t.componentClass},e.prototype.getComponentClass=function(t){return this.componentsMappedByName[t]},e=We([Q("agStackComponentsRegistry")],e)}(Bt);function ze(t,e,o){null==o||""==o?Ye(t,e):Ke(t,e,o)}function Ke(t,e,o){t.setAttribute(qe(e),o.toString())}function Ye(t,e){t.removeAttribute(qe(e))}function qe(t){return"aria-"+t}function Qe(t,e){e?t.setAttribute("role",e):t.removeAttribute("role")}function Xe(t){return"asc"===t?"ascending":"desc"===t?"descending":"mixed"===t?"other":"none"}function Je(t){return parseInt(t.getAttribute("aria-level"),10)}function Ze(t){return parseInt(t.getAttribute("aria-posinset"),10)}function $e(t,e){ze(t,"label",e)}function to(t,e){ze(t,"labelledby",e)}function eo(t,e){ze(t,"description",e)}function oo(t,e){ze(t,"describedby",e)}function no(t,e){ze(t,"live",e)}function io(t,e){ze(t,"level",e)}function ro(t,e){ze(t,"disabled",e)}function so(t,e){ze(t,"hidden",e)}function ao(t,e){ze(t,"activedescendant",e)}function lo(t,e){Ke(t,"expanded",e)}function uo(t){Ye(t,"expanded")}function co(t,e){Ke(t,"setsize",e)}function po(t,e){Ke(t,"posinset",e)}function ho(t,e){Ke(t,"multiselectable",e)}function fo(t,e){Ke(t,"rowcount",e)}function go(t,e){Ke(t,"rowindex",e)}function vo(t,e){Ke(t,"colcount",e)}function yo(t,e){Ke(t,"colindex",e)}function mo(t,e){Ke(t,"colspan",e)}function Co(t,e){Ke(t,"sort",e)}function wo(t){Ye(t,"sort")}function So(t,e){ze(t,"selected",e)}function Eo(t,e){Ke(t,"checked",void 0===e?"mixed":e)}function Ro(t,e){ze(t,"controls",e.id),to(e,t.id)}function bo(t,e){return void 0===e?t("ariaIndeterminate","indeterminate"):!0===e?t("ariaChecked","checked"):t("ariaUnchecked","unchecked")}var Oo,To,Do,Po,_o,Ao,Fo,Lo,Io=Object.freeze({__proto__:null,setAriaRole:Qe,getAriaSortState:Xe,getAriaLevel:Je,getAriaPosInSet:Ze,getAriaDescribedBy:function(t){return t.getAttribute("aria-describedby")||""},setAriaLabel:$e,setAriaLabelledBy:to,setAriaDescription:eo,setAriaDescribedBy:oo,setAriaLive:no,setAriaLevel:io,setAriaDisabled:ro,setAriaHidden:so,setAriaActiveDescendant:ao,setAriaExpanded:lo,removeAriaExpanded:uo,setAriaSetSize:co,setAriaPosInSet:po,setAriaMultiSelectable:ho,setAriaRowCount:fo,setAriaRowIndex:go,setAriaColCount:vo,setAriaColIndex:yo,setAriaColSpan:mo,setAriaSort:Co,removeAriaSort:wo,setAriaSelected:So,setAriaChecked:Eo,setAriaControls:Ro,getAriaCheckboxStateName:bo});function No(){return void 0===Oo&&(Oo=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Oo}function Mo(){if(void 0===To)if(No()){var t=navigator.userAgent.match(/version\/(\d+)/i);t&&(To=null!=t[1]?parseFloat(t[1]):0)}else To=0;return To}function Go(){if(void 0===Do){var t=window;Do=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Do}function xo(){return void 0===Po&&(Po=/(firefox)/i.test(navigator.userAgent)),Po}function Vo(){return void 0===_o&&(_o=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),_o}function Ho(){return void 0===Ao&&(Ao=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),Ao}function ko(){return!No()||Mo()>=15}function Bo(t){if(!t)return null;var e=t.tabIndex,o=t.getAttribute("tabIndex");return-1!==e||null!==o&&(""!==o||xo())?e.toString():null}function jo(){if(!document.body)return-1;var t=1e6,e=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){var n=2*t;if(o.style.height=n+"px",n>e||o.clientHeight!==n)break;t=n}return document.body.removeChild(o),t}function Wo(){var t,e,o;return null!==(e=null===(t=document.body)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientWidth)||-1}function Uo(){var t,e,o;return null!==(e=null===(t=document.body)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientHeight)||-1}function zo(){return null==Lo&&Ko(),Lo}function Ko(){var t=document.body,e=document.createElement("div");e.style.width=e.style.height="100px",e.style.opacity="0",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",e.style.position="absolute",t.appendChild(e);var o=e.offsetWidth-e.clientWidth;0===o&&0===e.clientWidth&&(o=null),e.parentNode&&e.parentNode.removeChild(e),null!=o&&(Lo=o,Fo=0===o)}function Yo(){return null==Fo&&Ko(),Fo}var qo=Object.freeze({__proto__:null,isBrowserSafari:No,getSafariVersion:Mo,isBrowserChrome:Go,isBrowserFirefox:xo,isMacOsUserAgent:Vo,isIOSUserAgent:Ho,browserSupportsPreventScroll:ko,getTabIndex:Bo,getMaxDivHeight:jo,getBodyWidth:Wo,getBodyHeight:Uo,getScrollbarWidth:zo,isInvisibleScrollbar:Yo});function Qo(t,e){return t.toString().padStart(e,"0")}function Xo(t,e){for(var o=[],n=t;n<=e;n++)o.push(n);return o}function Jo(t,e,o){return"number"!=typeof t?"":t.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+e)}var Zo=Object.freeze({__proto__:null,padStartWidthZeros:Qo,createArrayOfNumbers:Xo,cleanNumber:function(t){return"string"==typeof t&&(t=parseInt(t,10)),"number"==typeof t?Math.floor(t):null},decToHex:function(t,e){for(var o="",n=0;n<e;n++)o+=String.fromCharCode(255&t),t>>>=8;return o},formatNumberTwoDecimalPlacesAndCommas:function(t,e,o){return"number"!=typeof t?"":Jo(Math.round(100*t)/100,e,o)},formatNumberCommas:Jo,sum:function(t){return null==t?null:t.reduce((function(t,e){return t+e}),0)},zeroOrGreater:function(t,e){return t>=0?t:e},oneOrGreater:function(t,e){var o=parseInt(t,10);return!isNaN(o)&&isFinite(o)&&o>0?o:e}}),$o=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s};function tn(t,e,o){if(void 0===e&&(e=!0),void 0===o&&(o="-"),!t)return null;var n=[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return Qo(t,2)})).join(o);return e&&(n+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return Qo(t,2)})).join(":")),n}var en=function(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function on(t,e){void 0===e&&(e="YYYY-MM-DD");var o=Qo(t.getFullYear(),4),n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r={YYYY:function(){return o.slice(o.length-4,o.length)},YY:function(){return o.slice(o.length-2,o.length)},Y:function(){return""+t.getFullYear()},MMMM:function(){return n[t.getMonth()]},MMM:function(){return n[t.getMonth()].slice(0,3)},MM:function(){return Qo(t.getMonth()+1,2)},Mo:function(){return""+(t.getMonth()+1)+en(t.getMonth()+1)},M:function(){return""+(t.getMonth()+1)},Do:function(){return""+t.getDate()+en(t.getDate())},DD:function(){return Qo(t.getDate(),2)},D:function(){return""+t.getDate()},dddd:function(){return i[t.getDay()]},ddd:function(){return i[t.getDay()].slice(0,3)},dd:function(){return i[t.getDay()].slice(0,2)},do:function(){return""+t.getDay()+en(t.getDay())},d:function(){return""+t.getDay()}},s=new RegExp(Object.keys(r).join("|"),"g");return e.replace(s,(function(t){return t in r?r[t]():t}))}function nn(t){if(!t)return null;var e=$o(t.split(" "),2),o=e[0],n=e[1];if(!o)return null;var i=o.split("-").map((function(t){return parseInt(t,10)}));if(3!==i.filter((function(t){return!isNaN(t)})).length)return null;var r=$o(i,3),s=r[0],a=r[1],l=r[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!n||"00:00:00"===n)return u;var c=$o(n.split(":").map((function(t){return parseInt(t,10)})),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var rn,sn=Object.freeze({__proto__:null,serialiseDate:tn,dateToFormattedString:on,parseDateTimeFromString:nn}),an=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ln=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s};function un(t,e,o){for(var n=t.parentElement,i=n&&n.firstChild;i;)e&&i.classList.toggle(e,i===t),o&&i.classList.toggle(o,i!==t),i=i.nextSibling}var cn=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function pn(t){var e=Element.prototype.matches||Element.prototype.msMatchesSelector,o=e.call(t,"input, select, button, textarea"),n=e.call(t,cn),i=Dn(t);return o&&!n&&i}function dn(t,e,o){void 0===o&&(o={});var n=o.skipAriaHidden;t.classList.toggle("ag-hidden",!e),n||so(t,!e)}function hn(t,e,o){void 0===o&&(o={});var n=o.skipAriaHidden;t.classList.toggle("ag-invisible",!e),n||so(t,!e)}function fn(t,e){var o=e?function(t){return t.setAttribute("disabled","")}:function(t){return t.removeAttribute("disabled")};o(t),zn(t.querySelectorAll("input"),(function(t){return o(t)}))}function gn(t,e,o){for(var n=0;t;){if(t.classList.contains(e))return!0;if(t=t.parentElement,"number"==typeof o){if(++n>o)break}else if(t===o)break}return!1}function vn(t){var e=window.getComputedStyle(t),o=e.height,n=e.width,i=e.borderTopWidth,r=e.borderRightWidth,s=e.borderBottomWidth,a=e.borderLeftWidth,l=e.paddingTop,u=e.paddingRight,c=e.paddingBottom,p=e.paddingLeft,d=e.marginTop,h=e.marginRight,f=e.marginBottom,g=e.marginLeft,v=e.boxSizing;return{height:parseFloat(o),width:parseFloat(n),borderTopWidth:parseFloat(i),borderRightWidth:parseFloat(r),borderBottomWidth:parseFloat(s),borderLeftWidth:parseFloat(a),paddingTop:parseFloat(l),paddingRight:parseFloat(u),paddingBottom:parseFloat(c),paddingLeft:parseFloat(p),marginTop:parseFloat(d),marginRight:parseFloat(h),marginBottom:parseFloat(f),marginLeft:parseFloat(g),boxSizing:v}}function yn(t){var e=vn(t);return"border-box"===e.boxSizing?e.height-e.paddingTop-e.paddingBottom:e.height}function mn(t){var e=vn(t);return"border-box"===e.boxSizing?e.width-e.paddingLeft-e.paddingRight:e.width}function Cn(t){var e=vn(t),o=e.marginBottom+e.marginTop;return Math.ceil(t.offsetHeight+o)}function wn(t){var e=vn(t),o=e.marginLeft+e.marginRight;return Math.ceil(t.offsetWidth+o)}function Sn(t){var e=t.getBoundingClientRect(),o=vn(t),n=o.borderTopWidth,i=o.borderLeftWidth,r=o.borderRightWidth,s=o.borderBottomWidth;return{top:e.top+(n||0),left:e.left+(i||0),right:e.right+(r||0),bottom:e.bottom+(s||0)}}function En(){if("boolean"==typeof rn)return rn;var t=document.createElement("div");return t.style.direction="rtl",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="0px",t.style.overflow="hidden",t.dir="rtl",t.innerHTML='<div style="width: 2px">\n            <span style="display: inline-block; width: 1px"></span>\n            <span style="display: inline-block; width: 1px"></span>\n        </div>',document.body.appendChild(t),t.scrollLeft=1,rn=0===Math.floor(t.scrollLeft),document.body.removeChild(t),rn}function Rn(t,e){var o=t.scrollLeft;return e&&(o=Math.abs(o),Go()&&!En()&&(o=t.scrollWidth-t.clientWidth-o)),o}function bn(t,e,o){o&&(En()?e*=-1:(No()||Go())&&(e=t.scrollWidth-t.clientWidth-e)),t.scrollLeft=e}function On(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function Tn(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Dn(t){return null!==t.offsetParent}function Pn(t){var e=document.createElement("div");return e.innerHTML=(t||"").trim(),e.firstChild}function _n(t){return t&&t.clientHeight?t.clientHeight:0}function An(t){return t&&t.clientWidth?t.clientWidth:0}function Fn(t,e,o){if(!o||o.nextSibling!==e){var n=document.activeElement,i=e.contains(n);o?o.nextSibling?t.insertBefore(e,o.nextSibling):t.appendChild(e):t.firstChild&&t.firstChild!==e&&t.insertAdjacentElement("afterbegin",e),i&&n&&ko()&&n.focus({preventScroll:!0})}}function Ln(t,e){for(var o=0;o<e.length;o++){var n=e[o],i=t.children[o];i!==n&&t.insertBefore(n,i)}}function In(t,e,o){o?o.insertAdjacentElement("afterend",e):t.firstChild?t.insertAdjacentElement("afterbegin",e):t.appendChild(e)}function Nn(t,e){var o,n;if(e)try{for(var i=an(Object.entries(e)),r=i.next();!r.done;r=i.next()){var s=ln(r.value,2),a=s[0],l=s[1];if(a&&a.length&&null!=l){var u=ie(a),c=l.toString(),p=c.replace(/\s*!important/g,""),d=p.length!=c.length?"important":void 0;t.style.setProperty(u,p,d)}}}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}}function Mn(t){return t.clientWidth<t.scrollWidth}function Gn(t){return t.clientHeight<t.scrollHeight}function xn(t,e){"flex"===e?(t.style.removeProperty("width"),t.style.removeProperty("minWidth"),t.style.removeProperty("maxWidth"),t.style.flex="1 1 auto"):Vn(t,e)}function Vn(t,e){e=kn(e),t.style.width=e.toString(),t.style.maxWidth=e.toString(),t.style.minWidth=e.toString()}function Hn(t,e){e=kn(e),t.style.height=e.toString(),t.style.maxHeight=e.toString(),t.style.minHeight=e.toString()}function kn(t){return"number"==typeof t?t+"px":t}function Bn(t){return t instanceof Node||t instanceof HTMLElement}function jn(t){if(null==t)return[];var e=[];return zn(t,(function(t){return e.push(t)})),e}function Wn(t,e){if(t)for(var o=0;o<t.length;o++){var n=t[o];e(n.name,n.value)}}function Un(t,e,o){null==o?t.removeAttribute(e):t.setAttribute(e,o.toString())}function zn(t,e){if(null!=t)for(var o=0;o<t.length;o++)e(t[o])}function Kn(t,e){t.then((function(t){var o=t.getGui();null!=o&&("object"==typeof o?e.appendChild(o):e.innerHTML=o)}))}var Yn=Object.freeze({__proto__:null,radioCssClass:un,FOCUSABLE_SELECTOR:"[tabindex], input, select, button, textarea, [href]",FOCUSABLE_EXCLUDE:cn,isFocusableFormField:pn,setDisplayed:dn,setVisible:hn,setDisabled:fn,isElementChildOfClass:gn,getElementSize:vn,getInnerHeight:yn,getInnerWidth:mn,getAbsoluteHeight:Cn,getAbsoluteWidth:wn,getElementRectWithOffset:Sn,isRtlNegativeScroll:En,getScrollLeft:Rn,setScrollLeft:bn,clearElement:On,removeElement:function(t,e){Tn(t.querySelector(e))},removeFromParent:Tn,isVisible:Dn,loadTemplate:Pn,appendHtml:function(t,e){t.lastChild?t.insertAdjacentHTML("afterbegin",e):t.innerHTML=e},getElementAttribute:function(t,e){return t.attributes&&t.attributes[e]?t.attributes[e].value:null},offsetHeight:_n,offsetWidth:An,ensureDomOrder:Fn,setDomChildOrder:Ln,insertWithDomOrder:In,prependDC:function(t,o){e(t.firstChild)?t.insertBefore(o,t.firstChild):t.appendChild(o)},addStylesToElement:Nn,isHorizontalScrollShowing:Mn,isVerticalScrollShowing:Gn,setElementWidth:xn,setFixedWidth:Vn,setElementHeight:function(t,e){"flex"===e?(t.style.removeProperty("height"),t.style.removeProperty("minHeight"),t.style.removeProperty("maxHeight"),t.style.flex="1 1 auto"):Hn(t,e)},setFixedHeight:Hn,formatSize:kn,isNodeOrElement:Bn,copyNodeList:jn,iterateNamedNodeMap:Wn,addOrRemoveAttribute:Un,nodeListForEach:zn,bindCellRendererToHtmlElement:Kn}),qn={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus"};function Qn(t,e,o){var n=Xn(t,e,o);if(n){var i=n.className;if("string"==typeof i&&i.indexOf("ag-icon")>-1||"object"==typeof i&&i["ag-icon"])return n}var r=document.createElement("span");return r.appendChild(n),r}function Xn(t,e,o,n){var i=null,r=o&&o.getColDef().icons;if(r&&(i=r[t]),e&&!i){var s=e.get("icons");s&&(i=s[t])}if(!i){var a=document.createElement("span"),l=qn[t];return l||(n?l=t:(console.warn("AG Grid: Did not find icon "+t),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),Qe(a,"presentation"),a}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?Pn(u):Bn(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Jn=Object.freeze({__proto__:null,iconNameClassMap:qn,createIcon:Qn,createIconNoSpan:Xn}),Zn=function(){function t(){}return t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.ESCAPE="Escape",t.SPACE=" ",t.LEFT="ArrowLeft",t.UP="ArrowUp",t.RIGHT="ArrowRight",t.DOWN="ArrowDown",t.DELETE="Delete",t.F2="F2",t.PAGE_UP="PageUp",t.PAGE_DOWN="PageDown",t.PAGE_HOME="Home",t.PAGE_END="End",t.A="KeyA",t.C="KeyC",t.D="KeyD",t.V="KeyV",t.X="KeyX",t.Y="KeyY",t.Z="KeyZ",t}();function $n(t){return!(t.altKey||t.ctrlKey||t.metaKey)&&1===t.key.length}function ti(t,e,o,n,i){var r=n?n.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;var s={event:e,editing:i,column:n,api:t.api,node:o,data:o.data,colDef:n.getColDef(),context:t.context,columnApi:t.columnApi};if(r&&r(s))return!0;return!1}function ei(t,o,n,i){var r=i.getDefinition(),s=r&&r.suppressHeaderKeyboardEvent;return!!e(s)&&!!s({api:t.api,columnApi:t.columnApi,context:t.context,colDef:r,column:i,headerRowIndex:n,event:o})}function oi(t){var e;switch(t.keyCode){case 65:e=Zn.A;break;case 67:e=Zn.C;break;case 86:e=Zn.V;break;case 68:e=Zn.D;break;case 90:e=Zn.Z;break;case 89:e=Zn.Y;break;default:e=t.code}return e}function ni(t,e){return void 0===e&&(e=!1),t===Zn.DELETE||!e&&t===Zn.BACKSPACE&&Vo()}var ii=Object.freeze({__proto__:null,isEventFromPrintableCharacter:$n,isUserSuppressingKeyboardEvent:ti,isUserSuppressingHeaderKeyboardEvent:ei,normaliseQwertyAzerty:oi,isDeleteKey:ni});function ri(t,e,o){if(0===o)return!1;var n=Math.abs(t.clientX-e.clientX),i=Math.abs(t.clientY-e.clientY);return Math.max(n,i)<=o}var si=Object.freeze({__proto__:null,areEventsNear:ri});var ai=Object.freeze({__proto__:null,sortRowNodesByOrder:function(t,e){if(!t)return!1;for(var o=function(t,o){var n=e[t.id],i=e[o.id],r=void 0!==n,s=void 0!==i;return r&&s?n-i:!r&&!s?t.__objectId-o.__objectId:r?1:-1},n=!1,i=0;i<t.length-1;i++)if(o(t[i],t[i+1])>0){n=!0;break}return!!n&&(t.sort(o),!0)},traverseNodesWithKey:function(t,e){var o=[];!function t(n){if(!n)return;n.forEach((function(n){if(n.group||n.hasChildren()){o.push(n.key);var i=o.join("|");e(n,i),t(n.childrenAfterGroup),o.pop()}}))}(t)}});function li(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}var ui,ci=Object.freeze({__proto__:null,convertToSet:li}),pi=function(){return(pi=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},di=pi(pi(pi(pi(pi(pi(pi(pi(pi(pi(pi(pi(pi(pi(pi(pi(pi(pi({},Io),Tt),qo),sn),Yn),Ht),H),we),l),Jn),ii),ae),si),Zo),b),ai),ci),re),hi=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=1),this.nextValue=t,this.step=e}return t.prototype.next=function(){var t=this.nextValue;return this.nextValue+=this.step,t},t.prototype.peek=function(){return this.nextValue},t.prototype.skip=function(t){this.nextValue+=t},t}();!function(t){t[t.IN_PROGRESS=0]="IN_PROGRESS",t[t.RESOLVED=1]="RESOLVED"}(ui||(ui={}));var fi,gi,vi=function(){function t(t){var e=this;this.status=ui.IN_PROGRESS,this.resolution=null,this.waiters=[],t((function(t){return e.onDone(t)}),(function(t){return e.onReject(t)}))}return t.all=function(e){return new t((function(t){var o=e.length,n=new Array(o);e.forEach((function(e,i){e.then((function(e){n[i]=e,0===--o&&t(n)}))}))}))},t.resolve=function(e){return void 0===e&&(e=null),new t((function(t){return t(e)}))},t.prototype.then=function(e){var o=this;return new t((function(t){o.status===ui.RESOLVED?t(e(o.resolution)):o.waiters.push((function(o){return t(e(o))}))}))},t.prototype.resolveNow=function(t,e){return this.status===ui.RESOLVED?e(this.resolution):t},t.prototype.onDone=function(t){this.status=ui.RESOLVED,this.resolution=t,this.waiters.forEach((function(e){return e(t)}))},t.prototype.onReject=function(t){console.warn("TBI")},t}(),yi=function(){function t(){this.timestamp=(new Date).getTime()}return t.prototype.print=function(t){var e=(new Date).getTime()-this.timestamp;console.info(t+" = "+e),this.timestamp=(new Date).getTime()},t}(),mi=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ci=function(){return(Ci=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},wi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING"}(fi||(fi={})),function(t){t[t.HOVER=0]="HOVER",t[t.FOCUS=1]="FOCUS"}(gi||(gi={}));var Si=function(t){function o(e,o,n){var i=t.call(this)||this;return i.parentComp=e,i.tooltipShowDelayOverride=o,i.tooltipHideDelayOverride=n,i.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,i.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,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=fi.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i}return mi(o,t),o.prototype.postConstruct=function(){this.gridOptionsService.is("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipShowDelay=this.getTooltipDelay("show"),this.tooltipHideDelay=this.getTooltipDelay("hide"),this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");var t=this.parentComp.getGui();this.tooltipTrigger===gi.HOVER&&(this.addManagedListener(t,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(t,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===gi.FOCUS&&(this.addManagedListener(t,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(t,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(t,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(t,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this)))},o.prototype.getGridOptionsTooltipDelay=function(t){var o=this.gridOptionsService.getNum(t);if(e(o))return o<0&&T((function(){return console.warn("AG Grid: "+t+" should not be lower than 0")}),t+"Warn"),Math.max(200,o)},o.prototype.getTooltipDelay=function(t){var e,o,n,i;return"show"===t?null!==(o=null!==(e=this.getGridOptionsTooltipDelay("tooltipShowDelay"))&&void 0!==e?e:this.tooltipShowDelayOverride)&&void 0!==o?o:this.DEFAULT_SHOW_TOOLTIP_DELAY:null!==(i=null!==(n=this.getGridOptionsTooltipDelay("tooltipHideDelay"))&&void 0!==n?n:this.tooltipHideDelayOverride)&&void 0!==i?i:this.DEFAULT_HIDE_TOOLTIP_DELAY},o.prototype.destroy=function(){this.setToDoNothing(),t.prototype.destroy.call(this)},o.prototype.getTooltipTrigger=function(){var t=this.gridOptionsService.get("tooltipTrigger");return t&&"hover"!==t?gi.FOCUS:gi.HOVER},o.prototype.onMouseEnter=function(t){var e=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),Ho()||(o.isLocked?this.showTooltipTimeoutId=window.setTimeout((function(){e.prepareToShowTooltip(t)}),this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(t))},o.prototype.onMouseMove=function(t){this.lastMouseEvent&&(this.lastMouseEvent=t),this.tooltipMouseTrack&&this.state===fi.SHOWING&&this.tooltipComp&&this.positionTooltip()},o.prototype.onMouseDown=function(){this.setToDoNothing()},o.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},o.prototype.onFocusIn=function(){this.prepareToShowTooltip()},o.prototype.onFocusOut=function(t){var e,o=t.relatedTarget,n=this.parentComp.getGui(),i=null===(e=this.tooltipComp)||void 0===e?void 0:e.getGui();this.isInteractingWithTooltip||n.contains(o)||this.interactionEnabled&&(null==i?void 0:i.contains(o))||this.setToDoNothing()},o.prototype.onKeyDown=function(){this.setToDoNothing()},o.prototype.prepareToShowTooltip=function(t){if(this.state!=fi.NOTHING||o.isLocked)return!1;var e=0;return t&&(e=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay),this.lastMouseEvent=t||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),e),this.state=fi.WAITING_TO_SHOW,!0},o.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-o.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},o.prototype.setToDoNothing=function(){this.state===fi.SHOWING&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.clearTimeouts(),this.state=fi.NOTHING,this.lastMouseEvent=null},o.prototype.showTooltip=function(){var t=Ci({},this.parentComp.getTooltipParams());if(e(t.value)){this.state=fi.SHOWING,this.tooltipInstanceCount++;var o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(t).newAgStackInstance().then(o)}else this.setToDoNothing()},o.prototype.hideTooltip=function(t){if(t||!this.isInteractingWithTooltip){this.tooltipComp&&(this.destroyTooltipComp(),o.lastTooltipHideTime=(new Date).getTime());var e={type:qt.EVENT_TOOLTIP_HIDE,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(e),this.state=fi.NOTHING}},o.prototype.newTooltipComponentCallback=function(t,e){if(this.state!==fi.SHOWING||this.tooltipInstanceCount!==t)this.getContext().destroyBean(e);else{var o=e.getGui();this.tooltipComp=e,o.classList.contains("ag-tooltip")||o.classList.add("ag-tooltip-custom"),this.tooltipTrigger===gi.HOVER&&o.classList.add("ag-tooltip-animate"),this.interactionEnabled&&o.classList.add("ag-tooltip-interactive");var n=this.localeService.getLocaleTextFunc(),i=this.popupService.addPopup({eChild:o,ariaLabel:n("ariaLabelTooltip","Tooltip")});i&&(this.tooltipPopupDestroyFunc=i.hideFunc),this.positionTooltip(),this.tooltipTrigger===gi.FOCUS&&(this.onBodyScrollEventCallback=this.addManagedListener(this.eventService,qt.EVENT_BODY_SCROLL,this.setToDoNothing.bind(this)),this.onColumnMovedEventCallback=this.addManagedListener(this.eventService,qt.EVENT_COLUMN_MOVED,this.setToDoNothing.bind(this))),this.interactionEnabled&&(this.tooltipTrigger===gi.HOVER?(this.tooltipMouseEnterListener=this.addManagedListener(o,"mouseenter",this.onTooltipMouseEnter.bind(this))||null,this.tooltipMouseLeaveListener=this.addManagedListener(o,"mouseleave",this.onTooltipMouseLeave.bind(this))||null):(this.tooltipFocusInListener=this.addManagedListener(o,"focusin",this.onTooltipFocusIn.bind(this))||null,this.tooltipFocusOutListener=this.addManagedListener(o,"focusout",this.onTooltipFocusOut.bind(this))||null));var r={type:qt.EVENT_TOOLTIP_SHOW,tooltipGui:o,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(r),this.startHideTimeout()}},o.prototype.onTooltipMouseEnter=function(){this.isInteractingWithTooltip=!0,this.unlockService()},o.prototype.onTooltipMouseLeave=function(){this.isInteractingWithTooltip=!1,this.lockService()},o.prototype.onTooltipFocusIn=function(){this.isInteractingWithTooltip=!0},o.prototype.onTooltipFocusOut=function(t){var e,o=this.parentComp.getGui(),n=null===(e=this.tooltipComp)||void 0===e?void 0:e.getGui(),i=t.relatedTarget;(null==n?void 0:n.contains(i))||(this.isInteractingWithTooltip=!1,o.contains(i)?this.startHideTimeout():this.hideTooltip())},o.prototype.positionTooltip=function(){var t={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent(Ci(Ci({},t),{mouseEvent:this.lastMouseEvent})):this.popupService.positionPopupByComponent(Ci(Ci({},t),{eventSource:this.parentComp.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))},o.prototype.destroyTooltipComp=function(){var t=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var e=this.tooltipPopupDestroyFunc,o=this.tooltipComp,n=this.tooltipTrigger===gi.HOVER?this.FADE_OUT_TOOLTIP_TIMEOUT:0;window.setTimeout((function(){e(),t.getContext().destroyBean(o)}),n),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},o.prototype.clearTooltipListeners=function(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach((function(t){t&&t()})),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null},o.prototype.lockService=function(){var t=this;o.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout((function(){t.unlockService(),t.setToDoNothing()}),this.INTERACTIVE_HIDE_DELAY)},o.prototype.unlockService=function(){o.isLocked=!1,this.clearInteractiveTimeout()},o.prototype.startHideTimeout=function(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)},o.prototype.clearShowTimeout=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)},o.prototype.clearHideTimeout=function(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},o.prototype.clearInteractiveTimeout=function(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)},o.prototype.clearTimeouts=function(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()},o.isLocked=!1,wi([X("popupService")],o.prototype,"popupService",void 0),wi([X("userComponentFactory")],o.prototype,"userComponentFactory",void 0),wi([Y],o.prototype,"postConstruct",null),o}(Bt),Ei=function(){function t(t){this.cssClassStates={},this.getGui=t}return t.prototype.addCssClass=function(t){var e=this,o=(t||"").split(" ");if(o.length>1)o.forEach((function(t){return e.addCssClass(t)}));else if(!0!==this.cssClassStates[t]&&t.length){var n=this.getGui();n&&n.classList.add(t),this.cssClassStates[t]=!0}},t.prototype.removeCssClass=function(t){var e=this,o=(t||"").split(" ");if(o.length>1)o.forEach((function(t){return e.removeCssClass(t)}));else if(!1!==this.cssClassStates[t]&&t.length){var n=this.getGui();n&&n.classList.remove(t),this.cssClassStates[t]=!1}},t.prototype.containsCssClass=function(t){var e=this.getGui();return!!e&&e.classList.contains(t)},t.prototype.addOrRemoveCssClass=function(t,e){var o=this;if(t){if(t.indexOf(" ")>=0){var n=(t||"").split(" ");if(n.length>1)return void n.forEach((function(t){return o.addOrRemoveCssClass(t,e)}))}if(this.cssClassStates[t]!==e&&t.length){var i=this.getGui();i&&i.classList.toggle(t,e),this.cssClassStates[t]=e}}},t}(),Ri=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),bi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Oi=new hi,Ti=function(t){function e(e){var o=t.call(this)||this;return o.displayed=!0,o.visible=!0,o.compId=Oi.next(),o.cssClassManager=new Ei((function(){return o.eGui})),e&&o.setTemplate(e),o}return Ri(e,t),e.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},e.prototype.getCompId=function(){return this.compId},e.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},e.prototype.setTooltip=function(t,e,o){var n=this;this.tooltipText!=t&&(this.tooltipText&&(n.usingBrowserTooltips?n.getGui().removeAttribute("title"):n.tooltipFeature=n.destroyBean(n.tooltipFeature)),null!=t&&(this.tooltipText=t,this.tooltipText&&(n.usingBrowserTooltips?n.getGui().setAttribute("title",n.tooltipText):n.tooltipFeature=n.createBean(new Si(n,e,o)))))},e.prototype.createChildComponentsFromTags=function(t,e){var o=this;jn(t.childNodes).forEach((function(n){if(n instanceof HTMLElement){var i=o.createComponentFromElement(n,(function(t){t.getGui()&&o.copyAttributesFromNode(n,t.getGui())}),e);if(i){if(i.addItems&&n.children.length){o.createChildComponentsFromTags(n,e);var r=Array.prototype.slice.call(n.children);i.addItems(r)}o.swapComponentForNode(i,t,n)}else n.childNodes&&o.createChildComponentsFromTags(n,e)}}))},e.prototype.createComponentFromElement=function(t,o,n){var i=t.nodeName,r=n?n[t.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(i);if(s){e.elementGettingCreated=t;var a=new s(r);return a.setParentComponent(this),this.createBean(a,null,o),a}return null},e.prototype.copyAttributesFromNode=function(t,e){Wn(t.attributes,(function(t,o){return e.setAttribute(t,o)}))},e.prototype.swapComponentForNode=function(t,e,o){var n=t.getGui();e.replaceChild(n,o),e.insertBefore(document.createComment(o.nodeName),n),this.addDestroyFunc(this.destroyBean.bind(this,t)),this.swapInComponentForQuerySelectors(t,o)},e.prototype.swapInComponentForQuerySelectors=function(t,e){var o=this;this.iterateOverQuerySelectors((function(n){o[n.attributeName]===e&&(o[n.attributeName]=t)}))},e.prototype.iterateOverQuerySelectors=function(t){for(var e=Object.getPrototypeOf(this);null!=e;){var o=e.__agComponentMetaData,n=D(e.constructor);o&&o[n]&&o[n].querySelectors&&o[n].querySelectors.forEach((function(e){return t(e)})),e=Object.getPrototypeOf(e)}},e.prototype.activateTabIndex=function(t){var e=this.gridOptionsService.getNum("tabIndex")||0;t||(t=[]),t.length||t.push(this.getGui()),t.forEach((function(t){return t.setAttribute("tabindex",e.toString())}))},e.prototype.setTemplate=function(t,e){var o=Pn(t);this.setTemplateFromElement(o,e)},e.prototype.setTemplateFromElement=function(t,e){this.eGui=t,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),e)},e.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},e.prototype.wireQuerySelectors=function(){var t=this;if(this.eGui){var e=this;this.iterateOverQuerySelectors((function(o){var n=function(t){return e[o.attributeName]=t};if(o.refSelector&&t.getAttribute("ref")===o.refSelector)n(t.eGui);else{var i=t.eGui.querySelector(o.querySelector);i&&n(i.__agComponent||i)}}))}},e.prototype.getGui=function(){return this.eGui},e.prototype.getFocusableElement=function(){return this.eGui},e.prototype.getAriaElement=function(){return this.getFocusableElement()},e.prototype.setParentComponent=function(t){this.parentComponent=t},e.prototype.getParentComponent=function(){return this.parentComponent},e.prototype.setGui=function(t){this.eGui=t},e.prototype.queryForHtmlElement=function(t){return this.eGui.querySelector(t)},e.prototype.queryForHtmlInputElement=function(t){return this.eGui.querySelector(t)},e.prototype.appendChild=function(t,e){if(null!=t)if(e||(e=this.eGui),Bn(t))e.appendChild(t);else{var o=t;e.appendChild(o.getGui())}},e.prototype.isDisplayed=function(){return this.displayed},e.prototype.setVisible=function(t,e){if(void 0===e&&(e={}),t!==this.visible){this.visible=t;var o=e.skipAriaHidden;hn(this.eGui,t,{skipAriaHidden:o})}},e.prototype.setDisplayed=function(t,o){if(void 0===o&&(o={}),t!==this.displayed){this.displayed=t;var n=o.skipAriaHidden;dn(this.eGui,t,{skipAriaHidden:n});var i={type:e.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}},e.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),t.prototype.destroy.call(this)},e.prototype.addGuiEventListener=function(t,e,o){var n=this;this.eGui.addEventListener(t,e,o),this.addDestroyFunc((function(){return n.eGui.removeEventListener(t,e)}))},e.prototype.addCssClass=function(t){this.cssClassManager.addCssClass(t)},e.prototype.removeCssClass=function(t){this.cssClassManager.removeCssClass(t)},e.prototype.containsCssClass=function(t){return this.cssClassManager.containsCssClass(t)},e.prototype.addOrRemoveCssClass=function(t,e){this.cssClassManager.addOrRemoveCssClass(t,e)},e.prototype.getAttribute=function(t){var e=this.eGui;return e?e.getAttribute(t):null},e.prototype.getRefElement=function(t){return this.queryForHtmlElement('[ref="'+t+'"]')},e.EVENT_DISPLAYED_CHANGED="displayedChanged",bi([X("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),bi([K],e.prototype,"preConstructOnComponent",null),bi([K],e.prototype,"createChildComponentsPreConstruct",null),e}(Bt);function Di(t){return _i.bind(this,t,void 0)}function Pi(t){return _i.bind(this,"[ref="+t+"]",t)}function _i(t,e,o,n,i){null!==t?"number"!=typeof i?function(t,e,o){var n=function(t,e){t.__agComponentMetaData||(t.__agComponentMetaData={});t.__agComponentMetaData[e]||(t.__agComponentMetaData[e]={});return t.__agComponentMetaData[e]}(t,D(t.constructor));n[e]||(n[e]=[]);n[e].push(o)}(o,"querySelectors",{attributeName:n,querySelector:t,refSelector:e}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var Ai=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Li=function(t){function e(){return t.call(this,'\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n            </div>')||this}return Ai(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t;var e=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(e+" "+o("ariaFilterInput","Filter Input"))},e.prototype.onParentModelChanged=function(t){var e=this;t?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var n=o.getModelAsString(t);e.eFloatingFilterText.setValue(n)}})):this.eFloatingFilterText.setValue("")},e.prototype.onParamsUpdated=function(t){this.init(t)},Fi([Pi("eFloatingFilterText")],e.prototype,"eFloatingFilterText",void 0),Fi([X("columnModel")],e.prototype,"columnModel",void 0),e}(Ti),Ii=function(){function t(t,e,o,n){var i=this;this.alive=!0,this.context=t,this.eParent=n,e.getDateCompDetails(o).newAgStackInstance().then((function(e){i.alive?(i.dateComp=e,e&&(n.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),i.tempValue&&e.setDate(i.tempValue),null!=i.disabled&&i.setDateCompDisabled(i.disabled))):t.destroyBean(e)}))}return t.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},t.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},t.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},t.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},t.prototype.setDisplayed=function(t){dn(this.eParent,t)},t.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},t.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},t.prototype.afterGuiAttached=function(t){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(t)},t.prototype.updateParams=function(t){var e;(null===(e=this.dateComp)||void 0===e?void 0:e.onParamsUpdated)&&"function"==typeof this.dateComp.onParamsUpdated&&this.dateComp.onParamsUpdated(t)},t.prototype.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},t}(),Ni=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t)},t.prototype.getFilterOptions=function(){return this.filterOptions},t.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach((function(e){if("string"!=typeof e){[["displayKey"],["displayName"],["predicate","test"]].every((function(t){return!!t.some((function(t){return null!=e[t]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+t+"'"),!1)}))?t.customFilterOptions[e.displayKey]=e:t.filterOptions=t.filterOptions.filter((function(t){return t===e}))||[]}}))},t.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.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")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},t}(),Mi={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:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},Gi=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xi=function(){return(xi=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Vi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hi=function(t){function e(e,o){void 0===o&&(o={});var n=t.call(this)||this;return n.eFocusableElement=e,n.callbacks=o,n.callbacks=xi({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(t){if(!t.defaultPrevented){var e=n.focusService.findNextFocusableElement(n.eFocusableElement,!1,t.shiftKey);e&&(e.focus(),t.preventDefault())}}},o),n}return Gi(e,t),e.prototype.postConstruct=function(){this.eFocusableElement.classList.add(e.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)},e.prototype.addKeyDownListeners=function(t){var e=this;this.addManagedListener(t,"keydown",(function(t){t.defaultPrevented||At(t)||(e.callbacks.shouldStopEventPropagation(t)?_t(t):t.key===Zn.TAB?e.callbacks.onTabKeyDown(t):e.callbacks.handleKeyDown&&e.callbacks.handleKeyDown(t))}))},e.FOCUS_MANAGED_CLASS="ag-focus-managed",Vi([X("focusService")],e.prototype,"focusService",void 0),Vi([Y],e.prototype,"postConstruct",null),e}(Bt),ki=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ji=function(t){function e(e,o){var n=t.call(this)||this;return n.element=e,n.dragStartPosition={x:0,y:0},n.position={x:0,y:0},n.lastSize={width:-1,height:-1},n.positioned=!1,n.resizersAdded=!1,n.resizeListeners=[],n.boundaryEl=null,n.isResizing=!1,n.isMoving=!1,n.resizable={},n.movable=!1,n.currentResizer=null,n.config=Object.assign({},{popup:!1},o),n}return ki(e,t),e.prototype.center=function(){var t=this.offsetParent,e=t.clientHeight,o=t.clientWidth/2-this.getWidth()/2,n=e/2-this.getHeight()/2;this.offsetElement(o,n)},e.prototype.initialisePosition=function(){if(!this.positioned){var t=this.config,e=t.centered,o=t.forcePopupParentAsOffsetParent,n=t.minWidth,i=t.width,r=t.minHeight,s=t.height,a=t.x,l=t.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=r||u,this.minWidth=n||c,i&&this.setWidth(i),s&&this.setHeight(s),i&&s||this.refreshSize(),e)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&o){var v=!0;if((d=this.boundaryEl)||(d=this.findBoundaryElement(),v=!1),d){var y=parseFloat(d.style.top),m=parseFloat(d.style.left);v?this.offsetElement(isNaN(m)?0:m,isNaN(y)?0:y):this.setPosition(m,y)}}this.positioned=!!this.offsetParent}},e.prototype.isPositioned=function(){return this.positioned},e.prototype.getPosition=function(){return this.position},e.prototype.setMovable=function(t,e){if(this.config.popup&&t!==this.movable){this.movable=t;var o=this.moveElementDragListener||{eElement:e,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},e.prototype.setResizable=function(t){var e=this;if(this.clearResizeListeners(),t?this.addResizers():this.removeResizers(),"boolean"==typeof t){if(!1===t)return;t={topLeft:t,top:t,topRight:t,right:t,bottomRight:t,bottom:t,bottomLeft:t,left:t}}Object.keys(t).forEach((function(o){var n=!!t[o],i=e.getResizerElement(o),r={dragStartPixels:0,eElement:i,onDragStart:function(t){return e.onResizeStart(t,o)},onDragging:e.onResize.bind(e),onDragStop:function(t){return e.onResizeEnd(t,o)}};(n||!e.isAlive()&&!n)&&(n?(e.dragService.addDragSource(r),e.resizeListeners.push(r),i.style.pointerEvents="all"):i.style.pointerEvents="none",e.resizable[o]=n)}))},e.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},e.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var t=this.lastSize,e=t.height,o=t.width;-1!==o&&(this.element.style.width=o+"px"),-1!==e&&(this.element.style.height=e+"px")},e.prototype.getHeight=function(){return this.element.offsetHeight},e.prototype.setHeight=function(t){var e=this.config.popup,o=this.element,n=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Hn(o,t),t=Cn(o),n=!0;else if(t=Math.max(this.minHeight,t),this.positioned){var i=this.getAvailableHeight();i&&t>i&&(t=i)}this.getHeight()!==t&&(n?(o.style.maxHeight="unset",o.style.minHeight="unset"):e?Hn(o,t):(o.style.height=t+"px",o.style.flex="0 0 auto",this.lastSize.height="number"==typeof t?t:parseFloat(t)))},e.prototype.getAvailableHeight=function(){var t=this.config,e=t.popup,o=t.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var n=this.offsetParent.clientHeight;if(!n)return null;var i=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=e?this.position.y:i.top,a=e?0:r.top,l=0;if(o){var u=this.element.parentElement;if(u)l=u.getBoundingClientRect().bottom-i.bottom}return n+a-s-l},e.prototype.getWidth=function(){return this.element.offsetWidth},e.prototype.setWidth=function(t){var e=this.element,o=this.config.popup,n=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Vn(e,t),t=wn(e),n=!0;else if(this.positioned){t=Math.max(this.minWidth,t);var i=this.offsetParent.clientWidth,r=o?this.position.x:this.element.getBoundingClientRect().left;i&&t+r>i&&(t=i-r)}this.getWidth()!==t&&(n?(e.style.maxWidth="unset",e.style.minWidth="unset"):this.config.popup?Vn(e,t):(e.style.width=t+"px",e.style.flex=" unset",this.lastSize.width="number"==typeof t?t:parseFloat(t)))},e.prototype.offsetElement=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;o&&(this.popupService.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:t,y:e}}}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top)))},e.prototype.constrainSizeToAvailableHeight=function(t){var e=this;if(this.config.forcePopupParentAsOffsetParent){t?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),(function(){var t=e.getAvailableHeight();e.element.style.setProperty("max-height",t+"px")})):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},e.prototype.setPosition=function(t,e){this.position.x=t,this.position.y=e},e.prototype.updateDragStartPosition=function(t,e){this.dragStartPosition={x:t,y:e}},e.prototype.calculateMouseMovement=function(t){var e=t.e,o=t.isLeft,n=t.isTop,i=t.anywhereWithin,r=t.topBuffer,s=e.clientX-this.dragStartPosition.x,a=e.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(e,!!o,!!i,s)?0:s,movementY:this.shouldSkipY(e,!!n,r,a)?0:a}},e.prototype.shouldSkipX=function(t,e,o,n){var i=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:i.left,l=a<=0&&r.left>=t.clientX||r.right<=t.clientX&&r.right<=s.right;return!!l||(l=e?n<0&&t.clientX>a+r.left||n>0&&t.clientX<a+r.left:o?n<0&&t.clientX>s.right||n>0&&t.clientX<a+r.left:n<0&&t.clientX>s.right||n>0&&t.clientX<s.right)},e.prototype.shouldSkipY=function(t,e,o,n){void 0===o&&(o=0);var i=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:i.top,l=a<=0&&r.top>=t.clientY||r.bottom<=t.clientY&&r.bottom<=s.bottom;return!!l||(l=e?n<0&&t.clientY>a+r.top+o||n>0&&t.clientY<a+r.top:n<0&&t.clientY>s.bottom||n>0&&t.clientY<s.bottom)},e.prototype.createResizeMap=function(){var t=this.element;this.resizerMap={topLeft:{element:t.querySelector("[ref=eTopLeftResizer]")},top:{element:t.querySelector("[ref=eTopResizer]")},topRight:{element:t.querySelector("[ref=eTopRightResizer]")},right:{element:t.querySelector("[ref=eRightResizer]")},bottomRight:{element:t.querySelector("[ref=eBottomRightResizer]")},bottom:{element:t.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:t.querySelector("[ref=eBottomLeftResizer]")},left:{element:t.querySelector("[ref=eLeftResizer]")}}},e.prototype.addResizers=function(){if(!this.resizersAdded){var t=this.element;if(t){var e=(new DOMParser).parseFromString('<div class="ag-resizer-wrapper">\n        <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n        <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n        <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n        <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n        <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n        <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n        <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n        <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n    </div>',"text/html").body;t.appendChild(e.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},e.prototype.removeResizers=function(){this.resizerMap=void 0;var t=this.element.querySelector(".ag-resizer-wrapper");t&&this.element.removeChild(t),this.resizersAdded=!1},e.prototype.getResizerElement=function(t){return this.resizerMap[t].element},e.prototype.onResizeStart=function(t,e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!e.match(/top/i),isRight:!!e.match(/right/i),isBottom:!!e.match(/bottom/i),isLeft:!!e.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[e].element.classList.add("ag-active");var o=this.config,n=o.popup,i=o.forcePopupParentAsOffsetParent;n||i||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(t.clientX,t.clientY)},e.prototype.getSiblings=function(){var t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter((function(t){return!t.classList.contains("ag-hidden")})):null},e.prototype.getMinSizeOfSiblings=function(){for(var t=this.getSiblings()||[],e=0,o=0,n=0;n<t.length;n++){var i=t[n],r=!!i.style.flex&&"0 0 auto"!==i.style.flex;if(i!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(r){var l=window.getComputedStyle(i);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=i.offsetHeight,a=i.offsetWidth;e+=s,o+=a}}return{height:e,width:o}},e.prototype.applySizeToSiblings=function(t){var e=null,o=this.getSiblings();if(o){for(var n=0;n<o.length;n++){var i=o[n];i!==e&&(t?i.style.height=i.offsetHeight+"px":i.style.width=i.offsetWidth+"px",i.style.flex="0 0 auto",i===this.element&&(e=o[n+1]))}e&&(e.style.removeProperty("height"),e.style.removeProperty("min-height"),e.style.removeProperty("max-height"),e.style.flex="1 1 auto")}},e.prototype.isResizable=function(){return Object.values(this.resizable).some((function(t){return t}))},e.prototype.onResize=function(t){if(this.isResizing&&this.currentResizer){var e=this.config,o=e.popup,n=e.forcePopupParentAsOffsetParent,i=this.currentResizer,r=i.isTop,s=i.isRight,a=i.isBottom,l=i.isLeft,u=s||l,c=a||r,p=this.calculateMouseMovement({e:t,isLeft:l,isTop:r}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,v=0,y=0;if(u&&d){var m=l?-1:1,C=this.getWidth(),w=C+d*m,S=!1;l&&(f+(v=C-w)<=0||w<=this.minWidth)&&(S=!0,v=0),S||this.setWidth(w)}if(c&&h){m=r?-1:1;var E=this.getHeight(),R=E+h*m,b=!1;r?(g+(y=E-R)<=0||R<=this.minHeight)&&(b=!0,y=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&E<R&&this.getMinSizeOfSiblings().height+R>this.element.parentElement.offsetHeight&&(b=!0),b||this.setHeight(R)}this.updateDragStartPosition(t.clientX,t.clientY),((o||n)&&v||y)&&this.offsetElement(f+v,g+y)}},e.prototype.onResizeEnd=function(t,e){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[e].element.classList.remove("ag-active"),this.dispatchEvent(o)},e.prototype.refreshSize=function(){var t=this.element;this.config.popup&&(this.config.width||this.setWidth(t.offsetWidth),this.config.height||this.setHeight(t.offsetHeight))},e.prototype.onMoveStart=function(t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(t.clientX,t.clientY)},e.prototype.onMove=function(t){if(this.isMoving){var e,o=this.position,n=o.x,i=o.y;this.config.calculateTopBuffer&&(e=this.config.calculateTopBuffer());var r=this.calculateMouseMovement({e:t,isTop:!0,anywhereWithin:!0,topBuffer:e}),s=r.movementX,a=r.movementY;this.offsetElement(n+s,i+a),this.updateDragStartPosition(t.clientX,t.clientY)}},e.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},e.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},e.prototype.findBoundaryElement=function(){for(var t=this.element;t;){if("static"!==window.getComputedStyle(t).position)return t;t=t.parentElement}return this.element},e.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var t=this.resizeListeners.pop();this.dragService.removeDragSource(t)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},Bi([X("popupService")],e.prototype,"popupService",void 0),Bi([X("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Bi([X("dragService")],e.prototype,"dragService",void 0),e}(Bt),Wi=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ui=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},zi=function(t){function e(e){var o=t.call(this)||this;return o.filterNameKey=e,o.applyActive=!1,o.hidePopup=null,o.debouncePending=!1,o.appliedModel=null,o}return Wi(e,t),e.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Hi(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new ji(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},e.prototype.handleKeyDown=function(t){},e.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},e.prototype.isFilterActive=function(){return!!this.appliedModel},e.prototype.resetTemplate=function(t){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit);var o='\n            <form class="ag-filter-wrapper">\n                <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper" ref="eFilterBody">\n                    '+this.createBodyTemplate()+"\n                </div>\n            </form>";this.setTemplate(o,t),(e=this.getGui())&&e.addEventListener("submit",this.onFormSubmit)},e.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},e.prototype.init=function(t){var e=this;this.setParams(t),this.resetUiToDefaults(!0).then((function(){e.updateUiVisibility(),e.setupOnBtApplyDebounce()}))},e.prototype.setParams=function(t){this.providedFilterParams=t,this.applyActive=e.isUseApplyButton(t),this.createButtonPanel()},e.prototype.createButtonPanel=function(){var t=this,e=this.providedFilterParams.buttons;if(!(!e||e.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel");li(e).forEach((function(e){return function(e){var n,i;switch(e){case"apply":n=t.translate("applyFilter"),i=function(e){return t.onBtApply(!1,!1,e)};break;case"clear":n=t.translate("clearFilter"),i=function(){return t.onBtClear()};break;case"reset":n=t.translate("resetFilter"),i=function(){return t.onBtReset()};break;case"cancel":n=t.translate("cancelFilter"),i=function(e){t.onBtCancel(e)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var r=Pn('<button\n                    type="'+("apply"===e?"submit":"button")+'"\n                    ref="'+e+'FilterButton"\n                    class="ag-button ag-standard-button ag-filter-apply-panel-button"\n                >'+n+"\n                </button>");o.appendChild(r),t.addManagedListener(r,"click",i)}(e)})),this.getGui().appendChild(o)}},e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.setupOnBtApplyDebounce=function(){var t=this,o=e.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),n=N(this.checkApplyDebounce.bind(this),o);this.onBtApplyDebounce=function(){t.debouncePending=!0,n()}},e.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},e.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},e.prototype.setModel=function(t){var e=this;return(null!=t?this.setModelIntoUi(t):this.resetUiToDefaults()).then((function(){e.updateUiVisibility(),e.applyModel("api")}))},e.prototype.onBtCancel=function(t){var e=this;this.resetUiToActiveModel(this.getModel(),(function(){e.handleCancelEnd(t)}))},e.prototype.handleCancelEnd=function(t){this.providedFilterParams.closeOnApply&&this.close(t)},e.prototype.resetUiToActiveModel=function(t,e){var o=this,n=function(){o.onUiChanged(!1,"prevent"),null==e||e()};null!=t?this.setModelIntoUi(t).then(n):this.resetUiToDefaults().then(n)},e.prototype.onBtClear=function(){var t=this;this.resetUiToDefaults().then((function(){return t.onUiChanged()}))},e.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},e.prototype.applyModel=function(t){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var o=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(o,e)},e.prototype.isModelValid=function(t){return!0},e.prototype.onFormSubmit=function(t){t.preventDefault()},e.prototype.onBtApply=function(t,e,o){if(void 0===t&&(t=!1),void 0===e&&(e=!1),o&&o.preventDefault(),this.applyModel(e?"rowDataUpdated":"ui")){this.providedFilterParams.filterChangedCallback({afterFloatingFilter:t,afterDataChange:e,source:"columnFilter"})}this.providedFilterParams.closeOnApply&&this.applyActive&&!t&&!e&&this.close(o)},e.prototype.onNewRowsLoaded=function(){},e.prototype.close=function(t){if(this.hidePopup){var e,o=t,n=o&&o.key;"Enter"!==n&&"Space"!==n||(e={keyboardEvent:o}),this.hidePopup(e),this.hidePopup=null}},e.prototype.onUiChanged=function(t,e){if(void 0===t&&(t=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi());fn(this.getRefElement("applyFilterButton"),!o)}t&&!e||"immediately"===e?this.onBtApply(t):(this.applyActive||e)&&"debounce"!==e||this.onBtApplyDebounce()},e.prototype.afterGuiAttached=function(t){t&&(this.hidePopup=t.hidePopup),this.refreshFilterResizer(null==t?void 0:t.container)},e.prototype.refreshFilterResizer=function(t){if(this.positionableFeature&&"toolPanel"!==t){var e="floatingFilter"===t,o=this.positionableFeature,n=this.gridOptionsService;e?(o.restoreLastSize(),o.setResizable(n.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},e.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},e.getDebounceMs=function(t,o){return e.isUseApplyButton(t)?(null!=t.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=t.debounceMs?t.debounceMs:o},e.isUseApplyButton=function(t){return!!t.buttons&&t.buttons.indexOf("apply")>=0},e.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),t.prototype.destroy.call(this)},e.prototype.translate=function(t){return this.localeService.getLocaleTextFunc()(t,Mi[t])},e.prototype.getCellValue=function(t){var e=this.providedFilterParams,o=e.api,n=e.colDef,i=e.column,r=e.columnApi,s=e.context;return this.providedFilterParams.valueGetter({api:o,colDef:n,column:i,columnApi:r,context:s,data:t.data,getValue:function(e){return t.data[e]},node:t})},e.prototype.getPositionableElement=function(){return this.eFilterBody},Ui([X("rowModel")],e.prototype,"rowModel",void 0),Ui([Pi("eFilterBody")],e.prototype,"eFilterBody",void 0),Ui([Y],e.prototype,"postConstruct",null),e}(Ti),Ki=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Yi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},qi=function(t){function e(e,o){var n=t.call(this,o)||this;return n.labelSeparator="",n.labelAlignment="left",n.disabled=!1,n.label="",n.config=e||{},n}return Ki(e,t),e.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var t=this.config,e=t.labelSeparator,o=t.label,n=t.labelWidth,i=t.labelAlignment;null!=e&&this.setLabelSeparator(e),null!=o&&this.setLabel(o),null!=n&&this.setLabelWidth(n),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()},e.prototype.refreshLabel=function(){On(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(dn(this.eLabel,!1),Qe(this.eLabel,"presentation")):(dn(this.eLabel,!0),Qe(this.eLabel,null))},e.prototype.setLabelSeparator=function(t){return this.labelSeparator===t||(this.labelSeparator=t,null!=this.label&&this.refreshLabel()),this},e.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},e.prototype.getLabel=function(){return this.label},e.prototype.setLabel=function(t){return this.label===t||(this.label=t,this.refreshLabel()),this},e.prototype.setLabelAlignment=function(t){var e=this.getGui().classList;return e.toggle("ag-label-align-left","left"===t),e.toggle("ag-label-align-right","right"===t),e.toggle("ag-label-align-top","top"===t),this},e.prototype.setLabelEllipsis=function(t){return this.eLabel.classList.toggle("ag-label-ellipsis",t),this},e.prototype.setLabelWidth=function(t){return null==this.label||xn(this.eLabel,t),this},e.prototype.setDisabled=function(t){t=!!t;var e=this.getGui();return fn(e,t),e.classList.toggle("ag-disabled",t),this.disabled=t,this},e.prototype.isDisabled=function(){return!!this.disabled},Yi([Y],e.prototype,"postConstruct",null),e}(Ti),Qi=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Xi=function(t){function e(e,o,n){var i=t.call(this,e,o)||this;return i.className=n,i}return Qi(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},e.prototype.onValueChange=function(t){var e=this;return this.addManagedListener(this,qt.EVENT_FIELD_VALUE_CHANGED,(function(){return t(e.getValue())})),this},e.prototype.getWidth=function(){return this.getGui().clientWidth},e.prototype.setWidth=function(t){return Vn(this.getGui(),t),this},e.prototype.getPreviousValue=function(){return this.previousValue},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t,e){return this.value===t||(this.previousValue=this.value,this.value=t,e||this.dispatchEvent({type:qt.EVENT_FIELD_VALUE_CHANGED})),this},e}(qi),Ji=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Zi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$i=function(t){function e(e){var o=t.call(this,e,(null==e?void 0:e.template)||'\n    <div class="ag-picker-field" role="presentation">\n        <div ref="eLabel"></div>\n            <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">\n            <div ref="eDisplayField" class="ag-picker-field-display"></div>\n            <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n        </div>\n    </div>',null==e?void 0:e.className)||this;if(o.isPickerDisplayed=!1,o.skipClick=!1,o.pickerGap=4,o.hideCurrentPicker=null,o.ariaRole=null==e?void 0:e.ariaRole,o.onPickerFocusIn=o.onPickerFocusIn.bind(o),o.onPickerFocusOut=o.onPickerFocusOut.bind(o),!e)return o;var n=e.pickerGap,i=e.maxPickerHeight,r=e.variableWidth,s=e.minPickerWidth,a=e.maxPickerWidth;return null!=n&&(o.pickerGap=n),o.variableWidth=!!r,null!=i&&o.setPickerMaxHeight(i),null!=s&&o.setPickerMinWidth(s),null!=a&&o.setPickerMaxWidth(a),o}return Ji(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setupAria();var e="ag-"+this.getCompId()+"-display";this.eDisplayField.setAttribute("id",e);var o=this.getAriaElement();oo(o,e),this.addManagedListener(o,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var n=this.config.pickerIcon;if(n){var i=Xn(n,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},e.prototype.setupAria=function(){var t=this.getAriaElement();t.setAttribute("tabindex",(this.gridOptionsService.getNum("tabIndex")||0).toString()),lo(t,!1),this.ariaRole&&Qe(t,this.ariaRole)},e.prototype.refreshLabel=function(){var e;to(this.getAriaElement(),null!==(e=this.getLabelId())&&void 0!==e?e:""),t.prototype.refreshLabel.call(this)},e.prototype.onLabelOrWrapperMouseDown=function(t){t&&(t.preventDefault(),this.getFocusableElement().focus()),this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},e.prototype.onKeyDown=function(t){switch(t.key){case Zn.UP:case Zn.DOWN:case Zn.ENTER:case Zn.SPACE:t.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Zn.ESCAPE:this.isPickerDisplayed&&(t.preventDefault(),t.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}},e.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var t=this.pickerComponent.getGui();t.addEventListener("focusin",this.onPickerFocusIn),t.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},e.prototype.renderAndPositionPicker=function(){var t=this,e=this.gridOptionsService.getDocument(),o=this.pickerComponent.getGui();this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(e.body,"wheel",(function(e){o.contains(e.target)||t.hidePicker()})));var n=this.localeService.getLocaleTextFunc(),i=this.config,r=i.pickerType,s=i.pickerAriaLabelKey,a=i.pickerAriaLabelValue,l=i.modalPicker,u={modal:void 0===l||l,eChild:o,closeOnEsc:!0,closedCallback:function(){var o=e.activeElement===e.body;t.beforeHidePicker(),o&&t.isAlive()&&t.getFocusableElement().focus()},ariaLabel:n(s,a)},c=this.popupService.addPopup(u),p=this,d=p.maxPickerHeight,h=p.minPickerWidth,f=p.maxPickerWidth,g=p.pickerGap;p.variableWidth?(h&&(o.style.minWidth=h),o.style.width=kn(wn(this.eWrapper)),f&&(o.style.maxWidth=f)):xn(o,null!=f?f:wn(this.eWrapper));var v=null!=d?d:yn(this.popupService.getPopupParent())+"px";o.style.setProperty("max-height",v),o.style.position="absolute";var y=this.gridOptionsService.is("enableRtl")?"right":"left";return this.popupService.positionPopupByComponent({type:r,eventSource:this.eWrapper,ePopup:o,position:"under",alignSide:y,keepWithinBounds:!0,nudgeY:g}),c.hideFunc},e.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var t=this.pickerComponent.getGui();t.removeEventListener("focusin",this.onPickerFocusIn),t.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},e.prototype.toggleExpandedStyles=function(t){this.isAlive()&&(lo(this.getAriaElement(),t),this.eWrapper.classList.toggle("ag-picker-expanded",t),this.eWrapper.classList.toggle("ag-picker-collapsed",!t))},e.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},e.prototype.onPickerFocusOut=function(t){var e;(null===(e=this.pickerComponent)||void 0===e?void 0:e.getGui().contains(t.relatedTarget))||this.togglePickerHasFocus(!1)},e.prototype.togglePickerHasFocus=function(t){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",t)},e.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},e.prototype.setAriaLabel=function(t){return $e(this.getAriaElement(),t),this},e.prototype.setInputWidth=function(t){return xn(this.eWrapper,t),this},e.prototype.getFocusableElement=function(){return this.eWrapper},e.prototype.setPickerGap=function(t){return this.pickerGap=t,this},e.prototype.setPickerMinWidth=function(t){return"number"==typeof t&&(t+="px"),this.minPickerWidth=null==t?void 0:t,this},e.prototype.setPickerMaxWidth=function(t){return"number"==typeof t&&(t+="px"),this.maxPickerWidth=null==t?void 0:t,this},e.prototype.setPickerMaxHeight=function(t){return"number"==typeof t&&(t+="px"),this.maxPickerHeight=null==t?void 0:t,this},e.prototype.destroy=function(){this.hidePicker(),t.prototype.destroy.call(this)},Zi([X("popupService")],e.prototype,"popupService",void 0),Zi([Pi("eLabel")],e.prototype,"eLabel",void 0),Zi([Pi("eWrapper")],e.prototype,"eWrapper",void 0),Zi([Pi("eDisplayField")],e.prototype,"eDisplayField",void 0),Zi([Pi("eIcon")],e.prototype,"eIcon",void 0),e}(Xi),tr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),er=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},or=function(t){function e(e){void 0===e&&(e="default");var o=t.call(this,'<div class="ag-list ag-'+e+'-list" role="listbox"></div>')||this;return o.cssIdentifier=e,o.options=[],o.itemEls=[],o}return tr(e,t),e.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},e.prototype.handleKeyDown=function(t){var e=t.key;switch(e){case Zn.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case Zn.DOWN:case Zn.UP:var n=e===Zn.DOWN,i=void 0;if(t.preventDefault(),this.highlightedEl){var r=this.itemEls.indexOf(this.highlightedEl)+(n?1:-1);r=Math.min(Math.max(r,0),this.itemEls.length-1),i=this.itemEls[r]}else i=this.itemEls[n?0:this.itemEls.length-1];this.highlightItem(i)}},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){var e=t.value,o=oe(t.text||e);return this.options.push({value:e,text:o}),this.renderOption(e,o),this.updateIndices(),this},e.prototype.updateIndices=function(){var t=this.getGui().querySelectorAll(".ag-list-item");t.forEach((function(e,o){po(e,o+1),co(e,t.length)}))},e.prototype.renderOption=function(t,e){var o=this,n=document.createElement("div");Qe(n,"option"),n.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),n.innerHTML="<span>"+e+"</span>",n.tabIndex=-1,this.itemEls.push(n),this.addManagedListener(n,"mouseover",(function(){return o.highlightItem(n)})),this.addManagedListener(n,"mouseleave",(function(){return o.clearHighlighted()})),this.addManagedListener(n,"click",(function(){return o.setValue(t)})),this.getGui().appendChild(n)},e.prototype.setValue=function(t,e){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var o=this.options.findIndex((function(e){return e.value===t}));if(-1!==o){var n=this.options[o];this.value=n.value,this.displayValue=null!=n.text?n.text:n.value,this.highlightItem(this.itemEls[o]),e||this.fireChangeEvent()}return this},e.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},e.prototype.getValue=function(){return this.value},e.prototype.getDisplayValue=function(){return this.displayValue},e.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var e=this.options.findIndex((function(e){return e.value===t.value}));-1!==e&&this.highlightItem(this.itemEls[e])},e.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},e.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,this.highlightedEl.classList.add(e.ACTIVE_CLASS),So(this.highlightedEl,!0),this.highlightedEl.focus())},e.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(e.ACTIVE_CLASS),So(this.highlightedEl,!1),this.highlightedEl=null)},e.prototype.fireChangeEvent=function(){this.dispatchEvent({type:qt.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()},e.prototype.fireItemSelected=function(){this.dispatchEvent({type:e.EVENT_ITEM_SELECTED})},e.EVENT_ITEM_SELECTED="selectedItem",e.ACTIVE_CLASS="ag-active-item",er([Y],e.prototype,"init",null),e}(Ti),nr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ir=function(){return(ir=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},rr=function(t){function e(e){return t.call(this,ir({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"smallDown",ariaRole:"listbox"},e))||this}return nr(e,t),e.prototype.postConstruct=function(){var e;t.prototype.postConstruct.call(this),this.createListComponent(),this.eWrapper.tabIndex=null!==(e=this.gridOptionsService.getNum("tabIndex"))&&void 0!==e?e:0},e.prototype.createListComponent=function(){var t=this;this.listComponent=this.createBean(new or("select")),this.listComponent.setParentComponent(this),this.listComponent.addGuiEventListener("keydown",(function(e){e.key===Zn.TAB&&(e.preventDefault(),e.stopImmediatePropagation(),t.getGui().dispatchEvent(new KeyboardEvent("keydown",{key:e.key,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,bubbles:!0})))})),this.listComponent.addManagedListener(this.listComponent,or.EVENT_ITEM_SELECTED,(function(){t.hidePicker(),t.dispatchEvent({type:e.EVENT_ITEM_SELECTED})})),this.listComponent.addManagedListener(this.listComponent,qt.EVENT_FIELD_VALUE_CHANGED,(function(){t.listComponent&&(t.setValue(t.listComponent.getValue(),!1,!0),t.hidePicker())}))},e.prototype.createPickerComponent=function(){return this.listComponent},e.prototype.showPicker=function(){this.listComponent&&(t.prototype.showPicker.call(this),this.listComponent.refreshHighlighted())},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){return this.listComponent.addOption(t),this},e.prototype.setValue=function(e,o,n){return this.value!==e&&this.listComponent?(n||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,e,o))):this},e.prototype.destroy=function(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),t.prototype.destroy.call(this)},e.EVENT_ITEM_SELECTED="selectedItem",e}($i),sr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ar=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},lr=function(t){function o(e,o,n,i){void 0===n&&(n="text"),void 0===i&&(i="input");var r=t.call(this,e,'\n            <div role="presentation">\n                <div ref="eLabel" class="ag-input-field-label"></div>\n                <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n                    <'+i+' ref="eInput" class="ag-input-field-input"></'+i+">\n                </div>\n            </div>",o)||this;return r.inputType=n,r.displayFieldTag=i,r}return sr(o,t),o.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,o=e.width,n=e.value;null!=o&&this.setWidth(o),null!=n&&this.setValue(n),this.addInputListeners(),this.activateTabIndex([this.eInput])},o.prototype.refreshLabel=function(){e(this.getLabel())?to(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},o.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(e){return t.setValue(e.target.value)}))},o.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},o.prototype.getInputElement=function(){return this.eInput},o.prototype.setInputWidth=function(t){return xn(this.eWrapper,t),this},o.prototype.setInputName=function(t){return this.getInputElement().setAttribute("name",t),this},o.prototype.getFocusableElement=function(){return this.eInput},o.prototype.setMaxLength=function(t){return this.eInput.maxLength=t,this},o.prototype.setInputPlaceholder=function(t){return Un(this.eInput,"placeholder",t),this},o.prototype.setInputAriaLabel=function(t){return $e(this.eInput,t),this},o.prototype.setDisabled=function(e){return fn(this.eInput,e),t.prototype.setDisabled.call(this,e)},o.prototype.setAutoComplete=function(t){if(!0===t)Un(this.eInput,"autocomplete",null);else{var e="string"==typeof t?t:"off";Un(this.eInput,"autocomplete",e)}return this},ar([Pi("eLabel")],o.prototype,"eLabel",void 0),ar([Pi("eWrapper")],o.prototype,"eWrapper",void 0),ar([Pi("eInput")],o.prototype,"eInput",void 0),o}(Xi),ur=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),cr=function(t){function e(e,o,n){void 0===o&&(o="ag-checkbox"),void 0===n&&(n="checkbox");var i=t.call(this,e,o,n)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return ur(e,t),e.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},e.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},e.prototype.setPassive=function(t){this.passive=t},e.prototype.isReadOnly=function(){return this.readOnly},e.prototype.setReadOnly=function(t){this.eWrapper.classList.toggle("ag-disabled",t),this.eInput.disabled=t,this.readOnly=t},e.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),t.prototype.setDisabled.call(this,e)},e.prototype.toggle=function(){if(!this.eInput.disabled){var t=this.isSelected(),e=this.getNextValue();this.passive?this.dispatchChange(e,t):this.setValue(e)}},e.prototype.getValue=function(){return this.isSelected()},e.prototype.setValue=function(t,e){return this.refreshSelectedClass(t),this.setSelected(t,e),this},e.prototype.setName=function(t){return this.getInputElement().name=t,this},e.prototype.isSelected=function(){return this.selected},e.prototype.setSelected=function(t,e){this.isSelected()!==t&&(this.previousValue=this.isSelected(),t=this.selected="boolean"==typeof t?t:void 0,this.eInput.checked=t,this.eInput.indeterminate=void 0===t,e||this.dispatchChange(this.selected,this.previousValue))},e.prototype.dispatchChange=function(t,e,o){this.dispatchEvent({type:qt.EVENT_FIELD_VALUE_CHANGED,selected:t,previousValue:e,event:o});var n=this.getInputElement(),i={type:qt.EVENT_CHECKBOX_CHANGED,id:n.id,name:n.name,selected:t,previousValue:e};this.eventService.dispatchEvent(i)},e.prototype.onCheckboxClick=function(t){if(!this.passive&&!this.eInput.disabled){var e=this.isSelected(),o=this.selected=t.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,e,t)}},e.prototype.refreshSelectedClass=function(t){this.eWrapper.classList.toggle("ag-checked",!0===t),this.eWrapper.classList.toggle("ag-indeterminate",null==t)},e}(lr),pr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),dr=function(t){function e(e){return t.call(this,e,"ag-radio-button","radio")||this}return pr(e,t),e.prototype.isSelected=function(){return this.eInput.checked},e.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},e.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,qt.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},e.prototype.onChange=function(t){t.selected&&t.name&&this.eInput.name&&this.eInput.name===t.name&&t.id&&this.eInput.id!==t.id&&this.setValue(!1,!0)},e}(cr),hr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),fr=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},gr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},vr=function(){function t(t,e,o){this.localeService=t,this.optionsFactory=e,this.valueFormatter=o}return t.prototype.getModelAsString=function(t){var e=this;if(!t)return null;var o=null!=t.operator,n=this.localeService.getLocaleTextFunc();if(o){var i=t,r=i.conditions;if(!r)r=[i.condition1,i.condition2];var s=r.map((function(t){return e.getModelAsString(t)})),a="AND"===i.operator?"andCondition":"orCondition";return s.join(" "+n(a,Mi[a])+" ")}if(t.type===yr.BLANK||t.type===yr.NOT_BLANK)return n(t.type,t.type);var l=t,u=this.optionsFactory.getCustomOption(l.type),c=u||{},p=c.displayKey,d=c.displayName,h=c.numberOfInputs;return p&&d&&0===h?(n(p,d),d):this.conditionToString(l,u)},t.prototype.updateParams=function(t){this.optionsFactory=t.optionsFactory},t.prototype.formatValue=function(t){var e;return this.valueFormatter?null!==(e=this.valueFormatter(null!=t?t:null))&&void 0!==e?e:"":String(t)},t}(),yr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eTypes=[],e.eJoinOperatorPanels=[],e.eJoinOperatorsAnd=[],e.eJoinOperatorsOr=[],e.eConditionBodies=[],e.listener=function(){return e.onUiChanged()},e.lastUiCompletePosition=null,e.joinOperatorId=0,e}return hr(e,t),e.prototype.getNumberOfInputs=function(t){var o=this.optionsFactory.getCustomOption(t);if(o){var n=o.numberOfInputs;return null!=n?n:1}var i=[e.EMPTY,e.NOT_BLANK,e.BLANK];return t&&i.indexOf(t)>=0?0:t===e.IN_RANGE?2:1},e.prototype.onFloatingFilterChanged=function(t,e){this.setTypeFromFloatingFilter(t),this.setValueFromFloatingFilter(e),this.onUiChanged(!0)},e.prototype.setTypeFromFloatingFilter=function(t){var e=this;this.eTypes.forEach((function(o,n){0===n?o.setValue(t,!0):o.setValue(e.optionsFactory.getDefaultOption(),!0)}))},e.prototype.getModelFromUi=function(){var t=this.getUiCompleteConditions();return 0===t.length?null:this.maxNumConditions>1&&t.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:t[0],condition2:t[1],conditions:t}:t[0]},e.prototype.getConditionTypes=function(){return this.eTypes.map((function(t){return t.getValue()}))},e.prototype.getConditionType=function(t){return this.eTypes[t].getValue()},e.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"},e.prototype.areModelsEqual=function(t,e){var o=this;if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var n,i=!t.operator,r=!e.operator;if(!i&&r||i&&!r)return!1;if(i){var s=t,a=e;n=this.areSimpleModelsEqual(s,a)}else{var l=t,u=e;n=l.operator===u.operator&&gt(l.conditions,u.conditions,(function(t,e){return o.areSimpleModelsEqual(t,e)}))}return n},e.prototype.setModelIntoUi=function(t){var e=this;if(t.operator){var o=t;o.conditions||(o.conditions=[o.condition1,o.condition2]);var n=this.validateAndUpdateConditions(o.conditions),i=this.getNumConditions();if(n<i)this.removeConditionsAndOperators(n);else if(n>i)for(var r=i;r<n;r++)this.createJoinOperatorPanel(),this.createOption();var s="OR"===o.operator;this.eJoinOperatorsAnd.forEach((function(t){return t.setValue(!s,!0)})),this.eJoinOperatorsOr.forEach((function(t){return t.setValue(s,!0)})),o.conditions.forEach((function(t,o){e.eTypes[o].setValue(t.type,!0),e.setConditionIntoUi(t,o)}))}else{var a=t;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(a.type,!0),this.setConditionIntoUi(a,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),vi.resolve()},e.prototype.validateAndUpdateConditions=function(t){var e=t.length;return e>this.maxNumConditions&&(t.splice(this.maxNumConditions),T((function(){return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.')}),"simpleFilterSetModelMaxNumConditions"),e=this.maxNumConditions),e},e.prototype.doesFilterPass=function(t){var e,o=this,n=this.getModel();if(null==n)return!0;var i=n.operator,r=[];if(i){var s=n;r.push.apply(r,gr([],fr(null!==(e=s.conditions)&&void 0!==e?e:[])))}else r.push(n);return r[i&&"OR"===i?"some":"every"]((function(e){return o.individualConditionPasses(t,e)}))},e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new Ni,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},e.prototype.setNumConditions=function(t){var e,o;null!=t.suppressAndOrCondition&&T((function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')}),"simpleFilterSuppressAndOrCondition"),null!=t.alwaysShowBothConditions&&T((function(){return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.')}),"simpleFilterAlwaysShowBothConditions"),this.maxNumConditions=null!==(e=t.maxNumConditions)&&void 0!==e?e:t.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(T((function(){return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.')}),"simpleFilterMaxNumConditions"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(o=t.numAlwaysVisibleConditions)&&void 0!==o?o:t.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(T((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')}),"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(T((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".')}),"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"),this.numAlwaysVisibleConditions=this.maxNumConditions)},e.prototype.createOption=function(){var t=this,e=this.createManagedBean(new rr);this.eTypes.push(e),e.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());var o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(e),this.resetType(e);var n=this.getNumConditions()-1;this.forEachPositionInput(n,(function(e){return t.resetInput(e)})),this.addChangedListeners(e,n)},e.prototype.createJoinOperatorPanel=function(){var t=document.createElement("div");this.eJoinOperatorPanels.push(t),t.classList.add("ag-filter-condition");var e=this.createJoinOperator(this.eJoinOperatorsAnd,t,"and"),o=this.createJoinOperator(this.eJoinOperatorsOr,t,"or");this.eFilterBody.appendChild(t);var n=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(e,n,i),this.resetJoinOperatorOr(o,n,i),this.isReadOnly()||(e.onValueChange(this.listener),o.onValueChange(this.listener))},e.prototype.createJoinOperator=function(t,e,o){var n=this.createManagedBean(new dr);return t.push(n),n.addCssClass("ag-filter-condition-operator"),n.addCssClass("ag-filter-condition-operator-"+o),e.appendChild(n.getGui()),n},e.prototype.getDefaultJoinOperator=function(t){return"AND"===t||"OR"===t?t:"AND"},e.prototype.createFilterListOptions=function(){var t=this,e=this.optionsFactory.getFilterOptions();this.filterListOptions=e.map((function(e){return"string"==typeof e?t.createBoilerplateListOption(e):t.createCustomListOption(e)}))},e.prototype.putOptionsIntoDropdown=function(t){this.filterListOptions.forEach((function(e){t.addOption(e)})),t.setDisabled(this.filterListOptions.length<=1)},e.prototype.createBoilerplateListOption=function(t){return{value:t,text:this.translate(t)}},e.prototype.createCustomListOption=function(t){var e=t.displayKey,o=this.optionsFactory.getCustomOption(t.displayKey);return{value:e,text:o?this.localeService.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(e)}},e.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},e.prototype.createBodyTemplate=function(){return""},e.prototype.getCssIdentifier=function(){return"simple-filter"},e.prototype.updateUiVisibility=function(){var t=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,t)},e.prototype.updateNumConditions=function(){for(var t,e=-1,o=!0,n=0;n<this.getNumConditions();n++)this.isConditionUiComplete(n)?e=n:o=!1;if(this.shouldAddNewConditionAtEnd(o))this.createJoinOperatorPanel(),this.createOption();else{var i=null!==(t=this.lastUiCompletePosition)&&void 0!==t?t:this.getNumConditions()-2;if(e<i){this.removeConditionsAndOperators(i+1);var r=e+1,s=i-r;s>0&&this.removeConditionsAndOperators(r,s),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e},e.prototype.updateConditionStatusesAndValues=function(t,e){var o=this;this.eTypes.forEach((function(e,n){var i=o.isConditionDisabled(n,t);e.setDisabled(i||o.filterListOptions.length<=1),1===n&&(fn(o.eJoinOperatorPanels[0],i),o.eJoinOperatorsAnd[0].setDisabled(i),o.eJoinOperatorsOr[0].setDisabled(i))})),this.eConditionBodies.forEach((function(t,e){dn(t,o.isConditionBodyVisible(e))}));var n="OR"===(null!=e?e:this.getJoinOperator());this.eJoinOperatorsAnd.forEach((function(t,e){t.setValue(!n,!0)})),this.eJoinOperatorsOr.forEach((function(t,e){t.setValue(n,!0)})),this.forEachInput((function(e,n,i,r){o.setElementDisplayed(e,n<r),o.setElementDisabled(e,o.isConditionDisabled(i,t))})),this.resetPlaceholder()},e.prototype.shouldAddNewConditionAtEnd=function(t){return t&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},e.prototype.removeConditionsAndOperators=function(t,e){if(!(t>=this.getNumConditions())){this.removeComponents(this.eTypes,t,e),this.removeElements(this.eConditionBodies,t,e),this.removeValueElements(t,e);var o=Math.max(t-1,0);this.removeElements(this.eJoinOperatorPanels,o,e),this.removeComponents(this.eJoinOperatorsAnd,o,e),this.removeComponents(this.eJoinOperatorsOr,o,e)}},e.prototype.removeElements=function(t,e,o){this.removeItems(t,e,o).forEach((function(t){return Tn(t)}))},e.prototype.removeComponents=function(t,e,o){var n=this;this.removeItems(t,e,o).forEach((function(t){Tn(t.getGui()),n.destroyBean(t)}))},e.prototype.removeItems=function(t,e,o){return null==o?t.splice(e):t.splice(e,o)},e.prototype.afterGuiAttached=function(e){if(t.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!(null==e?void 0:e.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{var o=this.getInputs(0)[0];if(!o)return;o instanceof lr&&o.getInputElement().focus()}},e.prototype.afterGuiDetached=function(){t.prototype.afterGuiDetached.call(this);var e=this.getModel();this.areModelsEqual(e,this.getModelFromUi())&&!this.hasInvalidInputs()||this.resetUiToActiveModel(e);for(var o=-1,n=-1,i=!1,r=this.getJoinOperator(),s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))-1===o&&(o=s,n=s);else{var a=s<o;(s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1)||a)&&(this.removeConditionsAndOperators(s,1),i=!0,a&&n--)}var l=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),l=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),l=!0),l&&this.updateConditionStatusesAndValues(n,r),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n},e.prototype.getPlaceholderText=function(t,e){var o=this.translate(t);if(P(this.filterPlaceholder)){var n=this.filterPlaceholder,i=this.eTypes[e].getValue();o=n({filterOptionKey:i,filterOption:this.translate(i),placeholder:o})}else"string"==typeof this.filterPlaceholder&&(o=this.filterPlaceholder);return o},e.prototype.resetPlaceholder=function(){var t=this,e=this.localeService.getLocaleTextFunc();this.forEachInput((function(o,n,i,r){if(o instanceof lr){var s=0===n&&r>1?"inRangeStart":0===n?"filterOoo":"inRangeEnd",a=0===n&&r>1?e("ariaFilterFromValue","Filter from value"):0===n?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(t.getPlaceholderText(s,i)),o.setInputAriaLabel(a)}}))},e.prototype.setElementValue=function(t,e,o){t instanceof lr&&t.setValue(null!=e?String(e):null,!0)},e.prototype.setElementDisplayed=function(t,e){t instanceof Ti&&dn(t.getGui(),e)},e.prototype.setElementDisabled=function(t,e){t instanceof Ti&&fn(t.getGui(),e)},e.prototype.attachElementOnChange=function(t,e){t instanceof lr&&t.onValueChange(e)},e.prototype.forEachInput=function(t){var e=this;this.getConditionTypes().forEach((function(o,n){e.forEachPositionTypeInput(n,o,t)}))},e.prototype.forEachPositionInput=function(t,e){var o=this.getConditionType(t);this.forEachPositionTypeInput(t,o,e)},e.prototype.forEachPositionTypeInput=function(t,e,o){for(var n=this.getNumberOfInputs(e),i=this.getInputs(t),r=0;r<i.length;r++){var s=i[r];null!=s&&o(s,r,t,n)}},e.prototype.isConditionDisabled=function(t,e){return!!this.isReadOnly()||0!==t&&t>e+1},e.prototype.isConditionBodyVisible=function(t){var e=this.getConditionType(t);return this.getNumberOfInputs(e)>0},e.prototype.isConditionUiComplete=function(t){return!(t>=this.getNumConditions())&&(this.getConditionType(t)!==e.EMPTY&&!this.getValues(t).some((function(t){return null==t})))},e.prototype.getNumConditions=function(){return this.eTypes.length},e.prototype.getUiCompleteConditions=function(){for(var t=[],e=0;e<this.getNumConditions();e++)this.isConditionUiComplete(e)&&t.push(this.createCondition(e));return t},e.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var t=this.getNumConditions();t<this.numAlwaysVisibleConditions;t++)this.createJoinOperatorPanel(),this.createOption()},e.prototype.resetUiToDefaults=function(t){var e=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach((function(t){return e.resetType(t)})),this.eJoinOperatorsAnd.forEach((function(t,o){return e.resetJoinOperatorAnd(t,o,e.joinOperatorId+o)})),this.eJoinOperatorsOr.forEach((function(t,o){return e.resetJoinOperatorOr(t,o,e.joinOperatorId+o)})),this.joinOperatorId++,this.forEachInput((function(t){return e.resetInput(t)})),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,t||this.onUiChanged(),vi.resolve()},e.prototype.resetType=function(t){var e=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");t.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(e).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)},e.prototype.resetJoinOperatorAnd=function(t,e,o){this.resetJoinOperator(t,e,this.isDefaultOperator("AND"),this.translate("andCondition"),o)},e.prototype.resetJoinOperatorOr=function(t,e,o){this.resetJoinOperator(t,e,this.isDefaultOperator("OR"),this.translate("orCondition"),o)},e.prototype.resetJoinOperator=function(t,e,o,n,i){this.updateJoinOperatorDisabled(t.setValue(o,!0).setName("ag-simple-filter-and-or-"+this.getCompId()+"-"+i).setLabel(n),e)},e.prototype.updateJoinOperatorsDisabled=function(){var t=this;this.eJoinOperatorsAnd.forEach((function(e,o){return t.updateJoinOperatorDisabled(e,o)})),this.eJoinOperatorsOr.forEach((function(e,o){return t.updateJoinOperatorDisabled(e,o)}))},e.prototype.updateJoinOperatorDisabled=function(t,e){t.setDisabled(this.isReadOnly()||e>0)},e.prototype.resetInput=function(t){this.setElementValue(t,null),this.setElementDisabled(t,this.isReadOnly())},e.prototype.setConditionIntoUi=function(t,e){var o=this,n=this.mapValuesFromModel(t);this.forEachInput((function(t,i,r,s){r===e&&o.setElementValue(t,null!=n[i]?n[i]:null)}))},e.prototype.setValueFromFloatingFilter=function(t){var e=this;this.forEachInput((function(o,n,i,r){e.setElementValue(o,0===n&&0===i?t:null,!0)}))},e.prototype.isDefaultOperator=function(t){return t===this.defaultJoinOperator},e.prototype.addChangedListeners=function(t,e){var o=this;this.isReadOnly()||(t.onValueChange(this.listener),this.forEachPositionInput(e,(function(t){o.attachElementOnChange(t,o.listener)})))},e.prototype.individualConditionPasses=function(t,e){var o=this.getCellValue(t.node),n=this.mapValuesFromModel(e),i=this.optionsFactory.getCustomOption(e.type),r=this.evaluateCustomFilter(i,n,o);return null!=r?r:null==o?this.evaluateNullValue(e.type):this.evaluateNonNullValue(n,o,e,t)},e.prototype.evaluateCustomFilter=function(t,e,o){if(null!=t){var n=t.predicate;return null==n||e.some((function(t){return null==t}))?void 0:n(e,o)}},e.prototype.isBlank=function(t){return null==t||"string"==typeof t&&0===t.trim().length},e.prototype.hasInvalidInputs=function(){return!1},e.EMPTY="empty",e.BLANK="blank",e.NOT_BLANK="notBlank",e.EQUALS="equals",e.NOT_EQUAL="notEqual",e.LESS_THAN="lessThan",e.LESS_THAN_OR_EQUAL="lessThanOrEqual",e.GREATER_THAN="greaterThan",e.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",e.IN_RANGE="inRange",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.STARTS_WITH="startsWith",e.ENDS_WITH="endsWith",e}(zi),mr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mr(e,t),e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.scalarFilterParams=e},e.prototype.evaluateNullValue=function(t){switch(t){case e.EQUALS:case e.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case e.GREATER_THAN:case e.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case e.LESS_THAN:case e.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case e.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case e.BLANK:return!0;case e.NOT_BLANK:return!1}return!1},e.prototype.evaluateNonNullValue=function(t,o,n){var i=this.comparator(),r=null!=t[0]?i(t[0],o):0;switch(n.type){case e.EQUALS:return 0===r;case e.NOT_EQUAL:return 0!==r;case e.GREATER_THAN:return r>0;case e.GREATER_THAN_OR_EQUAL:return r>=0;case e.LESS_THAN:return r<0;case e.LESS_THAN_OR_EQUAL:return r<=0;case e.IN_RANGE:var s=i(t[1],o);return this.scalarFilterParams.inRangeInclusive?r>=0&&s<=0:r>0&&s<0;case e.BLANK:return this.isBlank(o);case e.NOT_BLANK:return!this.isBlank(o);default:return console.warn('AG Grid: Unexpected type of filter "'+n.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},e}(yr),wr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Sr=function(){return(Sr=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Er=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Rr=function(t){function e(e,o,n){var i=t.call(this,o,n)||this;return i.dateFilterParams=e,i}return wr(e,t),e.prototype.conditionToString=function(t,e){var o=t.type,n=(e||{}).numberOfInputs,i=o==yr.IN_RANGE||2===n,r=nn(t.dateFrom),s=nn(t.dateTo),a=this.dateFilterParams.inRangeFloatingFilterDateFormat;return i?(null!==r?on(r,a):"null")+"-"+(null!==s?on(s,a):"null"):null!=r?on(r,a):""+o},e.prototype.updateParams=function(e){t.prototype.updateParams.call(this,e),this.dateFilterParams=e.dateFilterParams},e}(vr),br=function(t){function e(){var e=t.call(this,"dateFilter")||this;return e.eConditionPanelsFrom=[],e.eConditionPanelsTo=[],e.dateConditionFromComps=[],e.dateConditionToComps=[],e.minValidYear=1e3,e.maxValidYear=1/0,e.minValidDate=null,e.maxValidDate=null,e}return wr(e,t),e.prototype.afterGuiAttached=function(e){t.prototype.afterGuiAttached.call(this,e),this.dateConditionFromComps[0].afterGuiAttached(e)},e.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.dateFrom,n=e.dateTo,i=e.type;return[o&&nn(o)||null,n&&nn(n)||null].slice(0,this.getNumberOfInputs(i))},e.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},e.prototype.defaultComparator=function(t,e){return null==e||e<t?-1:e>t?1:0},e.prototype.setParams=function(e){this.dateFilterParams=e,t.prototype.setParams.call(this,e);var o=function(t,o){if(null!=e[t]){if(!isNaN(e[t]))return null==e[t]?o:Number(e[t]);console.warn("AG Grid: DateFilter "+t+" is not a number")}return o};this.minValidYear=o("minValidYear",1e3),this.maxValidYear=o("maxValidYear",1/0),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:nn(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:nn(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new Rr(this.dateFilterParams,this.localeService,this.optionsFactory)},e.prototype.createDateCompWrapper=function(t){var e=this,o=new Ii(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams},t);return this.addDestroyFunc((function(){return o.destroy()})),o},e.prototype.setElementValue=function(t,e){t.setDate(e)},e.prototype.setElementDisplayed=function(t,e){t.setDisplayed(e)},e.prototype.setElementDisabled=function(t,e){t.setDisabled(e)},e.prototype.getDefaultFilterOptions=function(){return e.DEFAULT_FILTER_OPTIONS},e.prototype.createValueElement=function(){var t=document.createElement("div");return t.classList.add("ag-filter-body"),this.createFromToElement(t,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(t,this.eConditionPanelsTo,this.dateConditionToComps,"to"),t},e.prototype.createFromToElement=function(t,e,o,n){var i=document.createElement("div");i.classList.add("ag-filter-"+n),i.classList.add("ag-filter-date-"+n),e.push(i),t.appendChild(i),o.push(this.createDateCompWrapper(i))},e.prototype.removeValueElements=function(t,e){this.removeDateComps(this.dateConditionFromComps,t,e),this.removeDateComps(this.dateConditionToComps,t,e),this.removeItems(this.eConditionPanelsFrom,t,e),this.removeItems(this.eConditionPanelsTo,t,e)},e.prototype.removeDateComps=function(t,e,o){this.removeItems(t,e,o).forEach((function(t){return t.destroy()}))},e.prototype.isValidDateValue=function(t){if(null===t)return!1;if(this.minValidDate){if(t<this.minValidDate)return!1}else if(t.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(t>this.maxValidDate)return!1}else if(t.getUTCFullYear()>this.maxValidYear)return!1;return!0},e.prototype.isConditionUiComplete=function(e){var o=this;if(!t.prototype.isConditionUiComplete.call(this,e))return!1;var n=!0;return this.forEachInput((function(t,i,r,s){r!==e||!n||i>=s||(n=n&&o.isValidDateValue(t.getDate()))})),n},e.prototype.areSimpleModelsEqual=function(t,e){return t.dateFrom===e.dateFrom&&t.dateTo===e.dateTo&&t.type===e.type},e.prototype.getFilterType=function(){return"date"},e.prototype.createCondition=function(t){var e=this.getConditionType(t),o={},n=this.getValues(t);return n.length>0&&(o.dateFrom=tn(n[0])),n.length>1&&(o.dateTo=tn(n[1])),Sr({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:e},o)},e.prototype.resetPlaceholder=function(){var t=this.localeService.getLocaleTextFunc(),e=this.translate("dateFormatOoo"),o=t("ariaFilterValue","Filter Value");this.forEachInput((function(t){t.setInputPlaceholder(e),t.setInputAriaLabel(o)}))},e.prototype.getInputs=function(t){return t>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[t],this.dateConditionToComps[t]]},e.prototype.getValues=function(t){var e=[];return this.forEachPositionInput(t,(function(t,o,n,i){o<i&&e.push(t.getDate())})),e},e.prototype.getModelAsString=function(t){var e;return null!==(e=this.filterModelFormatter.getModelAsString(t))&&void 0!==e?e:""},e.DEFAULT_FILTER_OPTIONS=[Cr.EQUALS,Cr.GREATER_THAN,Cr.LESS_THAN,Cr.NOT_EQUAL,Cr.IN_RANGE,Cr.BLANK,Cr.NOT_BLANK],Er([X("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(Cr),Or=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Or(e,t),e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},e.prototype.isEventFromDataChange=function(t){return null==t?void 0:t.afterDataChange},e.prototype.getLastType=function(){return this.lastType},e.prototype.isReadOnly=function(){return this.readOnly},e.prototype.setLastTypeFromModel=function(t){if(t){var e;if(t.operator)e=t.conditions[0];else e=t;this.lastType=e.type}else this.lastType=this.optionsFactory.getDefaultOption()},e.prototype.canWeEditAfterModelFromParentFilter=function(t){if(!t)return this.isTypeEditable(this.lastType);if(t.operator)return!1;var e=t;return this.isTypeEditable(e.type)},e.prototype.init=function(t){this.setSimpleParams(t)},e.prototype.setSimpleParams=function(t){this.optionsFactory=new Ni,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!t.filterParams.readOnly;var e=this.isTypeEditable(this.lastType);this.setEditable(e)},e.prototype.onParamsUpdated=function(t){this.setSimpleParams(t)},e.prototype.doesFilterHaveSingleInput=function(t){var e=(this.optionsFactory.getCustomOption(t)||{}).numberOfInputs;return null==e||1==e},e.prototype.isTypeEditable=function(t){var e=[yr.IN_RANGE,yr.EMPTY,yr.BLANK,yr.NOT_BLANK];return!!t&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(t)&&e.indexOf(t)<0},e}(Ti),Dr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_r=function(t){function e(){return t.call(this,'\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n                <div ref="eDateWrapper" style="display: flex;"></div>\n            </div>')||this}return Dr(e,t),e.prototype.getDefaultFilterOptions=function(){return br.DEFAULT_FILTER_OPTIONS},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new Rr(this.filterParams,this.localeService,this.optionsFactory);var o=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input"))},e.prototype.onParamsUpdated=function(e){t.prototype.onParamsUpdated.call(this,e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams})},e.prototype.setEditable=function(t){dn(this.eDateWrapper,t),dn(this.eReadOnlyText.getGui(),!t)},e.prototype.onParentModelChanged=function(e,o){if(!this.isEventFromFloatingFilter(o)&&!this.isEventFromDataChange(o)){t.prototype.setLastTypeFromModel.call(this,e);var n=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(n),n){if(e){var i=e;this.dateComp.setDate(nn(i.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}},e.prototype.onDateChanged=function(){var t=this,e=tn(this.dateComp.getDate());this.params.parentFilterInstance((function(o){if(o){var n=nn(e);o.onFloatingFilterChanged(t.getLastType()||null,n)}}))},e.prototype.getDateComponentParams=function(){var t=zi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:N(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams}},e.prototype.createDateComponent=function(){var t=this;this.dateComp=new Ii(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc((function(){return t.dateComp.destroy()}))},e.prototype.updateDateComponent=function(){var t=this.getDateComponentParams(),e=this.gridOptionsService,o=e.api,n=e.columnApi,i=e.context;t.api=o,t.columnApi=n,t.context=i,this.dateComp.updateParams(t)},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},Pr([X("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Pr([Pi("eReadOnlyText")],e.prototype,"eReadOnlyText",void 0),Pr([Pi("eDateWrapper")],e.prototype,"eDateWrapper",void 0),e}(Tr),Ar=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lr=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Ir=function(t){function e(){return t.call(this,'\n            <div class="ag-filter-filter">\n                <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n            </div>')||this}return Ar(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var e=this;this.params=t,this.setParams(t);var o=this.gridOptionsService.getDocument(),n=this.eDateInput.getInputElement();this.addManagedListener(n,"mousedown",(function(){e.eDateInput.isDisabled()||e.usingSafariDatePicker||n.focus()})),this.addManagedListener(n,"input",(function(t){t.target===o.activeElement&&(e.eDateInput.isDisabled()||e.params.onDateChanged())}))},e.prototype.setParams=function(t){var e=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(t);this.usingSafariDatePicker=o&&No(),e.type=o?"date":"text";var n=t.filterParams||{},i=n.minValidYear,r=n.maxValidYear,s=n.minValidDate,a=n.maxValidDate;if(s&&i&&T((function(){return console.warn("AG Grid: DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.")}),"DateFilter.minValidDateAndMinValidYearWarning"),a&&r&&T((function(){return console.warn("AG Grid: DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.")}),"DateFilter.maxValidDateAndMaxValidYearWarning"),s&&a){var l=Lr([s,a].map((function(t){return t instanceof Date?t:nn(t)})),2),u=l[0],c=l[1];u&&c&&u.getTime()>c.getTime()&&T((function(){return console.warn("AG Grid: DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}),"DateFilter.minValidDateAndMaxValidDateWarning")}s?s instanceof Date?e.min=on(s):e.min=s:i&&(e.min=i+"-01-01"),a?a instanceof Date?e.max=on(a):e.max=a:r&&(e.max=r+"-12-31")},e.prototype.onParamsUpdated=function(t){this.params=t,this.setParams(t)},e.prototype.getDate=function(){return nn(this.eDateInput.getValue())},e.prototype.setDate=function(t){this.eDateInput.setValue(tn(t,!1))},e.prototype.setInputPlaceholder=function(t){this.eDateInput.setInputPlaceholder(t)},e.prototype.setDisabled=function(t){this.eDateInput.setDisabled(t)},e.prototype.afterGuiAttached=function(t){t&&t.suppressFocus||this.eDateInput.getInputElement().focus()},e.prototype.shouldUseBrowserDatePicker=function(t){return t.filterParams&&null!=t.filterParams.browserDatePicker?t.filterParams.browserDatePicker:Go()||xo()||No()&&Mo()>=14.1},Fr([Pi("eDateInput")],e.prototype,"eDateInput",void 0),e}(Ti),Nr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mr=function(t){function o(e,o,n){return void 0===o&&(o="ag-text-field"),void 0===n&&(n="text"),t.call(this,e,o,n)||this}return Nr(o,t),o.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},o.prototype.setValue=function(o,n){return this.eInput.value!==o&&(this.eInput.value=e(o)?o:""),t.prototype.setValue.call(this,o,n)},o.prototype.setStartValue=function(t){this.setValue(t,!0)},o.prototype.preventDisallowedCharacters=function(){var t=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keydown",(function(e){$n(e)&&e.key&&!t.test(e.key)&&e.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(e){var o,n=null===(o=e.clipboardData)||void 0===o?void 0:o.getData("text");n&&n.split("").some((function(e){return!t.test(e)}))&&e.preventDefault()}))},o}(lr),Gr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xr=function(t){function o(e){return t.call(this,e,"ag-number-field","number")||this}return Gr(o,t),o.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(e.eInput.value),o=isNaN(t)?"":e.normalizeValue(t.toString());e.value!==o&&e.setValue(o)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},o.prototype.onWheel=function(t){document.activeElement===this.eInput&&t.preventDefault()},o.prototype.normalizeValue=function(t){if(""===t)return"";null!=this.precision&&(t=this.adjustPrecision(t));var e=parseFloat(t);return null!=this.min&&e<this.min?t=this.min.toString():null!=this.max&&e>this.max&&(t=this.max.toString()),t},o.prototype.adjustPrecision=function(t,e){if(null==this.precision)return t;if(e){var o=parseFloat(t).toFixed(this.precision);return parseFloat(o).toString()}var n=String(t).split(".");if(n.length>1){if(n[1].length<=this.precision)return t;if(this.precision>0)return n[0]+"."+n[1].slice(0,this.precision)}return n[0]},o.prototype.setMin=function(t){return this.min===t||(this.min=t,Un(this.eInput,"min",t)),this},o.prototype.setMax=function(t){return this.max===t||(this.max=t,Un(this.eInput,"max",t)),this},o.prototype.setPrecision=function(t){return this.precision=t,this},o.prototype.setStep=function(t){return this.step===t||(this.step=t,Un(this.eInput,"step",t)),this},o.prototype.setValue=function(e,o){var n=this;return this.setValueOrInputValue((function(e){return t.prototype.setValue.call(n,e,o)}),(function(){return n}),e)},o.prototype.setStartValue=function(e){var o=this;return this.setValueOrInputValue((function(e){return t.prototype.setValue.call(o,e,!0)}),(function(t){o.eInput.value=t}),e)},o.prototype.setValueOrInputValue=function(t,o,n){if(e(n)){var i=this.isScientificNotation(n);if(i&&this.eInput.validity.valid)return t(n);if(!i)i=(n=this.adjustPrecision(n))!=this.normalizeValue(n);if(i)return o(n)}return t(n)},o.prototype.getValue=function(){if(this.eInput.validity.valid){var e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):t.prototype.getValue.call(this)}},o.prototype.isScientificNotation=function(t){return"string"==typeof t&&t.includes("e")},o}(Mr),Vr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vr(e,t),e.prototype.conditionToString=function(t,e){var o=(e||{}).numberOfInputs;return t.type==yr.IN_RANGE||2===o?this.formatValue(t.filter)+"-"+this.formatValue(t.filterTo):null!=t.filter?this.formatValue(t.filter):""+t.type},e}(vr);function kr(t){var e=(null!=t?t:{}).allowedCharPattern;return null!=e?e:null}var Br,jr,Wr,Ur=function(e){function o(){var t=e.call(this,"numberFilter")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return Vr(o,e),o.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.filter,n=e.filterTo,i=e.type;return[this.processValue(o),this.processValue(n)].slice(0,this.getNumberOfInputs(i))},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.comparator=function(){return function(t,e){return t===e?0:t<e?1:-1}},o.prototype.setParams=function(t){this.numberFilterParams=t,e.prototype.setParams.call(this,t),this.filterModelFormatter=new Hr(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.setElementValue=function(t,o,n){var i=!n&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(null!=o?o:null):o;e.prototype.setElementValue.call(this,t,i)},o.prototype.createValueElement=function(){var t=kr(this.numberFilterParams),e=document.createElement("div");return e.classList.add("ag-filter-body"),Qe(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from",t),this.createFromToElement(e,this.eValuesTo,"to",t),e},o.prototype.createFromToElement=function(t,e,o,n){var i=this.createManagedBean(n?new Mr({allowedCharPattern:n}):new xr);i.addCssClass("ag-filter-"+o),i.addCssClass("ag-filter-filter"),e.push(i),t.appendChild(i.getGui())},o.prototype.removeValueElements=function(t,e){this.removeComponents(this.eValuesFrom,t,e),this.removeComponents(this.eValuesTo,t,e)},o.prototype.getValues=function(t){var e=this,o=[];return this.forEachPositionInput(t,(function(t,n,i,r){n<r&&o.push(e.processValue(e.stringToFloat(t.getValue())))})),o},o.prototype.areSimpleModelsEqual=function(t,e){return t.filter===e.filter&&t.filterTo===e.filterTo&&t.type===e.type},o.prototype.getFilterType=function(){return"number"},o.prototype.processValue=function(t){return null==t||isNaN(t)?null:t},o.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var o=t(e);return null!=o&&""===o.trim()&&(o=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(o):null==o||"-"===o.trim()?null:parseFloat(o)},o.prototype.createCondition=function(t){var e=this.getConditionType(t),o={filterType:this.getFilterType(),type:e},n=this.getValues(t);return n.length>0&&(o.filter=n[0]),n.length>1&&(o.filterTo=n[1]),o},o.prototype.getInputs=function(t){return t>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[t],this.eValuesTo[t]]},o.prototype.getModelAsString=function(t){var e;return null!==(e=this.filterModelFormatter.getModelAsString(t))&&void 0!==e?e:""},o.prototype.hasInvalidInputs=function(){var t=!1;return this.forEachInput((function(e){e.getInputElement().validity.valid||(t=!0)})),t},o.DEFAULT_FILTER_OPTIONS=[Cr.EQUALS,Cr.NOT_EQUAL,Cr.LESS_THAN,Cr.LESS_THAN_OR_EQUAL,Cr.GREATER_THAN,Cr.GREATER_THAN_OR_EQUAL,Cr.IN_RANGE,Cr.BLANK,Cr.NOT_BLANK],o}(Cr),zr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kr=function(){return(Kr=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Yr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.conditionToString=function(t,e){var o=(e||{}).numberOfInputs;return t.type==yr.IN_RANGE||2===o?t.filter+"-"+t.filterTo:null!=t.filter?""+t.filter:""+t.type},e}(vr),qr=function(e){function o(){var t=e.call(this,"textFilter")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return zr(o,e),o.trimInput=function(t){var e=t&&t.trim();return""===e?t:e},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.setParams=function(t){this.textFilterParams=t,e.prototype.setParams.call(this,t),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?o.DEFAULT_FORMATTER:o.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new Yr(this.localeService,this.optionsFactory)},o.prototype.getTextMatcher=function(){var t=this.textFilterParams.textCustomComparator;return t?(di.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(e){var o=e.filterOption,n=e.value,i=e.filterText;return t(o,n,i)}):this.textFilterParams.textMatcher||o.DEFAULT_MATCHER},o.prototype.createCondition=function(t){var e=this.getConditionType(t),o={filterType:this.getFilterType(),type:e},n=this.getValuesWithSideEffects(t,!0);return n.length>0&&(o.filter=n[0]),n.length>1&&(o.filterTo=n[1]),o},o.prototype.getFilterType=function(){return"text"},o.prototype.areSimpleModelsEqual=function(t,e){return t.filter===e.filter&&t.filterTo===e.filterTo&&t.type===e.type},o.prototype.getInputs=function(t){return t>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[t],this.eValuesTo[t]]},o.prototype.getValues=function(t){return this.getValuesWithSideEffects(t,!1)},o.prototype.getValuesWithSideEffects=function(e,n){var i=this,r=[];return this.forEachPositionInput(e,(function(e,s,a,l){var u;if(s<l){var c=t(e.getValue());n&&i.textFilterParams.trimInput&&(c=null!==(u=o.trimInput(c))&&void 0!==u?u:null,e.setValue(c,!0)),r.push(c)}})),r},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueElement=function(){var t=document.createElement("div");return t.classList.add("ag-filter-body"),Qe(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from"),this.createFromToElement(t,this.eValuesTo,"to"),t},o.prototype.createFromToElement=function(t,e,o){var n=this.createManagedBean(new Mr);n.addCssClass("ag-filter-"+o),n.addCssClass("ag-filter-filter"),e.push(n),t.appendChild(n.getGui())},o.prototype.removeValueElements=function(t,e){this.removeComponents(this.eValuesFrom,t,e),this.removeComponents(this.eValuesTo,t,e)},o.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.filter,n=e.filterTo,i=e.type;return[o||null,n||null].slice(0,this.getNumberOfInputs(i))},o.prototype.evaluateNullValue=function(t){var e=[yr.NOT_EQUAL,yr.NOT_CONTAINS,yr.BLANK];return!!t&&e.indexOf(t)>=0},o.prototype.evaluateNonNullValue=function(t,e,o,n){var i=this,r=t.map((function(t){return i.formatter(t)}))||[],s=this.formatter(e),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(o.type===yr.BLANK)return this.isBlank(e);if(o.type===yr.NOT_BLANK)return!this.isBlank(e);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:n.node,data:n.data,filterOption:o.type,value:s,textFormatter:h};return r.some((function(t){return i.matcher(Kr(Kr({},f),{filterText:t}))}))},o.prototype.getModelAsString=function(t){var e;return null!==(e=this.filterModelFormatter.getModelAsString(t))&&void 0!==e?e:""},o.DEFAULT_FILTER_OPTIONS=[yr.CONTAINS,yr.NOT_CONTAINS,yr.EQUALS,yr.NOT_EQUAL,yr.STARTS_WITH,yr.ENDS_WITH,yr.BLANK,yr.NOT_BLANK],o.DEFAULT_FORMATTER=function(t){return t},o.DEFAULT_LOWERCASE_FORMATTER=function(t){return null==t?null:t.toString().toLowerCase()},o.DEFAULT_MATCHER=function(t){var e=t.filterOption,n=t.value,i=t.filterText;if(null==i)return!1;switch(e){case o.CONTAINS:return n.indexOf(i)>=0;case o.NOT_CONTAINS:return n.indexOf(i)<0;case o.EQUALS:return n===i;case o.NOT_EQUAL:return n!=i;case o.STARTS_WITH:return 0===n.indexOf(i);case o.ENDS_WITH:var r=n.lastIndexOf(i);return r>=0&&r===n.length-i.length;default:return!1}},o}(yr),Qr=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Xr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Jr=function(t){function e(e){var o=t.call(this)||this;return o.params=e,o.valueChangedListener=function(){},o}return Qr(e,t),e.prototype.setupGui=function(t){var e,o=this;this.eFloatingFilterTextInput=this.createManagedBean(new Mr(null===(e=this.params)||void 0===e?void 0:e.config));var n=this.eFloatingFilterTextInput.getGui();t.appendChild(n),this.addManagedListener(n,"input",(function(t){return o.valueChangedListener(t)})),this.addManagedListener(n,"keydown",(function(t){return o.valueChangedListener(t)}))},e.prototype.setEditable=function(t){this.eFloatingFilterTextInput.setDisabled(!t)},e.prototype.setAutoComplete=function(t){this.eFloatingFilterTextInput.setAutoComplete(t)},e.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},e.prototype.setValue=function(t,e){this.eFloatingFilterTextInput.setValue(t,e)},e.prototype.setValueChangedListener=function(t){this.valueChangedListener=t},e.prototype.setParams=function(t){this.setAriaLabel(t.ariaLabel),void 0!==t.autoComplete&&this.setAutoComplete(t.autoComplete)},e.prototype.setAriaLabel=function(t){this.eFloatingFilterTextInput.setInputAriaLabel(t)},e}(Bt),Zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.postConstruct=function(){this.setTemplate('\n            <div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>\n        ')},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.onParentModelChanged=function(t,e){this.isEventFromFloatingFilter(e)||this.isEventFromDataChange(e)||(this.setLastTypeFromModel(t),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(t)))},e.prototype.init=function(e){this.setupFloatingFilterInputService(e),t.prototype.init.call(this,e),this.setTextInputParams(e)},e.prototype.setupFloatingFilterInputService=function(t){this.floatingFilterInputService=this.createFloatingFilterInputService(t),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},e.prototype.setTextInputParams=function(t){var e;this.params=t;var o=null!==(e=t.browserAutoComplete)&&void 0!==e&&e;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(t),autoComplete:o}),this.applyActive=zi.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var n=zi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=N(this.syncUpWithParentFilter.bind(this),n);this.floatingFilterInputService.setValueChangedListener(i)}},e.prototype.onParamsUpdated=function(e){t.prototype.onParamsUpdated.call(this,e),this.setTextInputParams(e)},e.prototype.recreateFloatingFilterInputService=function(t){var e=this.floatingFilterInputService.getValue();On(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(t),this.floatingFilterInputService.setValue(e,!0)},e.prototype.getAriaLabel=function(t){return this.columnModel.getDisplayNameForColumn(t.column,"header",!0)+" "+this.localeService.getLocaleTextFunc()("ariaFilterInput","Filter Input")},e.prototype.syncUpWithParentFilter=function(t){var e=this,o=t.key===Zn.ENTER;if(!this.applyActive||o){var n=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(n=qr.trimInput(n),this.floatingFilterInputService.setValue(n,!0)),this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType()||null,n||null)}))}},e.prototype.setEditable=function(t){this.floatingFilterInputService.setEditable(t)},Xr([X("columnModel")],e.prototype,"columnModel",void 0),Xr([Pi("eFloatingFilterInputContainer")],e.prototype,"eFloatingFilterInputContainer",void 0),Xr([Y],e.prototype,"postConstruct",null),e}(Tr),$r=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ts=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return $r(e,t),e.prototype.setupGui=function(t){var e=this;this.eFloatingFilterNumberInput=this.createManagedBean(new xr),this.eFloatingFilterTextInput=this.createManagedBean(new Mr),this.eFloatingFilterTextInput.setDisabled(!0);var o=this.eFloatingFilterNumberInput.getGui(),n=this.eFloatingFilterTextInput.getGui();t.appendChild(o),t.appendChild(n),this.setupListeners(o,(function(t){return e.valueChangedListener(t)})),this.setupListeners(n,(function(t){return e.valueChangedListener(t)}))},e.prototype.setEditable=function(t){this.numberInputActive=t,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},e.prototype.setAutoComplete=function(t){this.eFloatingFilterNumberInput.setAutoComplete(t),this.eFloatingFilterTextInput.setAutoComplete(t)},e.prototype.getValue=function(){return this.getActiveInputElement().getValue()},e.prototype.setValue=function(t,e){this.getActiveInputElement().setValue(t,e)},e.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},e.prototype.setValueChangedListener=function(t){this.valueChangedListener=t},e.prototype.setupListeners=function(t,e){this.addManagedListener(t,"input",e),this.addManagedListener(t,"keydown",e)},e.prototype.setParams=function(t){this.setAriaLabel(t.ariaLabel),void 0!==t.autoComplete&&this.setAutoComplete(t.autoComplete)},e.prototype.setAriaLabel=function(t){this.eFloatingFilterNumberInput.setInputAriaLabel(t),this.eFloatingFilterTextInput.setInputAriaLabel(t)},e}(Bt),es=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $r(e,t),e.prototype.init=function(e){var o;t.prototype.init.call(this,e),this.filterModelFormatter=new Hr(this.localeService,this.optionsFactory,null===(o=e.filterParams)||void 0===o?void 0:o.numberFormatter)},e.prototype.onParamsUpdated=function(e){kr(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),t.prototype.onParamsUpdated.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},e.prototype.getDefaultFilterOptions=function(){return Ur.DEFAULT_FILTER_OPTIONS},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},e.prototype.createFloatingFilterInputService=function(t){return this.allowedCharPattern=kr(t.filterParams),this.allowedCharPattern?this.createManagedBean(new Jr({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new ts)},e}(Zr),os=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ns=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return os(e,t),e.prototype.init=function(e){t.prototype.init.call(this,e),this.filterModelFormatter=new Yr(this.localeService,this.optionsFactory)},e.prototype.onParamsUpdated=function(e){t.prototype.onParamsUpdated.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},e.prototype.getDefaultFilterOptions=function(){return qr.DEFAULT_FILTER_OPTIONS},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},e.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new Jr)},e}(Zr),is=function(){function t(t,e){var o=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new nt,this.eElement=t,this.preventMouseClick=e;var n=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),r=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",r,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",n,{passive:!0}),o.eElement.removeEventListener("touchmove",i,{passive:!0}),o.eElement.removeEventListener("touchend",r,{passive:!1})}))}return t.prototype.getActiveTouch=function(t){for(var e=0;e<t.length;e++){if(t[e].identifier===this.touchStart.identifier)return t[e]}return null},t.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},t.prototype.onTouchStart=function(e){var o=this;if(!this.touching){this.touchStart=e.touches[0],this.touching=!0,this.moved=!1;var n=this.touchStart;window.setTimeout((function(){var i=o.touchStart===n;if(o.touching&&i&&!o.moved){o.moved=!0;var r={type:t.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:e};o.eventService.dispatchEvent(r)}}),500)}},t.prototype.onTouchMove=function(t){if(this.touching){var e=this.getActiveTouch(t.touches);if(e)!ri(e,this.touchStart,4)&&(this.moved=!0)}},t.prototype.onTouchEnd=function(e){if(this.touching){if(!this.moved){var o={type:t.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}},t.prototype.checkForDoubleTap=function(){var e=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(e-this.lastTapTime>t.DOUBLE_TAP_MILLIS){var o={type:t.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e},t.prototype.destroy=function(){this.destroyFuncs.forEach((function(t){return t()}))},t.EVENT_TAP="tap",t.EVENT_DOUBLE_TAP="doubleTap",t.EVENT_LONG_TAP="longTap",t.DOUBLE_TAP_MILLIS=500,t}(),rs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ss=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},as=function(t){function e(o){var n=t.call(this)||this;return o||n.setTemplate(e.TEMPLATE),n}return rs(e,t),e.prototype.attachCustomElements=function(t,e,o,n,i){this.eSortOrder=t,this.eSortAsc=e,this.eSortDesc=o,this.eSortMixed=n,this.eSortNone=i},e.prototype.setupSort=function(t,e){var o=this;void 0===e&&(e=!1),this.column=t,this.suppressOrder=e,this.setupMultiSortIndicator(),!!this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,t),this.addInIcon("sortDescending",this.eSortDesc,t),this.addInIcon("sortUnSort",this.eSortNone,t),this.addManagedListener(this.eventService,qt.EVENT_SORT_CHANGED,(function(){return o.onSortChanged()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return o.onSortChanged()})),this.onSortChanged())},e.prototype.addInIcon=function(t,e,o){if(null!=e){var n=Xn(t,this.gridOptionsService,o);n&&e.appendChild(n)}},e.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},e.prototype.updateIcons=function(){var t=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var e="asc"===t;dn(this.eSortAsc,e,{skipAriaHidden:!0})}if(this.eSortDesc){var o="desc"===t;dn(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var n=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),i=null==t;dn(this.eSortNone,!n&&i,{skipAriaHidden:!0})}},e.prototype.setupMultiSortIndicator=function(){var t=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var e=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e&&(this.addManagedListener(this.eventService,qt.EVENT_SORT_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},e.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var t="mixed"===this.sortController.getDisplaySortForColumn(this.column);dn(this.eSortMixed,t,{skipAriaHidden:!0})}},e.prototype.updateSortOrder=function(){var t,e=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),n=null!==(t=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==t?t:-1,i=o.some((function(t){var o;return null!==(o=e.sortController.getDisplaySortIndexForColumn(t))&&void 0!==o&&o})),r=n>=0&&i;dn(this.eSortOrder,r,{skipAriaHidden:!0}),n>=0?this.eSortOrder.innerHTML=(n+1).toString():On(this.eSortOrder)}},e.TEMPLATE='<span class="ag-sort-indicator-container">\n            <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n        </span>',ss([Pi("eSortOrder")],e.prototype,"eSortOrder",void 0),ss([Pi("eSortAsc")],e.prototype,"eSortAsc",void 0),ss([Pi("eSortDesc")],e.prototype,"eSortDesc",void 0),ss([Pi("eSortMixed")],e.prototype,"eSortMixed",void 0),ss([Pi("eSortNone")],e.prototype,"eSortNone",void 0),ss([X("columnModel")],e.prototype,"columnModel",void 0),ss([X("sortController")],e.prototype,"sortController",void 0),e}(Ti),ls=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),us=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},cs=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return ls(o,t),o.prototype.destroy=function(){t.prototype.destroy.call(this)},o.prototype.refresh=function(t){return this.params=t,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(t),!0)))},o.prototype.workOutTemplate=function(){var t=ht(this.params.template,o.TEMPLATE);return t=t&&t.trim?t.trim():t},o.prototype.init=function(t){this.params=t,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(t.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(t)},o.prototype.setDisplayName=function(t){if(this.currentDisplayName!=t.displayName){this.currentDisplayName=t.displayName;var e=oe(this.currentDisplayName);this.eText&&(this.eText.innerHTML=e)}},o.prototype.setupIcons=function(t){this.addInIcon("menu",this.eMenu,t),this.addInIcon("filter",this.eFilter,t)},o.prototype.addInIcon=function(t,e,o){if(null!=e){var n=Xn(t,this.gridOptionsService,o);n&&e.appendChild(n)}},o.prototype.setupTap=function(){var t=this,o=this.gridOptionsService;if(!o.is("suppressTouch")){var n=new is(this.getGui(),!0),i=o.is("suppressMenuHide"),r=i&&e(this.eMenu),s=r?new is(this.eMenu,!0):n;if(this.params.enableMenu){var a=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,is[a],(function(e){o.api.showColumnMenuAfterMouseClick(t.params.column,e.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,is.EVENT_TAP,(function(e){var o=e.touchStart.target;i&&t.eMenu.contains(o)||t.sortController.progressSort(t.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),r&&this.addDestroyFunc((function(){return s.destroy()}))}},o.prototype.workOutShowMenu=function(){var t=!this.gridOptionsService.is("suppressMenuHide"),e=Ho()&&t;return this.params.enableMenu&&!e},o.prototype.setMenu=function(){var t=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var e=this.gridOptionsService.is("suppressMenuHide");this.addManagedListener(this.eMenu,"click",(function(){return t.showMenu(t.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",e)}else Tn(this.eMenu)},o.prototype.showMenu=function(t){t||(t=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,t,"columnMenu")},o.prototype.workOutSort=function(){return this.params.enableSorting},o.prototype.setupSort=function(){var t=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new as(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var e="ctrl"===this.gridOptionsService.get("multiSortKey");this.addManagedListener(this.params.column,ut.EVENT_MOVING_CHANGED,(function(){t.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(o){var n=t.params.column.isMoving(),i=(new Date).getTime()-t.lastMovingChanged<50;if(!(n||i)){var r=e?o.ctrlKey||o.metaKey:o.shiftKey;t.params.progressSort(r)}}));var o=function(){if(t.addOrRemoveCssClass("ag-header-cell-sorted-asc",t.params.column.isSortAscending()),t.addOrRemoveCssClass("ag-header-cell-sorted-desc",t.params.column.isSortDescending()),t.addOrRemoveCssClass("ag-header-cell-sorted-none",t.params.column.isSortNone()),t.params.column.getColDef().showRowGroup){var e=t.columnModel.getSourceColumnsForGroupColumn(t.params.column),o=!(null==e?void 0:e.every((function(e){return t.params.column.getSort()==e.getSort()})));t.addOrRemoveCssClass("ag-header-cell-sorted-mixed",o)}};this.addManagedListener(this.eventService,qt.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},o.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ut.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},o.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();dn(this.eFilter,t,{skipAriaHidden:!0})},o.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n            <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n            <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n                <span ref="eText" class="ag-header-cell-text"></span>\n                <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n                <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n            </div>\n        </div>',us([X("sortController")],o.prototype,"sortController",void 0),us([X("menuFactory")],o.prototype,"menuFactory",void 0),us([X("columnModel")],o.prototype,"columnModel",void 0),us([Pi("eFilter")],o.prototype,"eFilter",void 0),us([Pi("eSortIndicator")],o.prototype,"eSortIndicator",void 0),us([Pi("eMenu")],o.prototype,"eMenu",void 0),us([Pi("eLabel")],o.prototype,"eLabel",void 0),us([Pi("eText")],o.prototype,"eText",void 0),us([Pi("eSortOrder")],o.prototype,"eSortOrder",void 0),us([Pi("eSortAsc")],o.prototype,"eSortAsc",void 0),us([Pi("eSortDesc")],o.prototype,"eSortDesc",void 0),us([Pi("eSortMixed")],o.prototype,"eSortMixed",void 0),us([Pi("eSortNone")],o.prototype,"eSortNone",void 0),o}(Ti),ps=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ds=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},hs=function(t){function o(){return t.call(this,o.TEMPLATE)||this}return ps(o,t),o.prototype.destroy=function(){t.prototype.destroy.call(this)},o.prototype.init=function(t){this.params=t,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},o.prototype.checkWarnings=function(){if(this.params.template){T((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},o.prototype.setupExpandIcons=function(){var t=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var e=function(e){if(!At(e)){var o=!t.params.columnGroup.isExpanded();t.columnModel.setColumnGroupOpened(t.params.columnGroup.getProvidedColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,e),this.addTouchAndClickListeners(this.eOpenIcon,e);var o=function(t){_t(t)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",e),this.updateIconVisibility();var n=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(n,pt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(n,pt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},o.prototype.addTouchAndClickListeners=function(t,e){var o=new is(t,!0);this.addManagedListener(o,is.EVENT_TAP,e),this.addDestroyFunc((function(){return o.destroy()})),this.addManagedListener(t,"click",e)},o.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var t=this.params.columnGroup.isExpanded();dn(this.eOpenIcon,t),dn(this.eCloseIcon,!t)}else dn(this.eOpenIcon,!1),dn(this.eCloseIcon,!1)},o.prototype.addInIcon=function(t,e){var o=Xn(t,this.gridOptionsService,null);o&&this.getRefElement(e).appendChild(o)},o.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return dn(this.eOpenIcon,!1),void dn(this.eCloseIcon,!1)},o.prototype.setupLabel=function(){var t,o=this.params,n=o.displayName,i=o.columnGroup;if(e(n)){var r=oe(n);this.getRefElement("agLabel").innerHTML=r}this.addOrRemoveCssClass("ag-sticky-label",!(null===(t=i.getColGroupDef())||void 0===t?void 0:t.suppressStickyLabel))},o.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n            <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n            <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n            <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n        </div>',ds([X("columnModel")],o.prototype,"columnModel",void 0),ds([Pi("agOpened")],o.prototype,"eOpenIcon",void 0),ds([Pi("agClosed")],o.prototype,"eCloseIcon",void 0),o}(Ti),fs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fs(e,t),e.prototype.isPopup=function(){return!0},e.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),t.prototype.setParentComponent.call(this,e)},e.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),t.prototype.destroy.call(this)},e}(Ti),vs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ys=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ms=function(t){function o(){return t.call(this,o.TEMPLATE)||this}return vs(o,t),o.prototype.init=function(t){this.params=t,this.focusAfterAttached=t.cellStartedEdit,this.eTextArea.setMaxLength(t.maxLength||200).setCols(t.cols||60).setRows(t.rows||10),e(t.value,!0)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()},o.prototype.onKeyDown=function(t){var e=t.key;(e===Zn.LEFT||e===Zn.UP||e===Zn.RIGHT||e===Zn.DOWN||t.shiftKey&&e===Zn.ENTER)&&t.stopPropagation()},o.prototype.afterGuiAttached=function(){var t=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},o.prototype.getValue=function(){var t=this.eTextArea.getValue();return e(t)||e(this.params.value)?this.params.parseValue(t):this.params.value},o.TEMPLATE='<div class="ag-large-text">\n            <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n        </div>',ys([Pi("eTextArea")],o.prototype,"eTextArea",void 0),o}(gs),Cs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ws=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ss=function(t){function e(){var e=t.call(this,'<div class="ag-cell-edit-wrapper">\n                <ag-select class="ag-cell-editor" ref="eSelect"></ag-select>\n            </div>')||this;return e.startedByEnter=!1,e}return Cs(e,t),e.prototype.init=function(t){this.focusAfterAttached=t.cellStartedEdit;var e=this.eSelect,n=this.valueFormatterService,i=this.gridOptionsService,r=t.values,s=t.value,a=t.eventKey;if(o(r))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=a&&a===Zn.ENTER;var l=!1;r.forEach((function(o){var i={value:o},r=n.formatValue(t.column,null,o),a=null!=r;i.text=a?r:o,e.addOption(i),l=l||s===o})),l?e.setValue(t.value,!0):t.values.length&&e.setValue(t.values[0],!0);var u=t.valueListGap,c=t.valueListMaxWidth,p=t.valueListMaxHeight;null!=u&&e.setPickerGap(u),null!=p&&e.setPickerMaxHeight(p),null!=c&&e.setPickerMaxWidth(c),"fullRow"!==i.get("editType")&&this.addManagedListener(this.eSelect,rr.EVENT_ITEM_SELECTED,(function(){return t.stopEditing()}))}},e.prototype.afterGuiAttached=function(){var t=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout((function(){t.isAlive()&&t.eSelect.showPicker()}))},e.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},e.prototype.getValue=function(){return this.eSelect.getValue()},e.prototype.isPopup=function(){return!1},ws([X("valueFormatterService")],e.prototype,"valueFormatterService",void 0),ws([Pi("eSelect")],e.prototype,"eSelect",void 0),e}(gs),Es=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Rs=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},bs=function(t){function e(e){var o=t.call(this,'\n            <div class="ag-cell-edit-wrapper">\n                '+e.getTemplate()+"\n            </div>")||this;return o.cellEditorInput=e,o}return Es(e,t),e.prototype.init=function(t){this.params=t;var e,o=this.eInput;if(this.cellEditorInput.init(o,t),t.cellStartedEdit){this.focusAfterAttached=!0;var n=t.eventKey;n===Zn.BACKSPACE||t.eventKey===Zn.DELETE?e="":n&&1===n.length?e=n:(e=this.cellEditorInput.getStartValue(),n!==Zn.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,e=this.cellEditorInput.getStartValue();null!=e&&o.setStartValue(e),this.addManagedListener(o.getGui(),"keydown",(function(t){var e=t.key;e!==Zn.PAGE_UP&&e!==Zn.PAGE_DOWN||t.preventDefault()}))},e.prototype.afterGuiAttached=function(){var t,e,o=this.localeService.getLocaleTextFunc(),n=this.eInput;if(n.setInputAriaLabel(o("ariaInputEditor","Input Editor")),this.focusAfterAttached){No()||n.getFocusableElement().focus();var i=n.getInputElement();this.highlightAllOnFocus?i.select():null===(e=(t=this.cellEditorInput).setCaret)||void 0===e||e.call(t)}},e.prototype.focusIn=function(){var t=this.eInput,e=t.getFocusableElement(),o=t.getInputElement();e.focus(),o.select()},e.prototype.getValue=function(){return this.cellEditorInput.getValue()},e.prototype.isPopup=function(){return!1},Rs([Pi("eInput")],e.prototype,"eInput",void 0),e}(gs),Os=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ts=function(){function t(){}return t.prototype.getTemplate=function(){return'<ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>'},t.prototype.init=function(t,e){this.eInput=t,this.params=e,null!=e.maxLength&&t.setMaxLength(e.maxLength)},t.prototype.getValue=function(){var t=this.eInput.getValue();return e(t)||e(this.params.value)?this.params.parseValue(t):this.params.value},t.prototype.getStartValue=function(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value},t.prototype.setCaret=function(){var t=this.eInput.getValue(),o=e(t)&&t.length||0;o&&this.eInput.getInputElement().setSelectionRange(o,o)},t}(),Ds=function(t){function e(){return t.call(this,new Ts)||this}return Os(e,t),e}(bs),Ps=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_s=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},As=function(t){function o(){var e=t.call(this,o.TEMPLATE)||this;return e.refreshCount=0,e}return Ps(o,t),o.prototype.init=function(t){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(t)},o.prototype.showDelta=function(t,o){var n=Math.abs(o),i=t.formatValue(n),r=e(i)?i:n,s=o>=0;this.eDelta.innerHTML=s?"\u2191"+r:"\u2193"+r,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},o.prototype.setTimerToRemoveDelta=function(){var t=this;this.refreshCount++;var e=this.refreshCount;window.setTimeout((function(){e===t.refreshCount&&t.hideDeltaValue()}),2e3)},o.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),On(this.eDelta)},o.prototype.refresh=function(t){var o=t.value;if(o===this.lastValue)return!1;if(e(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:e(t.value)?this.eValue.innerHTML=o:On(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof o&&"number"==typeof this.lastValue){var n=o-this.lastValue;this.showDelta(t,n)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=o,!0},o.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',_s([X("filterManager")],o.prototype,"filterManager",void 0),o}(Ti),Fs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ls=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Is=function(t){function n(){var e=t.call(this,n.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return Fs(n,t),n.prototype.init=function(t){this.refresh(t)},n.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=Pn('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){e===t.refreshCount&&t.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){e===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},n.prototype.refresh=function(t){var n=t.value;return o(n)&&(n=""),n!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=n,e(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:e(t.value)?this.eCurrent.innerHTML=n:On(this.eCurrent),!0))},n.TEMPLATE='<span>\n            <span class="ag-value-slide-current"></span>\n        </span>',Ls([X("filterManager")],n.prototype,"filterManager",void 0),n}(Ti),Ns=function(){return(Ns=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ms=function(){function t(e){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=t.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=e}return t.prototype.setData=function(t){this.setDataCommon(t,!1)},t.prototype.updateData=function(t){this.setDataCommon(t,!0)},t.prototype.setDataCommon=function(t,e){var o=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();var n=this.createDataChangedEvent(t,o,e);this.dispatchLocalEvent(n)},t.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},t.prototype.createDataChangedEvent=function(e,o,n){return{type:t.EVENT_DATA_CHANGED,node:this,oldData:o,newData:e,update:n}},t.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},t.prototype.getRowIndexString=function(){return"top"===this.rowPinned?"t-"+this.rowIndex:"bottom"===this.rowPinned?"b-"+this.rowIndex:this.rowIndex.toString()},t.prototype.createDaemonNode=function(){var e=new t(this.beans);return e.id=this.id,e.data=this.data,e.__daemon=!0,e.selected=this.selected,e.level=this.level,e},t.prototype.setDataAndId=function(t,o){var n=e(this.id)?this.createDaemonNode():null,i=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(o),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,n);var r=this.createDataChangedEvent(t,i,!1);this.dispatchLocalEvent(r)},t.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(!t||t(this))},t.prototype.setRowSelectable=function(e){if(this.selectable!==e&&(this.selectable=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsService.is("groupSelectsChildren"))){var o=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:null!=o&&o,source:"selectableChanged"})}},t.prototype.setId=function(e){var o=this.beans.gridOptionsService.getCallback("getRowId");if(o)if(this.data){var n=this.getGroupKeys(!0);this.id=o({data:this.data,parentKeys:n.length>0?n:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(t.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+t.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=e},t.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var e=[],o=this;for(t&&(o=o.parent);o&&o.level>=0;)e.push(o.key),o=o.parent;return e.reverse(),e},t.prototype.isPixelInRange=function(t){return!(!e(this.rowTop)||!e(this.rowHeight))&&(t>=this.rowTop&&t<this.rowTop+this.rowHeight)},t.prototype.setFirstChild=function(e){this.firstChild!==e&&(this.firstChild=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_FIRST_CHILD_CHANGED)))},t.prototype.setLastChild=function(e){this.lastChild!==e&&(this.lastChild=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_LAST_CHILD_CHANGED)))},t.prototype.setChildIndex=function(e){this.childIndex!==e&&(this.childIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_CHILD_INDEX_CHANGED)))},t.prototype.setRowTop=function(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_TOP_CHANGED)),this.setDisplayed(null!==e))},t.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},t.prototype.setDisplayed=function(e){this.displayed!==e&&(this.displayed=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DISPLAYED_CHANGED)))},t.prototype.setDragging=function(e){this.dragging!==e&&(this.dragging=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DRAGGING_CHANGED)))},t.prototype.setHighlighted=function(e){e!==this.highlighted&&(this.highlighted=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HIGHLIGHT_CHANGED)))},t.prototype.setHovered=function(t){this.hovered!==t&&(this.hovered=t)},t.prototype.isHovered=function(){return this.hovered},t.prototype.setAllChildrenCount=function(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},t.prototype.setMaster=function(e){this.master!==e&&(this.master&&!e&&(this.expanded=!1),this.master=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_MASTER_CHANGED)))},t.prototype.setGroup=function(e){this.group!==e&&(this.group&&!e&&(this.expanded=!1),this.group=e,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_GROUP_CHANGED)))},t.prototype.setRowHeight=function(e,o){void 0===o&&(o=!1),this.rowHeight=e,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HEIGHT_CHANGED))},t.prototype.setRowAutoHeight=function(t,e){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[e.getId()]=t,null!=t&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=N(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},t.prototype.checkAutoHeights=function(){var t=this,e=!1,o=!0,n=0,i=this.__autoHeights;if(null!=i&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(r){var s=i[r.getId()];if(null==s){if(!t.beans.columnModel.isColSpanActive())return void(e=!0);var a=[];switch(r.getPinned()){case"left":a=t.beans.columnModel.getDisplayedLeftColumnsForRow(t);break;case"right":a=t.beans.columnModel.getDisplayedRightColumnsForRow(t);break;case null:a=t.beans.columnModel.getViewportCenterColumnsForRow(t)}if(a.includes(r))return void(e=!0);s=-1}else o=!1;s>n&&(n=s)})),!e&&((o||n<10)&&(n=this.beans.gridOptionsService.getRowHeightForNode(this).height),n!=this.rowHeight))){this.setRowHeight(n);var r=this.beans.rowModel;r.onRowHeightChangedDebounced&&r.onRowHeightChangedDebounced()}},t.prototype.setRowIndex=function(e){this.rowIndex!==e&&(this.rowIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ROW_INDEX_CHANGED)))},t.prototype.setUiLevel=function(e){this.uiLevel!==e&&(this.uiLevel=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_UI_LEVEL_CHANGED)))},t.prototype.setExpanded=function(e,o){if(this.expanded!==e){this.expanded=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var n=Object.assign({},this.createGlobalRowEvent(qt.EVENT_ROW_GROUP_OPENED),{expanded:e,event:o||null});this.beans.rowNodeEventThrottle.dispatchExpanded(n),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},t.prototype.createGlobalRowEvent=function(t){return{type:t,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}},t.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},t.prototype.setDataValue=function(t,e,o){var n,i=this,r="string"!=typeof t?t:null!==(n=i.beans.columnModel.getGridColumn(t))&&void 0!==n?n:i.beans.columnModel.getPrimaryColumn(t),s=this.getValueFromValueService(r);if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(r,s,e,o),!1;var a=this.beans.valueService.setValue(this,r,e,o);return this.dispatchCellChangedEvent(r,e,s),this.checkRowSelectable(),a},t.prototype.getValueFromValueService=function(t){var e=this.leafGroup&&this.beans.columnModel.isPivotMode(),o=this.group&&this.expanded&&!this.footer&&!e,n=this.beans.gridOptionsService.getGroupIncludeFooter()({node:this}),i=this.beans.gridOptionsService.is("groupSuppressBlankHeader"),r=o&&n&&!i;return this.beans.valueService.getValue(t,this,!1,r)},t.prototype.dispatchEventForSaveValueReadOnly=function(t,e,o,n){var i={type:qt.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:t,colDef:t.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:e,newValue:o,value:o,source:n};this.beans.eventService.dispatchEvent(i)},t.prototype.setGroupValue=function(t,e){var n=this.beans.columnModel.getGridColumn(t);o(this.groupData)&&(this.groupData={});var i=n.getColId(),r=this.groupData[i];r!==e&&(this.groupData[i]=e,this.dispatchCellChangedEvent(n,e,r))},t.prototype.setAggData=function(t){var e=this,o=m([this.aggData,t]),n=this.aggData;this.aggData=t,this.eventService&&o.forEach((function(t){var o=e.aggData?e.aggData[t]:void 0,i=n?n[t]:void 0;if(o!==i){var r=e.beans.columnModel.lookupGridColumn(t);r&&e.dispatchCellChangedEvent(r,o,i)}}))},t.prototype.updateHasChildren=function(){var e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var o=this.beans.gridOptionsService.is("treeData"),n=this.beans.gridOptionsService.get("isServerSideGroup");e=!this.stub&&!this.footer&&(o?!!n&&n(this.data):!!this.group)}e!==this.__hasChildren&&(this.__hasChildren=!!e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HAS_CHILDREN_CHANGED)))},t.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},t.prototype.isEmptyRowGroupNode=function(){return this.group&&n(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(e,o,n){var i={type:t.EVENT_CELL_CHANGED,node:this,column:e,newValue:o,oldValue:n};this.dispatchLocalEvent(i)},t.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},t.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},t.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},t.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(e){return e.depthFirstSearch(t)})),t(this)},t.prototype.calculateSelectedFromChildren=function(){var t,e=!1,o=!1,n=!1;if(!(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length))return this.selectable?this.selected:null;for(var i=0;i<this.childrenAfterGroup.length;i++){var r=this.childrenAfterGroup[i],s=r.isSelected();if(!r.selectable){var a=r.calculateSelectedFromChildren();if(null===a)continue;s=a}switch(s){case!0:e=!0;break;case!1:o=!0;break;default:n=!0}}return n||e&&o?void 0:!!e||!o&&(this.selectable?this.selected:null)},t.prototype.setSelectedInitialValue=function(t){this.selected=t},t.prototype.selectThisNode=function(e,o,n){void 0===n&&(n="api");var i=!this.selectable&&e,r=this.selected===e;if(i||r)return!1;if(this.selected=e,this.eventService){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_ROW_SELECTED));var s=this.sibling;s&&s.footer&&s.dispatchLocalEvent(s.createLocalRowEvent(t.EVENT_ROW_SELECTED))}var a=Ns(Ns({},this.createGlobalRowEvent(qt.EVENT_ROW_SELECTED)),{event:o||null,source:n});return this.beans.eventService.dispatchEvent(a),!0},t.prototype.setSelected=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o="api"),"boolean"!=typeof o?this.setSelectedParams({newValue:t,clearSelection:e,rangeSelect:!1,source:o}):console.warn("AG Grid: since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.")},t.prototype.setSelectedParams=function(t){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):void 0===this.id?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodesSelected(Ns(Ns({},t),{nodes:[this.footer?this.sibling:this]}))},t.prototype.isRowPinned=function(){return"top"===this.rowPinned||"bottom"===this.rowPinned},t.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},t.prototype.addEventListener=function(t,e){this.eventService||(this.eventService=new nt),this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService&&(this.eventService.removeEventListener(t,e),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},t.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_ENTER))},t.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_LEAVE))},t.prototype.getFirstChildOfFirstChild=function(t){for(var o=this,n=!0,i=!1,r=null;n&&!i;){var s=o.parent;e(s)&&o.firstChild?s.rowGroupColumn===t&&(i=!0,r=s):n=!1,o=s}return i?r:null},t.prototype.isFullWidthCell=function(){if(this.detail)return!0;var t=this.beans.gridOptionsService.getCallback("isFullWidthRow");return!!t&&t({rowNode:this})},t.prototype.getRoute=function(){if(null!=this.key){for(var t=[],e=this;null!=e.key;)t.push(e.key),e=e.parent;return t.reverse()}},t.prototype.createFooter=function(){var e=this;if(!this.sibling){var o=new Set(["eventService","__objectId","sticky"]),n=new t(this.beans);Object.keys(this).forEach((function(t){o.has(t)||(n[t]=e[t])})),n.footer=!0,n.setRowTop(null),n.setRowIndex(null),n.oldRowTop=null,n.id="rowGroupFooter_"+this.id,n.sibling=this,this.sibling=n}},t.prototype.destroyFooter=function(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)},t.ID_PREFIX_ROW_GROUP="row-group-",t.ID_PREFIX_TOP_PINNED="t-",t.ID_PREFIX_BOTTOM_PINNED="b-",t.OBJECT_ID_SEQUENCE=0,t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_DATA_CHANGED="dataChanged",t.EVENT_CELL_CHANGED="cellChanged",t.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",t.EVENT_MASTER_CHANGED="masterChanged",t.EVENT_GROUP_CHANGED="groupChanged",t.EVENT_MOUSE_ENTER="mouseEnter",t.EVENT_MOUSE_LEAVE="mouseLeave",t.EVENT_HEIGHT_CHANGED="heightChanged",t.EVENT_TOP_CHANGED="topChanged",t.EVENT_DISPLAYED_CHANGED="displayedChanged",t.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",t.EVENT_LAST_CHILD_CHANGED="lastChildChanged",t.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",t.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",t.EVENT_SELECTABLE_CHANGED="selectableChanged",t.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",t.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",t.EVENT_DRAGGING_CHANGED="draggingChanged",t}(),Gs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xs=function(){return(xs=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Vs=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hs=function(t){function e(){return t.call(this,'\n            <div class="ag-selection-checkbox" role="presentation">\n                <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n            </div>')||this}return Gs(e,t),e.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),no(this.eCheckbox.getInputElement(),"polite")},e.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},e.prototype.onDataChanged=function(){this.onSelectionChanged()},e.prototype.onSelectableChanged=function(){this.showOrHideSelect()},e.prototype.onSelectionChanged=function(){var t=this.localeService.getLocaleTextFunc(),e=this.rowNode.isSelected(),o=bo(t,e),n=t("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(e,!0),this.eCheckbox.setInputAriaLabel(n+" ("+o+")")},e.prototype.onClicked=function(t,e,o){return this.rowNode.setSelectedParams({newValue:t,rangeSelect:o.shiftKey,groupSelectsFiltered:e,event:o,source:"checkboxSelected"})},e.prototype.init=function(t){var e=this;if(this.rowNode=t.rowNode,this.column=t.column,this.overrides=t.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){_t(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){_t(t);var o=e.gridOptionsService.is("groupSelectsFiltered"),n=e.eCheckbox.getValue();e.shouldHandleIndeterminateState(n,o)?0===e.onClicked(!0,o,t||{})&&e.onClicked(!1,o,t):n?e.onClicked(!1,o,t):e.onClicked(!0,o,t||{})})),this.addManagedListener(this.rowNode,Ms.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"==typeof this.getIsVisible()){var o=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.rowNode,Ms.EVENT_DATA_CHANGED,o),this.addManagedListener(this.rowNode,Ms.EVENT_CELL_CHANGED,o),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},e.prototype.shouldHandleIndeterminateState=function(t,e){return e&&(void 0===this.eCheckbox.getPreviousValue()||void 0===t)&&this.gridOptionsService.isRowModelType("clientSide")},e.prototype.showOrHideSelect=function(){var t,e,o,n,i=this.rowNode.selectable,r=this.getIsVisible();if(i)if("function"==typeof r){var s=null===(t=this.overrides)||void 0===t?void 0:t.callbackParams,a=null===(e=this.column)||void 0===e?void 0:e.createColumnFunctionCallbackParams(this.rowNode);i=!!a&&r(xs(xs({},s),a))}else i=null!=r&&r;if(null===(o=this.column)||void 0===o?void 0:o.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!i),this.setVisible(!0),void this.setDisplayed(!0);(null===(n=this.overrides)||void 0===n?void 0:n.removeHidden)?this.setDisplayed(i):this.setVisible(i)},e.prototype.getIsVisible=function(){var t,e;return this.overrides?this.overrides.isVisible:null===(e=null===(t=this.column)||void 0===t?void 0:t.getColDef())||void 0===e?void 0:e.checkboxSelection},Vs([Pi("eCheckbox")],e.prototype,"eCheckbox",void 0),Vs([Y],e.prototype,"postConstruct",null),e}(Ti),ks=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bs=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},js=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(t){t[t.ToolPanel=0]="ToolPanel",t[t.HeaderCell=1]="HeaderCell",t[t.RowDrag=2]="RowDrag",t[t.ChartPanel=3]="ChartPanel",t[t.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"}(Br||(Br={})),function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"}(jr||(jr={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(Wr||(Wr={}));var Ws,Us=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragSourceAndParamsList=[],e.dropTargets=[],e}var o;return ks(e,t),o=e,e.prototype.init=function(){this.ePinnedIcon=Qn("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Qn("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Qn("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Qn("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Qn("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Qn("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Qn("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Qn("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Qn("dropNotAllowed",this.gridOptionsService,null)},e.prototype.addDragSource=function(t,e){void 0===e&&(e=!1);var o={eElement:t.eElement,dragStartPixels:t.dragStartPixels,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:e};this.dragSourceAndParamsList.push({params:o,dragSource:t}),this.dragService.addDragSource(o)},e.prototype.removeDragSource=function(t){var e=this.dragSourceAndParamsList.find((function(e){return e.dragSource===t}));e&&(this.dragService.removeDragSource(e.params),mt(this.dragSourceAndParamsList,e))},e.prototype.clearDragSourceParamsList=function(){var t=this;this.dragSourceAndParamsList.forEach((function(e){return t.dragService.removeDragSource(e.params)})),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(t,e){this.dragging=!0,this.dragSource=t,this.eventLastTime=e,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},e.prototype.onDragStop=function(t){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var e=this.createDropTargetEvent(this.lastDropTarget,t,null,null,!1);this.lastDropTarget.onDragStop(e)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(t,e){var o,n,i,r,s=this,a=this.getHorizontalDirection(t),l=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var u=this.dropTargets.filter((function(e){return s.isMouseOnDropTarget(t,e)})),c=this.findCurrentDropTarget(t,u);if(c!==this.lastDropTarget)this.leaveLastTargetIfExists(t,a,l,e),null!==this.lastDropTarget&&null===c&&(null===(n=(o=this.dragSource).onGridExit)||void 0===n||n.call(o,this.dragItem)),null===this.lastDropTarget&&null!==c&&(null===(r=(i=this.dragSource).onGridEnter)||void 0===r||r.call(i,this.dragItem)),this.enterDragTargetIfExists(c,t,a,l,e),this.lastDropTarget=c;else if(c&&c.onDragging){var p=this.createDropTargetEvent(c,t,a,l,e);c.onDragging(p)}},e.prototype.getAllContainersFromDropTarget=function(t){var e=t.getSecondaryContainers?t.getSecondaryContainers():null,o=[[t.getContainer()]];return e?o.concat(e):o},e.prototype.allContainersIntersect=function(t,e){var o,n;try{for(var i=js(e),r=i.next();!r.done;r=i.next()){var s=r.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=t.clientX>=s.left&&t.clientX<s.right,l=t.clientY>=s.top&&t.clientY<s.bottom;if(!a||!l)return!1}}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return!0},e.prototype.isMouseOnDropTarget=function(t,e){var o,n,i=this.getAllContainersFromDropTarget(e),r=!1;try{for(var s=js(i),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(t,l)){r=!0;break}}}catch(t){o={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return!(e.targetContainsSource&&!e.getContainer().contains(this.dragSource.eElement))&&(r&&e.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},e.prototype.findCurrentDropTarget=function(t,e){var o,n,i,r,s=e.length;if(0===s)return null;if(1===s)return e[0];var a=this.gridOptionsService.getRootNode().elementsFromPoint(t.clientX,t.clientY);try{for(var l=js(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(i=void 0,js(e)),d=p.next();!d.done;d=p.next()){var h=d.value;if(-1!==bt(this.getAllContainersFromDropTarget(h)).indexOf(c))return h}}catch(t){i={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return null},e.prototype.enterDragTargetIfExists=function(t,e,o,n,i){if(t){if(t.onDragEnter){var r=this.createDropTargetEvent(t,e,o,n,i);t.onDragEnter(r)}this.setGhostIcon(t.getIconName?t.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(t,e,o,n){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var i=this.createDropTargetEvent(this.lastDropTarget,t,e,o,n);this.lastDropTarget.onDragLeave(i)}this.setGhostIcon(null)}},e.prototype.addDropTarget=function(t){this.dropTargets.push(t)},e.prototype.removeDropTarget=function(t){this.dropTargets=this.dropTargets.filter((function(e){return e.getContainer()!==t.getContainer()}))},e.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(t){return t.external}))},e.prototype.findExternalZone=function(t){return this.dropTargets.filter((function(t){return t.external})).find((function(e){return e.getContainer()===t.getContainer()}))||null},e.prototype.getHorizontalDirection=function(t){var e=this.eventLastTime&&this.eventLastTime.clientX,o=t.clientX;return e===o?null:e>o?Wr.Left:Wr.Right},e.prototype.getVerticalDirection=function(t){var e=this.eventLastTime&&this.eventLastTime.clientY,o=t.clientY;return e===o?null:e>o?jr.Up:jr.Down},e.prototype.createDropTargetEvent=function(t,e,o,n,i){var r=t.getContainer(),s=r.getBoundingClientRect(),a=this.gridApi,l=this.columnApi,u=this.dragItem,c=this.dragSource;return{event:e,x:e.clientX-s.left,y:e.clientY-s.top,vDirection:n,hDirection:o,dragSource:c,fromNudge:i,dragItem:u,api:a,columnApi:l,dropZoneTarget:r}},e.prototype.positionGhost=function(t){var e=this.eGhost;if(e){var o=e.getBoundingClientRect().height,n=Wo()-2,i=Uo()-2,r=Sn(e.offsetParent),s=t.clientY,a=t.clientX,l=s-r.top-o/2,u=a-r.left-10,c=this.gridOptionsService.getDocument(),p=c.defaultView||window,d=p.pageYOffset||c.documentElement.scrollTop,h=p.pageXOffset||c.documentElement.scrollLeft;n>0&&u+e.clientWidth>n+h&&(u=n+h-e.clientWidth),u<0&&(u=0),i>0&&l+e.clientHeight>i+d&&(l=i+d-e.clientHeight),l<0&&(l=0),e.style.left=u+"px",e.style.top=l+"px"}},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=Pn(o.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var t=this.environment.getTheme().theme;t&&this.eGhost.classList.add(t),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var e=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;P(n)&&(n=n()),e.innerHTML=oe(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var i=this.gridOptionsService.getDocument(),r=null;try{r=i.fullscreenElement}catch(t){}finally{if(!r){var s=this.gridOptionsService.getRootNode(),a=s.querySelector("body");r=a||(s instanceof ShadowRoot?s:null==s?void 0:s.documentElement)}}this.eGhostParent=r,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(t,e){void 0===e&&(e=!1),On(this.eGhostIcon);var n=null;switch(t||(t=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():o.ICON_NOT_ALLOWED),t){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",e),n===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns")||n&&this.eGhostIcon.appendChild(n)},e.ICON_PINNED="pinned",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.ICON_HIDE="hide",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n            <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n            <div class="ag-dnd-ghost-label"></div>\n        </div>',Bs([X("dragService")],e.prototype,"dragService",void 0),Bs([X("mouseEventService")],e.prototype,"mouseEventService",void 0),Bs([X("columnApi")],e.prototype,"columnApi",void 0),Bs([X("gridApi")],e.prototype,"gridApi",void 0),Bs([Y],e.prototype,"init",null),Bs([q],e.prototype,"clearDragSourceParamsList",null),e=o=Bs([Q("dragAndDropService")],e)}(Bt),zs=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ks=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ys=function(t){function e(e,o,n,i,r,s){var a=t.call(this)||this;return a.cellValueFn=e,a.rowNode=o,a.column=n,a.customGui=i,a.dragStartPixels=r,a.suppressVisibilityChange=s,a.dragSource=null,a}return zs(e,t),e.prototype.isCustomGui=function(){return null!=this.customGui},e.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Xn("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var t=this.gridOptionsService.is("rowDragManaged")?new Xs(this,this.beans,this.rowNode,this.column):new Qs(this,this.beans,this.rowNode,this.column);this.createManagedBean(t,this.beans.context)}},e.prototype.setDragElement=function(t,e){this.setTemplateFromElement(t),this.addDragSource(e)},e.prototype.getSelectedNodes=function(){if(!this.gridOptionsService.is("rowDragMultiRow"))return[this.rowNode];var t=this.beans.selectionService.getSelectedNodes();return-1!==t.indexOf(this.rowNode)?t:[this.rowNode]},e.prototype.checkCompatibility=function(){var t=this.gridOptionsService.is("rowDragManaged");this.gridOptionsService.is("treeData")&&t&&T((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},e.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},e.prototype.getRowDragText=function(t){if(t){var e=t.getColDef();if(e.rowDragText)return e.rowDragText}return this.gridOptionsService.get("rowDragText")},e.prototype.addDragSource=function(t){var e=this;void 0===t&&(t=4),this.dragSource&&this.removeDragSource();var o=this.getRowDragText(this.column),n=this.localeService.getLocaleTextFunc();this.dragSource={type:Br.RowDrag,eElement:this.getGui(),dragItemName:function(){var t,i=e.getDragItem(),r=(null===(t=i.rowNodes)||void 0===t?void 0:t.length)||1;return o?o(i,r):1===r?e.cellValueFn():r+" "+n("rowDragRows","rows")},getDragItem:function(){return e.getDragItem()},dragStartPixels:t,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},e.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},Ks([X("beans")],e.prototype,"beans",void 0),Ks([Y],e.prototype,"postConstruct",null),Ks([q],e.prototype,"removeDragSource",null),e}(Ti),qs=function(t){function e(e,o,n){var i=t.call(this)||this;return i.parent=e,i.rowNode=o,i.column=n,i}return zs(e,t),e.prototype.setDisplayedOrVisible=function(t){var e={skipAriaHidden:!0};if(t)this.parent.setDisplayed(!1,e);else{var o=!0,n=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=P(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0,e),this.parent.setVisible(o,e)):(this.parent.setDisplayed(o,e),this.parent.setVisible(!0,e))}},e}(Bt),Qs=function(t){function e(e,o,n,i){var r=t.call(this,e,n,i)||this;return r.beans=o,r}return zs(e,t),e.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,qt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(t)},Ks([Y],e.prototype,"postConstruct",null),e}(qs),Xs=function(t){function e(e,o,n,i){var r=t.call(this,e,n,i)||this;return r.beans=o,r}return zs(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,qt.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,qt.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,qt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),e=t&&t.shouldPreventRowMove(),o=this.gridOptionsService.is("suppressRowDrag"),n=this.beans.dragAndDropService.hasExternalDropZones(),i=e&&!n||o;this.setDisplayedOrVisible(i)},Ks([Y],e.prototype,"postConstruct",null),e}(qs),Js=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Zs=function(){return(Zs=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},$s=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Js(e,t),e.prototype.init=function(t,e,o,n,i,r,s){this.params=s,this.eGui=e,this.eCheckbox=o,this.eExpanded=n,this.eContracted=i,this.comp=t,this.compClass=r;var a=s.node,l=s.value,u=s.colDef;if(!this.isTopLevelFooter()){if(this.isEmbeddedRowMismatch())return;var c=!0===(null==u?void 0:u.showRowGroup),p=null==l&&!a.master;if(!c&&p)return;if(a.footer&&this.gridOptionsService.is("groupHideOpenParents"))if((u&&u.showRowGroup)!==(a.rowGroupColumn&&a.rowGroupColumn.getColId()))return}this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.expandListener=null},e.prototype.refreshAriaExpanded=function(){var t=this.params,e=t.node,o=t.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var n=function(){lo(o,!!e.expanded)};this.expandListener=this.addManagedListener(e,Ms.EVENT_EXPANDED_CHANGED,n)||null,n()}else uo(o)},e.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var t=this.params.colDef;if(null==t)return!0;if(!0===t.showRowGroup)return!0;var e=this.columnModel.getRowGroupColumns();return!e||0===e.length||e[0].getId()===t.showRowGroup},e.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is("embedFullWidthRows"))return!1;var t="left"===this.params.pinned,e="right"===this.params.pinned,o=!t&&!e;return this.gridOptionsService.is("enableRtl")?this.columnModel.isPinningLeft()?!e:!o:this.columnModel.isPinningLeft()?!t:!o},e.prototype.findDisplayedGroupNode=function(){var t=this.params.column,e=this.params.node;if(this.showingValueForOpenedParent)for(var n=e.parent;null!=n;){if(n.rowGroupColumn&&t.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}o(this.displayedGroupNode)&&(this.displayedGroupNode=e)},e.prototype.setupShowingValueForOpenedParent=function(){var t=this.params.node,e=this.params.column;if(this.gridOptionsService.is("groupHideOpenParents"))if(t.groupData){if(null!=t.rowGroupColumn){var o=t.rowGroupColumn.getId();if(e.isRowGroupDisplayed(o))return void(this.showingValueForOpenedParent=!1)}var n=null!=t.groupData[e.getId()];this.showingValueForOpenedParent=n}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},e.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},e.prototype.addGroupValue=function(){var t=this.adjustParamsWithDetailsFromRelatedColumn(),e=this.getInnerCompDetails(t),o=t.valueFormatted,n=t.value,i=o;null==i&&(i=""===n&&this.params.node.group?this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):null!=n?n:null);this.comp.setInnerRenderer(e,i)},e.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var t=this.displayedGroupNode.rowGroupColumn,e=this.params.column;if(!t)return this.params;if(null!=e&&!e.isRowGroupDisplayed(t.getId()))return this.params;var o=this.params,n=this.params,i=n.value,r=n.node,s=this.valueFormatterService.formatValue(t,r,i);return Zs(Zs({},o),{valueFormatted:s})},e.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,e="";if(t){var o=h(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+(null!=this.params.value?this.params.value:"");var n=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(n,e)},e.prototype.getInnerCompDetails=function(t){var e=this;if(t.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),t);var o=this.userComponentFactory.getInnerRendererDetails(t,t),n=function(t){return t&&t.componentClass==e.compClass};if(o&&!n(o))return o;var i=this.displayedGroupNode.rowGroupColumn,r=i?i.getColDef():void 0;if(r){var s=this.userComponentFactory.getCellRendererDetails(r,t);if(s&&!n(s))return s;if(n(s)&&r.cellRendererParams&&r.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(r.cellRendererParams,t)}},e.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Ms.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},e.prototype.updateChildCount=function(){var t=this.displayedGroupNode.allChildrenCount,e=this.isShowRowGroupForThisRow()&&null!=t&&t>=0?"("+t+")":"";this.comp.setChildCount(e)},e.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.is("treeData"))return!0;var t=this.displayedGroupNode.rowGroupColumn;if(!t)return!1;var e=this.params.column;return null==e||e.isRowGroupDisplayed(t.getId())},e.prototype.addExpandAndContract=function(){var t,e=this.params,o=Xn("groupExpanded",this.gridOptionsService,null),n=Xn("groupContracted",this.gridOptionsService,null);o&&this.eExpanded.appendChild(o),n&&this.eContracted.appendChild(n);var i=e.eGridCell;(null===(t=this.params.column)||void 0===t?void 0:t.isCellEditable(e.node))&&this.gridOptionsService.is("enableGroupEdit")||!this.isExpandable()||e.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(e.node,Ms.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Ms.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ms.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ms.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ms.EVENT_HAS_CHILDREN_CHANGED,r)},e.prototype.onExpandClicked=function(t){At(t)||(_t(t),this.onExpandOrContract(t))},e.prototype.onExpandOrContract=function(t){var e=this.displayedGroupNode,o=!e.expanded;!o&&e.sticky&&this.scrollToStickyNode(e),e.setExpanded(o,t)},e.prototype.scrollToStickyNode=function(t){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(t.rowTop-t.stickyRowTop)},e.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var t=this.displayedGroupNode,e=this.columnModel.isPivotMode()&&t.leafGroup;if(!(t.isExpandable()&&!t.footer&&!e))return!1;var o=this.params.column;return null==o||"string"!=typeof o.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},e.prototype.showExpandAndContractIcons=function(){var t=this.params,e=this.displayedGroupNode,o=this.columnModel,n=t.node,i=this.isExpandable();if(i){var r=!!this.showingValueForOpenedParent||n.expanded;this.comp.setExpandedDisplayed(r),this.comp.setContractedDisplayed(!r)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=o.isPivotMode(),a=s&&e.leafGroup,l=i&&!a,u=n.footer&&-1===n.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",l),this.comp.addOrRemoveCssClass("ag-row-group",l),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",a):u||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!l)},e.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},e.prototype.setupIndent=function(){var t=this.params.node;this.params.suppressPadding||(this.addManagedListener(t,Ms.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},e.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var t=this.params,e=t.node,o=!!t.colDef,n=this.gridOptionsService.is("treeData"),i=!o||n||!0===t.colDef.showRowGroup?e.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+i,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},e.prototype.addFullWidthRowDraggerIfNeeded=function(){var t=this;if(this.params.fullWidth&&this.params.rowDrag){var e=new Ys((function(){return t.params.value}),this.params.node);this.createManagedBean(e,this.context),this.eGui.insertAdjacentElement("afterbegin",e.getGui())}},e.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"==typeof t||!0===t},e.prototype.addCheckboxIfNeeded=function(){var t=this,e=this.displayedGroupNode,o=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(o){var n=new Hs;this.getContext().createBean(n),n.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(n)}))}this.comp.setCheckboxVisible(o)},e.prototype.onKeyDown=function(t){t.key!==Zn.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(t))},e.prototype.onCellDblClicked=function(t){At(t)||(Nt(this.eExpanded,t)||Nt(this.eContracted,t)||this.onExpandOrContract(t))},$s([X("expressionService")],e.prototype,"expressionService",void 0),$s([X("valueFormatterService")],e.prototype,"valueFormatterService",void 0),$s([X("columnModel")],e.prototype,"columnModel",void 0),$s([X("userComponentFactory")],e.prototype,"userComponentFactory",void 0),$s([X("ctrlsService")],e.prototype,"ctrlsService",void 0),e}(Bt),ea=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),oa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},na=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return ea(e,t),e.prototype.init=function(t){var e=this,o={setInnerRenderer:function(t,o){return e.setRenderDetails(t,o)},setChildCount:function(t){return e.eChildCount.innerHTML=t},addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setContractedDisplayed:function(t){return dn(e.eContracted,t)},setExpandedDisplayed:function(t){return dn(e.eExpanded,t)},setCheckboxVisible:function(t){return e.eCheckbox.classList.toggle("ag-invisible",!t)}},n=this.createManagedBean(new ta),i=!t.colDef,r=this.getGui();n.init(o,r,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),i&&Qe(r,"gridcell")},e.prototype.setRenderDetails=function(t,e){var o=this;if(t){var n=t.newAgStackInstance();if(!n)return;n.then((function(t){if(t){var e=function(){return o.context.destroyBean(t)};o.isAlive()?(o.eValue.appendChild(t.getGui()),o.addDestroyFunc(e)):e()}}))}else this.eValue.innerText=e},e.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},e.prototype.refresh=function(){return!1},e.TEMPLATE='<span class="ag-cell-wrapper">\n            <span class="ag-group-expanded" ref="eExpanded"></span>\n            <span class="ag-group-contracted" ref="eContracted"></span>\n            <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n            <span class="ag-group-value" ref="eValue"></span>\n            <span class="ag-group-child-count" ref="eChildCount"></span>\n        </span>',oa([Pi("eExpanded")],e.prototype,"eExpanded",void 0),oa([Pi("eContracted")],e.prototype,"eContracted",void 0),oa([Pi("eCheckbox")],e.prototype,"eCheckbox",void 0),oa([Pi("eValue")],e.prototype,"eValue",void 0),oa([Pi("eChildCount")],e.prototype,"eChildCount",void 0),e}(Ti),ia=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ra=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sa=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return ia(e,t),e.prototype.init=function(t){t.node.failedLoad?this.setupFailed():this.setupLoading()},e.prototype.setupFailed=function(){var t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingError","ERR")},e.prototype.setupLoading=function(){var t=Xn("groupLoading",this.gridOptionsService,null);t&&this.eLoadingIcon.appendChild(t);var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingOoo","Loading")},e.prototype.refresh=function(t){return!1},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.TEMPLATE='<div class="ag-loading">\n            <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n            <span class="ag-loading-text" ref="eLoadingText"></span>\n        </div>',ra([Pi("eLoadingIcon")],e.prototype,"eLoadingIcon",void 0),ra([Pi("eLoadingText")],e.prototype,"eLoadingText",void 0),e}(Ti),aa=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),la=function(t){function e(){return t.call(this)||this}return aa(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o,n=null!==(o=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==o?o:e.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.localeService.getLocaleTextFunc(),r=n.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(r)},e.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',e}(Ti),ua=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ca=function(t){function e(){return t.call(this)||this}return ua(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o,n=null!==(o=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==o?o:e.DEFAULT_NO_ROWS_TEMPLATE,i=this.localeService.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(r)},e.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',e}(Ti),pa=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),da=function(t){function e(){return t.call(this,'<div class="ag-tooltip"></div>')||this}return pa(e,t),e.prototype.init=function(t){var e=t.value;this.getGui().innerHTML=oe(e)},e}(gs),ha=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),fa=function(){function t(){}return t.prototype.getTemplate=function(){return'<ag-input-number-field class="ag-cell-editor" ref="eInput"></ag-input-number-field>'},t.prototype.init=function(t,e){this.eInput=t,this.params=e,null!=e.max&&t.setMax(e.max),null!=e.min&&t.setMin(e.min),null!=e.precision&&t.setPrecision(e.precision),null!=e.step&&t.setStep(e.step),e.showStepperButtons&&t.getInputElement().classList.add("ag-number-field-input-stepper")},t.prototype.getValue=function(){var t=this.eInput.getValue();if(!e(t)&&!e(this.params.value))return this.params.value;var o=this.params.parseValue(t);if(null==o)return o;if("string"==typeof o){if(""===o)return null;o=Number(o)}return isNaN(o)?null:o},t.prototype.getStartValue=function(){return this.params.value},t}(),ga=function(t){function e(){return t.call(this,new fa)||this}return ha(e,t),e}(bs),va=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ya=function(){function t(){}return t.prototype.getTemplate=function(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'},t.prototype.init=function(t,e){this.eInput=t,this.params=e,null!=e.min&&t.setMin(e.min),null!=e.max&&t.setMax(e.max),null!=e.step&&t.setStep(e.step)},t.prototype.getValue=function(){var t=this.eInput.getDate();return e(t)||e(this.params.value)?null!=t?t:null:this.params.value},t.prototype.getStartValue=function(){var t=this.params.value;if(t instanceof Date)return tn(t,!1)},t}(),ma=function(t){function e(){return t.call(this,new ya)||this}return va(e,t),e}(bs),Ca=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),wa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Sa=function(){function t(t){this.getDataTypeService=t}return t.prototype.getTemplate=function(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'},t.prototype.init=function(t,e){this.eInput=t,this.params=e,null!=e.min&&t.setMin(e.min),null!=e.max&&t.setMax(e.max),null!=e.step&&t.setStep(e.step)},t.prototype.getValue=function(){var t=this.formatDate(this.eInput.getDate());return e(t)||e(this.params.value)?this.params.parseValue(null!=t?t:""):this.params.value},t.prototype.getStartValue=function(){var t,e;return tn(null!==(e=this.parseDate(null!==(t=this.params.value)&&void 0!==t?t:void 0))&&void 0!==e?e:null,!1)},t.prototype.parseDate=function(t){return this.getDataTypeService().getDateParserFunction()(t)},t.prototype.formatDate=function(t){return this.getDataTypeService().getDateFormatterFunction()(t)},t}(),Ea=function(t){function e(){var e=t.call(this,new Sa((function(){return e.dataTypeService})))||this;return e}return Ca(e,t),wa([X("dataTypeService")],e.prototype,"dataTypeService",void 0),e}(bs),Ra=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ba=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Oa=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return Ra(e,t),e.prototype.init=function(t){var e=this;this.params=t,this.updateCheckbox(t),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){if(_t(t),!e.eCheckbox.isDisabled()){var o=e.eCheckbox.getValue();e.onCheckboxChanged(o)}})),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){_t(t)}));var o=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",(function(t){if(t.key===Zn.SPACE&&!e.eCheckbox.isDisabled()){e.params.eGridCell===o.activeElement&&e.eCheckbox.toggle();var n=e.eCheckbox.getValue();e.onCheckboxChanged(n),t.preventDefault()}}))},e.prototype.refresh=function(t){return this.params=t,this.updateCheckbox(t),!0},e.prototype.updateCheckbox=function(t){var e,o,n,i,r=!0;if(t.node.group&&t.column){var s=t.column.getColId();s.startsWith("ag-Grid-AutoColumn")?i=null==t.value||""===t.value?void 0:"true"===t.value:t.node.aggData&&void 0!==t.node.aggData[s]?i=null!==(e=t.value)&&void 0!==e?e:void 0:r=!1}else i=null!==(o=t.value)&&void 0!==o?o:void 0;if(r){this.eCheckbox.setValue(i);var a=null!=t.disabled?t.disabled:!(null===(n=t.column)||void 0===n?void 0:n.isCellEditable(t.node));this.eCheckbox.setDisabled(a);var l=this.localeService.getLocaleTextFunc(),u=bo(l,i),c=a?u:l("ariaToggleCellValue","Press SPACE to toggle cell value")+" ("+u+")";this.eCheckbox.setInputAriaLabel(c)}else this.eCheckbox.setDisplayed(!1)},e.prototype.onCheckboxChanged=function(t){var e=this.params,o=e.column,n=e.node,i=e.rowIndex,r=e.value,s={type:qt.EVENT_CELL_EDITING_STARTED,column:o,colDef:null==o?void 0:o.getColDef(),data:n.data,node:n,rowIndex:i,rowPinned:n.rowPinned,value:r};this.eventService.dispatchEvent(s);var a=this.params.node.setDataValue(this.params.column,t,"edit"),l={type:qt.EVENT_CELL_EDITING_STOPPED,column:o,colDef:null==o?void 0:o.getColDef(),data:n.data,node:n,rowIndex:i,rowPinned:n.rowPinned,value:r,oldValue:r,newValue:t,valueChanged:a};this.eventService.dispatchEvent(l)},e.TEMPLATE='\n        <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">\n            <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n        </div>',ba([Pi("eCheckbox")],e.prototype,"eCheckbox",void 0),e}(Ti),Ta=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Da=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pa=function(t){function e(){return t.call(this,'\n            <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">\n                <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n            </div>')||this}return Ta(e,t),e.prototype.init=function(t){var e,o=this;this.params=t;var n=null!==(e=t.value)&&void 0!==e?e:void 0;this.eCheckbox.setValue(n),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(n),this.addManagedListener(this.eCheckbox,qt.EVENT_FIELD_VALUE_CHANGED,(function(t){return o.setAriaLabel(t.selected)}))},e.prototype.getValue=function(){return this.eCheckbox.getValue()},e.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},e.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},e.prototype.isPopup=function(){return!1},e.prototype.setAriaLabel=function(t){var e=this.localeService.getLocaleTextFunc(),o=bo(e,t),n=e("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(n+" ("+o+")")},Da([Pi("eCheckbox")],e.prototype,"eCheckbox",void 0),e}(gs),_a=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Aa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Fa=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},La=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Ia=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:Ir,agColumnHeader:cs,agColumnGroupHeader:hs,agSortIndicator:as,agTextColumnFloatingFilter:ns,agNumberColumnFloatingFilter:es,agDateColumnFloatingFilter:_r,agReadOnlyFloatingFilter:Li,agAnimateShowChangeCellRenderer:As,agAnimateSlideCellRenderer:Is,agGroupCellRenderer:na,agGroupRowRenderer:na,agLoadingCellRenderer:sa,agCheckboxCellRenderer:Oa,agCellEditor:Ds,agTextCellEditor:Ds,agNumberCellEditor:ga,agDateCellEditor:ma,agDateStringCellEditor:Ea,agSelectCellEditor:Ss,agLargeTextCellEditor:ms,agCheckboxCellEditor:Pa,agTextColumnFilter:qr,agNumberColumnFilter:Ur,agDateColumnFilter:br,agLoadingOverlay:la,agNoRowsOverlay:ca,agTooltipComponent:da},e.enterpriseAgDefaultCompsModule={agSetColumnFilter:V.SetFilterModule,agSetColumnFloatingFilter:V.SetFilterModule,agMultiColumnFilter:V.MultiFilterModule,agMultiColumnFloatingFilter:V.MultiFilterModule,agGroupColumnFilter:V.RowGroupingModule,agGroupColumnFloatingFilter:V.RowGroupingModule,agRichSelect:V.RichSelectModule,agRichSelectCellEditor:V.RichSelectModule,agDetailCellRenderer:V.MasterDetailModule,agSparklineCellRenderer:V.SparklinesModule},e.jsComps={},e}return _a(e,t),e.prototype.init=function(){var t=this;null!=this.gridOptions.components&&d(this.gridOptions.components,(function(e,o){return t.registerJsComponent(e,o)}))},e.prototype.registerDefaultComponent=function(t,e){this.agGridDefaults[t]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[t]=e},e.prototype.registerJsComponent=function(t,e){this.jsComps[t]=e},e.prototype.retrieve=function(t,e){var o=this,n=function(t,e){return{componentFromFramework:e,component:t}},i=this.getFrameworkOverrides().frameworkComponent(e,this.gridOptions.components);if(null!=i)return n(i,!0);var r=this.jsComps[e];if(r)return n(r,this.getFrameworkOverrides().isFrameworkComponent(r));var s=this.agGridDefaults[e];if(s)return n(s,!1);var a=this.enterpriseAgDefaultCompsModule[e];return a?j.__assertRegistered(a,"AG Grid '"+t+"' component: "+e,this.context.getGridId()):T((function(){o.warnAboutMissingComponent(t,e)}),"MissingComp"+e),null},e.prototype.warnAboutMissingComponent=function(t,e){var o=me(e,La(La([],Fa(Object.keys(this.agGridDefaults).filter((function(t){return!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(t)})))),Fa(Object.keys(this.jsComps))),!0,.8).values;console.warn("AG Grid: Could not find '"+e+"' component. It was configured as \""+t+": '"+e+"'\" but it wasn't found in the list of registered components."),o.length>0&&console.warn("         Did you mean: ["+o.slice(0,3)+"]?"),console.warn("If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/")},Aa([X("gridOptions")],e.prototype,"gridOptions",void 0),Aa([Y],e.prototype,"init",null),e=Aa([Q("userComponentRegistry")],e)}(Bt),Na={propertyName:"dateComponent",cellRenderer:!1},Ma={propertyName:"headerComponent",cellRenderer:!1},Ga={propertyName:"headerGroupComponent",cellRenderer:!1},xa={propertyName:"cellRenderer",cellRenderer:!0},Va={propertyName:"cellEditor",cellRenderer:!1},Ha={propertyName:"innerRenderer",cellRenderer:!0},ka={propertyName:"loadingOverlayComponent",cellRenderer:!1},Ba={propertyName:"noRowsOverlayComponent",cellRenderer:!1},ja={propertyName:"tooltipComponent",cellRenderer:!1},Wa={propertyName:"filter",cellRenderer:!1},Ua={propertyName:"floatingFilterComponent",cellRenderer:!1},za={propertyName:"toolPanel",cellRenderer:!1},Ka={propertyName:"statusPanel",cellRenderer:!1},Ya={propertyName:"fullWidthCellRenderer",cellRenderer:!0},qa={propertyName:"loadingCellRenderer",cellRenderer:!0},Qa={propertyName:"groupRowRenderer",cellRenderer:!0},Xa={propertyName:"detailCellRenderer",cellRenderer:!0},Ja=function(){function t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.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"},t}(),Za=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$a=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},tl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Za(e,t),e.prototype.getHeaderCompDetails=function(t,e){return this.getCompDetails(t,Ma,"agColumnHeader",e)},e.prototype.getHeaderGroupCompDetails=function(t){var e=t.columnGroup.getColGroupDef();return this.getCompDetails(e,Ga,"agColumnGroupHeader",t)},e.prototype.getFullWidthCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Ya,null,t,!0)},e.prototype.getFullWidthLoadingCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,qa,"agLoadingCellRenderer",t,!0)},e.prototype.getFullWidthGroupCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Qa,"agGroupRowRenderer",t,!0)},e.prototype.getFullWidthDetailCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Xa,"agDetailCellRenderer",t,!0)},e.prototype.getInnerRendererDetails=function(t,e){return this.getCompDetails(t,Ha,null,e)},e.prototype.getFullWidthGroupRowInnerCellRenderer=function(t,e){return this.getCompDetails(t,Ha,null,e)},e.prototype.getCellRendererDetails=function(t,e){return this.getCompDetails(t,xa,null,e)},e.prototype.getCellEditorDetails=function(t,e){return this.getCompDetails(t,Va,"agCellEditor",e,!0)},e.prototype.getFilterDetails=function(t,e,o){return this.getCompDetails(t,Wa,o,e,!0)},e.prototype.getDateCompDetails=function(t){return this.getCompDetails(this.gridOptions,Na,"agDateInput",t,!0)},e.prototype.getLoadingOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,ka,"agLoadingOverlay",t,!0)},e.prototype.getNoRowsOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,Ba,"agNoRowsOverlay",t,!0)},e.prototype.getTooltipCompDetails=function(t){return this.getCompDetails(t.colDef,ja,"agTooltipComponent",t,!0)},e.prototype.getSetFilterCellRendererDetails=function(t,e){return this.getCompDetails(t,xa,null,e)},e.prototype.getFloatingFilterCompDetails=function(t,e,o){return this.getCompDetails(t,Ua,o,e)},e.prototype.getToolPanelCompDetails=function(t,e){return this.getCompDetails(t,za,null,e,!0)},e.prototype.getStatusPanelCompDetails=function(t,e){return this.getCompDetails(t,Ka,null,e,!0)},e.prototype.getCompDetails=function(t,e,o,n,i){var r=this;void 0===i&&(i=!1);var s=e.propertyName,a=e.cellRenderer,l=this.getCompKeys(t,e,n),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(t){var e=r.userComponentRegistry.retrieve(s,t);e&&(c=e.componentFromFramework?void 0:e.component,p=e.componentFromFramework?e.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=o&&g(o),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var v=this.mergeParamsWithApplicationProvidedParams(t,e,n,d),y=null==c,m=c||p;return{componentFromFramework:y,componentClass:m,params:v,type:e,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return r.newAgStackInstance(m,y,v,e)}}}i&&console.error("AG Grid: Could not find component "+u+", did you forget to configure this component?")},e.prototype.getCompKeys=function(t,e,o){var n,i,r,s,a,l,u=this,c=e.propertyName;if(t){var p=t,d=p[c+"Selector"],h=d?d(o):null,f=function(t){if("string"==typeof t)n=t;else if(null!=t&&!0!==t){u.getFrameworkOverrides().isFrameworkComponent(t)?r=t:i=t}};h?(f(h.component),s=h.params,a=h.popup,l=h.popupPosition):f(p[c])}return{compName:n,jsComp:i,fwComp:r,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},e.prototype.newAgStackInstance=function(t,e,o,n){var i,r=n.propertyName;if(!e)i=new t;else{var s=this.componentMetadataProvider.retrieve(r);i=this.frameworkComponentWrapper.wrap(t,s.mandatoryMethodList,s.optionalMethodList,n)}var a=this.initComponent(i,o);return null==a?vi.resolve(i):a.then((function(){return i}))},e.prototype.mergeParamsWithApplicationProvidedParams=function(t,e,o,n){void 0===n&&(n=null);var i={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};w(i,o);var r=t&&t[e.propertyName+"Params"];"function"==typeof r?w(i,r(o)):"object"==typeof r&&w(i,r);return w(i,n),i},e.prototype.initComponent=function(t,e){if(this.context.createBean(t),null!=t.init)return t.init(e)},e.prototype.getDefaultFloatingFilterType=function(t,e){if(null==t)return null;var o=null,n=this.getCompKeys(t,Wa),i=n.compName,r=n.jsComp,s=n.fwComp;i?o=Ja.getFloatingFilterType(i):null==r&&null==s&&!0===t.filter&&(o=e());return o},$a([X("gridOptions")],e.prototype,"gridOptions",void 0),$a([X("agComponentUtils")],e.prototype,"agComponentUtils",void 0),$a([X("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),$a([X("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),$a([J("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e=$a([Q("userComponentFactory")],e)}(Bt);!function(t){t[t.SINGLE_SHEET=0]="SINGLE_SHEET",t[t.MULTI_SHEET=1]="MULTI_SHEET"}(Ws||(Ws={}));var el,ol,nl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),il=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},rl=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return nl(o,t),o.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},o.prototype.removeListener=function(t){var e=t.dragSource.eElement,o=t.mouseDownListener;if(e.removeEventListener("mousedown",o),t.touchEnabled){var n=t.touchStartListener;e.removeEventListener("touchstart",n,{passive:!0})}},o.prototype.removeDragSource=function(t){var e=this.dragSources.find((function(e){return e.dragSource===t}));e&&(this.removeListener(e),mt(this.dragSources,e))},o.prototype.isDragging=function(){return this.dragging},o.prototype.addDragSource=function(t){var e=this,o=this.onMouseDown.bind(this,t),n=t.eElement,i=t.includeTouch,r=t.stopPropagationForTouch;n.addEventListener("mousedown",o);var s=null,a=this.gridOptionsService.is("suppressTouch");i&&!a&&(s=function(o){pn(o.target)||(o.cancelable&&(o.preventDefault(),r&&o.stopPropagation()),e.onTouchStart(t,o))},n.addEventListener("touchstart",s,{passive:!1})),this.dragSources.push({dragSource:t,mouseDownListener:o,touchStartListener:s,touchEnabled:!!i})},o.prototype.getStartTarget=function(){return this.startTarget},o.prototype.onTouchStart=function(t,e){var o=this;this.currentDragParams=t,this.dragging=!1;var n=e.touches[0];this.touchLastTime=n,this.touchStart=n;var i=function(e){return o.onTouchUp(e,t.eElement)},r=e.target,s=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:function(t){t.cancelable&&t.preventDefault()},options:{passive:!1}},{target:r,type:"touchmove",listener:function(e){return o.onTouchMove(e,t.eElement)},options:{passive:!0}},{target:r,type:"touchend",listener:i,options:{passive:!0}},{target:r,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(s),0===t.dragStartPixels&&this.onCommonMove(n,this.touchStart,t.eElement)},o.prototype.onMouseDown=function(t,e){var o=this,n=e;if(!(t.skipMouseEvent&&t.skipMouseEvent(e)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,0!==e.button))){this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=e,this.startTarget=e.target;var i=this.gridOptionsService.getRootNode(),r=[{target:i,type:"mousemove",listener:function(e){return o.onMouseMove(e,t.eElement)}},{target:i,type:"mouseup",listener:function(e){return o.onMouseUp(e,t.eElement)}},{target:i,type:"contextmenu",listener:function(t){return t.preventDefault()}}];this.addTemporaryEvents(r),0===t.dragStartPixels&&this.onMouseMove(e,t.eElement)}},o.prototype.addTemporaryEvents=function(t){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,i=t.options;e.addEventListener(o,n,i)})),this.dragEndFunctions.push((function(){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,i=t.options;e.removeEventListener(o,n,i)}))}))},o.prototype.isEventNearStartEvent=function(t,o){var n=this.currentDragParams.dragStartPixels;return ri(t,o,e(n)?n:4)},o.prototype.getFirstActiveTouch=function(t){for(var e=0;e<t.length;e++)if(t[e].identifier===this.touchStart.identifier)return t[e];return null},o.prototype.onCommonMove=function(t,e,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(t,e))return;this.dragging=!0;var n={type:qt.EVENT_DRAG_STARTED,target:o};this.eventService.dispatchEvent(n),this.currentDragParams.onDragStart(e),this.currentDragParams.onDragging(e)}this.currentDragParams.onDragging(t)},o.prototype.onTouchMove=function(t,e){var o=this.getFirstActiveTouch(t.touches);o&&this.onCommonMove(o,this.touchStart,e)},o.prototype.onMouseMove=function(t,e){this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.onCommonMove(t,this.mouseStartEvent,e)},o.prototype.shouldPreventMouseEvent=function(t){var e=this.gridOptionsService.is("enableCellTextSelection"),o=No(),n="mousemove"===t.type;return(e&&n||o)&&t.cancelable&&this.mouseEventService.isEventFromThisGrid(t)&&!this.isOverFormFieldElement(t)},o.prototype.isOverFormFieldElement=function(t){var e=t.target,o=null==e?void 0:e.tagName.toLocaleLowerCase();return!!(null==o?void 0:o.match("^a$|textarea|input|select|button"))},o.prototype.onTouchUp=function(t,e){var o=this.getFirstActiveTouch(t.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,e)},o.prototype.onMouseUp=function(t,e){this.onUpCommon(t,e)},o.prototype.onUpCommon=function(t,e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(t);var o={type:qt.EVENT_DRAG_STOPPED,target:e};this.eventService.dispatchEvent(o)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(t){return t()})),this.dragEndFunctions.length=0},il([X("mouseEventService")],o.prototype,"mouseEventService",void 0),il([q],o.prototype,"removeAllListeners",null),o=il([Q("dragService")],o)}(Bt),sl=function(){function t(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return t.prototype.check=function(t,e){void 0===e&&(e=!1);var o=e||this.shouldSkipVerticalScroll();if(!o||!this.shouldSkipHorizontalScroll()){var n=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=t.clientX<n.left+i,this.tickRight=t.clientX>n.right-i,this.tickUp=t.clientY<n.top+i&&!o,this.tickDown=t.clientY>n.bottom-i&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},t.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},t.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-t),this.tickRight&&this.setHorizontalPosition(o+t)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}(),al=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ll=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ul="ag-list-item-hovered",cl=function(t){function e(e,o,n){var i=t.call(this)||this;return i.comp=e,i.virtualList=o,i.params=n,i.currentDragValue=null,i.lastHoveredListItem=null,i}return al(e,t),e.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()},e.prototype.listItemDragStart=function(t){this.currentDragValue=this.params.getCurrentDragValue(t),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},e.prototype.listItemDragEnd=function(){var t=this;window.setTimeout((function(){t.currentDragValue=null,t.moveBlocked=!1}),10)},e.prototype.createDropTarget=function(){var t=this,e={isInterestedIn:function(e){return e===t.params.dragSourceType},getIconName:function(){return Us[t.moveBlocked?"ICON_NOT_ALLOWED":"ICON_MOVE"]},getContainer:function(){return t.comp.getGui()},onDragging:function(e){return t.onDragging(e)},onDragStop:function(){return t.onDragStop()},onDragLeave:function(){return t.onDragLeave()}};this.dragAndDropService.addDropTarget(e)},e.prototype.createAutoScrollService=function(){var t=this.virtualList.getGui();this.autoScrollService=new sl({scrollContainer:t,scrollAxis:"y",getVerticalPosition:function(){return t.scrollTop},setVerticalPosition:function(e){return t.scrollTop=e}})},e.prototype.onDragging=function(t){if(this.currentDragValue&&!this.moveBlocked){var e=this.getListDragItem(t),o=this.virtualList.getComponentAt(e.rowIndex);if(o){var n=o.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===e.rowIndex&&this.lastHoveredListItem.position===e.position||(this.autoScrollService.check(t.event),this.clearHoveredItems(),this.lastHoveredListItem=e,un(n,ul),un(n,"ag-item-highlight-"+e.position))}}},e.prototype.getListDragItem=function(t){var e=this.virtualList.getGui(),o=parseFloat(window.getComputedStyle(e).paddingTop),n=this.virtualList.getRowHeight(),i=this.virtualList.getScrollTop(),r=Math.max(0,(t.y-o+i)/n),s=this.params.getNumRows(this.comp)-1,a=0|Math.min(s,r);return{rowIndex:a,position:Math.round(r)>r||r>s?"bottom":"top",component:this.virtualList.getComponentAt(a)}},e.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},e.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},e.prototype.clearHoveredItems=function(){this.virtualList.getGui().querySelectorAll("."+ul).forEach((function(t){[ul,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach((function(e){t.classList.remove(e)}))})),this.lastHoveredListItem=null},ll([X("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ll([Y],e.prototype,"postConstruct",null),e}(Bt);!function(t){t[t.Above=0]="Above",t[t.Below=1]="Below"}(el||(el={})),function(t){t.EVERYTHING="group",t.FILTER="filter",t.SORT="sort",t.MAP="map",t.AGGREGATE="aggregate",t.FILTER_AGGREGATES="filter_aggregates",t.PIVOT="pivot",t.NOTHING="nothing"}(ol||(ol={}));var pl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};function dl(t){var e=t;return null!=e&&null!=e.getFrameworkComponentInstance?e.getFrameworkComponentInstance():t}var hl,fl=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},t.prototype.registerSideBarComp=function(t){this.sideBarComp=t},t.prototype.init=function(){var t=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(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.__getContext=function(){return this.context},t.prototype.getSetterMethod=function(t){return"set"+t.charAt(0).toUpperCase()+t.substring(1)},t.prototype.__setPropertyOnly=function(t,e){return this.gos.__setPropertyOnly(t,e)},t.prototype.__updateProperty=function(t,e,o,n){void 0===n&&(n=void 0),this.gos.set(t,e,o,{},n);var i=this.getSetterMethod(t);this[i]&&this[i](e)},t.prototype.getGridId=function(){return this.context.getGridId()},t.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},t.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},t.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},t.prototype.forEachDetailGridInfo=function(t){var o=0;d(this.detailGridInfoMap,(function(n,i){e(i)&&(t(i,o),o++)}))},t.prototype.getDataAsCsv=function(t){if(j.__assertRegistered(V.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){j.__assertRegistered(V.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getExcelExportMode=function(t){var e=this.gos.get("defaultExcelExportParams");return Object.assign({exportMode:"xlsx"},e,t).exportMode},t.prototype.assertNotExcelMultiSheet=function(t,e){if(!j.__assertRegistered(V.ExcelExportModule,"api."+t,this.context.getGridId()))return!1;var o=this.getExcelExportMode(e);return this.excelCreator.getFactoryMode(o)!==Ws.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)},t.prototype.getDataAsExcel=function(t){if(this.assertNotExcelMultiSheet("getDataAsExcel",t))return this.excelCreator.getDataAsExcel(t)},t.prototype.exportDataAsExcel=function(t){this.assertNotExcelMultiSheet("exportDataAsExcel",t)&&this.excelCreator.exportDataAsExcel(t)},t.prototype.getSheetDataForExcel=function(t){if(j.__assertRegistered(V.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId())){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Ws.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(j.__assertRegistered(V.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(j.__assertRegistered(V.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setTreeData=function(t){this.gos.set("treeData",t)},t.prototype.setGridAriaProperty=function(t,e){if(t){var o=this.ctrlsService.getGridBodyCtrl().getGui(),n="aria-"+t;null===e?o.removeAttribute(n):o.setAttribute(n,e)}},t.prototype.logMissingRowModel=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];console.error("AG Grid: api."+t+" can only be called when gridOptions.rowModelType is "+e.join(" or "))},t.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):this.logMissingRowModel("setServerSideDatasource","serverSide")},t.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gos.set("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):this.logMissingRowModel("setCacheBlockSize","serverSide")},t.prototype.setDatasource=function(t){this.gos.isRowModelType("infinite")?this.rowModel.setDatasource(t):this.logMissingRowModel("setDatasource","infinite")},t.prototype.setViewportDatasource=function(t){this.gos.isRowModelType("viewport")?this.rowModel.setViewportDatasource(t):this.logMissingRowModel("setViewportDatasource","viewport")},t.prototype.setRowData=function(t){null==this.immutableService?this.logMissingRowModel("setRowData","clientSide"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},t.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},t.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},t.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},t.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(t,e),this.gos.set("columnDefs",t,!0,{source:e})},t.prototype.setAutoGroupColumnDef=function(t,e){void 0===e&&(e="api"),this.gos.set("autoGroupColumnDef",t,!0,{source:e})},t.prototype.setDefaultColDef=function(t,e){void 0===e&&(e="api"),this.gos.set("defaultColDef",t,!0,{source:e})},t.prototype.setColumnTypes=function(t,e){void 0===e&&(e="api"),this.gos.set("columnTypes",t,!0,{source:e})},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},t.prototype.setAlwaysShowHorizontalScroll=function(t){this.gos.set("alwaysShowHorizontalScroll",t)},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gos.set("alwaysShowVerticalScroll",t)},t.prototype.refreshCells=function(t){void 0===t&&(t={}),this.rowRenderer.refreshCells(t)},t.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},t.prototype.redrawRows=function(t){void 0===t&&(t={});var e=t?t.rowNodes:void 0;this.rowRenderer.redrawRows(e)},t.prototype.setFunctionsReadOnly=function(t){this.gos.set("functionsReadOnly",t)},t.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(t){return t.refresh()}))},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(t,e,o){t&&(o&&t.parent&&-1!==t.parent.level&&this.setRowNodeExpanded(t.parent,e,o),t.setExpanded(e))},t.prototype.onGroupExpandedOrCollapsed=function(){o(this.clientSideRowModel)?this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide"):this.clientSideRowModel.refreshModel({step:ol.MAP})},t.prototype.refreshClientSideRowModel=function(t){o(this.clientSideRowModel)?this.logMissingRowModel("refreshClientSideRowModel","clientSide"):this.clientSideRowModel.refreshModel(t)},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},t.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gos.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},t.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},t.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):this.logMissingRowModel("expandAll","clientSide","serverSide")},t.prototype.addRenderedRowListener=function(t,e,o){this.rowRenderer.addRenderedRowListener(t,e,o)},t.prototype.getQuickFilter=function(){return this.gos.get("quickFilterText")},t.prototype.setQuickFilter=function(t){this.gos.set("quickFilterText",t)},t.prototype.setExcludeHiddenColumnsFromQuickFilter=function(t){be("30","setExcludeHiddenColumnsFromQuickFilter",void 0,"Hidden columns are now excluded from the Quick Filter by default. This can be toggled using `setIncludeHiddenColumnsInQuickFilter`"),this.setIncludeHiddenColumnsInQuickFilter(!t)},t.prototype.setIncludeHiddenColumnsInQuickFilter=function(t){this.gos.set("includeHiddenColumnsInQuickFilter",t)},t.prototype.setQuickFilterParser=function(t){this.gos.set("quickFilterParser",t)},t.prototype.setQuickFilterMatcher=function(t){this.gos.set("quickFilterMatcher",t)},t.prototype.getAdvancedFilterModel=function(){return j.__assertRegistered(V.AdvancedFilterModule,"api.getAdvancedFilterModel",this.context.getGridId())?this.filterManager.getAdvancedFilterModel():null},t.prototype.setAdvancedFilterModel=function(t){this.gos.set("advancedFilterModel",t)},t.prototype.setEnableAdvancedFilter=function(t){this.gos.set("enableAdvancedFilter",t)},t.prototype.setIncludeHiddenColumnsInAdvancedFilter=function(t){this.gos.set("includeHiddenColumnsInAdvancedFilter",t)},t.prototype.setAdvancedFilterParent=function(t){this.gos.set("advancedFilterParent",t)},t.prototype.setAdvancedFilterBuilderParams=function(t){this.gos.set("advancedFilterBuilderParams",t)},t.prototype.showAdvancedFilterBuilder=function(){j.__assertRegistered(V.AdvancedFilterModule,"api.setAdvancedFilterModel",this.context.getGridId())&&this.filterManager.showAdvancedFilterBuilder("api")},t.prototype.setNodesSelected=function(t){if(t.nodes.every((function(t){return t.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),!1):void 0!==t.id||(console.warn("AG Grid: cannot select node until id for node is known"),!1)}))){var e=t.nodes,o=t.source,n=t.newValue,i=e;this.selectionService.setNodesSelected({nodes:i,source:null!=o?o:"api",newValue:n})}},t.prototype.selectAll=function(t){void 0===t&&(t="apiSelectAll"),this.selectionService.selectAllRowNodes({source:t})},t.prototype.deselectAll=function(t){void 0===t&&(t="apiSelectAll"),this.selectionService.deselectAllRowNodes({source:t})},t.prototype.selectAllFiltered=function(t){void 0===t&&(t="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes({source:t,justFiltered:!0})},t.prototype.deselectAllFiltered=function(t){void 0===t&&(t="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes({source:t,justFiltered:!0})},t.prototype.getServerSideSelectionState=function(){return o(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getServerSideSelectionState()},t.prototype.setServerSideSelectionState=function(t){o(this.serverSideRowModel)?this.logMissingRowModel("setServerSideSelectionState","serverSide"):this.selectionService.setServerSideSelectionState(t)},t.prototype.selectAllOnCurrentPage=function(t){void 0===t&&(t="apiSelectAllCurrentPage"),this.selectionService.selectAllRowNodes({source:t,justCurrentPage:!0})},t.prototype.deselectAllOnCurrentPage=function(t){void 0===t&&(t="apiSelectAllCurrentPage"),this.selectionService.deselectAllRowNodes({source:t,justCurrentPage:!0})},t.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},t.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){if(!o(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel("getBestCostNodeSelection","clientSide")},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,e)},t.prototype.ensureIndexVisible=function(t,e){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,e)},t.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},t.prototype.forEachLeafNode=function(t){o(this.clientSideRowModel)?this.logMissingRowModel("forEachLeafNode","clientSide"):this.clientSideRowModel.forEachLeafNode(t)},t.prototype.forEachNode=function(t,e){this.rowModel.forEachNode(t,e)},t.prototype.forEachNodeAfterFilter=function(t){o(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilter","clientSide"):this.clientSideRowModel.forEachNodeAfterFilter(t)},t.prototype.forEachNodeAfterFilterAndSort=function(t){o(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},t.prototype.getFilterInstance=function(t,e){return this.filterManager.getFilterInstance(t,e)},t.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"api")},t.prototype.getStatusPanel=function(t){if(j.__assertRegistered(V.StatusBarModule,"api.getStatusPanel",this.context.getGridId()))return dl(this.statusBarService.getStatusPanel(t))},t.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(t){void 0===t&&(t="api"),this.filterManager.onFilterChanged({source:t})},t.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},t.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},t.prototype.setFocusedCell=function(t,e,o){this.focusService.setFocusedCell({rowIndex:t,column:e,rowPinned:o,forceBrowserFocus:!0})},t.prototype.setSuppressRowDrag=function(t){this.gos.set("suppressRowDrag",t)},t.prototype.setSuppressMoveWhenRowDragging=function(t){this.gos.set("suppressMoveWhenRowDragging",t)},t.prototype.setSuppressRowClickSelection=function(t){this.gos.set("suppressRowClickSelection",t)},t.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},t.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},t.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},t.prototype.setHeaderHeight=function(t){this.gos.set("headerHeight",t)},t.prototype.setDomLayout=function(t){this.gos.set("domLayout",t)},t.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},t.prototype.setFillHandleDirection=function(t){this.gos.set("fillHandleDirection",t)},t.prototype.setGroupHeaderHeight=function(t){this.gos.set("groupHeaderHeight",t)},t.prototype.setFloatingFiltersHeight=function(t){this.gos.set("floatingFiltersHeight",t)},t.prototype.setPivotHeaderHeight=function(t){this.gos.set("pivotHeaderHeight",t)},t.prototype.setPivotGroupHeaderHeight=function(t){this.gos.set("pivotGroupHeaderHeight",t)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.setAnimateRows=function(t){this.gos.set("animateRows",t)},t.prototype.setIsExternalFilterPresent=function(t){this.gos.set("isExternalFilterPresent",t)},t.prototype.setDoesExternalFilterPass=function(t){this.gos.set("doesExternalFilterPass",t)},t.prototype.setNavigateToNextCell=function(t){this.gos.set("navigateToNextCell",t)},t.prototype.setTabToNextCell=function(t){this.gos.set("tabToNextCell",t)},t.prototype.setTabToNextHeader=function(t){this.gos.set("tabToNextHeader",t)},t.prototype.setNavigateToNextHeader=function(t){this.gos.set("navigateToNextHeader",t)},t.prototype.setRowGroupPanelShow=function(t){this.gos.set("rowGroupPanelShow",t)},t.prototype.setGetGroupRowAgg=function(t){this.gos.set("getGroupRowAgg",t)},t.prototype.setGetBusinessKeyForNode=function(t){this.gos.set("getBusinessKeyForNode",t)},t.prototype.setGetChildCount=function(t){this.gos.set("getChildCount",t)},t.prototype.setProcessRowPostCreate=function(t){this.gos.set("processRowPostCreate",t)},t.prototype.setGetRowId=function(t){this.gos.set("getRowId",t)},t.prototype.setGetRowClass=function(t){this.gos.set("getRowClass",t)},t.prototype.setIsFullWidthRow=function(t){this.gos.set("isFullWidthRow",t)},t.prototype.setIsRowSelectable=function(t){this.gos.set("isRowSelectable",t)},t.prototype.setIsRowMaster=function(t){this.gos.set("isRowMaster",t)},t.prototype.setPostSortRows=function(t){this.gos.set("postSortRows",t)},t.prototype.setGetDocument=function(t){this.gos.set("getDocument",t)},t.prototype.setGetContextMenuItems=function(t){this.gos.set("getContextMenuItems",t)},t.prototype.setGetMainMenuItems=function(t){this.gos.set("getMainMenuItems",t)},t.prototype.setProcessCellForClipboard=function(t){this.gos.set("processCellForClipboard",t)},t.prototype.setSendToClipboard=function(t){this.gos.set("sendToClipboard",t)},t.prototype.setProcessCellFromClipboard=function(t){this.gos.set("processCellFromClipboard",t)},t.prototype.setProcessSecondaryColDef=function(t){be("28.0","setProcessSecondaryColDef","setProcessPivotResultColDef"),this.setProcessPivotResultColDef(t)},t.prototype.setProcessSecondaryColGroupDef=function(t){be("28.0","setProcessSecondaryColGroupDef","setProcessPivotResultColGroupDef"),this.setProcessPivotResultColGroupDef(t)},t.prototype.setProcessPivotResultColDef=function(t){this.gos.set("processPivotResultColDef",t)},t.prototype.setProcessPivotResultColGroupDef=function(t){this.gos.set("processPivotResultColGroupDef",t)},t.prototype.setPostProcessPopup=function(t){this.gos.set("postProcessPopup",t)},t.prototype.setInitialGroupOrderComparator=function(t){this.gos.set("initialGroupOrderComparator",t)},t.prototype.setGetChartToolbarItems=function(t){this.gos.set("getChartToolbarItems",t)},t.prototype.setPaginationNumberFormatter=function(t){this.gos.set("paginationNumberFormatter",t)},t.prototype.setGetServerSideStoreParams=function(t){be("28.0","setGetServerSideStoreParams","setGetServerSideGroupLevelParams"),this.setGetServerSideGroupLevelParams(t)},t.prototype.setGetServerSideGroupLevelParams=function(t){this.gos.set("getServerSideGroupLevelParams",t)},t.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gos.set("isServerSideGroupOpenByDefault",t)},t.prototype.setIsApplyServerSideTransaction=function(t){this.gos.set("isApplyServerSideTransaction",t)},t.prototype.setIsServerSideGroup=function(t){this.gos.set("isServerSideGroup",t)},t.prototype.setGetServerSideGroupKey=function(t){this.gos.set("getServerSideGroupKey",t)},t.prototype.setGetRowStyle=function(t){this.gos.set("getRowStyle",t)},t.prototype.setGetRowHeight=function(t){this.gos.set("getRowHeight",t)},t.prototype.assertSideBarLoaded=function(t){return j.__assertRegistered(V.SideBarModule,"api."+t,this.context.getGridId())},t.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(t){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarComp.setDisplayed(t)},t.prototype.setSideBarPosition=function(t){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarComp.setSideBarPosition(t)},t.prototype.openToolPanel=function(t){this.assertSideBarLoaded("openToolPanel")&&this.sideBarComp.openToolPanel(t,"api")},t.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarComp.close("api")},t.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarComp.openedItem():null},t.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarComp.refresh()},t.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarComp.isToolPanelShowing()},t.prototype.getToolPanelInstance=function(t){if(this.assertSideBarLoaded("getToolPanelInstance"))return dl(this.sideBarComp.getToolPanelInstance(t))},t.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarComp.getDef()},t.prototype.setSideBar=function(t){this.gos.set("sideBar",t)},t.prototype.setSuppressClipboardPaste=function(t){this.gos.set("suppressClipboardPaste",t)},t.prototype.resetRowHeights=function(){if(e(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},t.prototype.setGroupRemoveSingleChildren=function(t){this.gos.set("groupRemoveSingleChildren",t)},t.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gos.set("groupRemoveLowestSingleChildren",t)},t.prototype.setGroupDisplayType=function(t){this.gos.set("groupDisplayType",t)},t.prototype.setGroupIncludeFooter=function(t){this.gos.set("groupIncludeFooter",t)},t.prototype.setGroupIncludeTotalFooter=function(t){this.gos.set("groupIncludeTotalFooter",t)},t.prototype.setRowClass=function(t){this.gos.set("rowClass",t)},t.prototype.setDeltaSort=function(t){this.gos.set("deltaSort",t)},t.prototype.setRowCount=function(t,e){if(this.serverSideRowModel)return this.columnModel.isRowGroupEmpty()?void this.serverSideRowModel.setRowCount(t,e):void console.error("AG Grid: setRowCount cannot be used while using row grouping.");this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):this.logMissingRowModel("setRowCount","infinite","serverSide")},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(t,e){var n=this.columnModel.getPrimaryColumn(t);return o(n)&&(n=this.columnModel.getGridColumn(t)),o(n)?null:this.valueService.getValue(n,e)},t.prototype.addEventListener=function(t,e){var o=this.gos.useAsyncEvents();this.eventService.addEventListener(t,e,o)},t.prototype.addGlobalListener=function(t){var e=this.gos.useAsyncEvents();this.eventService.addGlobalListener(t,e)},t.prototype.removeEventListener=function(t,e){var o=this.gos.useAsyncEvents();this.eventService.removeEventListener(t,e,o)},t.prototype.removeGlobalListener=function(t){var e=this.gos.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},t.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0,this.dispatchEvent({type:qt.EVENT_GRID_PRE_DESTROYED});var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(E.bind(window,this,"Grid API"),100)},t.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},t.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.filterManager.resetQuickFilterCache()},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(j.__assertRegistered(V.RangeSelectionModule,"api.getCellRanges",this.context.getGridId()),null)},t.prototype.addCellRange=function(t){this.rangeService?this.rangeService.addCellRange(t):j.__assertRegistered(V.RangeSelectionModule,"api.addCellRange",this.context.getGridId())},t.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),j.__assertRegistered(V.RangeSelectionModule,"gridApi.clearRangeSelection",this.context.getGridId())},t.prototype.undoCellEditing=function(){this.undoRedoService.undo("api")},t.prototype.redoCellEditing=function(){this.undoRedoService.redo("api")},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(j.__assertRegistered(V.GridChartsModule,"api.getChartModels",this.context.getGridId()))return this.chartService.getChartModels()},t.prototype.getChartRef=function(t){if(j.__assertRegistered(V.GridChartsModule,"api.getChartRef",this.context.getGridId()))return this.chartService.getChartRef(t)},t.prototype.getChartImageDataURL=function(t){if(j.__assertRegistered(V.GridChartsModule,"api.getChartImageDataURL",this.context.getGridId()))return this.chartService.getChartImageDataURL(t)},t.prototype.downloadChart=function(t){if(j.__assertRegistered(V.GridChartsModule,"api.downloadChart",this.context.getGridId()))return this.chartService.downloadChart(t)},t.prototype.openChartToolPanel=function(t){if(j.__assertRegistered(V.GridChartsModule,"api.openChartToolPanel",this.context.getGridId()))return this.chartService.openChartToolPanel(t)},t.prototype.closeChartToolPanel=function(t){if(j.__assertRegistered(V.GridChartsModule,"api.closeChartToolPanel",this.context.getGridId()))return this.chartService.closeChartToolPanel(t.chartId)},t.prototype.createRangeChart=function(t){if(j.__assertRegistered(V.GridChartsModule,"api.createRangeChart",this.context.getGridId()))return this.chartService.createRangeChart(t)},t.prototype.createPivotChart=function(t){if(j.__assertRegistered(V.GridChartsModule,"api.createPivotChart",this.context.getGridId()))return this.chartService.createPivotChart(t)},t.prototype.createCrossFilterChart=function(t){if(j.__assertRegistered(V.GridChartsModule,"api.createCrossFilterChart",this.context.getGridId()))return this.chartService.createCrossFilterChart(t)},t.prototype.updateChart=function(t){j.__assertRegistered(V.GridChartsModule,"api.updateChart",this.context.getGridId())&&this.chartService.updateChart(t)},t.prototype.restoreChart=function(t,e){if(j.__assertRegistered(V.GridChartsModule,"api.restoreChart",this.context.getGridId()))return this.chartService.restoreChart(t,e)},t.prototype.copyToClipboard=function(t){j.__assertRegistered(V.ClipboardModule,"api.copyToClipboard",this.context.getGridId())&&this.clipboardService.copyToClipboard(t)},t.prototype.cutToClipboard=function(t){j.__assertRegistered(V.ClipboardModule,"api.cutToClipboard",this.context.getGridId())&&this.clipboardService.cutToClipboard(t,"api")},t.prototype.copySelectedRowsToClipboard=function(t){j.__assertRegistered(V.ClipboardModule,"api.copySelectedRowsToClipboard",this.context.getGridId())&&this.clipboardService.copySelectedRowsToClipboard(t)},t.prototype.copySelectedRangeToClipboard=function(t){j.__assertRegistered(V.ClipboardModule,"api.copySelectedRangeToClipboard",this.context.getGridId())&&this.clipboardService.copySelectedRangeToClipboard(t)},t.prototype.copySelectedRangeDown=function(){j.__assertRegistered(V.ClipboardModule,"api.copySelectedRangeDown",this.context.getGridId())&&this.clipboardService.copyRangeDown()},t.prototype.pasteFromClipboard=function(){j.__assertRegistered(V.ClipboardModule,"api.pasteFromClipboard",this.context.getGridId())&&this.clipboardService.pasteFromClipboard()},t.prototype.showColumnMenuAfterButtonClick=function(t,e){var o=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(o,e,"columnMenu")},t.prototype.showColumnMenuAfterMouseClick=function(t,e){var o=this.columnModel.getGridColumn(t);o||(o=this.columnModel.getPrimaryColumn(t)),o?this.menuFactory.showMenuAfterMouseEvent(o,e):console.error("AG Grid: column '"+t+"' not found")},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(t){this.gos.set("popupParent",t)},t.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},t.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},t.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t).map(dl)},t.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(dl)},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},t.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(e){var o={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e};null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var n=this.navigationService.getCellByPosition(o);n&&(this.focusService.isCellFocused(o)||this.focusService.setFocusedCell(o),n.startRowOrCellEdit(t.key))}else console.warn("AG Grid: no column found for "+t.colKey)},t.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},t.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);this.logMissingRowModel("applyServerSideTransaction","serverSide")},t.prototype.applyServerSideTransactionAsync=function(t,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,e);this.logMissingRowModel("applyServerSideTransactionAsync","serverSide")},t.prototype.applyServerSideRowData=function(t){var e,o,n=null!==(e=t.startRow)&&void 0!==e?e:0,i=null!==(o=t.route)&&void 0!==o?o:[];n<0?console.warn("AG Grid: invalid value "+t.startRow+" for startRow, the value should be >= 0"):this.serverSideRowModel?this.serverSideRowModel.applyRowData(t.successParams,n,i):this.logMissingRowModel("setServerSideDatasource","serverSide")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")},t.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")},t.prototype.applyTransaction=function(t){if(this.clientSideRowModel)return this.clientSideRowModel.updateRowData(t);this.logMissingRowModel("applyTransaction","clientSide")},t.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):this.logMissingRowModel("applyTransactionAsync","clientSide")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel("flushAsyncTransactions","clientSide")},t.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(t){this.gos.set("suppressModelUpdateAfterUpdateTransaction",t)},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},t.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):this.logMissingRowModel("refreshServerSide","serverSide")},t.prototype.refreshServerSideStore=function(t){return be("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(t)},t.prototype.getServerSideStoreState=function(){return be("28.0","getServerSideStoreState","getServerSideGroupLevelState"),this.getServerSideGroupLevelState()},t.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.setDataTypeDefinitions=function(t){this.gos.set("dataTypeDefinitions",t)},t.prototype.setPagination=function(t){this.gos.set("pagination",t)},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gos.set("paginationPageSize",t)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},pl([J("immutableService")],t.prototype,"immutableService",void 0),pl([J("csvCreator")],t.prototype,"csvCreator",void 0),pl([J("excelCreator")],t.prototype,"excelCreator",void 0),pl([X("rowRenderer")],t.prototype,"rowRenderer",void 0),pl([X("navigationService")],t.prototype,"navigationService",void 0),pl([X("filterManager")],t.prototype,"filterManager",void 0),pl([X("columnModel")],t.prototype,"columnModel",void 0),pl([X("selectionService")],t.prototype,"selectionService",void 0),pl([X("gridOptionsService")],t.prototype,"gos",void 0),pl([X("valueService")],t.prototype,"valueService",void 0),pl([X("alignedGridsService")],t.prototype,"alignedGridsService",void 0),pl([X("eventService")],t.prototype,"eventService",void 0),pl([X("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),pl([X("context")],t.prototype,"context",void 0),pl([X("rowModel")],t.prototype,"rowModel",void 0),pl([X("sortController")],t.prototype,"sortController",void 0),pl([X("paginationProxy")],t.prototype,"paginationProxy",void 0),pl([X("focusService")],t.prototype,"focusService",void 0),pl([X("dragAndDropService")],t.prototype,"dragAndDropService",void 0),pl([J("rangeService")],t.prototype,"rangeService",void 0),pl([J("clipboardService")],t.prototype,"clipboardService",void 0),pl([J("aggFuncService")],t.prototype,"aggFuncService",void 0),pl([X("menuFactory")],t.prototype,"menuFactory",void 0),pl([J("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),pl([X("valueCache")],t.prototype,"valueCache",void 0),pl([X("animationFrameService")],t.prototype,"animationFrameService",void 0),pl([J("statusBarService")],t.prototype,"statusBarService",void 0),pl([J("chartService")],t.prototype,"chartService",void 0),pl([J("undoRedoService")],t.prototype,"undoRedoService",void 0),pl([J("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),pl([J("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),pl([X("ctrlsService")],t.prototype,"ctrlsService",void 0),pl([Y],t.prototype,"init",null),pl([q],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=pl([Q("gridApi")],t)}(),gl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},yl=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.quickFilter=null,e.quickFilterParts=null,e}var n;return gl(o,t),n=o,o.prototype.postConstruct=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,qt.EVENT_NEW_COLUMNS_LOADED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_VISIBLE,(function(){t.gridOptionsService.is("includeHiddenColumnsInQuickFilter")||t.resetQuickFilterCache()})),this.addManagedPropertyListener("quickFilterText",(function(e){return t.setQuickFilter(e.currentValue)})),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",(function(){return t.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 t.setQuickFilterParserAndMatcher()}))},o.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},o.prototype.doesRowPassQuickFilter=function(t){var e=this,o=this.gridOptionsService.is("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(o,t):this.quickFilterParts.every((function(n){return o?e.doesRowPassQuickFilterCache(t,n):e.doesRowPassQuickFilterNoCache(t,n)}))},o.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},o.prototype.setQuickFilterParts=function(){var t=this.quickFilter,e=this.parser;this.quickFilterParts=t?e?e(t):t.split(" "):null},o.prototype.parseQuickFilter=function(t){return e(t)?this.gridOptionsService.isRowModelType("clientSide")?t.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},o.prototype.setQuickFilter=function(t){if(null==t||"string"==typeof t){var e=this.parseQuickFilter(t);this.quickFilter!==e&&(this.quickFilter=e,this.setQuickFilterParts(),this.dispatchEvent({type:n.EVENT_QUICK_FILTER_CHANGED}))}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof t)},o.prototype.setQuickFilterParserAndMatcher=function(){var t=this.gridOptionsService.get("quickFilterParser"),e=this.gridOptionsService.get("quickFilterMatcher"),o=t!==this.parser||e!==this.matcher;this.parser=t,this.matcher=e,o&&(this.setQuickFilterParts(),this.dispatchEvent({type:n.EVENT_QUICK_FILTER_CHANGED}))},o.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:n.EVENT_QUICK_FILTER_CHANGED})},o.prototype.doesRowPassQuickFilterNoCache=function(t,o){var n=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(i){var r=n.getQuickFilterTextForColumn(i,t);return e(r)&&r.indexOf(o)>=0}))},o.prototype.doesRowPassQuickFilterCache=function(t,e){return this.checkGenerateQuickFilterAggregateText(t),t.quickFilterAggregateText.indexOf(e)>=0},o.prototype.doesRowPassQuickFilterMatcher=function(t,e){var o;t?(this.checkGenerateQuickFilterAggregateText(e),o=e.quickFilterAggregateText):o=this.getQuickFilterAggregateText(e);var n=this.quickFilterParts;return(0,this.matcher)(n,o)},o.prototype.checkGenerateQuickFilterAggregateText=function(t){t.quickFilterAggregateText||(t.quickFilterAggregateText=this.getQuickFilterAggregateText(t))},o.prototype.getQuickFilterTextForColumn=function(t,o){var n=this.valueService.getValue(t,o,!0),i=t.getColDef();if(i.getQuickFilterText){var r={value:n,node:o,data:o.data,column:t,colDef:i,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};n=i.getQuickFilterText(r)}return e(n)?n.toString().toUpperCase():null},o.prototype.getQuickFilterAggregateText=function(t){var o=this,i=[];return this.columnModel.getAllColumnsForQuickFilter().forEach((function(n){var r=o.getQuickFilterTextForColumn(n,t);e(r)&&i.push(r)})),i.join(n.QUICK_FILTER_SEPARATOR)},o.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",o.QUICK_FILTER_SEPARATOR="\n",vl([X("valueService")],o.prototype,"valueService",void 0),vl([X("columnModel")],o.prototype,"columnModel",void 0),vl([X("rowModel")],o.prototype,"rowModel",void 0),vl([Y],o.prototype,"postConstruct",null),o=n=vl([Q("quickFilterService")],o)}(Bt),ml=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cl=function(){return(Cl=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},wl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Sl=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.allColumnListeners=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.processingFilterChange=!1,e.filterModelUpdateQueue=[],e}return ml(o,t),o.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_VALUE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,qt.EVENT_NEW_COLUMNS_LOADED,(function(){return t.updateAdvancedFilterColumns()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_VISIBLE,(function(){return t.updateAdvancedFilterColumns()})),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",(function(){return t.updateAggFiltering()})),this.addManagedPropertyListener("advancedFilterModel",(function(e){return t.setAdvancedFilterModel(e.currentValue)})),this.addManagedListener(this.eventService,qt.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,(function(e){var o=e.enabled;return t.onAdvancedFilterEnabledChanged(o)})),this.addManagedListener(this.eventService,qt.EVENT_DATA_TYPES_INFERRED,(function(){return t.processFilterModelUpdateQueue()})),this.addManagedListener(this.quickFilterService,yl.EVENT_QUICK_FILTER_CHANGED,(function(){return t.onFilterChanged({source:"quickFilter"})}))},o.prototype.isExternalFilterPresentCallback=function(){var t=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"==typeof t&&t({})},o.prototype.doesExternalFilterPass=function(t){var e=this.gridOptionsService.get("doesExternalFilterPass");return"function"==typeof e&&e(t)},o.prototype.setFilterModel=function(t){var e=this;if(this.isAdvancedFilterEnabled())this.warnAdvancedFilters();else if(this.dataTypeService.isPendingInference())this.filterModelUpdateQueue.push(t);else{var o=[],n=this.getFilterModel();if(t){var i=li(Object.keys(t));this.allColumnFilters.forEach((function(n,r){var s=t[r];o.push(e.setModelOnFilterWrapper(n.filterPromise,s)),i.delete(r)})),i.forEach((function(n){var i=e.columnModel.getPrimaryColumn(n)||e.columnModel.getGridColumn(n);if(i)if(i.isFilterAllowed()){var r=e.getOrCreateFilterWrapper(i,"NO_UI");r?o.push(e.setModelOnFilterWrapper(r.filterPromise,t[n])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+n)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+n);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+n)}))}else this.allColumnFilters.forEach((function(t){o.push(e.setModelOnFilterWrapper(t.filterPromise,null))}));vi.all(o).then((function(){var t=e.getFilterModel(),o=[];e.allColumnFilters.forEach((function(e,i){var r=n?n[i]:null,s=t?t[i]:null;di.jsonEquals(r,s)||o.push(e.column)})),o.length>0&&e.onFilterChanged({columns:o,source:"api"})}))}},o.prototype.setModelOnFilterWrapper=function(t,e){return new vi((function(o){t.then((function(t){"function"!=typeof t.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(t.setModel(e)||vi.resolve()).then((function(){return o()}))}))}))},o.prototype.getFilterModel=function(){var t={};return this.allColumnFilters.forEach((function(o,n){var i=o.filterPromise.resolveNow(null,(function(t){return t}));if(null==i)return null;if("function"==typeof i.getModel){var r=i.getModel();e(r)&&(t[n]=r)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),t},o.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},o.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},o.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},o.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},o.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},o.prototype.onAdvancedFilterEnabledChanged=function(t){var e,o=this;t?this.allColumnFilters.size&&(this.allColumnFilters.forEach((function(t){return o.disposeFilterWrapper(t,"advancedFilterEnabled")})),this.onFilterChanged({source:"advancedFilter"})):(null===(e=this.advancedFilterService)||void 0===e?void 0:e.isFilterPresent())&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},o.prototype.isAdvancedFilterEnabled=function(){var t;return null===(t=this.advancedFilterService)||void 0===t?void 0:t.isEnabled()},o.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},o.prototype.doAggregateFiltersPass=function(t,e){return this.doColumnFiltersPass(t,e,!0)},o.prototype.updateActiveFilters=function(){var t=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var e=function(t){return!!t&&(t.isFilterActive?t.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},o=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach((function(n){if(n.filterPromise.resolveNow(!1,e)){var i=n.filterPromise.resolveNow(null,(function(t){return t}));!function(e){if(!e.isPrimary())return!0;var n=!t.columnModel.isPivotActive();return!(!e.isValueActive()||!n)&&(!!t.columnModel.isPivotMode()||o)}(n.column)?t.activeColumnFilters.push(i):t.activeAggregateFilters.push(i)}}))},o.prototype.updateFilterFlagInColumns=function(t,e){this.allColumnFilters.forEach((function(o){var n=o.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));o.column.setFilterActive(n,t,e)}))},o.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},o.prototype.doColumnFiltersPass=function(t,e,o){for(var n=t.data,i=t.aggData,r=o?this.activeAggregateFilters:this.activeColumnFilters,s=o?i:n,a=0;a<r.length;a++){var l=r[a];if(null!=l&&l!==e){if("function"!=typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:t,data:s}))return!1}}return!0},o.prototype.resetQuickFilterCache=function(){this.quickFilterService.resetQuickFilterCache()},o.prototype.refreshFiltersForAggregations=function(){this.gridOptionsService.getGroupAggFiltering()&&this.onFilterChanged()},o.prototype.callOnFilterChangedOutsideRenderCycle=function(t){var e=this,o=function(){return e.onFilterChanged(t)};this.rowRenderer.isRefreshInProgress()?setTimeout(o,0):o()},o.prototype.onFilterChanged=function(t){void 0===t&&(t={});var e=t.source,o=t.filterInstance,n=t.additionalEventAttributes,i=t.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach((function(t){t.filterPromise&&t.filterPromise.then((function(t){t&&t!==o&&t.onAnyFilterChanged&&t.onAnyFilterChanged()}))}));var r={source:e,type:qt.EVENT_FILTER_CHANGED,columns:i||[]};n&&w(r,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},o.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},o.prototype.isQuickFilterPresent=function(){return this.quickFilterService.isQuickFilterPresent()},o.prototype.updateAggFiltering=function(){this.aggFiltering=!!this.gridOptionsService.getGroupAggFiltering()},o.prototype.isAggregateQuickFilterPresent=function(){return this.isQuickFilterPresent()&&(this.aggFiltering||this.columnModel.isPivotMode())},o.prototype.isNonAggregateQuickFilterPresent=function(){return this.isQuickFilterPresent()&&!(this.aggFiltering||this.columnModel.isPivotMode())},o.prototype.doesRowPassOtherFilters=function(t,e){return this.doesRowPassFilter({rowNode:e,filterInstanceToSkip:t})},o.prototype.doesRowPassAggregateFilters=function(t){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(t.rowNode))&&!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(t.rowNode,t.filterInstanceToSkip))},o.prototype.doesRowPassFilter=function(t){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(t.rowNode))&&(!(this.isExternalFilterPresent()&&!this.doesExternalFilterPass(t.rowNode))&&(!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(t.rowNode,t.filterInstanceToSkip))&&!(this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(t.rowNode))))},o.prototype.onNewRowsLoaded=function(t){this.allColumnFilters.forEach((function(t){t.filterPromise.then((function(t){t.onNewRowsLoaded&&t.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(t,{afterDataChange:!0}),this.updateActiveFilters()},o.prototype.createValueGetter=function(t){var e=this;return function(o){var n=o.node;return e.valueService.getValue(t,n,!0)}},o.prototype.getFilterComponent=function(t,e,o){var n;if(void 0===o&&(o=!0),o)return(null===(n=this.getOrCreateFilterWrapper(t,e))||void 0===n?void 0:n.filterPromise)||null;var i=this.cachedFilter(t);return i?i.filterPromise:null},o.prototype.isFilterActive=function(t){var e=this.cachedFilter(t);return!!e&&e.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))},o.prototype.getOrCreateFilterWrapper=function(t,e){var o=this;if(!t.isFilterAllowed())return null;var n=this.cachedFilter(t);if(n)"NO_UI"!==e&&this.putIntoGui(n,e);else{n=this.createFilterWrapper(t,e);var i=t.getColId();this.allColumnFilters.set(i,n),this.allColumnListeners.set(i,this.addManagedListener(t,ut.EVENT_COL_DEF_CHANGED,(function(){return o.checkDestroyFilter(i)})))}return n},o.prototype.cachedFilter=function(t){return this.allColumnFilters.get(t.getColId())},o.prototype.getDefaultFilter=function(t){var e;if(j.__isRegistered(V.SetFilterModule,this.context.getGridId()))e="agSetColumnFilter";else{var o=t.getColDef().cellDataType;e="number"===o?"agNumberColumnFilter":"date"===o||"dateString"===o?"agDateColumnFilter":"agTextColumnFilter"}return e},o.prototype.getDefaultFloatingFilter=function(t){var e;if(j.__isRegistered(V.SetFilterModule,this.context.getGridId()))e="agSetColumnFloatingFilter";else{var o=t.getColDef().cellDataType;e="number"===o?"agNumberColumnFloatingFilter":"date"===o||"dateString"===o?"agDateColumnFloatingFilter":"agTextColumnFloatingFilter"}return e},o.prototype.createFilterInstance=function(t){var e,o=this,n=this.getDefaultFilter(t),i=t.getColDef(),r=Cl(Cl({},this.createFilterParams(t,i)),{filterModifiedCallback:function(){var n={type:qt.EVENT_FILTER_MODIFIED,column:t,filterInstance:e};o.eventService.dispatchEvent(n)},filterChangedCallback:function(n){var i,r=null!==(i=null==n?void 0:n.source)&&void 0!==i?i:"api",s={filterInstance:e,additionalEventAttributes:n,columns:[t],source:r};o.callOnFilterChangedOutsideRenderCycle(s)},doesRowPassOtherFilter:function(t){return o.doesRowPassOtherFilters(e,t)}}),s=this.userComponentFactory.getFilterDetails(i,r,n);return s?{filterPromise:function(){var t=s.newAgStackInstance();return t&&t.then((function(t){return e=t})),t},compDetails:s}:{filterPromise:null,compDetails:null}},o.prototype.createFilterParams=function(t,e){return{column:t,colDef:h(e),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(t),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},o.prototype.createFilterWrapper=function(t,e){var o,n={column:t,filterPromise:null,compiledElement:null,guiPromise:vi.resolve(null),compDetails:null},i=this.createFilterInstance(t),r=i.filterPromise,s=i.compDetails;return n.filterPromise=null!==(o=null==r?void 0:r())&&void 0!==o?o:null,n.compDetails=s,r&&this.putIntoGui(n,e),n},o.prototype.putIntoGui=function(t,o){var n=this,i=document.createElement("div");i.className="ag-filter",t.guiPromise=new vi((function(r){t.filterPromise.then((function(s){var a=s.getGui();e(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=Pn(a)),i.appendChild(a),r(i);var l={type:qt.EVENT_FILTER_OPENED,column:t.column,source:o,eGui:i};n.eventService.dispatchEvent(l)}))}))},o.prototype.onColumnsChanged=function(){var t=this,e=[];this.allColumnFilters.forEach((function(o,n){(o.column.isPrimary()?t.columnModel.getPrimaryColumn(n):t.columnModel.getGridColumn(n))||(e.push(o.column),t.disposeFilterWrapper(o,"columnChanged"),t.disposeColumnListener(n))})),e.length>0?this.onFilterChanged({columns:e,source:"api"}):this.updateDependantFilters()},o.prototype.updateDependantFilters=function(){var t=this,e=this.columnModel.getGroupAutoColumns();null==e||e.forEach((function(e){"agGroupColumnFilter"===e.getColDef().filter&&t.getOrCreateFilterWrapper(e,"NO_UI")}))},o.prototype.isFilterAllowed=function(t){var e,o;if(this.isAdvancedFilterEnabled())return!1;if(!t.isFilterAllowed())return!1;var n=this.allColumnFilters.get(t.getColId());return null===(o=null===(e=null==n?void 0:n.filterPromise)||void 0===e?void 0:e.resolveNow(!0,(function(t){var e,o;return"function"!=typeof(null===(e=t)||void 0===e?void 0:e.isFilterAllowed)||(null===(o=t)||void 0===o?void 0:o.isFilterAllowed())})))||void 0===o||o},o.prototype.getFloatingFilterCompDetails=function(t,e){var o=this,n=t.getColDef(),i=this.createFilterParams(t,n),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(n,Wa,i),s=this.userComponentFactory.getDefaultFloatingFilterType(n,(function(){return o.getDefaultFloatingFilter(t)}));null==s&&(s="agReadOnlyFloatingFilter");var a={column:t,filterParams:r,currentParentModel:function(){return o.getCurrentFloatingFilterParentModel(t)},parentFilterInstance:function(e){var n=o.getFilterComponent(t,"NO_UI");null!=n&&n.then((function(t){e(dl(t))}))},showParentFilter:e,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(n,a,s)},o.prototype.getCurrentFloatingFilterParentModel=function(t){var e=this.getFilterComponent(t,"NO_UI",!1);return e?e.resolveNow(null,(function(t){return t&&t.getModel()})):null},o.prototype.destroyFilter=function(t,e){void 0===e&&(e="api");var o=t.getColId(),n=this.allColumnFilters.get(o);this.disposeColumnListener(o),n&&(this.disposeFilterWrapper(n,e),this.onFilterChanged({columns:[t],source:"api"}))},o.prototype.disposeColumnListener=function(t){var e=this.allColumnListeners.get(t);e&&(this.allColumnListeners.delete(t),e())},o.prototype.disposeFilterWrapper=function(t,e){var o=this;t.filterPromise.then((function(n){(n.setModel(null)||vi.resolve()).then((function(){o.getContext().destroyBean(n),t.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(t.column.getColId());var i={type:qt.EVENT_FILTER_DESTROYED,source:e,column:t.column};o.eventService.dispatchEvent(i)}))}))},o.prototype.checkDestroyFilter=function(t){var e=this.allColumnFilters.get(t);if(e){var o=e.column,n=(o.isFilterAllowed()?this.createFilterInstance(o):{compDetails:null}).compDetails;this.areFilterCompsDifferent(e.compDetails,n)&&this.destroyFilter(o,"columnChanged")}},o.prototype.areFilterCompsDifferent=function(t,e){if(!e||!t)return!0;var o=t.componentClass,n=e.componentClass;return!(o===n||(null==o?void 0:o.render)&&(null==n?void 0:n.render)&&o.render===n.render)},o.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},o.prototype.setAdvancedFilterModel=function(t){this.isAdvancedFilterEnabled()&&(this.advancedFilterService.setModel(null!=t?t:null),this.onFilterChanged({source:"advancedFilter"}))},o.prototype.showAdvancedFilterBuilder=function(t){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(t,!0)},o.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},o.prototype.hasFloatingFilters=function(){if(this.isAdvancedFilterEnabled())return!1;var t=this.columnModel.getAllGridColumns();return!!t&&t.some((function(t){return t.getColDef().floatingFilter}))},o.prototype.getFilterInstance=function(t,e){if(!this.isAdvancedFilterEnabled()){var o=this.getFilterInstanceImpl(t,(function(t){if(e){var o=dl(t);e(o)}}));return dl(o)}this.warnAdvancedFilters()},o.prototype.getFilterInstanceImpl=function(t,e){var o=this.columnModel.getPrimaryColumn(t);if(o){var n=this.getFilterComponent(o,"NO_UI"),i=n&&n.resolveNow(null,(function(t){return t}));return i?setTimeout(e,0,i):n&&n.then((function(t){e(t)})),i}},o.prototype.warnAdvancedFilters=function(){T((function(){console.warn("AG Grid: Column Filter API methods have been disabled as Advanced Filters are enabled.")}),"advancedFiltersCompatibility")},o.prototype.setupAdvancedFilterHeaderComp=function(t){var e;null===(e=this.advancedFilterService)||void 0===e||e.getCtrl().setupHeaderComp(t)},o.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},o.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0},o.prototype.processFilterModelUpdateQueue=function(){var t=this;this.filterModelUpdateQueue.forEach((function(e){return t.setFilterModel(e)})),this.filterModelUpdateQueue=[]},o.prototype.destroy=function(){var e=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach((function(t){return e.disposeFilterWrapper(t,"gridDestroyed")})),this.allColumnListeners.clear()},wl([X("valueService")],o.prototype,"valueService",void 0),wl([X("columnModel")],o.prototype,"columnModel",void 0),wl([X("rowModel")],o.prototype,"rowModel",void 0),wl([X("userComponentFactory")],o.prototype,"userComponentFactory",void 0),wl([X("rowRenderer")],o.prototype,"rowRenderer",void 0),wl([X("dataTypeService")],o.prototype,"dataTypeService",void 0),wl([X("quickFilterService")],o.prototype,"quickFilterService",void 0),wl([J("advancedFilterService")],o.prototype,"advancedFilterService",void 0),wl([Y],o.prototype,"init",null),o=wl([Q("filterManager")],o)}(Bt),El=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Rl=function(t){function e(e,o){var n=t.call(this,e)||this;return n.ctrl=o,n}return El(e,t),e.prototype.getCtrl=function(){return this.ctrl},e}(Ti),bl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ol=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Tl=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return bl(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},addOrRemoveBodyCssClass:function(e,o){return t.eFloatingFilterBody.classList.toggle(e,o)},setButtonWrapperDisplayed:function(e){return dn(t.eButtonWrapper,e)},setCompDetails:function(e){return t.setCompDetails(e)},getFloatingFilterComp:function(){return t.compPromise},setWidth:function(t){return e.style.width=t},setMenuIcon:function(e){return t.eButtonShowMainFilter.appendChild(e)}};this.ctrl.setComp(o,e,this.eButtonShowMainFilter,this.eFloatingFilterBody)},e.prototype.setCompDetails=function(t){var e=this;if(!t)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=t.newAgStackInstance(),this.compPromise.then((function(t){return e.afterCompCreated(t)}))},e.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},e.prototype.afterCompCreated=function(t){t&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=t,this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()):this.destroyBean(t))},e.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n            <div ref="eFloatingFilterBody" role="presentation"></div>\n            <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n                <button type="button" class="ag-button ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n            </div>\n        </div>',Ol([Pi("eFloatingFilterBody")],e.prototype,"eFloatingFilterBody",void 0),Ol([Pi("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),Ol([Pi("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),Ol([Y],e.prototype,"postConstruct",null),Ol([q],e.prototype,"destroyFloatingFilterComp",null),e}(Rl),Dl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t.AUTO_HEIGHT="ag-layout-auto-height",t.NORMAL="ag-layout-normal",t.PRINT="ag-layout-print"}(hl||(hl={}));var _l,Al,Fl=function(t){function e(e){var o=t.call(this)||this;return o.view=e,o}return Dl(e,t),e.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var t=this.getDomLayout(),e={autoHeight:"autoHeight"===t,normal:"normal"===t,print:"print"===t},o=e.autoHeight?hl.AUTO_HEIGHT:e.print?hl.PRINT:hl.NORMAL;this.view.updateLayoutClasses(o,e)},e.prototype.getDomLayout=function(){var t,e=null!==(t=this.gridOptionsService.get("domLayout"))&&void 0!==t?t:"normal";return-1===["normal","print","autoHeight"].indexOf(e)?(T((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")}),"warn about dom layout values"),"normal"):e},Pl([Y],e.prototype,"postConstruct",null),e}(Bt),Ll=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Il=function(){return(Il=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Nl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.Vertical=0]="Vertical",t[t.Horizontal=1]="Horizontal"}(_l||(_l={})),function(t){t[t.Container=0]="Container",t[t.FakeContainer=1]="FakeContainer"}(Al||(Al={}));var Ml,Gl=function(t){function e(e){var o=t.call(this)||this;return o.lastScrollSource=[null,null],o.scrollLeft=-1,o.nextScrollTop=-1,o.scrollTop=-1,o.eBodyViewport=e,o.resetLastHScrollDebounced=N((function(){return o.lastScrollSource[_l.Horizontal]=null}),500),o.resetLastVScrollDebounced=N((function(){return o.lastScrollSource[_l.Vertical]=null}),500),o}return Ll(e,t),e.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(e){t.centerRowContainerCtrl=e.centerRowContainerCtrl,t.onDisplayedColumnsWidthChanged(),t.addScrollListener()}))},e.prototype.addScrollListener=function(){var t=this.ctrlsService.getFakeHScrollComp(),e=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),t.onScrollCallback(this.onFakeHScroll.bind(this));var o=this.gridOptionsService.is("debounceVerticalScrollbar"),n=o?N(this.onVScroll.bind(this),100):this.onVScroll.bind(this),i=o?N(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",n),e.onScrollCallback(i)},e.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},e.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){if(!(null==this.centerRowContainerCtrl)){void 0===t&&(t=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var e=this.enableRtl?t:-t,o=this.ctrlsService.getTopCenterRowContainerCtrl(),n=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),i=this.ctrlsService.getBottomCenterRowContainerCtrl(),r=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-e),i.setContainerTranslateX(e),o.setContainerTranslateX(e),n.setContainerTranslateX(e);var s=this.centerRowContainerCtrl.getViewportElement(),a=this.lastScrollSource[_l.Horizontal]===Al.Container;t=Math.abs(t),a?r.setScrollPosition(t):bn(s,t,this.enableRtl)}},e.prototype.isControllingScroll=function(t,e){return null==this.lastScrollSource[e]?(this.lastScrollSource[e]=t,!0):this.lastScrollSource[e]===t},e.prototype.onFakeHScroll=function(){this.isControllingScroll(Al.FakeContainer,_l.Horizontal)&&this.onHScrollCommon(Al.FakeContainer)},e.prototype.onHScroll=function(){this.isControllingScroll(Al.Container,_l.Horizontal)&&this.onHScrollCommon(Al.Container)},e.prototype.onHScrollCommon=function(t){var e,o=this.centerRowContainerCtrl.getViewportElement(),n=o.scrollLeft;this.shouldBlockScrollUpdate(_l.Horizontal,n,!0)||(e=t===Al.Container?Rn(o,this.enableRtl):this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(e)),this.resetLastHScrollDebounced())},e.prototype.onFakeVScroll=function(){this.isControllingScroll(Al.FakeContainer,_l.Vertical)&&this.onVScrollCommon(Al.FakeContainer)},e.prototype.onVScroll=function(){this.isControllingScroll(Al.Container,_l.Vertical)&&this.onVScrollCommon(Al.Container)},e.prototype.onVScrollCommon=function(t){var e;e=t===Al.Container?this.eBodyViewport.scrollTop:this.ctrlsService.getFakeVScrollComp().getScrollPosition(),this.shouldBlockScrollUpdate(_l.Vertical,e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,t===Al.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(e):this.eBodyViewport.scrollTop=e,this.gridOptionsService.is("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},e.prototype.doHorizontalScroll=function(t){var e=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===t&&t===e||(this.scrollLeft=t,this.fireScrollEvent(_l.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},e.prototype.fireScrollEvent=function(t){var e=this,o={type:qt.EVENT_BODY_SCROLL,direction:t===_l.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var t=Il(Il({},o),{type:qt.EVENT_BODY_SCROLL_END});e.eventService.dispatchEvent(t)}),100)},e.prototype.shouldBlockScrollUpdate=function(t,e,o){return void 0===o&&(o=!1),!(o&&!Ho())&&(t===_l.Vertical?this.shouldBlockVerticalScroll(e):this.shouldBlockHorizontalScroll(e))},e.prototype.shouldBlockVerticalScroll=function(t){var e=yn(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;return t<0||t+e>o},e.prototype.shouldBlockHorizontalScroll=function(t){var e=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&En()){if(t>0)return!0}else if(t<0)return!0;return Math.abs(t)+e>o},e.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(_l.Vertical)},e.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(Al.Container)},e.prototype.scrollGridIfNeeded=function(){var t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),t},e.prototype.setHorizontalScrollPosition=function(t,e){void 0===e&&(e=!1);var o=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!e&&this.shouldBlockScrollUpdate(_l.Horizontal,t)&&(t=this.enableRtl&&En()?t>0?0:o:Math.min(Math.max(t,0),o)),bn(this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl),this.doHorizontalScroll(t)},e.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},e.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},e.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},e.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},e.prototype.scrollHorizontally=function(t){var e=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(e+t),this.centerRowContainerCtrl.getViewportElement().scrollLeft-e},e.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},e.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null);for(var o=this.rowModel.getRowCount(),n=-1,i=0;i<o;i++){var r=this.rowModel.getRow(i);if("function"==typeof t){if(r&&t(r)){n=i;break}}else if(t===r||t===r.data){n=i;break}}n>=0&&this.ensureIndexVisible(n,e)},e.prototype.ensureIndexVisible=function(t,e){if(!this.gridOptionsService.isDomLayout("print")){var o=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=o)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(t);var n,i=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),r=this.paginationProxy.getRow(t);do{var s=r.rowTop,a=r.rowHeight,l=this.paginationProxy.getPixelOffset(),u=r.rowTop-l,c=u+r.rowHeight,p=this.getVScrollPosition(),d=this.heightScaler.getDivStretchOffset(),h=p.top+d,f=p.bottom+d,g=f-h,v=this.heightScaler.getScrollPositionForPixel(u),y=this.heightScaler.getScrollPositionForPixel(c-g),m=Math.min((v+y)/2,u),C=null;"top"===e?C=v:"bottom"===e?C=y:"middle"===e?C=m:h+i>u?C=v-i:f<c&&(C=y),null!==C&&(this.setVerticalScrollPosition(C),this.rowRenderer.redraw({afterScroll:!0})),n=s!==r.rowTop||a!==r.rowHeight}while(n);this.animationFrameService.flushAllFrames()}}},e.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto");var o=this.columnModel.getGridColumn(t);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var n=this.getPositionedHorizontalScroll(o,e);null!==n&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(n),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},e.prototype.getPositionedHorizontalScroll=function(t,e){var o=this.isColumnOutsideViewport(t),n=o.columnBeforeStart,i=o.columnAfterEnd,r=this.centerRowContainerCtrl.getCenterWidth()<t.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?n:i)||r,u=a?i:n;"auto"!==e&&(l="start"===e,u="end"===e);var c="middle"===e;if(l||u||c){var p=this.getColumnBounds(t),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},e.prototype.isColumnOutsideViewport=function(t){var e=this.getViewportBounds(),o=e.start,n=e.end,i=this.getColumnBounds(t),r=i.colLeft,s=i.colRight,a=this.enableRtl;return{columnBeforeStart:a?o>s:n<s,columnAfterEnd:a?n<r:o>r}},e.prototype.getColumnBounds=function(t){var e=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),n=t.getActualWidth(),i=t.getLeft(),r=e?-1:1,s=e?o-i:i;return{colLeft:s,colMiddle:s+n/2*r,colRight:s+n*r}},e.prototype.getViewportBounds=function(){var t=this.centerRowContainerCtrl.getCenterWidth(),e=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:e,end:t+e,width:t}},Nl([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Nl([X("animationFrameService")],e.prototype,"animationFrameService",void 0),Nl([X("paginationProxy")],e.prototype,"paginationProxy",void 0),Nl([X("rowModel")],e.prototype,"rowModel",void 0),Nl([X("rowContainerHeightService")],e.prototype,"heightScaler",void 0),Nl([X("rowRenderer")],e.prototype,"rowRenderer",void 0),Nl([X("columnModel")],e.prototype,"columnModel",void 0),Nl([Y],e.prototype,"postConstruct",null),e}(Bt),xl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vl=function(){return(Vl=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Hl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},kl=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Bl=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},jl=function(t){function e(e){var o=t.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=e,o}return xl(e,t),e.prototype.postConstruct=function(){var t=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel);var e=function(){t.onSortChanged(),t.onFilterChanged(),t.onRowGroupChanged()};this.addManagedListener(this.eventService,qt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_MODEL_UPDATED,(function(){e()})),e(),this.ctrlsService.whenReady((function(){var e=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new sl({scrollContainer:e.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return e.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(t){return e.getScrollFeature().setVerticalScrollPosition(t)},onScrollCallback:function(){t.onDragging(t.lastDraggingEvent)}})}))},e.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},e.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},e.prototype.onRowGroupChanged=function(){var t=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!n(t)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(t){return t===Br.RowDrag},e.prototype.getIconName=function(){return this.gridOptionsService.is("rowDragManaged")&&this.shouldPreventRowMove()?Us.ICON_NOT_ALLOWED:Us.ICON_MOVE},e.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},e.prototype.getRowNodes=function(t){var e=this;if(!this.isFromThisGrid(t))return t.dragItem.rowNodes||[];var o=this.gridOptionsService.is("rowDragMultiRow"),n=Bl([],kl(this.selectionService.getSelectedNodes())).sort((function(t,o){return null==t.rowIndex||null==o.rowIndex?0:e.getRowIndexNumber(t)-e.getRowIndexNumber(o)})),i=t.dragItem.rowNode;return o&&-1!==n.indexOf(i)?(this.isMultiRowDrag=!0,n):(this.isMultiRowDrag=!1,[i])},e.prototype.onDragEnter=function(t){t.dragItem.rowNodes=this.getRowNodes(t),this.dispatchGridEvent(qt.EVENT_ROW_DRAG_ENTER,t),this.getRowNodes(t).forEach((function(t){t.setDragging(!0)})),this.onEnterOrDragging(t)},e.prototype.onDragging=function(t){this.onEnterOrDragging(t)},e.prototype.isFromThisGrid=function(t){return t.dragSource.dragSourceDomDataKey===this.gridOptionsService.getDomDataKey()},e.prototype.isDropZoneWithinThisGrid=function(t){var e=this.ctrlsService.getGridBodyCtrl().getGui(),o=t.dropZoneTarget;return!e.contains(o)},e.prototype.onEnterOrDragging=function(t){this.dispatchGridEvent(qt.EVENT_ROW_DRAG_MOVE,t),this.lastDraggingEvent=t;var e=this.mouseEventService.getNormalisedPosition(t).y;this.gridOptionsService.is("rowDragManaged")&&this.doManagedDrag(t,e),this.autoScrollService.check(t.event)},e.prototype.doManagedDrag=function(t,e){var o=this.isFromThisGrid(t),n=this.gridOptionsService.is("rowDragManaged"),i=t.dragItem.rowNodes;n&&this.shouldPreventRowMove()||(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!o?this.isDropZoneWithinThisGrid(t)||this.clientSideRowModel.highlightRowAtPixel(i[0],e):this.moveRows(i,e))},e.prototype.getRowIndexNumber=function(t){return parseInt(ft(t.getRowIndexString().split("-")),10)},e.prototype.moveRowAndClearHighlight=function(t){var e=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),n=o&&o.highlighted===el.Below,i=this.mouseEventService.getNormalisedPosition(t).y,r=t.dragItem.rowNodes,s=n?1:0;if(this.isFromThisGrid(t))r.forEach((function(t){t.rowTop<i&&(s-=1)})),this.moveRows(r,i,s);else{var a=this.gridOptionsService.getCallback("getRowId"),l=this.clientSideRowModel.getRowIndexAtPixel(i)+1;this.clientSideRowModel.getHighlightPosition(i)===el.Above&&l--,this.clientSideRowModel.updateRowData({add:r.map((function(t){return t.data})).filter((function(t){return!e.clientSideRowModel.getRowNode(a?a({data:t,level:0}):t.id)})),addIndex:l})}this.clearRowHighlight()},e.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},e.prototype.moveRows=function(t,e,o){void 0===o&&(o=0),this.clientSideRowModel.ensureRowsAtPixel(t,e,o)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},e.prototype.addRowDropZone=function(t){var e=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,o=t):(t.onDragEnter&&(o.onDragEnter=function(o){t.onDragEnter(e.draggingToRowDragEvent(qt.EVENT_ROW_DRAG_ENTER,o))}),t.onDragLeave&&(o.onDragLeave=function(o){t.onDragLeave(e.draggingToRowDragEvent(qt.EVENT_ROW_DRAG_LEAVE,o))}),t.onDragging&&(o.onDragging=function(o){t.onDragging(e.draggingToRowDragEvent(qt.EVENT_ROW_DRAG_MOVE,o))}),t.onDragStop&&(o.onDragStop=function(o){t.onDragStop(e.draggingToRowDragEvent(qt.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(Vl({isInterestedIn:function(t){return t===Br.RowDrag},getIconName:function(){return Us.ICON_MOVE},external:!0},o))}else T((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},e.prototype.getRowDropZone=function(t){var e=this,o=this.getContainer.bind(this),n=this.onDragEnter.bind(this),i=this.onDragLeave.bind(this),r=this.onDragging.bind(this),s=this.onDragStop.bind(this);return t?{getContainer:o,onDragEnter:t.onDragEnter?function(o){n(o),t.onDragEnter(e.draggingToRowDragEvent(qt.EVENT_ROW_DRAG_ENTER,o))}:n,onDragLeave:t.onDragLeave?function(o){i(o),t.onDragLeave(e.draggingToRowDragEvent(qt.EVENT_ROW_DRAG_LEAVE,o))}:i,onDragging:t.onDragging?function(o){r(o),t.onDragging(e.draggingToRowDragEvent(qt.EVENT_ROW_DRAG_MOVE,o))}:r,onDragStop:t.onDragStop?function(o){s(o),t.onDragStop(e.draggingToRowDragEvent(qt.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:n,onDragLeave:i,onDragging:r,onDragStop:s,fromGrid:!0}},e.prototype.draggingToRowDragEvent=function(t,e){var o,n,i=this.mouseEventService.getNormalisedPosition(e).y,r=-1;switch(i>this.paginationProxy.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(i),o=this.rowModel.getRow(r)),e.vDirection){case jr.Down:n="down";break;case jr.Up:n="up";break;default:n=null}return{type:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:e.event,node:e.dragItem.rowNode,nodes:e.dragItem.rowNodes,overIndex:r,overNode:o,y:i,vDirection:n}},e.prototype.dispatchGridEvent=function(t,e){var o=this.draggingToRowDragEvent(t,e);this.eventService.dispatchEvent(o)},e.prototype.onDragLeave=function(t){this.dispatchGridEvent(qt.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(t){this.dispatchGridEvent(qt.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsService.is("rowDragManaged")||!this.gridOptionsService.is("suppressMoveWhenRowDragging")&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},e.prototype.stopDragging=function(t){this.autoScrollService.ensureCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},Hl([X("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Hl([X("rowModel")],e.prototype,"rowModel",void 0),Hl([X("paginationProxy")],e.prototype,"paginationProxy",void 0),Hl([X("columnModel")],e.prototype,"columnModel",void 0),Hl([X("focusService")],e.prototype,"focusService",void 0),Hl([X("sortController")],e.prototype,"sortController",void 0),Hl([X("filterManager")],e.prototype,"filterManager",void 0),Hl([X("selectionService")],e.prototype,"selectionService",void 0),Hl([X("mouseEventService")],e.prototype,"mouseEventService",void 0),Hl([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Hl([J("rangeService")],e.prototype,"rangeService",void 0),Hl([Y],e.prototype,"postConstruct",null),e}(Bt),Wl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ul=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t.ANIMATION_ON="ag-row-animation",t.ANIMATION_OFF="ag-row-no-animation"}(Ml||(Ml={}));var zl,Kl,Yl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return Wl(e,t),e.prototype.getScrollFeature=function(){return this.bodyScrollFeature},e.prototype.getBodyViewportElement=function(){return this.eBodyViewport},e.prototype.setComp=function(t,e,o,n,i,r){this.comp=t,this.eGridBody=e,this.eBodyViewport=o,this.eTop=n,this.eBottom=i,this.eStickyTop=r,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new Fl(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Gl(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([n,o,i,r]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(n),this.ctrlsService.registerGridBodyCtrl(this)},e.prototype.getComp=function(){return this.comp},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,qt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},e.prototype.addFocusListeners=function(t){var e=this;t.forEach((function(t){e.addManagedListener(t,"focusin",(function(e){var o=gn(e.target,"ag-root",t);t.classList.toggle("ag-has-focus",!o)})),e.addManagedListener(t,"focusout",(function(e){var o=e.target,n=e.relatedTarget,i=t.contains(n),r=gn(n,"ag-root",t);gn(o,"ag-root",t)||i&&!r||t.classList.remove("ag-has-focus")}))}))},e.prototype.setColumnMovingCss=function(t){this.comp.setColumnMovingCss("ag-column-moving",t)},e.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1),this.comp.setCellSelectableCss("ag-selectable",t)},e.prototype.onScrollVisibilityChanged=function(){var t=this,e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e);var o="calc(100% + "+((e&&this.gridOptionsService.getScrollbarWidth()||0)+(Yo()?16:0))+"px)";this.animationFrameService.requestAnimationFrame((function(){return t.comp.setBodyViewportWidth(o)}))},e.prototype.onGridColumnsChanged=function(){var t=this.columnModel.getAllGridColumns();this.comp.setColumnCount(t?t.length:0)},e.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},e.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var e=function(e){var n=e.relatedTarget;if(null!==Bo(n)){var i=o.some((function(t){return t.contains(n)}))&&t.mouseEventService.isElementInThisGrid(n);if(!i){var r=t.popupService;i=r.getActivePopups().some((function(t){return t.contains(n)}))||r.isElementWithinCustomPopup(n)}i||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach((function(o){return t.addManagedListener(o,"focusout",e)}))}},e.prototype.updateRowCount=function(){var t=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),e=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=-1===e?-1:t+e;this.comp.setRowCount(o)},e.prototype.registerBodyViewportResizeListener=function(t){this.comp.registerBodyViewportResizeListener(t)},e.prototype.setVerticalScrollPaddingVisible=function(t){var e=t?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(e)},e.prototype.isVerticalScrollShowing=function(){var t=this.gridOptionsService.is("alwaysShowVerticalScroll"),e=t?"ag-force-vertical-scroll":null,o=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(e,t),t||o&&Gn(this.eBodyViewport)},e.prototype.setupRowAnimationCssClass=function(){var t=this,e=function(){var e=t.gridOptionsService.isAnimateRows()&&!t.rowContainerHeightService.isStretching(),o=e?Ml.ANIMATION_ON:Ml.ANIMATION_OFF;t.comp.setRowAnimationCssOnBodyViewport(o,e)};e(),this.addManagedListener(this.eventService,qt.EVENT_HEIGHT_SCALE_CHANGED,e),this.addManagedPropertyListener("animateRows",e)},e.prototype.getGridBodyElement=function(){return this.eGridBody},e.prototype.addBodyViewportListener=function(){var t=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",t),this.mockContextMenuForIPad(t),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},e.prototype.addFullWidthContainerWheelListener=function(){var t=this,e=this.eBodyViewport.querySelector(".ag-full-width-container"),o=this.eBodyViewport.querySelector(".ag-center-cols-viewport");e&&o&&this.addManagedListener(e,"wheel",(function(e){return t.onFullWidthContainerWheel(e,o)}))},e.prototype.onFullWidthContainerWheel=function(t,e){!t.deltaX||Math.abs(t.deltaY)>Math.abs(t.deltaX)||!this.mouseEventService.isEventFromThisGrid(t)||(t.preventDefault(),e.scrollBy({left:t.deltaX}))},e.prototype.onBodyViewportContextMenu=function(t,e,o){if(t||o){if(this.gridOptionsService.is("preventDefaultOnContextMenu"))(t||o).preventDefault();var n=(t||e).target;if(n===this.eBodyViewport||n===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;t?this.contextMenuFactory.onContextMenu(t,null,null,null,null,this.eGridBody):o&&this.contextMenuFactory.onContextMenu(null,o,null,null,null,this.eGridBody)}}},e.prototype.mockContextMenuForIPad=function(t){if(Ho()){var e=new is(this.eBodyViewport);this.addManagedListener(e,is.EVENT_LONG_TAP,(function(e){t(void 0,e.touchStart,e.touchEvent)})),this.addDestroyFunc((function(){return e.destroy()}))}},e.prototype.onBodyViewportWheel=function(t){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&t.preventDefault()},e.prototype.onStickyTopWheel=function(t){t.preventDefault(),t.offsetY&&this.scrollVertically(t.deltaY)},e.prototype.getGui=function(){return this.eGridBody},e.prototype.scrollVertically=function(t){var e=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(e+t),this.eBodyViewport.scrollTop-e},e.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new jl(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},e.prototype.getRowDragFeature=function(){return this.rowDragFeature},e.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},e.prototype.setFloatingHeights=function(){var t=this.pinnedRowModel,e=t.getPinnedTopTotalHeight();e&&(e+=1);var o=t.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(e),this.comp.setBottomHeight(o),this.comp.setTopDisplay(e?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},e.prototype.setStickyTopHeight=function(t){void 0===t&&(t=0),this.comp.setStickyTopHeight(t+"px"),this.stickyTopHeight=t},e.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},e.prototype.setStickyTopWidth=function(t){if(t){var e=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+e+"px)")}else this.comp.setStickyTopWidth("100%")},e.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},e.prototype.setStickyTopOffsetTop=function(){var t=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight()+this.filterManager.getHeaderHeight(),e=this.pinnedRowModel.getPinnedTopTotalHeight(),o=0;t>0&&(o+=t+1),e>0&&(o+=e+1),this.comp.setStickyTopTop(o+"px")},e.prototype.sizeColumnsToFit=function(t,e){var o=this,n=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,i=mn(this.eGridBody)-n;i>0?this.columnModel.sizeColumnsToFit(i,"sizeColumnsToFit",!1,t):void 0===e?window.setTimeout((function(){o.sizeColumnsToFit(t,100)}),0):100===e?window.setTimeout((function(){o.sizeColumnsToFit(t,500)}),100):500===e?window.setTimeout((function(){o.sizeColumnsToFit(t,-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?")},e.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t,{passive:!0})},e.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},Ul([X("animationFrameService")],e.prototype,"animationFrameService",void 0),Ul([X("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Ul([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Ul([X("columnModel")],e.prototype,"columnModel",void 0),Ul([X("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Ul([J("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ul([X("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Ul([X("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ul([X("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Ul([X("rowRenderer")],e.prototype,"rowRenderer",void 0),Ul([X("popupService")],e.prototype,"popupService",void 0),Ul([X("mouseEventService")],e.prototype,"mouseEventService",void 0),Ul([X("rowModel")],e.prototype,"rowModel",void 0),Ul([X("filterManager")],e.prototype,"filterManager",void 0),e}(Bt);!function(t){t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE"}(zl||(zl={})),function(t){t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION"}(Kl||(Kl={}));var ql,Ql=function(){function t(t,e){this.beans=t,this.cellCtrl=e}return t.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected",0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),So(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},t.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),o=!e&&t.top,n=!e&&t.right,i=!e&&t.bottom,r=!e&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",r)},t.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},t.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every((function(t){return Rt([Kl.DIMENSION,Kl.VALUE],t.type)}))},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var t,e,o=this,n=this.beans.gridOptionsService.is("enableRtl"),i=!1,r=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;n?(t=p.getDisplayedColAfter(l),e=p.getDisplayedColBefore(l)):(t=p.getDisplayedColBefore(l),e=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(t){return c.isCellInSpecificRange(o.cellCtrl.getCellPosition(),t)}));t||(a=!0),e||(r=!0);for(var h=0;h<d.length&&!(i&&r&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),v=c.getRangeEndRow(f);!i&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(i=!0),!s&&this.beans.rowPositionUtils.sameRow(v,this.cellCtrl.getCellPosition())&&(s=!0),!a&&t&&f.columns.indexOf(t)<0&&(a=!0),!r&&e&&f.columns.indexOf(e)<0&&(r=!0)}return{top:i,right:r,bottom:s,left:a}},t.prototype.refreshHandle=function(){if(this.beans.rangeService){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,e=t.gridOptionsService,o=t.rangeService,n=o.getCellRanges(),i=n.length;if(this.rangeCount<1||i<1)return!1;var r=ft(n),s=this.cellCtrl.getCellPosition(),a=e.is("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),l=e.is("enableRangeHandle"),u=1===i&&!this.cellCtrl.isEditing()&&(a||l);if(this.hasChartRange){var c=n[0].type===Kl.DIMENSION&&o.isCellInSpecificRange(s,n[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",c),u=r.type===Kl.VALUE}return u&&null!=r.endRow&&o.isContiguousRange(r)&&o.isBottomRightCell(r,s)},t.prototype.addSelectionHandle=function(){var t=this.beans,e=t.gridOptionsService,n=ft(t.rangeService.getCellRanges()).type,i=e.is("enableFillHandle")&&o(n)?zl.FILL:zl.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(i)),this.selectionHandle.refresh(this.cellCtrl)},t.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},t}(),Xl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Jl=function(t){function e(e,o){var n=t.call(this)||this;return n.cellCtrl=e,n.beans=o,n.column=e.getColumn(),n.rowNode=e.getRowNode(),n.setupColSpan(),n.setupRowSpan(),n}return Xl(e,t),e.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},e.prototype.setComp=function(t){this.eGui=t,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},e.prototype.onDisplayColumnsChanged=function(){var t=this.getColSpanningList();gt(this.colsSpanning,t)||(this.colsSpanning=t,this.onWidthChanged(),this.onLeftChanged())},e.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},e.prototype.onWidthChanged=function(){if(this.eGui){var t=this.getCellWidth();this.eGui.style.width=t+"px"}},e.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(t,e){return t+e.getActualWidth()}),0):this.column.getActualWidth()},e.prototype.getColSpanningList=function(){var t=this.column.getColSpan(this.rowNode),e=[];if(1===t)e.push(this.column);else for(var n=this.column,i=this.column.getPinned(),r=0;n&&r<t&&(e.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!o(n))&&i===n.getPinned();r++);return e},e.prototype.onLeftChanged=function(){if(this.eGui){var t=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=t+"px"}},e.prototype.getCellLeft=function(){return(this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ft(this.colsSpanning):this.column).getLeft()},e.prototype.modifyLeftForPrintLayout=function(t){if(!this.cellCtrl.isPrintLayout()||"left"===this.column.getPinned())return t;var e=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===this.column.getPinned()?e+this.beans.columnModel.getBodyContainerWidth()+(t||0):e+(t||0)},e.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var t=this.beans.gridOptionsService.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=t+"px",this.eGui.style.zIndex="1"}},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Bt),Zl=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$l=function(t){function e(e,o){var n=t.call(this)||this;return n.staticClasses=[],n.cellCtrl=e,n.beans=o,n.column=e.getColumn(),n.rowNode=e.getRowNode(),n}return Zl(e,t),e.prototype.setComp=function(t){this.cellComp=t,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},e.prototype.applyCellClassRules=function(){var t=this,e=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.beans.stylingService.processClassRules(e.cellClassRules,o,(function(e){return t.cellComp.addOrRemoveCssClass(e,!0)}),(function(e){return t.cellComp.addOrRemoveCssClass(e,!1)}))},e.prototype.applyUserStyles=function(){var t=this.column.getColDef();if(t.cellStyle){var e;if("function"==typeof t.cellStyle){var o={column:this.column,value:this.cellCtrl.getValue(),colDef:t,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};e=(0,t.cellStyle)(o)}else e=t.cellStyle;e&&this.cellComp.setUserStyles(e)}},e.prototype.applyClassesFromColDef=function(){var t=this,e=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:e,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.staticClasses.length&&this.staticClasses.forEach((function(e){return t.cellComp.addOrRemoveCssClass(e,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(e,o),this.staticClasses.length&&this.staticClasses.forEach((function(e){return t.cellComp.addOrRemoveCssClass(e,!0)}))},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Bt),tu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),eu=function(t){function e(e,o){var n=t.call(this)||this;return n.ctrl=e,n.beans=o,n}return tu(e,t),e.prototype.setComp=function(t){this.eGui=t,this.setupTooltip()},e.prototype.setBrowserTooltip=function(t){null!=t&&""!=t?this.eGui.setAttribute("title",t):this.eGui.removeAttribute("title")},e.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.is("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?this.setBrowserTooltip(this.tooltip):this.createTooltipFeatureIfNeeded()},e.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},e.prototype.createTooltipFeatureIfNeeded=function(){var t,e,o,n,i=this;if(null==this.genericTooltipFeature){var r={getTooltipParams:function(){return i.getTooltipParams()},getGui:function(){return i.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Si(r,null===(e=(t=this.ctrl).getTooltipShowDelayOverride)||void 0===e?void 0:e.call(t),null===(n=(o=this.ctrl).getTooltipHideDelayOverride)||void 0===n?void 0:n.call(o)),this.beans.context)}},e.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.setBrowserTooltip(this.tooltip)},e.prototype.getTooltipParams=function(){var t=this,e=this.ctrl,o=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,i=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:o,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:i,data:i?i.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0,hideTooltipCallback:function(){return t.genericTooltipFeature.hideTooltip(!0)}}},e.prototype.getTooltipText=function(){return this.tooltip},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Bt),ou=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},nu=function(){function t(){}return t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.is("masterDetail"),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},ou([X("resizeObserverService")],t.prototype,"resizeObserverService",void 0),ou([X("paginationProxy")],t.prototype,"paginationProxy",void 0),ou([X("context")],t.prototype,"context",void 0),ou([X("columnApi")],t.prototype,"columnApi",void 0),ou([X("gridApi")],t.prototype,"gridApi",void 0),ou([X("gridOptionsService")],t.prototype,"gridOptionsService",void 0),ou([X("expressionService")],t.prototype,"expressionService",void 0),ou([X("environment")],t.prototype,"environment",void 0),ou([X("rowRenderer")],t.prototype,"rowRenderer",void 0),ou([X("templateService")],t.prototype,"templateService",void 0),ou([X("valueService")],t.prototype,"valueService",void 0),ou([X("eventService")],t.prototype,"eventService",void 0),ou([X("columnModel")],t.prototype,"columnModel",void 0),ou([X("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ou([X("navigationService")],t.prototype,"navigationService",void 0),ou([X("columnAnimationService")],t.prototype,"columnAnimationService",void 0),ou([J("rangeService")],t.prototype,"rangeService",void 0),ou([X("focusService")],t.prototype,"focusService",void 0),ou([J("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),ou([X("popupService")],t.prototype,"popupService",void 0),ou([X("valueFormatterService")],t.prototype,"valueFormatterService",void 0),ou([X("stylingService")],t.prototype,"stylingService",void 0),ou([X("columnHoverService")],t.prototype,"columnHoverService",void 0),ou([X("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ou([X("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),ou([X("animationFrameService")],t.prototype,"animationFrameService",void 0),ou([X("dragService")],t.prototype,"dragService",void 0),ou([X("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ou([X("sortController")],t.prototype,"sortController",void 0),ou([X("filterManager")],t.prototype,"filterManager",void 0),ou([X("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),ou([X("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),ou([X("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),ou([X("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ou([X("selectionService")],t.prototype,"selectionService",void 0),ou([J("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),ou([X("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),ou([X("rowModel")],t.prototype,"rowModel",void 0),ou([X("ctrlsService")],t.prototype,"ctrlsService",void 0),ou([X("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),ou([X("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),ou([X("valueCache")],t.prototype,"valueCache",void 0),ou([X("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),ou([X("localeService")],t.prototype,"localeService",void 0),ou([X("valueParserService")],t.prototype,"valueParserService",void 0),ou([Y],t.prototype,"postConstruct",null),t=ou([Q("beans")],t)}(),iu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ru=function(t){function e(e,o,n){var i=t.call(this)||this;return i.cellCtrl=e,i.beans=o,i.column=n,i}return iu(e,t),e.prototype.onMouseEvent=function(t,e){if(!At(e))switch(t){case"click":this.onCellClicked(e);break;case"mousedown":case"touchstart":this.onMouseDown(e);break;case"dblclick":this.onCellDoubleClicked(e);break;case"mouseout":this.onMouseOut(e);break;case"mouseover":this.onMouseOver(e)}},e.prototype.onCellClicked=function(t){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(t),void t.preventDefault();var e=this.beans,o=e.eventService,n=e.rangeService,i=e.gridOptionsService,r=t.ctrlKey||t.metaKey;n&&r&&n.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&n.intersectLastRange(!0);var s=this.cellCtrl.createEvent(t,qt.EVENT_CELL_CLICKED);o.dispatchEvent(s);var a=this.column.getColDef();a.onCellClicked&&window.setTimeout((function(){return a.onCellClicked(s)}),0),!((i.is("singleClickEdit")||a.singleClickEdit)&&!i.is("suppressClickEdit"))||t.shiftKey&&0!=(null==n?void 0:n.getCellRanges().length)||this.cellCtrl.startRowOrCellEdit()},e.prototype.isDoubleClickOnIPad=function(){if(!Ho()||Lt("dblclick"))return!1;var t=(new Date).getTime(),e=t-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=t,e},e.prototype.onCellDoubleClicked=function(t){var e=this.column.getColDef(),o=this.cellCtrl.createEvent(t,qt.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof e.onCellDoubleClicked&&window.setTimeout((function(){return e.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,t)},e.prototype.onMouseDown=function(t){var e=t.ctrlKey,o=t.metaKey,n=t.shiftKey,i=t.target,r=this.cellCtrl,s=this.beans,a=s.eventService,l=s.rangeService,u=s.focusService;if(!this.isRightClickInExistingRange(t)){var c=l&&0!=l.getCellRanges().length;if(!n||!c){var p=No()&&!r.isEditing()&&!pn(i);r.focusCell(p)}if(n&&c&&!u.isCellFocused(r.getCellPosition())){t.preventDefault();var d=u.getFocusedCell();if(d){var h=d.column,f=d.rowIndex,g=d.rowPinned,v=s.rowRenderer.getRowByPosition({rowIndex:f,rowPinned:g}),y=null==v?void 0:v.getCellCtrl(h);(null==y?void 0:y.isEditing())&&y.stopEditing(),u.setFocusedCell({column:h,rowIndex:f,rowPinned:g,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(i)){if(l){var m=this.cellCtrl.getCellPosition();if(n)l.extendLatestRangeToCell(m);else{var C=e||o;l.setRangeToCell(m,C)}}a.dispatchEvent(this.cellCtrl.createEvent(t,qt.EVENT_CELL_MOUSE_DOWN))}}},e.prototype.isRightClickInExistingRange=function(t){var e=this.beans.rangeService;if(e){var o=e.isCellInAnyRange(this.cellCtrl.getCellPosition()),n=2===t.button||t.ctrlKey&&this.beans.gridOptionsService.is("allowContextMenuWithControlKey");if(o&&n)return!0}return!1},e.prototype.containsWidget=function(t){return gn(t,"ag-selection-checkbox",3)},e.prototype.onMouseOut=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,qt.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.clearMouseOver()}},e.prototype.onMouseOver=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,qt.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.setMouseOver([this.column])}},e.prototype.mouseStayingInsideCell=function(t){if(!t.target||!t.relatedTarget)return!1;var e=this.cellCtrl.getGui(),o=e.contains(t.target),n=e.contains(t.relatedTarget);return o&&n},e.prototype.destroy=function(){},e}(nu),su=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),au=function(t){function e(e,o,n,i,r){var s=t.call(this)||this;return s.cellCtrl=e,s.beans=o,s.rowNode=i,s.rowCtrl=r,s}return su(e,t),e.prototype.setComp=function(t){this.eGui=t},e.prototype.onKeyDown=function(t){var e=t.key;switch(e){case Zn.ENTER:this.onEnterKeyDown(t);break;case Zn.F2:this.onF2KeyDown(t);break;case Zn.ESCAPE:this.onEscapeKeyDown(t);break;case Zn.TAB:this.onTabKeyDown(t);break;case Zn.BACKSPACE:case Zn.DELETE:this.onBackspaceOrDeleteKeyDown(e,t);break;case Zn.DOWN:case Zn.UP:case Zn.RIGHT:case Zn.LEFT:this.onNavigationKeyDown(t,e)}},e.prototype.onNavigationKeyDown=function(t,e){this.cellCtrl.isEditing()||(t.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(t,e,this.cellCtrl.getCellPosition(),!0),t.preventDefault())},e.prototype.onShiftRangeSelect=function(t){if(this.beans.rangeService){var e=this.beans.rangeService.extendLatestRangeInDirection(t);e&&this.beans.navigationService.ensureCellVisible(e)}},e.prototype.onTabKeyDown=function(t){this.beans.navigationService.onTabKeyDown(this.cellCtrl,t)},e.prototype.onBackspaceOrDeleteKeyDown=function(t,e){var o=this.cellCtrl,n=this.beans,i=this.rowNode,r=n.gridOptionsService,s=n.rangeService,a=n.eventService;o.isEditing()||(a.dispatchEvent({type:qt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),ni(t,r.is("enableCellEditingOnBackspace"))?s&&r.is("enableRangeSelection")?s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):o.isCellEditable()&&i.setDataValue(o.getColumn(),null,"cellClear"):o.startRowOrCellEdit(t,e),a.dispatchEvent({type:qt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},e.prototype.onEnterKeyDown=function(t){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,t.shiftKey);else if(this.beans.gridOptionsService.is("enterNavigatesVertically")){var e=t.shiftKey?Zn.UP:Zn.DOWN;this.beans.navigationService.navigateToNextCell(null,e,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(Zn.ENTER,t),this.cellCtrl.isEditing()&&t.preventDefault()},e.prototype.onF2KeyDown=function(t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Zn.F2,t)},e.prototype.onEscapeKeyDown=function(t){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},e.prototype.processCharacter=function(t){if(!(t.target!==this.eGui)&&!this.cellCtrl.isEditing()){var e=t.key;" "===e?this.onSpaceKeyDown(t):(this.cellCtrl.startRowOrCellEdit(e,t),t.preventDefault())}},e.prototype.onSpaceKeyDown=function(t){var e=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&e.isRowSelection()){var o=this.rowNode.isSelected(),n=!o;if(n||!e.is("suppressRowDeselection")){var i=this.beans.gridOptionsService.is("groupSelectsFiltered"),r=this.rowNode.setSelectedParams({newValue:n,rangeSelect:t.shiftKey,groupSelectsFiltered:i,event:t,source:"spaceKey"});void 0===o&&0===r&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:i,event:t,source:"spaceKey"})}}t.preventDefault()},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(Bt),lu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),uu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},cu=function(t){function e(e,o,n){var i=t.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=e,i.column=o,i.eCell=n,i}return lu(e,t),e.prototype.postConstruct=function(){this.getGui().appendChild(Xn("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation()})),this.addDragSource(),this.checkVisibility()},e.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},e.prototype.onDragStart=function(t){var e=this,o=this.column.getColDef().dndSourceOnRowDrag;t.dataTransfer.setDragImage(this.eCell,0,0);o?o({rowNode:this.rowNode,dragEvent:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var o=JSON.stringify(e.rowNode.data);t.dataTransfer.setData("application/json",o),t.dataTransfer.setData("text/plain",o)}catch(t){}}()},e.prototype.checkVisibility=function(){var t=this.column.isDndSource(this.rowNode);this.setDisplayed(t)},uu([Y],e.prototype,"postConstruct",null),e}(Ti),pu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),du=function(){return(du=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},hu=0,fu=function(o){function n(t,e,n,i){var r=o.call(this)||this;r.cellRangeFeature=null,r.cellPositionFeature=null,r.cellCustomStyleFeature=null,r.tooltipFeature=null,r.cellMouseListenerFeature=null,r.cellKeyboardListenerFeature=null,r.suppressRefreshCell=!1,r.onCellCompAttachedFuncs=[],r.column=t,r.rowNode=e,r.beans=n,r.rowCtrl=i,r.instanceId=t.getId()+"-"+hu++;var s=r.column.getColDef();return r.colIdSanitised=oe(r.column.getId()),r.beans.gridOptionsService.is("suppressCellFocus")||(r.tabIndex=-1),r.isCellRenderer=null!=s.cellRenderer||null!=s.cellRendererSelector,r.createCellPosition(),r.addFeatures(),r.updateAndFormatValue(!0),r}return pu(n,o),n.prototype.shouldRestoreFocus=function(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)},n.prototype.addFeatures=function(){var t=this;this.cellPositionFeature=new Jl(this,this.beans),this.addDestroyFunc((function(){var e;null===(e=t.cellPositionFeature)||void 0===e||e.destroy(),t.cellPositionFeature=null})),this.cellCustomStyleFeature=new $l(this,this.beans),this.addDestroyFunc((function(){var e;null===(e=t.cellCustomStyleFeature)||void 0===e||e.destroy(),t.cellCustomStyleFeature=null})),this.cellMouseListenerFeature=new ru(this,this.beans,this.column),this.addDestroyFunc((function(){var e;null===(e=t.cellMouseListenerFeature)||void 0===e||e.destroy(),t.cellMouseListenerFeature=null})),this.cellKeyboardListenerFeature=new au(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){var e;null===(e=t.cellKeyboardListenerFeature)||void 0===e||e.destroy(),t.cellKeyboardListenerFeature=null})),this.beans.rangeService&&this.beans.gridOptionsService.is("enableRangeSelection")&&(this.cellRangeFeature=new Ql(this.beans,this),this.addDestroyFunc((function(){var e;null===(e=t.cellRangeFeature)||void 0===e||e.destroy(),t.cellRangeFeature=null}))),this.column.isTooltipEnabled()&&this.addTooltipFeature()},n.prototype.addTooltipFeature=function(){var t=this,o={getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getRowIndex:function(){return t.cellPosition.rowIndex},getRowNode:function(){return t.rowNode},getGui:function(){return t.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var o=t.column.getColDef(),n=t.rowNode.data;if(o.tooltipField&&e(n))return S(n,o.tooltipField,t.column.isTooltipFieldContainsDots());var i=o.tooltipValueGetter;return i?i({location:"cell",api:t.beans.gridOptionsService.api,columnApi:t.beans.gridOptionsService.columnApi,context:t.beans.gridOptionsService.context,colDef:t.column.getColDef(),column:t.column,rowIndex:t.cellPosition.rowIndex,node:t.rowNode,data:t.rowNode.data,value:t.value,valueFormatted:t.valueFormatted}):null},getValueFormatted:function(){return t.valueFormatted}};this.tooltipFeature=new eu(o,this.beans),this.addDestroyFunc((function(){var e;null===(e=t.tooltipFeature)||void 0===e||e.destroy(),t.tooltipFeature=null}))},n.prototype.setComp=function(t,e,o,n,i){var r,s,a,l;this.cellComp=t,this.eGui=e,this.printLayout=n,this.addDomData(),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),o&&this.setupAutoHeight(o),this.setAriaColIndex(),null===(r=this.cellPositionFeature)||void 0===r||r.setComp(e),null===(s=this.cellCustomStyleFeature)||void 0===s||s.setComp(t),null===(a=this.tooltipFeature)||void 0===a||a.setComp(e),null===(l=this.cellKeyboardListenerFeature)||void 0===l||l.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(t,e),i&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((function(t){return t()})),this.onCellCompAttachedFuncs=[])},n.prototype.setupAutoHeight=function(t){var e=this;if(this.column.isAutoHeight()){var o=t.parentElement,n=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,i=function(r){if(!e.editing&&e.isAlive()){var s=vn(o),a=s.paddingTop+s.paddingBottom+s.borderBottomWidth+s.borderTopWidth,l=t.offsetHeight+a;if(r<5){var u=e.beans.gridOptionsService.getDocument();if(!u||!u.contains(t)||0==l)return void e.beans.frameworkOverrides.setTimeout((function(){return i(r+1)}),0)}var c=Math.max(l,n);e.rowNode.setRowAutoHeight(c,e.column)}},r=function(){return i(0)};r();var s=this.beans.resizeObserverService.observeResize(t,r);this.addDestroyFunc((function(){s(),e.rowNode.setRowAutoHeight(void 0,e.column)}))}},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.getIncludeSelection=function(){return this.includeSelection},n.prototype.getIncludeRowDrag=function(){return this.includeRowDrag},n.prototype.getIncludeDndSource=function(){return this.includeDndSource},n.prototype.getColumnIdSanitised=function(){return this.colIdSanitised},n.prototype.getTabIndex=function(){return this.tabIndex},n.prototype.getIsCellRenderer=function(){return this.isCellRenderer},n.prototype.getValueToDisplay=function(){return null!=this.valueFormatted?this.valueFormatted:this.value},n.prototype.showValue=function(t){void 0===t&&(t=!1);var e,o=this.getValueToDisplay();if(this.isCellRenderer){var n=this.createCellRendererParams();e=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n)}this.cellComp.setRenderDetails(e,o,t),this.refreshHandle()},n.prototype.setupControlComps=function(){var t=this.column.getColDef();this.includeSelection=this.isIncludeControl(t.checkboxSelection),this.includeRowDrag=this.isIncludeControl(t.rowDrag),this.includeDndSource=this.isIncludeControl(t.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},n.prototype.isForceWrapper=function(){return this.beans.gridOptionsService.is("enableCellTextSelection")||this.column.isAutoHeight()},n.prototype.isIncludeControl=function(t){return!(null!=this.rowNode.rowPinned)&&("function"==typeof t||!0===t)},n.prototype.refreshShouldDestroy=function(){var t=this.column.getColDef(),e=this.includeSelection!=this.isIncludeControl(t.checkboxSelection),o=this.includeRowDrag!=this.isIncludeControl(t.rowDrag),n=this.includeDndSource!=this.isIncludeControl(t.dndSource);return e||o||n},n.prototype.startEditing=function(t,e,o){var n=this;if(void 0===t&&(t=null),void 0===e&&(e=!1),void 0===o&&(o=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var i=this.createCellEditorParams(t,e),r=this.column.getColDef(),s=this.beans.userComponentFactory.getCellEditorDetails(r,i),a=null!=(null==s?void 0:s.popupFromSelector)?s.popupFromSelector:!!r.cellEditorPopup,l=null!=(null==s?void 0:s.popupPositionFromSelector)?s.popupPositionFromSelector:r.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(s,a,l);var u=this.createEvent(o,qt.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(u)}else this.onCellCompAttachedFuncs.push((function(){n.startEditing(t,e,o)}))},n.prototype.setEditing=function(t){this.editing!==t&&(this.editing=t,this.refreshHandle())},n.prototype.stopRowOrCellEdit=function(t){void 0===t&&(t=!1),"fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.stopRowEditing(t):this.stopEditing(t)},n.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},n.prototype.takeValueFromCellEditor=function(t){var e={newValueExists:!1};if(t)return e;var o=this.cellComp.getCellEditor();return o?o.isCancelAfterEnd&&o.isCancelAfterEnd()?e:{newValue:o.getValue(),newValueExists:!0}:e},n.prototype.saveNewValue=function(t,e){if(e===t)return!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,e,"edit");return this.suppressRefreshCell=!1,o},n.prototype.stopEditing=function(t){if(void 0===t&&(t=!1),!this.editing)return!1;var e=this.takeValueFromCellEditor(t),o=e.newValue,n=e.newValueExists,i=this.rowNode.getValueFromValueService(this.column),r=!1;return n&&(r=this.saveNewValue(i,o)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(i,o,!t&&!!r),r},n.prototype.dispatchEditingStoppedEvent=function(t,e,o){var n=du(du({},this.createEvent(null,qt.EVENT_CELL_EDITING_STOPPED)),{oldValue:t,newValue:e,valueChanged:o});this.beans.eventService.dispatchEvent(n)},n.prototype.createCellEditorParams=function(t,e){return{value:this.rowNode.getValueFromValueService(this.column),eventKey:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsService.api,cellStartedEdit:e,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},n.prototype.createCellRendererParams=function(){var t=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:function(){return t.rowNode.getValueFromValueService(t.column)},setValue:function(e){return t.beans.valueService.setValue(t.rowNode,t.column,e)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(e,o,n,i){return t.registerRowDragger(e,o,i)}}},n.prototype.parseValue=function(t){return this.beans.valueParserService.parseValue(this.column,this.rowNode,t,this.getValue())},n.prototype.setFocusOutOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusOut&&t.focusOut()}},n.prototype.setFocusInOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusIn?t.focusIn():this.focusCell(!0)}},n.prototype.onCellChanged=function(t){this.cellComp&&(t.column===this.column&&this.refreshCell({}))},n.prototype.refreshCell=function(t){var e,o,n;if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var i=this.column.getColDef(),r=null!=t&&!!t.newData,s=null!=t&&!!t.suppressFlash||!!i.suppressCellFlash,a=null==i.field&&null==i.valueGetter&&null==i.showRowGroup,l=t&&t.forceRefresh||a||r,u=this.updateAndFormatValue();if(l||u){this.showValue(r);var c=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!s&&!c&&(this.beans.gridOptionsService.is("enableCellChangeFlash")||i.enableCellChangeFlash)&&this.flashCell(),null===(e=this.cellCustomStyleFeature)||void 0===e||e.applyUserStyles(),null===(o=this.cellCustomStyleFeature)||void 0===o||o.applyClassesFromColDef()}this.refreshToolTip(),null===(n=this.cellCustomStyleFeature)||void 0===n||n.applyCellClassRules()}},n.prototype.stopEditingAndFocus=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),t||this.navigateAfterEdit(e)},n.prototype.navigateAfterEdit=function(t){if(this.beans.gridOptionsService.is("enterNavigatesVerticallyAfterEdit")){var e=t?Zn.UP:Zn.DOWN;this.beans.navigationService.navigateToNextCell(null,e,this.getCellPosition(),!1)}},n.prototype.flashCell=function(t){var e=t&&t.flashDelay,o=t&&t.fadeDelay;this.animateCell("data-changed",e,o)},n.prototype.animateCell=function(t,o,n){var i,r,s=this;if(this.cellComp){var a="ag-cell-"+t,l="ag-cell-"+t+"-animation",u=this.beans.gridOptionsService;o||(o=null!==(i=u.getNum("cellFlashDelay"))&&void 0!==i?i:500),e(n)||(n=null!==(r=u.getNum("cellFadeDelay"))&&void 0!==r?r:1e3),this.cellComp.addOrRemoveCssClass(a,!0),this.cellComp.addOrRemoveCssClass(l,!1),window.setTimeout((function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(a,!1),s.cellComp.addOrRemoveCssClass(l,!0),s.eGui.style.transition="background-color "+n+"ms",window.setTimeout((function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(l,!1),s.eGui.style.transition="")}),n))}),o)}},n.prototype.onFlashCells=function(t){if(this.cellComp){var e=this.beans.cellPositionUtils.createId(this.getCellPosition());t.cells[e]&&this.animateCell("highlight")}},n.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},n.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},n.prototype.formatValue=function(t){var e;return null!==(e=this.callValueFormatter(t))&&void 0!==e?e:t},n.prototype.callValueFormatter=function(t){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,t)},n.prototype.updateAndFormatValue=function(t){void 0===t&&(t=!1);var e=this.value,o=this.valueFormatted;return this.value=this.rowNode.getValueFromValueService(this.column),this.valueFormatted=this.callValueFormatter(this.value),!!t||(!this.valuesAreEqual(e,this.value)||this.valueFormatted!=o)},n.prototype.valuesAreEqual=function(t,e){var o=this.column.getColDef();return o.equals?o.equals(t,e):t===e},n.prototype.getComp=function(){return this.cellComp},n.prototype.getValue=function(){return this.value},n.prototype.getValueFormatted=function(){return this.valueFormatted},n.prototype.addDomData=function(){var t=this,e=this.getGui();this.beans.gridOptionsService.setDomData(e,n.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return t.beans.gridOptionsService.setDomData(e,n.DOM_DATA_KEY_CELL_CTRL,null)}))},n.prototype.createEvent=function(t,e){return{type:e,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:t,rowIndex:this.rowNode.rowIndex}},n.prototype.processCharacter=function(t){var e;null===(e=this.cellKeyboardListenerFeature)||void 0===e||e.processCharacter(t)},n.prototype.onKeyDown=function(t){var e;null===(e=this.cellKeyboardListenerFeature)||void 0===e||e.onKeyDown(t)},n.prototype.onMouseEvent=function(t,e){var o;null===(o=this.cellMouseListenerFeature)||void 0===o||o.onMouseEvent(t,e)},n.prototype.getGui=function(){return this.eGui},n.prototype.refreshToolTip=function(){var t;null===(t=this.tooltipFeature)||void 0===t||t.refreshToolTip()},n.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},n.prototype.onLeftChanged=function(){var t;this.cellComp&&(null===(t=this.cellPositionFeature)||void 0===t||t.onLeftChanged())},n.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},n.prototype.setAriaColIndex=function(){var t=this.beans.columnModel.getAriaColumnIndex(this.column);yo(this.getGui(),t)},n.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},n.prototype.onWidthChanged=function(){var t;return null===(t=this.cellPositionFeature)||void 0===t?void 0:t.onWidthChanged()},n.prototype.getColumn=function(){return this.column},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getBeans=function(){return this.beans},n.prototype.isPrintLayout=function(){return this.printLayout},n.prototype.appendChild=function(t){this.eGui.appendChild(t)},n.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},n.prototype.getCellPosition=function(){return this.cellPosition},n.prototype.isEditing=function(){return this.editing},n.prototype.startRowOrCellEdit=function(t,e){void 0===e&&(e=null),this.cellComp&&("fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.startRowEditing(t,this):this.startEditing(t,!0,e))},n.prototype.getRowCtrl=function(){return this.rowCtrl},n.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},n.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},n.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},n.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},n.prototype.focusCell=function(t){void 0===t&&(t=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:t})},n.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},n.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var t=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",t)}},n.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var t=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",t)}},n.prototype.onCellFocused=function(t){if(!this.beans.gridOptionsService.is("suppressCellFocus")){var e=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp){if(this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass("ag-cell-focus",e),e&&t&&t.forceBrowserFocus)this.cellComp.getFocusableElement().focus({preventScroll:!!t.preventScrollOnBrowserFocus});var o="fullRow"===this.beans.gridOptionsService.get("editType");e||o||!this.editing||this.stopRowOrCellEdit()}else e&&(null==t?void 0:t.forceBrowserFocus)&&(this.focusEventToRestore=t)}},n.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:t(this.rowNode.rowPinned),column:this.column}},n.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass("ag-cell-not-inline-editing",!0);var t=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",t),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!t)},n.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.is("columnHoverHighlight")){var t=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",t)}},n.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},n.prototype.setWrapText=function(){var t=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",t)},n.prototype.dispatchCellContextMenuEvent=function(t){var e=this.column.getColDef(),o=this.createEvent(t,qt.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),e.onCellContextMenu&&window.setTimeout((function(){return e.onCellContextMenu(o)}),0)},n.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},n.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},n.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],o.prototype.destroy.call(this)},n.prototype.createSelectionCheckbox=function(){var t=new Hs;return this.beans.context.createBean(t),t.init({rowNode:this.rowNode,column:this.column}),t},n.prototype.createDndSource=function(){var t=new cu(this.rowNode,this.column,this.eGui);return this.beans.context.createBean(t),t},n.prototype.registerRowDragger=function(t,e,o){var n=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(t,e);else{var i=this.createRowDragComp(t,e,o);i&&(this.customRowDragComp=i,this.addDestroyFunc((function(){n.beans.context.destroyBean(i),n.customRowDragComp=null})))}},n.prototype.createRowDragComp=function(t,e,o){var n=this,i=this.beans.gridOptionsService.is("pagination"),r=this.beans.gridOptionsService.is("rowDragManaged"),s=this.beans.gridOptionsService.isRowModelType("clientSide");if(r){if(!s)return void T((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(i)return void T((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new Ys((function(){return n.value}),this.rowNode,this.column,t,e,o);return this.beans.context.createBean(a),a},n.DOM_DATA_KEY_CELL_CTRL="cellCtrl",n}(Bt),gu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vu=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},yu=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},mu=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t};!function(t){t.Normal="Normal",t.FullWidth="FullWidth",t.FullWidthLoading="FullWidthLoading",t.FullWidthGroup="FullWidthGroup",t.FullWidthDetail="FullWidthDetail"}(ql||(ql={}));var Cu,wu,Su=0,Eu=function(o){function n(t,e,n,i,r){var s=o.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.lastMouseDownOnDragger=!1,s.emptyStyle={},s.updateColumnListsPending=!1,s.rowId=null,s.businessKeySanitised=null,s.beans=e,s.gridOptionsService=e.gridOptionsService,s.rowNode=t,s.paginationPage=e.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=i,s.printLayout=r,s.instanceId=t.id+"-"+Su++,s.rowId=oe(t.id),s.initRowBusinessKey(),s.rowFocused=e.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=e.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.setAnimateFlags(n),s.rowStyles=s.processStylesFromGridOptions(),s.isFullWidth()&&!s.gridOptionsService.is("suppressCellFocus")&&(s.tabIndex=-1),s.addListeners(),s}return gu(n,o),n.prototype.initRowBusinessKey=function(){this.businessKeyForNodeFunc=this.gridOptionsService.get("getBusinessKeyForNode"),this.updateRowBusinessKey()},n.prototype.updateRowBusinessKey=function(){if("function"==typeof this.businessKeyForNodeFunc){var t=this.businessKeyForNodeFunc(this.rowNode);this.businessKeySanitised=oe(t)}},n.prototype.getRowId=function(){return this.rowId},n.prototype.getRowStyles=function(){return this.rowStyles},n.prototype.getTabIndex=function(){return this.tabIndex},n.prototype.isSticky=function(){return this.rowNode.sticky},n.prototype.getBeans=function(){return this.beans},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(t,e,o){var n={rowComp:t,element:e,containerType:o};this.allRowGuis.push(n),o===wu.LEFT?this.leftGui=n:o===wu.RIGHT?this.rightGui=n:o===wu.FULL_WIDTH?this.fullWidthGui=n:this.centerGui=n,this.initialiseRowComp(n),"FullWidthLoading"===this.rowType||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},n.prototype.unsetComp=function(t){switch(this.allRowGuis=this.allRowGuis.filter((function(e){return e.containerType!==t})),t){case wu.LEFT:this.leftGui=void 0;break;case wu.RIGHT:this.rightGui=void 0;break;case wu.FULL_WIDTH:this.fullWidthGui=void 0;break;case wu.CENTER:this.centerGui=void 0}},n.prototype.isCacheable=function(){return this.rowType===ql.FullWidthDetail&&this.gridOptionsService.is("keepDetailRows")},n.prototype.setCached=function(t){var e=t?"none":"";this.allRowGuis.forEach((function(t){return t.element.style.display=e}))},n.prototype.initialiseRowComp=function(t){var e=this,o=this.gridOptionsService;this.listenOnDomOrder(t),this.onRowHeightChanged(t),this.updateRowIndexes(t),this.setFocusedClasses(t),this.setStylesFromGridOptions(!1,t),o.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(t),this.updateColumnLists(!this.useAnimationFrameForCreate);var i=t.rowComp;this.getInitialRowClasses(t.containerType).forEach((function(t){return i.addOrRemoveCssClass(t,!0)})),this.executeSlideAndFadeAnimations(t),this.rowNode.group&&lo(t.element,1==this.rowNode.expanded),this.setRowCompRowId(i),this.setRowCompRowBusinessKey(i),o.setDomData(t.element,n.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc((function(){return o.setDomData(t.element,n.DOM_DATA_KEY_ROW_CTRL,null)})),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,t.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t.element),this.isFullWidth()&&this.setupFullWidth(t),o.is("rowDragEntireRow")&&this.addRowDraggerToRow(t),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask((function(){e.isAlive()&&t.rowComp.addOrRemoveCssClass("ag-after-created",!0)})),this.executeProcessRowPostCreateFunc()},n.prototype.setRowCompRowBusinessKey=function(t){null!=this.businessKeySanitised&&t.setRowBusinessKey(this.businessKeySanitised)},n.prototype.getBusinessKey=function(){return this.businessKeySanitised},n.prototype.setRowCompRowId=function(t){this.rowId=oe(this.rowNode.id),null!=this.rowId&&t.setRowId(this.rowId)},n.prototype.executeSlideAndFadeAnimations=function(t){var e=this,o=t.containerType;this.slideInAnimation[o]&&(L((function(){e.onTopChanged()})),this.slideInAnimation[o]=!1),this.fadeInAnimation[o]&&(L((function(){t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})),this.fadeInAnimation[o]=!1)},n.prototype.addRowDraggerToRow=function(t){if(this.gridOptionsService.is("enableRangeSelection"))T((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var e=this.beans.localeService.getLocaleTextFunc(),o=new Ys((function(){return"1 "+e("rowDragRow","row")}),this.rowNode,void 0,t.element,void 0,!0);this.createManagedBean(o,this.beans.context)}},n.prototype.setupFullWidth=function(t){var e=this.getPinnedForContainer(t.containerType),o=this.createFullWidthParams(t.element,e);if(this.rowType!=ql.FullWidthDetail||j.__assertRegistered(V.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)",this.beans.context.getGridId())){var n;switch(this.rowType){case ql.FullWidthDetail:n=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case ql.FullWidthGroup:n=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case ql.FullWidthLoading:n=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:n=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}t.rowComp.showFullWidth(n)}},n.prototype.isPrintLayout=function(){return this.printLayout},n.prototype.getFullWidthCellRenderer=function(){var t,e;return null===(e=null===(t=this.fullWidthGui)||void 0===t?void 0:t.rowComp)||void 0===e?void 0:e.getFullWidthCellRenderer()},n.prototype.getCellElement=function(t){var e=this.getCellCtrl(t);return e?e.getGui():null},n.prototype.executeProcessRowPostCreateFunc=function(){var t=this.gridOptionsService.getCallback("processRowPostCreate");t&&this.areAllContainersReady()&&t({eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},n.prototype.areAllContainersReady=function(){var t=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),e=!!this.centerGui,o=!!this.rightGui||!this.beans.columnModel.isPinningRight();return t&&e&&o},n.prototype.setRowType=function(){var t=this.rowNode.stub,e=this.rowNode.isFullWidthCell(),o=this.beans.doingMasterDetail&&this.rowNode.detail,n=this.beans.columnModel.isPivotMode(),i=!!this.rowNode.group&&!this.rowNode.footer&&this.gridOptionsService.isGroupUseEntireRow(n);this.rowType=t?ql.FullWidthLoading:o?ql.FullWidthDetail:e?ql.FullWidth:i?ql.FullWidthGroup:ql.Normal},n.prototype.updateColumnLists=function(t,e){var o=this;(void 0===t&&(t=!1),void 0===e&&(e=!1),this.isFullWidth())||(t||this.gridOptionsService.is("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl(e):this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){o.active&&o.updateColumnListsImpl(!0)}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},n.prototype.createCellCtrls=function(t,e,o){var n=this;void 0===o&&(o=null);var i={list:[],map:{}},r=function(t,e){i.list.push(e),i.map[t]=e};return e.forEach((function(e){var o=e.getInstanceId(),i=t.map[o];i||(i=new fu(e,n.rowNode,n.beans,n)),r(o,i)})),t.list.forEach((function(t){null!=i.map[t.getColumn().getInstanceId()]||(!n.isCellEligibleToBeRemoved(t,o)?r(t.getColumn().getInstanceId(),t):t.destroy())})),i},n.prototype.updateColumnListsImpl=function(t){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(t)},n.prototype.setCellCtrls=function(t){var e=this;this.allRowGuis.forEach((function(o){var n=e.getCellCtrlsForContainer(o.containerType);o.rowComp.setCellCtrls(n,t)}))},n.prototype.getCellCtrlsForContainer=function(t){switch(t){case wu.LEFT:return this.leftCellCtrls.list;case wu.RIGHT:return this.rightCellCtrls.list;case wu.FULL_WIDTH:return[];case wu.CENTER:return this.centerCellCtrls.list;default:throw new Error("Unhandled case: "+t)}},n.prototype.createAllCellCtrls=function(){var t=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var e=t.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e);var o=t.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,o,"left");var n=t.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,"right")}},n.prototype.isCellEligibleToBeRemoved=function(t,e){if(t.getColumn().getPinned()!=e)return!0;var o=t.isEditing(),n=this.beans.focusService.isCellFocused(t.getCellPosition());if(o||n){var i=t.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(i)>=0)}return!0},n.prototype.getDomOrder=function(){return this.gridOptionsService.is("ensureDomOrder")||this.gridOptionsService.isDomLayout("print")},n.prototype.listenOnDomOrder=function(t){var e=this,o=function(){t.rowComp.setDomOrder(e.getDomOrder())};this.addManagedPropertyListener("domLayout",o),this.addManagedPropertyListener("ensureDomOrder",o)},n.prototype.setAnimateFlags=function(t){if(!this.isSticky()&&t){var o=e(this.rowNode.oldRowTop),n=this.beans.columnModel.isPinningLeft(),i=this.beans.columnModel.isPinningRight();if(o){if(this.isFullWidth()&&!this.gridOptionsService.is("embedFullWidthRows"))return void(this.slideInAnimation.fullWidth=!0);this.slideInAnimation.center=!0,this.slideInAnimation.left=n,this.slideInAnimation.right=i}else{if(this.isFullWidth()&&!this.gridOptionsService.is("embedFullWidthRows"))return void(this.fadeInAnimation.fullWidth=!0);this.fadeInAnimation.center=!0,this.fadeInAnimation.left=n,this.fadeInAnimation.right=i}}},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(t){this.stopEditing(t)},n.prototype.isFullWidth=function(){return this.rowType!==ql.Normal},n.prototype.getRowType=function(){return this.rowType},n.prototype.refreshFullWidth=function(){var t=this,e=function(e,o){if(!e)return!0;var n=e.rowComp.getFullWidthCellRenderer();if(!n)return!1;if(!n.refresh)return!1;var i=t.createFullWidthParams(e.element,o);return n.refresh(i)},o=e(this.fullWidthGui,null),n=e(this.centerGui,null),i=e(this.leftGui,"left"),r=e(this.rightGui,"right");return o&&n&&i&&r},n.prototype.addListeners=function(){var t=this;this.addManagedListener(this.rowNode,Ms.EVENT_HEIGHT_CHANGED,(function(){return t.onRowHeightChanged()})),this.addManagedListener(this.rowNode,Ms.EVENT_ROW_SELECTED,(function(){return t.onRowSelected()})),this.addManagedListener(this.rowNode,Ms.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,Ms.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Ms.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,qt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,qt.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,qt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,qt.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(e,qt.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(e,qt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,qt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,qt.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.onColumnMoved=function(){this.updateColumnLists()},n.prototype.addListenersForCellComps=function(){var t=this;this.addManagedListener(this.rowNode,Ms.EVENT_ROW_INDEX_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Ms.EVENT_CELL_CHANGED,(function(e){t.getAllCellCtrls().forEach((function(t){return t.onCellChanged(e)}))}))},n.prototype.onRowNodeDataChanged=function(t){var e=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(e){return e.refreshCell({suppressFlash:!t.update,newData:!t.update})})),this.allRowGuis.forEach((function(t){e.setRowCompRowId(t.rowComp),e.updateRowBusinessKey(),e.setRowCompRowBusinessKey(t.rowComp)})),this.onRowSelected(),this.postProcessCss())},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.allRowGuis.forEach((function(e){var o=t===el.Above,n=t===el.Below;e.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),e.rowComp.addOrRemoveCssClass("ag-row-highlight-below",n)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var t=this.rowNode.dragging;this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-dragging",t)}))},n.prototype.updateExpandedCss=function(){var t=this.rowNode.isExpandable(),e=1==this.rowNode.expanded;this.allRowGuis.forEach((function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",t),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",t&&e),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",t&&!e),lo(o.element,t&&e)}))},n.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},n.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},n.prototype.getRowPosition=function(){return{rowPinned:t(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},n.prototype.onKeyboardNavigate=function(t){var e=this.allRowGuis.find((function(e){return e.element.contains(t.target)}));if((e?e.element:null)===t.target){var o=this.rowNode,n=this.beans.focusService.getFocusedCell(),i={rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:n&&n.column};this.beans.navigationService.navigateToNextCell(t,t.key,i,!0),t.preventDefault()}},n.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented&&!At(t)){var e=this.allRowGuis.find((function(e){return e.element.contains(t.target)})),o=e?e.element:null,n=o===t.target,i=null;n||(i=this.beans.focusService.findNextFocusableElement(o,!1,t.shiftKey)),(this.isFullWidth()&&n||!i)&&this.beans.navigationService.onTabKeyDown(this,t)}},n.prototype.onFullWidthRowFocused=function(t){var e,o=this.rowNode,n=!!t&&(this.isFullWidth()&&t.rowIndex===o.rowIndex&&t.rowPinned==o.rowPinned),i=this.fullWidthGui?this.fullWidthGui.element:null===(e=this.centerGui)||void 0===e?void 0:e.element;i&&(i.classList.toggle("ag-full-width-focus",n),n&&i.focus({preventScroll:!0}))},n.prototype.refreshCell=function(t){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,t),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,t),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,t),this.updateColumnLists()},n.prototype.removeCellCtrl=function(t,e){var o={list:[],map:{}};return t.list.forEach((function(t){t!==e&&(o.list.push(t),o.map[t.getInstanceId()]=t)})),o},n.prototype.onMouseEvent=function(t,e){switch(t){case"dblclick":this.onRowDblClick(e);break;case"click":this.onRowClick(e);break;case"touchstart":case"mousedown":this.onRowMouseDown(e)}},n.prototype.createRowEvent=function(t,e){return{type:t,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:e}},n.prototype.createRowEventWithSource=function(t,e){var o=this.createRowEvent(t,e);return o.source=this,o},n.prototype.onRowDblClick=function(t){if(!At(t)){var e=this.createRowEventWithSource(qt.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(e)}},n.prototype.onRowMouseDown=function(t){if(this.lastMouseDownOnDragger=gn(t.target,"ag-row-drag",3),this.isFullWidth()){var e=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:e.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:e.rowPinned,forceBrowserFocus:!0})}},n.prototype.onRowClick=function(t){if(!(At(t)||this.lastMouseDownOnDragger)){var e=this.createRowEventWithSource(qt.EVENT_ROW_CLICKED,t);this.beans.eventService.dispatchEvent(e);var o=t.ctrlKey||t.metaKey,n=t.shiftKey;if(!(this.gridOptionsService.is("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()||this.gridOptionsService.is("suppressRowClickSelection"))){var i=this.gridOptionsService.is("rowMultiSelectWithClick"),r=!this.gridOptionsService.is("suppressRowDeselection"),s="rowClicked";if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1,event:t,source:s}):o?r&&this.rowNode.setSelectedParams({newValue:!1,event:t,source:s}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!n,rangeSelect:n,event:t,source:s});else{var a=!i&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:n,event:t,source:s})}}}},n.prototype.setupDetailRowAutoHeight=function(t){var e=this;if(this.rowType===ql.FullWidthDetail&&this.gridOptionsService.is("detailRowAutoHeight")){var o=function(){var o=t.clientHeight;if(null!=o&&o>0){e.beans.frameworkOverrides.setTimeout((function(){e.rowNode.setRowHeight(o),e.beans.clientSideRowModel?e.beans.clientSideRowModel.onRowHeightChanged():e.beans.serverSideRowModel&&e.beans.serverSideRowModel.onRowHeightChanged()}),0)}},n=this.beans.resizeObserverService.observeResize(t,o);this.addDestroyFunc(n),o()}},n.prototype.createFullWidthParams=function(t,e){var o=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:t,eParentOfValue:t,pinned:e,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(t,e,n,i){return o.addFullWidthRowDragging(t,e,n,i)}}},n.prototype.addFullWidthRowDragging=function(t,e,o,n){if(void 0===o&&(o=""),this.isFullWidth()){var i=new Ys((function(){return o}),this.rowNode,void 0,t,e,n);this.createManagedBean(i,this.beans.context)}},n.prototype.onUiLevelChanged=function(){var t=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=t){var e="ag-row-level-"+t,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass(e,!0),t.rowComp.addOrRemoveCssClass(o,!1)}))}this.rowLevel=t},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},n.prototype.refreshFirstAndLastRowStyles=function(){var t=this.isFirstRowOnPage(),e=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-first",t)}))),this.lastRowOnPage!==e&&(this.lastRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-last",e)})))},n.prototype.stopEditing=function(t){var e,o;if(void 0===t&&(t=!1),!this.stoppingRowEdit){var n=this.getAllCellCtrls(),i=this.editingRow;this.stoppingRowEdit=!0;var r=!1;try{for(var s=vu(n),a=s.next();!a.done;a=s.next()){var l=a.value.stopEditing(t);i&&!t&&!r&&l&&(r=!0)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}if(r){var u=this.createRowEvent(qt.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}i&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},n.prototype.setInlineEditingCss=function(t){this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass("ag-row-inline-editing",t),e.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!t)}))},n.prototype.setEditingRow=function(t){this.editingRow=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-editing",t)}));var e=t?this.createRowEvent(qt.EVENT_ROW_EDITING_STARTED):this.createRowEvent(qt.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(e)},n.prototype.startRowEditing=function(t,e,o){(void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=null),this.editingRow)||this.getAllCellCtrls().reduce((function(n,i){var r=i===e;return r?i.startEditing(t,r,o):i.startEditing(null,r,o),!!n||i.isEditing()}),!1)&&this.setEditingRow(!0)},n.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:mu(mu(mu([],yu(this.centerCellCtrls.list)),yu(this.leftCellCtrls.list)),yu(this.rightCellCtrls.list))},n.prototype.postProcessClassesFromGridOptions=function(){var t=this,e=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);e&&e.length&&e.forEach((function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!0)}))}))},n.prototype.postProcessRowClassRules=function(){var t=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!0)}))}),(function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!1)}))}))},n.prototype.setStylesFromGridOptions=function(t,e){var o=this;t&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(e,(function(t){return t.rowComp.setUserStyles(o.rowStyles)}))},n.prototype.getPinnedForContainer=function(t){return t===wu.LEFT?"left":t===wu.RIGHT?"right":null},n.prototype.getInitialRowClasses=function(t){var e=this.getPinnedForContainer(t),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[t],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:e};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},n.prototype.processStylesFromGridOptions=function(){var t=this.gridOptionsService.get("rowStyle");if(!t||"function"!=typeof t){var e,o=this.gridOptionsService.getCallback("getRowStyle");if(o)e=o({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return e||t?Object.assign({},t,e):this.emptyStyle}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.onRowSelected=function(t){var e=this,o=!!this.rowNode.isSelected();this.forEachGui(t,(function(t){t.rowComp.addOrRemoveCssClass("ag-row-selected",o),So(t.element,!!o||void 0);var n=e.createAriaLabel();$e(t.element,null==n?"":n)}))},n.prototype.createAriaLabel=function(){var t=this.rowNode.isSelected();if(!t||!this.gridOptionsService.is("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(t?"deselect":"select")+" this row.")},n.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},n.prototype.addHoverFunctionality=function(t){var e=this;this.active&&(this.addManagedListener(t,"mouseenter",(function(){return e.rowNode.onMouseEnter()})),this.addManagedListener(t,"mouseleave",(function(){return e.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Ms.EVENT_MOUSE_ENTER,(function(){e.beans.dragService.isDragging()||e.gridOptionsService.is("suppressRowHoverHighlight")||(t.classList.add("ag-row-hover"),e.rowNode.setHovered(!0))})),this.addManagedListener(this.rowNode,Ms.EVENT_MOUSE_LEAVE,(function(){t.classList.remove("ag-row-hover"),e.rowNode.setHovered(!1)})))},n.prototype.roundRowTopToBounds=function(t){var e=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.applyPaginationOffset(e.top,!0)-100,n=this.applyPaginationOffset(e.bottom,!0)+100;return Math.min(Math.max(o,t),n)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.forEachGui=function(t,e){t?e(t):this.allRowGuis.forEach(e)},n.prototype.onRowHeightChanged=function(t){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),n=this.gridOptionsService.isGetRowHeightFunction()?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,i=n?Math.min(o,n)-2+"px":void 0;this.forEachGui(t,(function(t){t.element.style.height=e+"px",i&&t.element.style.setProperty("--ag-line-height",i)}))}},n.prototype.addEventListener=function(t,e){o.prototype.addEventListener.call(this,t,e)},n.prototype.removeEventListener=function(t,e){o.prototype.removeEventListener.call(this,t,e)},n.prototype.destroyFirstPass=function(){this.active=!1,this.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var t=this.createRowEvent(qt.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),o.prototype.destroy.call(this)},n.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var t=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(t)}else this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},n.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var t=function(t){return t.list.forEach((function(t){return t.destroy()})),{list:[],map:{}}};this.centerCellCtrls=t(this.centerCellCtrls),this.leftCellCtrls=t(this.leftCellCtrls),this.rightCellCtrls=t(this.rightCellCtrls)},n.prototype.setFocusedClasses=function(t){var e=this;this.forEachGui(t,(function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},n.prototype.onCellFocused=function(){this.onCellFocusChanged()},n.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},n.prototype.onCellFocusChanged=function(){var t=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses()),!t&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var t=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(t,e){return void 0===e&&(e=!1),this.rowNode.isRowPinned()||this.rowNode.sticky?t:t+this.beans.paginationProxy.getPixelOffset()*(e?1:-1)},n.prototype.setRowTop=function(t){if(!this.printLayout&&e(t)){var o=this.applyPaginationOffset(t),n=(this.rowNode.isRowPinned()||this.rowNode.sticky?o:this.beans.rowContainerHeightService.getRealPixelPosition(o))+"px";this.setRowTopStyle(n)}},n.prototype.getInitialRowTop=function(t){return this.gridOptionsService.is("suppressRowTransform")?this.getInitialRowTopShared(t):void 0},n.prototype.getInitialTransform=function(t){return this.gridOptionsService.is("suppressRowTransform")?void 0:"translateY("+this.getInitialRowTopShared(t)+")"},n.prototype.getInitialRowTopShared=function(t){if(this.printLayout)return"";var e;if(this.isSticky())e=this.rowNode.stickyRowTop;else{var o=this.slideInAnimation[t]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,n=this.applyPaginationOffset(o);e=this.rowNode.isRowPinned()?n:this.beans.rowContainerHeightService.getRealPixelPosition(n)}return e+"px"},n.prototype.setRowTopStyle=function(t){var e=this.gridOptionsService.is("suppressRowTransform");this.allRowGuis.forEach((function(o){return e?o.rowComp.setTop(t):o.rowComp.setTransform("translateY("+t+")")}))},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getCellCtrl=function(t){var e=null;return this.getAllCellCtrls().forEach((function(o){o.getColumn()==t&&(e=o)})),null!=e||this.getAllCellCtrls().forEach((function(o){o.getColSpanningList().indexOf(t)>=0&&(e=o)})),e},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},n.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},n.prototype.updateRowIndexes=function(t){var e=this.rowNode.getRowIndexString(),o=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),n=this.rowNode.rowIndex%2==0,i=o+this.rowNode.rowIndex+1;this.forEachGui(t,(function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",n),t.rowComp.addOrRemoveCssClass("ag-row-odd",!n),go(t.element,i)}))},n.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},n.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},n.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},n.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},n.DOM_DATA_KEY_ROW_CTRL="renderedRow",n}(Bt),Ru=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),bu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ou=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Tu=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return Ru(e,t),e.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},e.prototype.addKeyboardListeners=function(){var t=this.processKeyboardEvent.bind(this,"keydown");this.addManagedListener(this.element,"keydown",t)},e.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click",Lt("touchstart")?"touchstart":"mousedown"].forEach((function(e){var o=t.processMouseEvent.bind(t,e);t.addManagedListener(t.element,e,o)}))},e.prototype.processMouseEvent=function(t,e){if(this.mouseEventService.isEventFromThisGrid(e)&&!At(e)){var o=this.getRowForEvent(e),n=this.mouseEventService.getRenderedCellForEvent(e);"contextmenu"===t?this.handleContextMenuMouseEvent(e,null,o,n):(n&&n.onMouseEvent(t,e),o&&o.onMouseEvent(t,e))}},e.prototype.mockContextMenuForIPad=function(){var t=this;if(Ho()){var e=new is(this.element);this.addManagedListener(e,is.EVENT_LONG_TAP,(function(e){var o=t.getRowForEvent(e.touchEvent),n=t.mouseEventService.getRenderedCellForEvent(e.touchEvent);t.handleContextMenuMouseEvent(null,e.touchEvent,o,n)})),this.addDestroyFunc((function(){return e.destroy()}))}},e.prototype.getRowForEvent=function(t){for(var e=t.target;e;){var o=this.gridOptionsService.getDomData(e,Eu.DOM_DATA_KEY_ROW_CTRL);if(o)return o;e=e.parentElement}return null},e.prototype.handleContextMenuMouseEvent=function(t,e,o,n){var i=o?o.getRowNode():null,r=n?n.getColumn():null,s=null;if(r){var a=t||e;n.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(r,i)}var l=this.ctrlsService.getGridBodyCtrl(),u=n?n.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(t,e,i,r,s,u)},e.prototype.getControlsForEventTarget=function(t){return{cellCtrl:It(this.gridOptionsService,t,fu.DOM_DATA_KEY_CELL_CTRL),rowCtrl:It(this.gridOptionsService,t,Eu.DOM_DATA_KEY_ROW_CTRL)}},e.prototype.processKeyboardEvent=function(t,e){var o=this.getControlsForEventTarget(e.target),n=o.cellCtrl,i=o.rowCtrl;e.defaultPrevented||(n?this.processCellKeyboardEvent(n,t,e):i&&i.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,t,e))},e.prototype.processCellKeyboardEvent=function(t,e,o){var n=t.getRowNode(),i=t.getColumn(),r=t.isEditing();ti(this.gridOptionsService,o,n,i,r)||"keydown"===e&&(!r&&this.navigationService.handlePageScrollingKey(o)||t.onKeyDown(o),this.doGridOperations(o,t.isEditing()),$n(o)&&t.processCharacter(o));if("keydown"===e){var s=t.createEvent(o,qt.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}},e.prototype.processFullWidthRowKeyboardEvent=function(t,e,o){var n=t.getRowNode(),i=this.focusService.getFocusedCell(),r=i&&i.column;if(!ti(this.gridOptionsService,o,n,r,!1)){var s=o.key;if("keydown"===e)switch(s){case Zn.PAGE_HOME:case Zn.PAGE_END:case Zn.PAGE_UP:case Zn.PAGE_DOWN:this.navigationService.handlePageScrollingKey(o,!0);break;case Zn.UP:case Zn.DOWN:t.onKeyboardNavigate(o);break;case Zn.TAB:t.onTabKeyDown(o)}}if("keydown"===e){var a=t.createRowEvent(qt.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(a)}},e.prototype.doGridOperations=function(t,e){if((t.ctrlKey||t.metaKey)&&!e&&this.mouseEventService.isEventFromThisGrid(t)){var o=oi(t);return o===Zn.A?this.onCtrlAndA(t):o===Zn.C?this.onCtrlAndC(t):o===Zn.D?this.onCtrlAndD(t):o===Zn.V?this.onCtrlAndV(t):o===Zn.X?this.onCtrlAndX(t):o===Zn.Y?this.onCtrlAndY():o===Zn.Z?this.onCtrlAndZ(t):void 0}},e.prototype.onCtrlAndA=function(t){var e=this.pinnedRowModel,o=this.paginationProxy,i=this.rangeService;if(i&&o.isRowsToRender()){var r=Ou([e.isEmpty("top"),e.isEmpty("bottom")],2),s=r[0]?null:"top",a=void 0,l=void 0;r[1]?(a=null,l=this.paginationProxy.getRowCount()-1):(a="bottom",l=e.getPinnedBottomRowData().length-1);var u=this.columnModel.getAllDisplayedColumns();if(n(u))return;i.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:l,rowEndPinned:a,columnStart:u[0],columnEnd:ft(u)})}t.preventDefault()},e.prototype.onCtrlAndC=function(t){if(this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")){var e=this.getControlsForEventTarget(t.target),o=e.cellCtrl,n=e.rowCtrl;(null==o?void 0:o.isEditing())||(null==n?void 0:n.isEditing())||(t.preventDefault(),this.clipboardService.copyToClipboard())}},e.prototype.onCtrlAndX=function(t){if(this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")&&!this.gridOptionsService.is("suppressCutToClipboard")){var e=this.getControlsForEventTarget(t.target),o=e.cellCtrl,n=e.rowCtrl;(null==o?void 0:o.isEditing())||(null==n?void 0:n.isEditing())||(t.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},e.prototype.onCtrlAndV=function(t){var e=this.getControlsForEventTarget(t.target),o=e.cellCtrl,n=e.rowCtrl;(null==o?void 0:o.isEditing())||(null==n?void 0:n.isEditing())||this.clipboardService&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},e.prototype.onCtrlAndD=function(t){this.clipboardService&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),t.preventDefault()},e.prototype.onCtrlAndZ=function(t){this.gridOptionsService.is("undoRedoCellEditing")&&(t.preventDefault(),t.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},e.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},bu([X("mouseEventService")],e.prototype,"mouseEventService",void 0),bu([X("valueService")],e.prototype,"valueService",void 0),bu([J("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),bu([X("ctrlsService")],e.prototype,"ctrlsService",void 0),bu([X("navigationService")],e.prototype,"navigationService",void 0),bu([X("focusService")],e.prototype,"focusService",void 0),bu([X("undoRedoService")],e.prototype,"undoRedoService",void 0),bu([X("columnModel")],e.prototype,"columnModel",void 0),bu([X("paginationProxy")],e.prototype,"paginationProxy",void 0),bu([X("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),bu([J("rangeService")],e.prototype,"rangeService",void 0),bu([J("clipboardService")],e.prototype,"clipboardService",void 0),bu([Y],e.prototype,"postConstruct",null),e}(Bt),Du=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_u=function(t){function e(e){var o=t.call(this)||this;return o.centerContainerCtrl=e,o}return Du(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.listenForResize()})),this.addManagedListener(this.eventService,qt.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},e.prototype.listenForResize=function(){var t=this,e=function(){return t.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(e),this.gridBodyCtrl.registerBodyViewportResizeListener(e)},e.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},e.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var t=this.centerContainerCtrl.getCenterWidth();t!==this.centerWidth&&(this.centerWidth=t,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},e.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},e.prototype.getBodyHeight=function(){return this.bodyHeight},e.prototype.checkBodyHeight=function(){var t=yn(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==t){this.bodyHeight=t;var e={type:qt.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(e)}},e.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},e.prototype.updateScrollVisibleServiceImpl=function(){var t={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(t)},e.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},e.prototype.onHorizontalViewportChanged=function(){var t=this.centerContainerCtrl.getCenterWidth(),e=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(t,e)},Pu([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Pu([X("columnModel")],e.prototype,"columnModel",void 0),Pu([X("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Pu([Y],e.prototype,"postConstruct",null),e}(Bt),Au=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lu=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return Au(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,qt.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},e.prototype.onPinnedLeftWidthChanged=function(){var t=this.pinnedWidthService.getPinnedLeftWidth(),e=t>0;dn(this.element,e),Vn(this.element,t)},e.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},Fu([X("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),Fu([Y],e.prototype,"postConstruct",null),e}(Bt),Iu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Nu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Mu=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return Iu(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,qt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},e.prototype.onPinnedRightWidthChanged=function(){var t=this.pinnedWidthService.getPinnedRightWidth(),e=t>0;dn(this.element,e),Vn(this.element,t)},e.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},Nu([X("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),Nu([Y],e.prototype,"postConstruct",null),e}(Bt),Gu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Vu=function(t){function e(e,o){var n=t.call(this)||this;return n.eContainer=e,n.eViewport=o,n}return Gu(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,qt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},e.prototype.onHeightChanged=function(){var t=this.maxDivHeightScaler.getUiContainerHeight(),e=null!=t?t+"px":"";this.eContainer.style.height=e,this.eViewport&&(this.eViewport.style.height=e)},xu([X("rowContainerHeightService")],e.prototype,"maxDivHeightScaler",void 0),xu([Y],e.prototype,"postConstruct",null),e}(Bt),Hu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ku=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Bu=function(t){function e(e){var o=t.call(this)||this;return o.eContainer=e,o}return Hu(e,t),e.prototype.postConstruct=function(){var t=this;if(this.gridOptionsService.is("enableRangeSelection")&&!o(this.rangeService)){var e={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.dragService.addDragSource(e),this.addDestroyFunc((function(){return t.dragService.removeDragSource(e)}))}},ku([J("rangeService")],e.prototype,"rangeService",void 0),ku([X("dragService")],e.prototype,"dragService",void 0),ku([Y],e.prototype,"postConstruct",null),e}(Bt),ju=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Uu=function(t){function e(e,o){void 0===o&&(o=!1);var n=t.call(this)||this;return n.callback=e,n.addSpacer=o,n}return ju(e,t),e.prototype.postConstruct=function(){var t=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",t),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedListener(this.eventService,qt.EVENT_LEFT_PINNED_WIDTH_CHANGED,t),this.addSpacer&&(this.addManagedListener(this.eventService,qt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,t),this.addManagedListener(this.eventService,qt.EVENT_SCROLL_VISIBILITY_CHANGED,t),this.addManagedListener(this.eventService,qt.EVENT_SCROLLBAR_WIDTH_CHANGED,t)),this.setWidth()},e.prototype.setWidth=function(){var t,e=this.columnModel,o=this.gridOptionsService.isDomLayout("print"),n=e.getBodyContainerWidth(),i=e.getDisplayedColumnsLeftWidth(),r=e.getDisplayedColumnsRightWidth();o?t=n+i+r:(t=n,this.addSpacer&&0===(this.gridOptionsService.is("enableRtl")?i:r)&&this.scrollVisibleService.isVerticalScrollShowing()&&(t+=this.gridOptionsService.getScrollbarWidth()));this.callback(t)},Wu([X("columnModel")],e.prototype,"columnModel",void 0),Wu([X("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Wu([Y],e.prototype,"postConstruct",null),e}(Bt),zu=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ku=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Yu=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},qu=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t};function Qu(t){switch(t){case Cu.CENTER:case Cu.TOP_CENTER:case Cu.STICKY_TOP_CENTER:case Cu.BOTTOM_CENTER:return wu.CENTER;case Cu.LEFT:case Cu.TOP_LEFT:case Cu.STICKY_TOP_LEFT:case Cu.BOTTOM_LEFT:return wu.LEFT;case Cu.RIGHT:case Cu.TOP_RIGHT:case Cu.STICKY_TOP_RIGHT:case Cu.BOTTOM_RIGHT:return wu.RIGHT;case Cu.FULL_WIDTH:case Cu.TOP_FULL_WIDTH:case Cu.STICKY_TOP_FULL_WIDTH:case Cu.BOTTOM_FULL_WIDTH:return wu.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}!function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth",t.TOP_LEFT="topLeft",t.TOP_RIGHT="topRight",t.TOP_CENTER="topCenter",t.TOP_FULL_WIDTH="topFullWidth",t.STICKY_TOP_LEFT="stickyTopLeft",t.STICKY_TOP_RIGHT="stickyTopRight",t.STICKY_TOP_CENTER="stickyTopCenter",t.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",t.BOTTOM_LEFT="bottomLeft",t.BOTTOM_RIGHT="bottomRight",t.BOTTOM_CENTER="bottomCenter",t.BOTTOM_FULL_WIDTH="bottomFullWidth"}(Cu||(Cu={})),function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth"}(wu||(wu={}));var Xu=se([[Cu.CENTER,"ag-center-cols-container"],[Cu.LEFT,"ag-pinned-left-cols-container"],[Cu.RIGHT,"ag-pinned-right-cols-container"],[Cu.FULL_WIDTH,"ag-full-width-container"],[Cu.TOP_CENTER,"ag-floating-top-container"],[Cu.TOP_LEFT,"ag-pinned-left-floating-top"],[Cu.TOP_RIGHT,"ag-pinned-right-floating-top"],[Cu.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[Cu.STICKY_TOP_CENTER,"ag-sticky-top-container"],[Cu.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[Cu.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[Cu.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[Cu.BOTTOM_CENTER,"ag-floating-bottom-container"],[Cu.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[Cu.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[Cu.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Ju=se([[Cu.CENTER,"ag-center-cols-viewport"],[Cu.TOP_CENTER,"ag-floating-top-viewport"],[Cu.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[Cu.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Zu=function(t){function e(e){var o=t.call(this)||this;return o.visible=!0,o.EMPTY_CTRLS=[],o.name=e,o.isFullWithContainer=o.name===Cu.TOP_FULL_WIDTH||o.name===Cu.STICKY_TOP_FULL_WIDTH||o.name===Cu.BOTTOM_FULL_WIDTH||o.name===Cu.FULL_WIDTH,o}return zu(e,t),e.getRowContainerCssClasses=function(t){return{container:Xu.get(t),viewport:Ju.get(t)}},e.getPinned=function(t){switch(t){case Cu.BOTTOM_LEFT:case Cu.TOP_LEFT:case Cu.STICKY_TOP_LEFT:case Cu.LEFT:return"left";case Cu.BOTTOM_RIGHT:case Cu.TOP_RIGHT:case Cu.STICKY_TOP_RIGHT:case Cu.RIGHT:return"right";default:return null}},e.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.embedFullWidthRows=this.gridOptionsService.is("embedFullWidthRows"),this.forContainers([Cu.CENTER],(function(){return t.viewportSizeFeature=t.createManagedBean(new _u(t))}))},e.prototype.registerWithCtrlsService=function(){switch(this.name){case Cu.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case Cu.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case Cu.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case Cu.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case Cu.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case Cu.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case Cu.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case Cu.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case Cu.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case Cu.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case Cu.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case Cu.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},e.prototype.forContainers=function(t,e){t.indexOf(this.name)>=0&&e()},e.prototype.getContainerElement=function(){return this.eContainer},e.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},e.prototype.setComp=function(t,e,o){var n=this;this.comp=t,this.eContainer=e,this.eViewport=o,this.createManagedBean(new Tu(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var i=[Cu.TOP_CENTER,Cu.TOP_LEFT,Cu.TOP_RIGHT],r=[Cu.STICKY_TOP_CENTER,Cu.STICKY_TOP_LEFT,Cu.STICKY_TOP_RIGHT],s=[Cu.BOTTOM_CENTER,Cu.BOTTOM_LEFT,Cu.BOTTOM_RIGHT],a=[Cu.CENTER,Cu.LEFT,Cu.RIGHT],l=qu(qu(qu(qu([],Yu(i)),Yu(s)),Yu(a)),Yu(r)),u=[Cu.CENTER,Cu.LEFT,Cu.RIGHT,Cu.FULL_WIDTH],c=[Cu.CENTER,Cu.TOP_CENTER,Cu.STICKY_TOP_CENTER,Cu.BOTTOM_CENTER],p=[Cu.LEFT,Cu.BOTTOM_LEFT,Cu.TOP_LEFT,Cu.STICKY_TOP_LEFT],d=[Cu.RIGHT,Cu.BOTTOM_RIGHT,Cu.TOP_RIGHT,Cu.STICKY_TOP_RIGHT];this.forContainers(p,(function(){n.pinnedWidthFeature=n.createManagedBean(new Lu(n.eContainer)),n.addManagedListener(n.eventService,qt.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return n.onPinnedWidthChanged()}))})),this.forContainers(d,(function(){n.pinnedWidthFeature=n.createManagedBean(new Mu(n.eContainer)),n.addManagedListener(n.eventService,qt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return n.onPinnedWidthChanged()}))})),this.forContainers(u,(function(){return n.createManagedBean(new Vu(n.eContainer,n.name===Cu.CENTER?o:void 0))})),this.forContainers(l,(function(){return n.createManagedBean(new Bu(n.eContainer))})),this.forContainers(c,(function(){return n.createManagedBean(new Uu((function(t){return n.comp.setContainerWidth(t+"px")})))})),Yo()&&(this.forContainers([Cu.CENTER],(function(){var t=n.enableRtl?qt.EVENT_LEFT_PINNED_WIDTH_CHANGED:qt.EVENT_RIGHT_PINNED_WIDTH_CHANGED;n.addManagedListener(n.eventService,t,(function(){return n.refreshPaddingForFakeScrollbar()}))})),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},e.prototype.refreshPaddingForFakeScrollbar=function(){var t=this.enableRtl,e=this.columnModel,o=this.eContainer,n=t?Cu.LEFT:Cu.RIGHT;this.forContainers([Cu.CENTER,n],(function(){var i=e.getContainerWidth(n),r=t?"marginLeft":"marginRight";o.style[r]=i?"16px":"0px"}))},e.prototype.addListeners=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return t.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return t.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_ROWS_CHANGED,(function(e){return t.onDisplayedRowsChanged(e.afterScroll)})),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},e.prototype.listenOnDomOrder=function(){var t=this;if([Cu.STICKY_TOP_CENTER,Cu.STICKY_TOP_LEFT,Cu.STICKY_TOP_RIGHT,Cu.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var e=function(){var e=t.gridOptionsService.is("ensureDomOrder"),o=t.gridOptionsService.isDomLayout("print");t.comp.setDomOrder(e||o)};this.addManagedPropertyListener("domLayout",e),e()}},e.prototype.stopHScrollOnPinnedRows=function(){var t=this;this.forContainers([Cu.TOP_CENTER,Cu.STICKY_TOP_CENTER,Cu.BOTTOM_CENTER],(function(){t.addManagedListener(t.eViewport,"scroll",(function(){return t.eViewport.scrollLeft=0}))}))},e.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([Cu.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([Cu.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.addPreventScrollWhileDragging=function(){var t=this,e=function(e){t.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eContainer.addEventListener("touchmove",e,{passive:!1}),this.addDestroyFunc((function(){return t.eContainer.removeEventListener("touchmove",e)}))},e.prototype.onHorizontalViewportChanged=function(t){void 0===t&&(t=!1);var e=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,o,t)},e.prototype.getCenterWidth=function(){return mn(this.eViewport)},e.prototype.getCenterViewportScrollLeft=function(){return Rn(this.eViewport,this.enableRtl)},e.prototype.registerViewportResizeListener=function(t){var e=this.resizeObserverService.observeResize(this.eViewport,t);this.addDestroyFunc((function(){return e()}))},e.prototype.isViewportVisible=function(){return Dn(this.eViewport)},e.prototype.getViewportScrollLeft=function(){return Rn(this.eViewport,this.enableRtl)},e.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||Mn(this.eViewport)},e.prototype.getViewportElement=function(){return this.eViewport},e.prototype.setContainerTranslateX=function(t){this.eContainer.style.transform="translateX("+t+"px)"},e.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},e.prototype.setCenterViewportScrollLeft=function(t){bn(this.eViewport,t,this.enableRtl)},e.prototype.isContainerVisible=function(){return!e.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},e.prototype.onPinnedWidthChanged=function(){var t=this.isContainerVisible();this.visible!=t&&(this.visible=t,this.onDisplayedRowsChanged()),Yo()&&this.refreshPaddingForFakeScrollbar()},e.prototype.onDisplayedRowsChanged=function(t){var e=this;if(void 0===t&&(t=!1),this.visible){var o=this.gridOptionsService.isDomLayout("print"),n=this.getRowCtrls().filter((function(t){var n=t.isFullWidth(),i=e.embedFullWidthRows||o;return e.isFullWithContainer?!i&&n:i||!n}));this.comp.setRowCtrls(n,t)}else this.comp.setRowCtrls(this.EMPTY_CTRLS,!1)},e.prototype.getRowCtrls=function(){switch(this.name){case Cu.TOP_CENTER:case Cu.TOP_LEFT:case Cu.TOP_RIGHT:case Cu.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case Cu.STICKY_TOP_CENTER:case Cu.STICKY_TOP_LEFT:case Cu.STICKY_TOP_RIGHT:case Cu.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case Cu.BOTTOM_CENTER:case Cu.BOTTOM_LEFT:case Cu.BOTTOM_RIGHT:case Cu.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},Ku([X("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Ku([X("dragService")],e.prototype,"dragService",void 0),Ku([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Ku([X("columnModel")],e.prototype,"columnModel",void 0),Ku([X("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ku([X("animationFrameService")],e.prototype,"animationFrameService",void 0),Ku([X("rowRenderer")],e.prototype,"rowRenderer",void 0),Ku([Y],e.prototype,"postConstruct",null),e}(Bt),$u=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),tc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ec='<div class="ag-root ag-unselectable" role="treegrid">\n        <ag-header-root ref="gridHeader"></ag-header-root>\n        <div class="ag-floating-top" ref="eTop" role="presentation">\n            <ag-row-container ref="topLeftContainer" name="'+Cu.TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="topCenterContainer" name="'+Cu.TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="topRightContainer" name="'+Cu.TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="topFullWidthContainer" name="'+Cu.TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-body" ref="eBody" role="presentation">\n            <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n                <ag-row-container ref="leftContainer" name="'+Cu.LEFT+'"></ag-row-container>\n                <ag-row-container ref="centerContainer" name="'+Cu.CENTER+'"></ag-row-container>\n                <ag-row-container ref="rightContainer" name="'+Cu.RIGHT+'"></ag-row-container>\n                <ag-row-container ref="fullWidthContainer" name="'+Cu.FULL_WIDTH+'"></ag-row-container>\n            </div>\n            <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\n        </div>\n        <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n            <ag-row-container ref="stickyTopLeftContainer" name="'+Cu.STICKY_TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="stickyTopCenterContainer" name="'+Cu.STICKY_TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="stickyTopRightContainer" name="'+Cu.STICKY_TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="stickyTopFullWidthContainer" name="'+Cu.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n            <ag-row-container ref="bottomLeftContainer" name="'+Cu.BOTTOM_LEFT+'"></ag-row-container>\n            <ag-row-container ref="bottomCenterContainer" name="'+Cu.BOTTOM_CENTER+'"></ag-row-container>\n            <ag-row-container ref="bottomRightContainer" name="'+Cu.BOTTOM_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="bottomFullWidthContainer" name="'+Cu.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n        <ag-overlay-wrapper></ag-overlay-wrapper>\n    </div>',oc=function(t){function e(){return t.call(this,ec)||this}return $u(e,t),e.prototype.init=function(){var t=this,e=function(t,e){var o=t+"px";e.style.minHeight=o,e.style.height=o},o={setRowAnimationCssOnBodyViewport:function(e,o){return t.setRowAnimationCssOnBodyViewport(e,o)},setColumnCount:function(e){return vo(t.getGui(),e)},setRowCount:function(e){return fo(t.getGui(),e)},setTopHeight:function(o){return e(o,t.eTop)},setBottomHeight:function(o){return e(o,t.eBottom)},setTopDisplay:function(e){return t.eTop.style.display=e},setBottomDisplay:function(e){return t.eBottom.style.display=e},setStickyTopHeight:function(e){return t.eStickyTop.style.height=e},setStickyTopTop:function(e){return t.eStickyTop.style.top=e},setStickyTopWidth:function(e){return t.eStickyTop.style.width=e},setColumnMovingCss:function(e,o){return t.addOrRemoveCssClass(e,o)},updateLayoutClasses:function(e,o){[t.eBodyViewport.classList,t.eBody.classList].forEach((function(t){t.toggle(hl.AUTO_HEIGHT,o.autoHeight),t.toggle(hl.NORMAL,o.normal),t.toggle(hl.PRINT,o.print)})),t.addOrRemoveCssClass(hl.AUTO_HEIGHT,o.autoHeight),t.addOrRemoveCssClass(hl.NORMAL,o.normal),t.addOrRemoveCssClass(hl.PRINT,o.print)},setAlwaysVerticalScrollClass:function(e,o){return t.eBodyViewport.classList.toggle("ag-force-vertical-scroll",o)},registerBodyViewportResizeListener:function(e){var o=t.resizeObserverService.observeResize(t.eBodyViewport,e);t.addDestroyFunc((function(){return o()}))},setPinnedTopBottomOverflowY:function(e){return t.eTop.style.overflowY=t.eBottom.style.overflowY=e},setCellSelectableCss:function(e,o){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(t){return t.classList.toggle(e,o)}))},setBodyViewportWidth:function(e){return t.eBodyViewport.style.width=e}};this.ctrl=this.createManagedBean(new Yl),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&ho(this.getGui(),!0)},e.prototype.setRowAnimationCssOnBodyViewport=function(t,e){var o=this.eBodyViewport.classList;o.toggle(Ml.ANIMATION_ON,e),o.toggle(Ml.ANIMATION_OFF,!e)},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},tc([X("resizeObserverService")],e.prototype,"resizeObserverService",void 0),tc([J("rangeService")],e.prototype,"rangeService",void 0),tc([Pi("eBodyViewport")],e.prototype,"eBodyViewport",void 0),tc([Pi("eStickyTop")],e.prototype,"eStickyTop",void 0),tc([Pi("eTop")],e.prototype,"eTop",void 0),tc([Pi("eBottom")],e.prototype,"eBottom",void 0),tc([Pi("gridHeader")],e.prototype,"headerRootComp",void 0),tc([Pi("eBody")],e.prototype,"eBody",void 0),tc([Y],e.prototype,"init",null),e}(Ti),nc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ic=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},rc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nc(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},e.prototype.onDisplayedColumnsChanged=function(){this.update()},e.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},e.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},e.prototype.updateImpl=function(){var t=this.ctrlsService.getCenterRowContainerCtrl();if(t){var e={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(e)}},e.prototype.setScrollsVisible=function(t){if(this.horizontalScrollShowing!==t.horizontalScrollShowing||this.verticalScrollShowing!==t.verticalScrollShowing){this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing;var e={type:qt.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(e)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},ic([X("ctrlsService")],e.prototype,"ctrlsService",void 0),ic([Y],e.prototype,"postConstruct",null),e=ic([Q("scrollVisibleService")],e)}(Bt),sc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ac=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},lc=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridInstanceId=n.gridInstanceSequence.next(),e}var n;return sc(o,t),n=o,o.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[n.GRID_DOM_KEY]=this.gridInstanceId},o.prototype.getRenderedCellForEvent=function(t){return It(this.gridOptionsService,t.target,fu.DOM_DATA_KEY_CELL_CTRL)},o.prototype.isEventFromThisGrid=function(t){return this.isElementInThisGrid(t.target)},o.prototype.isElementInThisGrid=function(t){for(var o=t;o;){var i=o[n.GRID_DOM_KEY];if(e(i))return i===this.gridInstanceId;o=o.parentElement}return!1},o.prototype.getCellPositionForEvent=function(t){var e=this.getRenderedCellForEvent(t);return e?e.getCellPosition():null},o.prototype.getNormalisedPosition=function(t){var e,o,n=this.gridOptionsService.isDomLayout("normal"),i=t;if(null!=i.clientX||null!=i.clientY?(e=i.clientX,o=i.clientY):(e=i.x,o=i.y),n){var r=this.ctrlsService.getGridBodyCtrl(),s=r.getScrollFeature().getVScrollPosition();e+=r.getScrollFeature().getHScrollPosition().left,o+=s.top}return{x:e,y:o}},o.gridInstanceSequence=new hi,o.GRID_DOM_KEY="__ag_grid_instance",ac([X("ctrlsService")],o.prototype,"ctrlsService",void 0),o=n=ac([Q("mouseEventService")],o)}(Bt),uc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),cc=function(){return(cc=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},pc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},dc=function(t){function n(){var e=t.call(this)||this;return e.onPageDown=M(e.onPageDown,100),e.onPageUp=M(e.onPageUp,100),e}return uc(n,t),n.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},n.prototype.handlePageScrollingKey=function(t,e){void 0===e&&(e=!1);var o=t.key,n=t.altKey,i=t.ctrlKey||t.metaKey,r=!!this.rangeService&&t.shiftKey,s=this.mouseEventService.getCellPositionForEvent(t),a=!1;switch(o){case Zn.PAGE_HOME:case Zn.PAGE_END:i||n||(this.onHomeOrEndKey(o),a=!0);break;case Zn.LEFT:case Zn.RIGHT:case Zn.UP:case Zn.DOWN:if(!s)return!1;!i||n||r||(this.onCtrlUpDownLeftRight(o,s),a=!0);break;case Zn.PAGE_DOWN:case Zn.PAGE_UP:i||n||(a=this.handlePageUpDown(o,s,e))}return a&&t.preventDefault(),a},n.prototype.handlePageUpDown=function(t,e,o){return o&&(e=this.focusService.getFocusedCell()),!!e&&(t===Zn.PAGE_UP?this.onPageUp(e):this.onPageDown(e),!0)},n.prototype.navigateTo=function(t){var o=t.scrollIndex,n=t.scrollType,i=t.scrollColumn,r=t.focusIndex,s=t.focusColumn;if(e(i)&&!i.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(i),e(o)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(o,n),t.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(r),this.focusService.setFocusedCell({rowIndex:r,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:r,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},n.prototype.onPageDown=function(t){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.getViewportHeight(),n=this.paginationProxy.getPixelOffset(),i=e.top+o,r=this.paginationProxy.getRowIndexAtPixel(i+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,r):this.navigateToNextPage(t,r)},n.prototype.onPageUp=function(t){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.paginationProxy.getPixelOffset(),n=e.top,i=this.paginationProxy.getRowIndexAtPixel(n+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,i,!0):this.navigateToNextPage(t,i,!0)},n.prototype.navigateToNextPage=function(t,e,o){void 0===o&&(o=!1);var n,i=this.getViewportHeight(),r=this.paginationProxy.getPageFirstRow(),s=this.paginationProxy.getPageLastRow(),a=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRow(t.rowIndex),u=o?(null==l?void 0:l.rowHeight)-i-a:i-a,c=(null==l?void 0:l.rowTop)+u,p=this.paginationProxy.getRowIndexAtPixel(c+a);if(p===t.rowIndex){var d=o?-1:1;e=p=t.rowIndex+d}o?(n="bottom",p<r&&(p=r),e<r&&(e=r)):(n="top",p>s&&(p=s),e>s&&(e=s)),this.isRowTallerThanView(p)&&(e=p,n="top"),this.navigateTo({scrollIndex:e,scrollType:n,scrollColumn:null,focusIndex:p,focusColumn:t.column})},n.prototype.navigateToNextPageWithAutoHeight=function(t,e,o){var n=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:e,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:e,focusColumn:t.column}),setTimeout((function(){var i=n.getNextFocusIndexForAutoHeight(t,o);n.navigateTo({scrollIndex:e,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:t.column,isAsync:!0})}),50)},n.prototype.getNextFocusIndexForAutoHeight=function(t,e){var o;void 0===e&&(e=!1);for(var n=e?-1:1,i=this.getViewportHeight(),r=this.paginationProxy.getPageLastRow(),s=0,a=t.rowIndex;a>=0&&a<=r;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(o=l.rowHeight)&&void 0!==o?o:0;if(s+u>i)break;s+=u}a+=n}return Math.max(0,Math.min(a,r))},n.prototype.getViewportHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),e=this.gridOptionsService.getScrollbarWidth(),o=t.bottom-t.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(o-=e),o},n.prototype.isRowTallerThanView=function(t){var e=this.paginationProxy.getRow(t);if(!e)return!1;var o=e.rowHeight;return"number"==typeof o&&o>this.getViewportHeight()},n.prototype.onCtrlUpDownLeftRight=function(t,e){var o=this.cellNavigationService.getNextCellToFocus(t,e,!0),n=o.rowIndex,i=o.column;this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:i,focusIndex:n,focusColumn:i})},n.prototype.onHomeOrEndKey=function(t){var e=t===Zn.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),n=e?o[0]:ft(o),i=e?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:n,focusIndex:i,focusColumn:n})},n.prototype.onTabKeyDown=function(t,e){var o=e.shiftKey;if(this.tabToNextCellCommon(t,o,e))e.preventDefault();else if(o){var n=t.getRowPosition(),i=n.rowIndex;(n.rowPinned?0===i:i===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusNextGridCoreContainer(!0,!0):(e.preventDefault(),this.focusService.focusPreviousFromFirstCell(e)))}else t instanceof fu&&t.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&e.preventDefault()},n.prototype.tabToNextCell=function(t,e){var o=this.focusService.getFocusedCell();if(!o)return!1;var n=this.getCellByPosition(o);return!!(n||(n=this.rowRenderer.getRowByPosition(o))&&n.isFullWidth())&&this.tabToNextCellCommon(n,t,e)},n.prototype.tabToNextCellCommon=function(t,e,o){var n=t.isEditing();if(!n&&t instanceof fu){var i=t.getRowCtrl();i&&(n=i.isEditing())}return(n?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(t,e,o):this.moveToNextEditingCell(t,e,o):this.moveToNextCellNotEditing(t,e))||!!this.focusService.getFocusedHeader()},n.prototype.moveToNextEditingCell=function(t,e,o){void 0===o&&(o=null);var n=t.getCellPosition();t.getGui().focus(),t.stopEditing();var i=this.findNextCellToFocusOn(n,e,!0);return null!=i&&(i.startEditing(null,!0,o),i.focusCell(!1),!0)},n.prototype.moveToNextEditingRow=function(t,e,o){void 0===o&&(o=null);var n=t.getCellPosition(),i=this.findNextCellToFocusOn(n,e,!0);if(null==i)return!1;var r=i.getCellPosition(),s=this.isCellEditable(n),a=this.isCellEditable(r),l=r&&n.rowIndex===r.rowIndex&&n.rowPinned===r.rowPinned;(s&&t.setFocusOutOnEditor(),l)||(t.getRowCtrl().stopEditing(),i.getRowCtrl().startRowEditing(void 0,void 0,o));return a?(i.setFocusInOnEditor(),i.focusCell()):i.focusCell(!0),!0},n.prototype.moveToNextCellNotEditing=function(t,o){var n,i=this.columnModel.getAllDisplayedColumns();n=t instanceof Eu?cc(cc({},t.getRowPosition()),{column:o?i[0]:ft(i)}):t.getCellPosition();var r=this.findNextCellToFocusOn(n,o,!1);if(r instanceof fu)r.focusCell(!0);else if(r)return this.tryToFocusFullWidthRow(r.getRowPosition(),o);return e(r)},n.prototype.findNextCellToFocusOn=function(t,o,n){for(var i=t;;){t!==i&&(t=i),o||(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextTabbedCell(i,o);var r=this.gridOptionsService.getCallback("tabToNextCell");if(e(r)){var s=r({backwards:o,editing:n,previousCellPosition:t,nextCellPosition:i||null});e(s)?(s.floating&&(T((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),i={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):i=null}if(!i)return null;if(i.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+i.rowIndex,column:i.column},fromCell:!0}),null}var l="fullRow"===this.gridOptionsService.get("editType");if(n&&!l)if(!this.isCellEditable(i))continue;this.ensureCellVisible(i);var u=this.getCellByPosition(i);if(!u){var c=this.rowRenderer.getRowByPosition(i);if(!c||!c.isFullWidth()||n)continue;return c}if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(i),u}},n.prototype.isCellEditable=function(t){var e=this.lookupRowNodeForCell(t);return!!e&&t.column.isCellEditable(e)},n.prototype.getCellByPosition=function(t){var e=this.rowRenderer.getRowByPosition(t);return e?e.getCellCtrl(t.column):null},n.prototype.lookupRowNodeForCell=function(t){return"top"===t.rowPinned?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):"bottom"===t.rowPinned?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},n.prototype.navigateToNextCell=function(t,n,i,r){for(var s=i,a=!1;s&&(s===i||!this.isValidNavigateCell(s));)this.gridOptionsService.is("enableRtl")?n===Zn.LEFT&&(s=this.getLastCellOfColSpan(s)):n===Zn.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=o(s=this.cellNavigationService.getNextCellToFocus(n,s));if(a&&t&&t.key===Zn.UP&&(s={rowIndex:-1,rowPinned:null,column:i.column}),r){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(e(l)){var u=l({key:n,previousCellPosition:i,nextCellPosition:s||null,event:t});e(u)?(u.floating&&(T((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:i.column},event:t||void 0,fromCell:!0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},n.prototype.getNormalisedPosition=function(t){this.ensureCellVisible(t);var e=this.getCellByPosition(t);return e?(t=e.getCellPosition(),this.ensureCellVisible(t),t):null},n.prototype.tryToFocusFullWidthRow=function(t,e){void 0===e&&(e=!1);var o=this.columnModel.getAllDisplayedColumns(),n=this.rowRenderer.getRowByPosition(t);if(!n||!n.isFullWidth())return!1;var i=this.focusService.getFocusedCell(),r={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column||(e?ft(o):o[0])};this.focusPosition(r);var s=null!=i&&this.rowPositionUtils.before(r,i),a={type:qt.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:r.column,isFullWidthCell:!0,floating:r.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},n.prototype.focusPosition=function(t){this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(t)},n.prototype.isValidNavigateCell=function(t){return!!this.rowPositionUtils.getRowNode(t)},n.prototype.getLastCellOfColSpan=function(t){var e=this.getCellByPosition(t);if(!e)return t;var o=e.getColSpanningList();return 1===o.length?t:{rowIndex:t.rowIndex,column:ft(o),rowPinned:t.rowPinned}},n.prototype.ensureCellVisible=function(t){var e=this.gridOptionsService.isGroupRowsSticky(),n=this.rowModel.getRow(t.rowIndex);!(e&&(null==n?void 0:n.sticky))&&o(t.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(t.column)},pc([X("mouseEventService")],n.prototype,"mouseEventService",void 0),pc([X("paginationProxy")],n.prototype,"paginationProxy",void 0),pc([X("focusService")],n.prototype,"focusService",void 0),pc([J("rangeService")],n.prototype,"rangeService",void 0),pc([X("columnModel")],n.prototype,"columnModel",void 0),pc([X("rowModel")],n.prototype,"rowModel",void 0),pc([X("ctrlsService")],n.prototype,"ctrlsService",void 0),pc([X("rowRenderer")],n.prototype,"rowRenderer",void 0),pc([X("headerNavigationService")],n.prototype,"headerNavigationService",void 0),pc([X("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),pc([X("cellNavigationService")],n.prototype,"cellNavigationService",void 0),pc([X("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),pc([Y],n.prototype,"postConstruct",null),n=pc([Q("navigationService")],n)}(Bt),hc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),fc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},gc=function(t){function e(e){var o=t.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.params=e,o}return hc(e,t),e.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),e.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},e.prototype.addKeyDownListener=function(){var t=this,e=this.getGui(),o=this.params;this.addManagedListener(e,"keydown",(function(e){ti(t.gridOptionsService,e,o.node,o.column,!0)||o.onKeyDown(e)}))},e.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",fc([Y],e.prototype,"postConstruct",null),e}(gs),vc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),yc=function(t){function e(e,o,n,i,r){var s=t.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=e,s.column=o.getColumn(),s.rowNode=o.getRowNode(),s.rowCtrl=o.getRowCtrl(),s.eRow=i,s.cellCtrl=o,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=o.isForceWrapper(),s.refreshWrapper(!1);var l=function(t,e){null!=e&&""!=e?a.setAttribute(t,e):a.removeAttribute(t)};Qe(a,"gridcell"),l("col-id",o.getColumnIdSanitised());var u=o.getTabIndex();void 0!==u&&l("tabindex",u.toString());var c={addOrRemoveCssClass:function(t,e){return s.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return Nn(a,t)},getFocusableElement:function(){return s.getFocusableElement()},setIncludeSelection:function(t){return s.includeSelection=t},setIncludeRowDrag:function(t){return s.includeRowDrag=t},setIncludeDndSource:function(t){return s.includeDndSource=t},setRenderDetails:function(t,e,o){return s.setRenderDetails(t,e,o)},setEditDetails:function(t,e,o){return s.setEditDetails(t,e,o)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return o.setComp(c,s.getGui(),s.eCellWrapper,n,r),s}return vc(e,t),e.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},e.prototype.setRenderDetails=function(t,e,o){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var n=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),t)!(o||n)&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(e)}},e.prototype.setEditDetails=function(t,e,o){t?this.createCellEditorInstance(t,e,o):this.destroyEditor()},e.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)},e.prototype.refreshWrapper=function(t){var e=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=e||this.forceWrapper,n=o&&null==this.eCellWrapper;n&&(this.eCellWrapper=Pn('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var i=!o&&null!=this.eCellWrapper;i&&(Tn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var r=!t&&o,s=r&&null==this.eCellValue;s&&(this.eCellValue=Pn('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!r&&null!=this.eCellValue;a&&(Tn(this.eCellValue),this.eCellValue=void 0);var l=n||i||s||a;return l&&this.removeControls(),t||e&&this.addControls(),l},e.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))},e.prototype.createCellEditorInstance=function(t,e,n){var i=this,r=this.editorVersion,s=t.newAgStackInstance();if(s){var a=t.params;s.then((function(t){return i.afterCellEditorCreated(r,t,a,e,n)})),o(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},e.prototype.insertValueWithoutCellRenderer=function(t){var e=this.getParentOfValue();On(e);var o=null!=t?oe(t):null;null!=o&&(e.innerHTML=o)},e.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},e.prototype.destroyRenderer=function(){var t=this.beans.context;this.cellRenderer=t.destroyBean(this.cellRenderer),Tn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},e.prototype.destroyEditor=function(){var t=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),Tn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},e.prototype.refreshCellRenderer=function(t){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==t.componentClass)return!1;var e=this.cellRenderer.refresh(t.params);return!0===e||void 0===e},e.prototype.createCellRendererInstance=function(t){var e=this,o=!this.beans.gridOptionsService.is("suppressAnimationFrame"),n=this.rendererVersion,i=t.componentClass,r=function(){if(!(e.rendererVersion!==n||!e.isAlive())){var o=t.newAgStackInstance(),r=e.afterCellRendererCreated.bind(e,n,i);o&&o.then(r)}};o&&this.firstRender?this.beans.animationFrameService.createTask(r,this.rowNode.rowIndex,"createTasksP2"):r()},e.prototype.getCtrl=function(){return this.cellCtrl},e.prototype.getRowCtrl=function(){return this.rowCtrl},e.prototype.getCellRenderer=function(){return this.cellRenderer},e.prototype.getCellEditor=function(){return this.cellEditor},e.prototype.afterCellRendererCreated=function(t,e,o){if(!this.isAlive()||t!==this.rendererVersion)this.beans.context.destroyBean(o);else if(this.cellRenderer=o,this.cellRendererClass=e,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var n=this.getParentOfValue();On(n),n.appendChild(this.cellRendererGui)}},e.prototype.afterCellEditorCreated=function(t,e,o,n,i){if(t!==this.editorVersion)this.beans.context.destroyBean(e);else{if(e.isCancelBeforeStart&&e.isCancelBeforeStart())return this.beans.context.destroyBean(e),void this.cellCtrl.stopEditing(!0);if(!e.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(e);this.cellEditor=e,this.cellEditorGui=e.getGui();var r=n||void 0!==e.isPopup&&e.isPopup();r?this.addPopupCellEditor(o,i):this.addInCellEditor(),this.refreshEditStyles(!0,r),e.afterGuiAttached&&e.afterGuiAttached()}},e.prototype.refreshEditStyles=function(t,e){var o;this.addOrRemoveCssClass("ag-cell-inline-editing",t&&!e),this.addOrRemoveCssClass("ag-cell-popup-editing",t&&!!e),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!t||!!e),null===(o=this.rowCtrl)||void 0===o||o.setInlineEditingCss(t)},e.prototype.addInCellEditor=function(){var t=this.getGui(),e=this.beans.gridOptionsService.getDocument();(t.contains(e.activeElement)&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},e.prototype.addPopupCellEditor=function(t,e){var o=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 n=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new gc(t));var i=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&i.appendChild(this.cellEditorGui);var r=this.beans.popupService,s=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),a=null!=e?e:n.getPopupPosition?n.getPopupPosition():"over",l=this.beans.gridOptionsService.is("enableRtl"),u={ePopup:i,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:a,alignSide:l?"right":"left",keepWithinBounds:!0},c=r.positionPopupByComponent.bind(r,u),p=this.beans.localeService.getLocaleTextFunc(),d=r.addPopup({modal:s,eChild:i,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:p("ariaLabelCellEditor","Cell Editor")});d&&(this.hideEditorPopup=d.hideFunc)},e.prototype.detach=function(){this.eRow.removeChild(this.getGui())},e.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),t.prototype.destroy.call(this)},e.prototype.clearParentOfValue=function(){var t=this.getGui(),e=this.beans.gridOptionsService.getDocument();t.contains(e.activeElement)&&ko()&&t.focus({preventScroll:!0}),On(this.getParentOfValue())},e}(Ti),mc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cc=function(t){function e(e,o,n){var i=t.call(this)||this;i.cellComps={},i.beans=o,i.rowCtrl=e,i.setTemplate('<div comp-id="'+i.getCompId()+'" style="'+i.getInitialStyle(n)+'"/>');var r=i.getGui(),s=r.style;i.domOrder=i.rowCtrl.getDomOrder(),Qe(r,"row");var a=i.rowCtrl.getTabIndex();null!=a&&r.setAttribute("tabindex",a.toString());var l={setDomOrder:function(t){return i.domOrder=t},setCellCtrls:function(t){return i.setCellCtrls(t)},showFullWidth:function(t){return i.showFullWidth(t)},getFullWidthCellRenderer:function(){return i.getFullWidthCellRenderer()},addOrRemoveCssClass:function(t,e){return i.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return Nn(r,t)},setTop:function(t){return s.top=t},setTransform:function(t){return s.transform=t},setRowIndex:function(t){return r.setAttribute("row-index",t)},setRowId:function(t){return r.setAttribute("row-id",t)},setRowBusinessKey:function(t){return r.setAttribute("row-business-key",t)}};return e.setComp(l,i.getGui(),n),i.addDestroyFunc((function(){e.unsetComp(n)})),i}return mc(e,t),e.prototype.getInitialStyle=function(t){var e=this.rowCtrl.getInitialTransform(t),o=this.rowCtrl.getInitialRowTop(t);return e?"transform: "+e:"top: "+o},e.prototype.showFullWidth=function(t){var e=this,o=t.newAgStackInstance();o&&o.then((function(t){if(e.isAlive()){var o=t.getGui();e.getGui().appendChild(o),e.rowCtrl.setupDetailRowAutoHeight(o),e.setFullWidthRowComp(t)}else e.beans.context.destroyBean(t)}))},e.prototype.setCellCtrls=function(t){var e=this,o=Object.assign({},this.cellComps);t.forEach((function(t){var n=t.getInstanceId();null==e.cellComps[n]?e.newCellComp(t):o[n]=null}));var n=C(o).filter((function(t){return null!=t}));this.destroyCells(n),this.ensureDomOrder(t)},e.prototype.ensureDomOrder=function(t){var e=this;if(this.domOrder){var o=[];t.forEach((function(t){var n=e.cellComps[t.getInstanceId()];n&&o.push(n.getGui())})),Ln(this.getGui(),o)}},e.prototype.newCellComp=function(t){var e=new yc(this.beans,t,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[t.getInstanceId()]=e,this.getGui().appendChild(e.getGui())},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.destroyAllCells()},e.prototype.destroyAllCells=function(){var t=C(this.cellComps).filter((function(t){return null!=t}));this.destroyCells(t)},e.prototype.setFullWidthRowComp=function(t){var e=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=t,this.addDestroyFunc((function(){e.fullWidthCellRenderer=e.beans.context.destroyBean(e.fullWidthCellRenderer)}))},e.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},e.prototype.destroyCells=function(t){var e=this;t.forEach((function(t){if(t){var o=t.getCtrl().getInstanceId();e.cellComps[o]===t&&(t.detach(),t.destroy(),e.cellComps[o]=null)}}))},e}(Ti),wc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Sc=function(){return(Sc=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ec=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};var Rc,bc=function(t){function e(){var e,o,n=t.call(this,(e=Ti.elementGettingCreated.getAttribute("name"),o=Zu.getRowContainerCssClasses(e),e===Cu.CENTER||e===Cu.TOP_CENTER||e===Cu.STICKY_TOP_CENTER||e===Cu.BOTTOM_CENTER?'<div class="'+o.viewport+'" ref="eViewport" role="presentation">\n                <div class="'+o.container+'" ref="eContainer"></div>\n            </div>':'<div class="'+o.container+'" ref="eContainer"></div>'))||this;return n.rowComps={},n.name=Ti.elementGettingCreated.getAttribute("name"),n.type=Qu(n.name),n}return wc(e,t),e.prototype.postConstruct=function(){var t=this,e={setViewportHeight:function(e){return t.eViewport.style.height=e},setRowCtrls:function(e){return t.setRowCtrls(e)},setDomOrder:function(e){t.domOrder=e},setContainerWidth:function(e){return t.eContainer.style.width=e}};this.createManagedBean(new Zu(this.name)).setComp(e,this.eContainer,this.eViewport)},e.prototype.preDestroy=function(){this.setRowCtrls([])},e.prototype.setRowCtrls=function(t){var e=this,o=Sc({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;t.forEach((function(t){var n=t.getInstanceId(),i=o[n];if(i)e.rowComps[n]=i,delete o[n],e.ensureDomOrder(i.getGui());else{if(!t.getRowNode().displayed)return;var r=new Cc(t,e.beans,e.type);e.rowComps[n]=r,e.appendRow(r.getGui())}})),C(o).forEach((function(t){e.eContainer.removeChild(t.getGui()),t.destroy()})),Qe(this.eContainer,t.length?"rowgroup":"presentation")},e.prototype.appendRow=function(t){this.domOrder?In(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t},e.prototype.ensureDomOrder=function(t){this.domOrder&&(Fn(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},Ec([X("beans")],e.prototype,"beans",void 0),Ec([Pi("eViewport")],e.prototype,"eViewport",void 0),Ec([Pi("eContainer")],e.prototype,"eContainer",void 0),Ec([Y],e.prototype,"postConstruct",null),Ec([q],e.prototype,"preDestroy",null),e}(Ti),Oc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Tc=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var o=t.dragItem.columns;o&&o.forEach((function(t){t.isPrimary()&&(t.isAnyFunctionActive()||(t.isAllowValue()?e.columnsToAggregate.push(t):t.isAllowRowGroup()?e.columnsToGroup.push(t):t.isAllowPivot()&&e.columnsToPivot.push(t)))}))}},t.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Us.ICON_PINNED:Us.ICON_MOVE:null},t.prototype.onDragLeave=function(t){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(t){},t.prototype.onDragStop=function(t){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")},Oc([X("columnModel")],t.prototype,"columnModel",void 0),Oc([X("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),Dc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pc=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},_c=function(){function t(t,o){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=o,this.centerContainer=!e(t)}return t.prototype.init=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.getIconName=function(){return this.pinned?Us.ICON_PINNED:Us.ICON_MOVE},t.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===Br.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,n=(e||[]).filter((function(t){return o[t.getId()]}));this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},t.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},t.prototype.setColumnsVisible=function(t,e,o){if(void 0===o&&(o="api"),t){var n=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnModel.setColumnsVisible(n,e,o)}},t.prototype.setColumnsPinned=function(t,e,o){if(void 0===o&&(o="api"),t){var n=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnModel.setColumnsPinned(n,e,o)}},t.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},t.prototype.normaliseX=function(t){this.gridOptionsService.is("enableRtl")&&(t=this.eContainer.clientWidth-t);return this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.is("enableRtl")?(this.needToMoveRight=t<e+50,this.needToMoveLeft=t>o-50):(this.needToMoveLeft=t<e+50,this.needToMoveRight=t>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(t,e,n,i){var r,s=this;if(void 0===t&&(t=this.lastDraggingEvent),void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=!1),i){if(this.lastMovedInfo){var a=this.lastMovedInfo,l=a.columns,u=a.toIndex;this.moveColumns(l,u,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=t,!o(t.hDirection)){var c=this.normaliseX(t.x);e||this.checkCenterForScrolling(c);var p=this.normaliseDirection(t.hDirection),d=t.dragSource.type,h=(null===(r=t.dragSource.getDragItem().columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==s.pinned})))||[];this.attemptMoveColumns({dragSourceType:d,allMovingColumns:h,hDirection:p,mouseX:c,fromEnter:e,fakeEvent:n})}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsService.is("enableRtl"))return t;switch(t){case Wr.Left:return Wr.Right;case Wr.Right:return Wr.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.attemptMoveColumns=function(t){var e=t.dragSourceType,o=t.hDirection,n=t.mouseX,i=t.fromEnter,r=t.fakeEvent,s=o===Wr.Left,a=o===Wr.Right,l=t.allMovingColumns;if(e===Br.HeaderCell){var u=[];l.forEach((function(t){for(var e,o=null,n=t.getParent();null!=n&&1===n.getDisplayedLeafColumns().length;)o=n,n=n.getParent();null!=o?(!!(null===(e=o.getColGroupDef())||void 0===e?void 0:e.marryChildren)?o.getProvidedColumnGroup().getLeafColumns():o.getLeafColumns()).forEach((function(t){u.includes(t)||u.push(t)})):u.includes(t)||u.push(t)})),l=u}var c=l.slice();this.columnModel.sortColumnsLikeGridColumns(c);var p=this.calculateValidMoves(c,a,n),d=this.calculateOldIndex(c);if(0!==p.length){var h=p[0],f=null!==d&&!i;if(e==Br.HeaderCell&&(f=null!==d),f&&!r){if(s&&h>=d)return;if(a&&h<=d)return}for(var g=this.columnModel.getAllDisplayedColumns(),v=[],y=null,m=0;m<p.length;m++){var C=p[m],w=this.columnModel.getProposedColumnOrder(c,C);if(this.columnModel.doesOrderPassRules(w)){var S=w.filter((function(t){return g.includes(t)}));if(null===y)y=S;else if(!di.areEqual(S,y))break;var E=this.groupFragCount(w);v.push({move:C,fragCount:E})}}0!==v.length&&(v.sort((function(t,e){return t.fragCount-e.fragCount})),this.moveColumns(l,v[0].move,"uiColumnMoved",!1))}},t.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),o=vt(t.map((function(t){return e.indexOf(t)}))),n=o[0];return ft(o)-n!==o.length-1?null:n},t.prototype.moveColumns=function(t,e,o,n){this.columnModel.moveColumns(t,e,o,n),this.lastMovedInfo=n?null:{columns:t,toIndex:e}},t.prototype.groupFragCount=function(t){function e(t){for(var e=[],o=t.getOriginalParent();null!=o;)e.push(o),o=o.getOriginalParent();return e}for(var o=0,n=function(n){var i,r=e(t[n]),s=e(t[n+1]);r=(i=Pc(r.length>s.length?[r,s]:[s,r],2))[0],s=i[1],r.forEach((function(t){-1===s.indexOf(t)&&o++}))},i=0;i<t.length-1;i++)n(i);return o},t.prototype.calculateValidMoves=function(t,e,o){if(this.gridOptionsService.is("suppressMovableColumns")||t.some((function(t){return t.getColDef().suppressMovable})))return[];var n,i=this.columnModel.getDisplayedColumns(this.pinned),r=this.columnModel.getAllGridColumns(),s=i.filter((function(e){return Rt(t,e)})),a=i.filter((function(e){return!Rt(t,e)})),l=r.filter((function(e){return!Rt(t,e)})),u=0,c=o;if(e){var p=0;s.forEach((function(t){return p+=t.getActualWidth()})),c-=p}if(c>0){for(var d=0;d<a.length;d++){if((c-=a[d].getActualWidth())<0)break;u++}e&&u++}if(u>0){var h=a[u-1];n=l.indexOf(h)+1}else-1===(n=l.indexOf(a[0]))&&(n=0);var f=[n],g=function(t,e){return t-e};if(e){for(var v=n+1,y=r.length-1;v<=y;)f.push(v),v++;f.sort(g)}else{v=n,y=r.length-1;for(var m=r[v];v<=y&&this.isColumnHidden(i,m);)v++,f.push(v),m=r[v];v=n-1;for(;v>=0;)f.push(v),v--;f.sort(g).reverse()}return f},t.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},t.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(Us.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Us.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Us.ICON_MOVE))},t.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var e=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=o.scrollHorizontally(-t):this.needToMoveRight&&(e=o.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var n=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));if(n.length>0&&(this.dragAndDropService.setGhostIcon(Us.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?"left":"right";this.setColumnsPinned(n,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Dc([X("columnModel")],t.prototype,"columnModel",void 0),Dc([X("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Dc([X("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Dc([X("ctrlsService")],t.prototype,"ctrlsService",void 0),Dc([Y],t.prototype,"init",null),t}(),Ac=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lc=function(t){function e(e,o){var n=t.call(this)||this;return n.pinned=e,n.eContainer=o,n}return Ac(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){switch(t.pinned){case"left":t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.leftRowContainerCtrl.getContainerElement()],[e.bottomLeftRowContainerCtrl.getContainerElement()],[e.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.rightRowContainerCtrl.getContainerElement()],[e.bottomRightRowContainerCtrl.getContainerElement()],[e.topRightRowContainerCtrl.getContainerElement()]];break;default:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.centerRowContainerCtrl.getViewportElement()],[e.bottomCenterRowContainerCtrl.getViewportElement()],[e.topCenterRowContainerCtrl.getViewportElement()]]}}))},e.prototype.isInterestedIn=function(t){return t===Br.HeaderCell||t===Br.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new _c(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Tc(this.pinned)),this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===Br.ToolPanel},e.prototype.onDragEnter=function(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(t)},e.prototype.onDragLeave=function(t){this.currentDropListener.onDragLeave(t)},e.prototype.onDragging=function(t){this.currentDropListener.onDragging(t)},e.prototype.onDragStop=function(t){this.currentDropListener.onDragStop(t)},Fc([X("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Fc([X("columnModel")],e.prototype,"columnModel",void 0),Fc([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Fc([Y],e.prototype,"postConstruct",null),Fc([Y],e.prototype,"init",null),e}(Bt),Ic=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Nc=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Mc=function(){function t(){}return t.getHeaderClassesFromColDef=function(t,e,n,i){return o(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,n,i)},t.getToolPanelClassesFromColDef=function(t,e,n,i){return o(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,n,i)},t.getClassParams=function(t,e,o,n){return{colDef:t,column:o,columnGroup:n,api:e.api,columnApi:e.columnApi,context:e.context}},t.getColumnClassesFromCollDef=function(t,e,n,i,r){if(o(t))return[];var s;"function"==typeof t?s=t(this.getClassParams(e,n,i,r)):s=t;return"string"==typeof s?[s]:Array.isArray(s)?Nc([],Ic(s)):[]},t}(),Gc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Vc=function(t){function e(o){var n=t.call(this,e.TEMPLATE,o)||this;return n.headerCompVersion=0,n.column=o.getColumnGroupChild(),n.pinned=o.getPinned(),n}return Gc(e,t),e.prototype.postConstruct=function(){var t,e,o=this,n=this.getGui();t="col-id",null!=(e=this.column.getColId())&&""!=e?n.setAttribute(t,e):n.removeAttribute(t);var i={setWidth:function(t){return n.style.width=t},addOrRemoveCssClass:function(t,e){return o.addOrRemoveCssClass(t,e)},setAriaDescription:function(t){return eo(n,t)},setAriaSort:function(t){return t?Co(n,t):wo(n)},setUserCompDetails:function(t){return o.setUserCompDetails(t)},getUserCompInstance:function(){return o.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var r=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",r)},e.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},e.prototype.setUserCompDetails=function(t){var e=this;this.headerCompVersion++;var o=this.headerCompVersion;t.newAgStackInstance().then((function(t){return e.afterCompCreated(o,t)}))},e.prototype.afterCompCreated=function(t,e){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=e,this.headerCompGui=e.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(e)},e.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n            <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n        </div>',xc([Pi("eResize")],e.prototype,"eResize",void 0),xc([Pi("eHeaderCompWrapper")],e.prototype,"eHeaderCompWrapper",void 0),xc([Y],e.prototype,"postConstruct",null),xc([q],e.prototype,"destroyHeaderComp",null),e}(Rl),Hc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),kc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Bc=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return Hc(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui();e.setAttribute("col-id",this.ctrl.getColId());var o={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setResizableDisplayed:function(e){return dn(t.eResize,e)},setWidth:function(t){return e.style.width=t},setAriaExpanded:function(t){return o="aria-expanded",null!=(n=t)?e.setAttribute(o,n):e.removeAttribute(o);var o,n},setUserCompDetails:function(e){return t.setUserCompDetails(e)}};this.ctrl.setComp(o,e,this.eResize)},e.prototype.setUserCompDetails=function(t){var e=this;t.newAgStackInstance().then((function(t){return e.afterHeaderCompCreated(t)}))},e.prototype.afterHeaderCompCreated=function(t){var e=this,o=function(){return e.destroyBean(t)};if(this.isAlive()){var n=this.getGui(),i=t.getGui();n.appendChild(i),this.addDestroyFunc(o),this.ctrl.setDragSource(n)}else o()},e.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',kc([X("userComponentFactory")],e.prototype,"userComponentFactory",void 0),kc([Pi("eResize")],e.prototype,"eResize",void 0),kc([Y],e.prototype,"postConstruct",null),e}(Rl),jc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t.COLUMN_GROUP="group",t.COLUMN="column",t.FLOATING_FILTER="filter"}(Rc||(Rc={}));var Uc,zc=function(t){function e(e){var o=t.call(this)||this;return o.headerComps={},o.ctrl=e,o.setTemplate('<div class="'+o.ctrl.getHeaderRowClass()+'" role="row"></div>'),o}return jc(e,t),e.prototype.init=function(){var t=this;this.getGui().style.transform=this.ctrl.getTransform(),go(this.getGui(),this.ctrl.getAriaRowIndex());var e={setHeight:function(e){return t.getGui().style.height=e},setTop:function(e){return t.getGui().style.top=e},setHeaderCtrls:function(e,o){return t.setHeaderCtrls(e,o)},setWidth:function(e){return t.getGui().style.width=e}};this.ctrl.setComp(e)},e.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},e.prototype.setHeaderCtrls=function(t,e){var o=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},t.forEach((function(t){var e=t.getInstanceId(),i=n[e];delete n[e],null==i&&(i=o.createHeaderComp(t),o.getGui().appendChild(i.getGui())),o.headerComps[e]=i})),d(n,(function(t,e){o.getGui().removeChild(e.getGui()),o.destroyBean(e)})),e){var i=C(this.headerComps);i.sort((function(t,e){return t.getCtrl().getColumnGroupChild().getLeft()-e.getCtrl().getColumnGroupChild().getLeft()}));var r=i.map((function(t){return t.getGui()}));Ln(this.getGui(),r)}}},e.prototype.createHeaderComp=function(t){var e;switch(this.ctrl.getType()){case Rc.COLUMN_GROUP:e=new Bc(t);break;case Rc.FLOATING_FILTER:e=new Tl(t);break;default:e=new Vc(t)}return this.createBean(e),e.setParentComponent(this),e},Wc([Y],e.prototype,"init",null),Wc([q],e.prototype,"destroyHeaderCtrls",null),e}(Ti),Kc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Yc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},qc=0,Qc=function(t){function e(e,o){var n=t.call(this)||this;return n.lastFocusEvent=null,n.columnGroupChild=e,n.parentRowCtrl=o,n.instanceId=e.getUniqueId()+"-"+qc++,n}return Kc(e,t),e.prototype.shouldStopEventPropagation=function(t){var e=this.focusService.getFocusedHeader(),o=e.headerRowIndex,n=e.column;return ei(this.gridOptionsService,t,o,n)},e.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},e.prototype.setGui=function(t){this.eGui=t,this.addDomData()},e.prototype.handleKeyDown=function(t){var e=this.getWrapperHasFocus();switch(t.key){case Zn.PAGE_DOWN:case Zn.PAGE_UP:case Zn.PAGE_HOME:case Zn.PAGE_END:e&&t.preventDefault()}},e.prototype.addDomData=function(){var t=this,o=e.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,o,this),this.addDestroyFunc((function(){return t.gridOptionsService.setDomData(t.eGui,o,null)}))},e.prototype.getGui=function(){return this.eGui},e.prototype.focus=function(t){return!!this.eGui&&(this.lastFocusEvent=t||null,this.eGui.focus(),!0)},e.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},e.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},e.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.getColumnGroupChild=function(){return this.columnGroupChild},e.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Yc([X("focusService")],e.prototype,"focusService",void 0),Yc([X("beans")],e.prototype,"beans",void 0),Yc([X("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(Bt),Xc=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Jc=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Zc=function(t){function o(e,o,n,i){var r=t.call(this)||this;return r.columnOrGroup=e,r.eCell=o,r.ariaEl=r.eCell.querySelector("[role=columnheader]")||r.eCell,r.colsSpanning=i,r.beans=n,r}return Xc(o,t),o.prototype.setColsSpanning=function(t){this.colsSpanning=t,this.onLeftChanged()},o.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ft(this.colsSpanning):this.columnOrGroup},o.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ut.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},o.prototype.setLeftFirstTime=function(){var t=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),o=e(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&o&&!t?this.animateInLeft():this.onLeftChanged()},o.prototype.animateInLeft=function(){var t=this,e=this.getColumnOrGroup(),o=e.getLeft(),n=e.getOldLeft(),i=this.modifyLeftForPrintLayout(e,n),r=this.modifyLeftForPrintLayout(e,o);this.setLeft(i),this.actualLeft=r,this.beans.columnAnimationService.executeNextVMTurn((function(){t.actualLeft===r&&t.setLeft(r)}))},o.prototype.onLeftChanged=function(){var t=this.getColumnOrGroup(),e=t.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(t,e),this.setLeft(this.actualLeft)},o.prototype.modifyLeftForPrintLayout=function(t,e){if(!this.beans.gridOptionsService.isDomLayout("print"))return e;if("left"===t.getPinned())return e;var o=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===t.getPinned()?o+this.beans.columnModel.getBodyContainerWidth()+e:o+e},o.prototype.setLeft=function(t){var o;if(e(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof ut)o=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&mo(this.ariaEl,n.length),o=n[0]}var i=this.beans.columnModel.getAriaColumnIndex(o);yo(this.ariaEl,i)},Jc([Y],o.prototype,"postConstruct",null),o}(Bt),$c=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),tp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ep=function(t){function e(e,o){var n=t.call(this)||this;return n.columns=e,n.element=o,n}return $c(e,t),e.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&this.addMouseHoverListeners()},e.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},e.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},e.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},tp([X("columnHoverService")],e.prototype,"columnHoverService",void 0),tp([Y],e.prototype,"postConstruct",null),e}(Bt),op=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),np=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ip=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.iconCreated=!1,n.column=e,n}return op(e,t),e.prototype.setComp=function(e,o,n,i){t.prototype.setGui.call(this,o),this.comp=e,this.eButtonShowMainFilter=n,this.eFloatingFilterBody=i,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,ut.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},e.prototype.setupActive=function(){var t=this.column.getColDef(),e=!!t.filter,o=!!t.floatingFilter;this.active=e&&o},e.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 t=Xn("filter",this.gridOptionsService,this.column);t&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(t))}},e.prototype.setupFocus=function(){this.createManagedBean(new Hi(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},e.prototype.setupAria=function(){var t=this.localeService.getLocaleTextFunc();$e(this.eButtonShowMainFilter,t("ariaFilterMenuOpen","Open Filter Menu"))},e.prototype.onTabKeyDown=function(t){if(!(this.gridOptionsService.getDocument().activeElement===this.eGui)){var e=this.focusService.findNextFocusableElement(this.eGui,null,t.shiftKey);if(e)return this.beans.headerNavigationService.scrollToColumn(this.column),t.preventDefault(),void e.focus();var o=this.findNextColumnWithFloatingFilter(t.shiftKey);o&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:o},event:t})&&t.preventDefault()}},e.prototype.findNextColumnWithFloatingFilter=function(t){var e=this.beans.columnModel,o=this.column;do{if(!(o=t?e.getDisplayedColBefore(o):e.getDisplayedColAfter(o)))break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var o=this.getWrapperHasFocus();switch(e.key){case Zn.UP:case Zn.DOWN:o||e.preventDefault();case Zn.LEFT:case Zn.RIGHT:if(o)return;e.stopPropagation();case Zn.ENTER:o&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case Zn.ESCAPE:o||this.eGui.focus()}},e.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var e=!!t.relatedTarget&&!t.relatedTarget.classList.contains("ag-floating-filter"),o=!!t.relatedTarget&&gn(t.relatedTarget,"ag-floating-filter");if(e&&o&&t.target===this.eGui){var n=this.lastFocusEvent,i=!(!n||n.key!==Zn.TAB);if(n&&i){var r=n.shiftKey;this.focusService.focusInto(this.eGui,r)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},e.prototype.setupHover=function(){var t=this;this.createManagedBean(new ep([this.column],this.eGui));var e=function(){if(t.gridOptionsService.is("columnHoverHighlight")){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,qt.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupLeft=function(){var t=new Zc(this.column,this.eGui,this.beans);this.createManagedBean(t)},e.prototype.setupFilterButton=function(){var t=this.column.getColDef();this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton},e.prototype.setupUserComp=function(){var t=this;if(this.active){var e=this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return t.showParentFilter()}));e&&this.setCompDetails(e)}},e.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setCompDetails(t)},e.prototype.showParentFilter=function(){var t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,t,"floatingFilter","filterMenuTab",["filterMenuTab"])},e.prototype.setupSyncWithFilter=function(){var t=this;if(this.active){var e=function(e){var o=t.comp.getFloatingFilterComp();o&&o.then((function(o){if(o){var n=t.filterManager.getCurrentFloatingFilterParentModel(t.column);o.onParentModelChanged(n,e)}}))};this.destroySyncListener=this.addManagedListener(this.column,ut.EVENT_FILTER_CHANGED,e),this.filterManager.isFilterActive(this.column)&&e(null)}},e.prototype.setupWidth=function(){var t=this,e=function(){var e=t.column.getActualWidth()+"px";t.comp.setWidth(e)};this.addManagedListener(this.column,ut.EVENT_WIDTH_CHANGED,e),e()},e.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,ut.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)))},e.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},e.prototype.onColDefChanged=function(){var t,e,o=this,n=this.active;this.setupActive();var i=!n&&this.active;n&&!this.active&&(null===(t=this.destroySyncListener)||void 0===t||t.call(this),null===(e=this.destroyFilterChangedListener)||void 0===e||e.call(this));var r=this.active?this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return o.showParentFilter()})):null,s=this.comp.getFloatingFilterComp();s&&r?s.then((function(t){var e;!t||o.filterManager.areFilterCompsDifferent(null!==(e=o.userCompDetails)&&void 0!==e?e:null,r)?o.updateCompDetails(r,i):o.updateFloatingFilterParams(r)})):this.updateCompDetails(r,i)},e.prototype.updateCompDetails=function(t,e){this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),e&&(this.setupSyncWithFilter(),this.setupFilterChangedListener())},e.prototype.updateFloatingFilterParams=function(t){var e;if(t){var o=t.params;null===(e=this.comp.getFloatingFilterComp())||void 0===e||e.then((function(t){(null==t?void 0:t.onParamsUpdated)&&"function"==typeof t.onParamsUpdated&&t.onParamsUpdated(o)}))}},np([X("filterManager")],e.prototype,"filterManager",void 0),np([X("columnHoverService")],e.prototype,"columnHoverService",void 0),np([X("menuFactory")],e.prototype,"menuFactory",void 0),e}(Qc),rp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),sp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ap=function(t){function e(e,o,n,i,r){var s=t.call(this)||this;return s.pinned=e,s.column=o,s.eResize=n,s.comp=i,s.ctrl=r,s}return rp(e,t),e.prototype.postConstruct=function(){var t,e,o=this,n=this.column.getColDef(),i=[],r=function(){i.forEach((function(t){return t()})),i.length=0},s=function(){var s=o.column.isResizable(),a=!o.gridOptionsService.is("suppressAutoSize")&&!n.suppressAutoSize;(s!==t||a!==e)&&(t=s,e=a,r(),function(){if(dn(o.eResize,t),t){var n=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(i.push(n),e){var r=o.gridOptionsService.is("skipHeaderOnAutoSize"),s=function(){o.columnModel.autoSizeColumn(o.column,r,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new is(o.eResize);a.addEventListener(is.EVENT_DOUBLE_TAP,s),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(is.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(r),this.ctrl.addRefreshFunction(s)},e.prototype.onResizing=function(t,e){var o=this.normaliseResizeAmount(e),n=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnModel.setColumnWidths(n,this.resizeWithShiftKey,t,"uiColumnResized"),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},e.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},e.prototype.normaliseResizeAmount=function(t){var e=t,o="left"!==this.pinned,n="right"===this.pinned;return this.gridOptionsService.is("enableRtl")?o&&(e*=-1):n&&(e*=-1),e},sp([X("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),sp([X("columnModel")],e.prototype,"columnModel",void 0),sp([Y],e.prototype,"postConstruct",null),e}(Bt),lp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),up=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},cp=function(t){function e(e){var o=t.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.column=e;var n=e.getColDef();return o.filteredOnly=!!(null==n?void 0:n.headerCheckboxSelectionFilteredOnly),o.currentPageOnly=!!(null==n?void 0:n.headerCheckboxSelectionCurrentPageOnly),o}return lp(e,t),e.prototype.onSpaceKeyDown=function(t){var e=this.cbSelectAll,o=this.gridOptionsService.getDocument();e.isDisplayed()&&!e.getGui().contains(o.activeElement)&&(t.preventDefault(),e.setValue(!e.getValue()))},e.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},e.prototype.setComp=function(t){this.headerCellCtrl=t,this.cbSelectAll=this.createManagedBean(new cr),this.cbSelectAll.addCssClass("ag-header-select-all"),Qe(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,qt.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,qt.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),so(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},e.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()},e.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.selectionService.getSelectAllState(this.filteredOnly,this.currentPageOnly);this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},e.prototype.refreshSelectAllLabel=function(){var t=this.localeService.getLocaleTextFunc(),e=this.cbSelectAll.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),o=t("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll",o+" ("+e+")"):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(o+" ("+e+")"),this.headerCellCtrl.refreshAriaDescription()},e.prototype.checkSelectionType=function(t){return!("multiple"!==this.gridOptionsService.get("rowSelection"))||(console.warn("AG Grid: "+t+" is only available if using 'multiple' rowSelection."),!1)},e.prototype.checkRightRowModelType=function(t){var e=this.rowModel.getType();return!("clientSide"!==e&&"serverSide"!==e)||(console.warn("AG Grid: "+t+" is only available if using 'clientSide' or 'serverSide' rowModelType, you are using "+e+"."),!1)},e.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var t=this.cbSelectAll.getValue(),e="uiSelectAll";this.currentPageOnly?e="uiSelectAllCurrentPage":this.filteredOnly&&(e="uiSelectAllFiltered");var o={source:e,justFiltered:this.filteredOnly,justCurrentPage:this.currentPageOnly};t?this.selectionService.selectAllRowNodes(o):this.selectionService.deselectAllRowNodes(o)}},e.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;"function"==typeof t&&(t=t({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.context}));return!!t&&(this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"))},up([X("gridApi")],e.prototype,"gridApi",void 0),up([X("columnApi")],e.prototype,"columnApi",void 0),up([X("rowModel")],e.prototype,"rowModel",void 0),up([X("selectionService")],e.prototype,"selectionService",void 0),e}(Bt),pp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),dp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t.TAB_GUARD="ag-tab-guard",t.TAB_GUARD_TOP="ag-tab-guard-top",t.TAB_GUARD_BOTTOM="ag-tab-guard-bottom"}(Uc||(Uc={}));var hp,fp=function(t){function e(e){var o=t.call(this)||this;o.skipTabGuardFocus=!1;var n=e.comp,i=e.eTopGuard,r=e.eBottomGuard,s=e.focusInnerElement,a=e.onFocusIn,l=e.onFocusOut,u=e.shouldStopEventPropagation,c=e.onTabKeyDown,p=e.handleKeyDown,d=e.eFocusableElement;return o.comp=n,o.eTopGuard=i,o.eBottomGuard=r,o.providedFocusInnerElement=s,o.eFocusableElement=d,o.providedFocusIn=a,o.providedFocusOut=l,o.providedShouldStopEventPropagation=u,o.providedOnTabKeyDown=c,o.providedHandleKeyDown=p,o}return pp(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new Hi(this.eFocusableElement,{shouldStopEventPropagation:function(){return t.shouldStopEventPropagation()},onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)},onFocusIn:function(e){return t.onFocusIn(e)},onFocusOut:function(e){return t.onFocusOut(e)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(e){return t.addManagedListener(e,"focus",t.onFocus.bind(t))}))},e.prototype.handleKeyDown=function(t){this.providedHandleKeyDown&&this.providedHandleKeyDown(t)},e.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},e.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},e.prototype.activateTabGuards=function(){var t=this.gridOptionsService.getNum("tabIndex")||0;this.comp.setTabIndex(t.toString())},e.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},e.prototype.onFocus=function(t){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var e=t.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(e):this.focusInnerElement(e)}},e.prototype.onFocusIn=function(t){this.providedFocusIn&&this.providedFocusIn(t)||this.deactivateTabGuards()},e.prototype.onFocusOut=function(t){this.providedFocusOut&&this.providedFocusOut(t)||this.eFocusableElement.contains(t.relatedTarget)||this.activateTabGuards()},e.prototype.onTabKeyDown=function(t){var e=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(t);else if(!t.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var n=this.getNextFocusableElement(t.shiftKey);o&&setTimeout((function(){return e.activateTabGuards()}),0),n&&(n.focus(),t.preventDefault())}},e.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var e=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(e.splice(0,1),e.splice(e.length-1,1)),e.length&&e[t?e.length-1:0].focus({preventScroll:!0})},e.prototype.getNextFocusableElement=function(t){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,t)},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1);var e=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,e.focus()},dp([X("focusService")],e.prototype,"focusService",void 0),dp([Y],e.prototype,"postConstruct",null),e}(Bt),gp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vp=function(){return(vp=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},yp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},mp=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Cp=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},wp=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}var n;return gp(o,e),n=o,o.addKeyboardModeEvents=function(t,e){var o=n.instancesMonitored.get(t);o&&o.length>0?-1===o.indexOf(e)&&o.push(e):(n.instancesMonitored.set(t,[e]),t.addEventListener("keydown",n.toggleKeyboardMode),t.addEventListener("mousedown",n.toggleKeyboardMode))},o.removeKeyboardModeEvents=function(t,e){var o=n.instancesMonitored.get(t),i=[];o&&o.length&&(i=Cp([],mp(o)).filter((function(t){return t!==e})),n.instancesMonitored.set(t,i)),0===i.length&&(t.removeEventListener("keydown",n.toggleKeyboardMode),t.removeEventListener("mousedown",n.toggleKeyboardMode))},o.toggleKeyboardMode=function(t){var e=n.keyboardModeActive,o="keydown"===t.type;if(!(o&&(t.ctrlKey||t.metaKey||t.altKey)||e&&o||!e&&!o)){n.keyboardModeActive=o;var i=t.target.ownerDocument;if(i){var r=n.instancesMonitored.get(i);r&&r.forEach((function(t){t.dispatchEvent({type:o?qt.EVENT_KEYBOARD_FOCUS:qt.EVENT_MOUSE_FOCUS})}))}}},o.prototype.init=function(){var t=this,e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,qt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.ctrlsService.whenReady((function(e){t.gridCtrl=e.gridCtrl;var o=t.gridOptionsService.getDocument();n.addKeyboardModeEvents(o,t.gridCtrl),t.addDestroyFunc((function(){return t.unregisterGridCompController(t.gridCtrl)}))}))},o.prototype.unregisterGridCompController=function(t){var e=this.gridOptionsService.getDocument();n.removeKeyboardModeEvents(e,t)},o.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,e=this.columnModel.getGridColumn(t.getId());t!==e&&this.clearFocusedCell()}},o.prototype.isKeyboardMode=function(){return n.keyboardModeActive},o.prototype.getFocusCellToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(t.activeElement,Eu.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},o.prototype.getFocusHeaderToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(t.activeElement,Qc.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},o.prototype.isDomDataMissingInHierarchy=function(t,e){for(var o=t;o;){if(this.gridOptionsService.getDomData(o,e))return!1;o=o.parentNode}return!0},o.prototype.getFocusedCell=function(){return this.focusedCellPosition},o.prototype.shouldRestoreFocus=function(t){var e=this;return!!this.isCellRestoreFocused(t)&&(setTimeout((function(){e.restoredFocusedCellPosition=null}),0),!0)},o.prototype.isCellRestoreFocused=function(t){return null!=this.restoredFocusedCellPosition&&this.cellPositionUtils.equals(t,this.restoredFocusedCellPosition)},o.prototype.setRestoreFocusedCell=function(t){"react"===this.getFrameworkOverrides().renderingEngine&&(this.restoredFocusedCellPosition=t)},o.prototype.getFocusEventParams=function(){var t=this.focusedCellPosition,e=t.rowIndex,o=t.rowPinned,n={rowIndex:e,rowPinned:o,column:t.column,isFullWidthCell:!1},i=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:o});return i&&(n.isFullWidthCell=i.isFullWidth()),n},o.prototype.clearFocusedCell=function(){if(this.restoredFocusedCellPosition=null,null!=this.focusedCellPosition){var t=vp({type:qt.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(t)}},o.prototype.setFocusedCell=function(e){var o=e.column,n=e.rowIndex,i=e.rowPinned,r=e.forceBrowserFocus,s=void 0!==r&&r,a=e.preventScrollOnBrowserFocus,l=void 0!==a&&a,u=this.columnModel.getGridColumn(o);if(u){this.focusedCellPosition=u?{rowIndex:n,rowPinned:t(i),column:u}:null;var c=vp(vp({type:qt.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:s,preventScrollOnBrowserFocus:l,floating:null});this.eventService.dispatchEvent(c)}else this.focusedCellPosition=null},o.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&this.cellPositionUtils.equals(t,this.focusedCellPosition)},o.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},o.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var e=t.getColumnGroupChild(),o=t.getRowIndex(),n=t.getPinned(),i=this.focusedHeaderPosition,r=i.column,s=i.headerRowIndex;return e===r&&o===s&&n==r.getPinned()},o.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},o.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},o.prototype.setFocusedHeader=function(t,e){this.focusedHeaderPosition={headerRowIndex:t,column:e}},o.prototype.focusHeaderPosition=function(t){var e=t.direction,o=t.fromTab,n=t.allowUserOverride,i=t.event,r=t.fromCell,s=t.headerPosition;if(r&&this.filterManager.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(s);if(n){var a,l=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();if(o){if(a=this.gridOptionsService.getCallback("tabToNextHeader"))s=a({backwards:"Before"===e,previousHeaderPosition:l,nextHeaderPosition:s,headerRowCount:u})}else if((a=this.gridOptionsService.getCallback("navigateToNextHeader"))&&i)s=a({key:i.key,previousHeaderPosition:l,nextHeaderPosition:s,headerRowCount:u,event:i})}return!!s&&(-1===s.headerRowIndex?this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(s):this.focusGridView(s.column):(this.headerNavigationService.scrollToColumn(s.column,e),this.ctrlsService.getHeaderRowContainerCtrl(s.column.getPinned()).focusHeader(s.headerRowIndex,s.column,i)))},o.prototype.focusFirstHeader=function(){var t=this.columnModel.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnModel.getColumnGroupAtLevel(t,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:t}}))},o.prototype.focusLastHeader=function(t){var e=this.headerNavigationService.getHeaderRowCount()-1,o=ft(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:e,column:o},event:t})},o.prototype.focusPreviousFromFirstCell=function(t){return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(t)},o.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},o.prototype.isRowFocused=function(e,o){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===t(o))},o.prototype.findFocusableElements=function(t,e,o){void 0===o&&(o=!1);var n=cn;e&&(n+=", "+e),o&&(n+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(t.querySelectorAll("[tabindex], input, select, button, textarea, [href]")),r=Array.prototype.slice.apply(t.querySelectorAll(n));if(!r.length)return i;var s;return s=r,i.filter((function(t){return-1===s.indexOf(t)}))},o.prototype.focusInto=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var n=this.findFocusableElements(t,null,o),i=e?ft(n):n[0];return!!i&&(i.focus({preventScroll:!0}),!0)},o.prototype.findFocusableElementBeforeTabGuard=function(t,e){if(!e)return null;var o=this.findFocusableElements(t),n=o.indexOf(e);if(-1===n)return null;for(var i=-1,r=n-1;r>=0;r--)if(o[r].classList.contains(Uc.TAB_GUARD_TOP)){i=r;break}return i<=0?null:o[i-1]},o.prototype.findNextFocusableElement=function(t,e,o){void 0===t&&(t=this.eGridDiv);var n=this.findFocusableElements(t,e?':not([tabindex="-1"])':null),i=this.gridOptionsService.getDocument().activeElement,r=(e?n.findIndex((function(t){return t.contains(i)})):n.indexOf(i))+(o?-1:1);return r<0||r>=n.length?null:n[r]},o.prototype.isTargetUnderManagedComponent=function(t,e){if(!e)return!1;var o=t.querySelectorAll("."+Hi.FOCUS_MANAGED_CLASS);if(!o.length)return!1;for(var n=0;n<o.length;n++)if(o[n].contains(e))return!0;return!1},o.prototype.findTabbableParent=function(t,e){void 0===e&&(e=5);for(var o=0;t&&null===Bo(t)&&++o<=e;)t=t.parentElement;return null===Bo(t)?null:t},o.prototype.focusGridView=function(e,o){if(this.gridOptionsService.is("suppressCellFocus"))return o?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=o?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var i=n.rowIndex,r=n.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==i||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:i,column:e,rowPinned:r}),this.setFocusedCell({rowIndex:i,column:e,rowPinned:t(r),forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:i,rowPinned:r,column:e};this.rangeService.setRangeToCell(a)}return!0},o.prototype.focusNextGridCoreContainer=function(t,e){return void 0===e&&(e=!1),!(e||!this.gridCtrl.focusNextInnerContainer(t))||((e||!t&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(t),!1)},o.prototype.focusAdvancedFilter=function(t){return this.advancedFilterFocusColumn=null==t?void 0:t.column,this.advancedFilterService.getCtrl().focusHeaderComp()},o.prototype.focusNextFromAdvancedFilter=function(t,e){var o,n,i=null!==(o=e?void 0:this.advancedFilterFocusColumn)&&void 0!==o?o:null===(n=this.columnModel.getAllDisplayedColumns())||void 0===n?void 0:n[0];return t?this.focusHeaderPosition({headerPosition:{column:i,headerRowIndex:this.headerNavigationService.getHeaderRowCount()-1}}):this.focusGridView(i)},o.prototype.clearAdvancedFilterColumn=function(){this.advancedFilterFocusColumn=void 0},o.AG_KEYBOARD_FOCUS="ag-keyboard-focus",o.keyboardModeActive=!1,o.instancesMonitored=new Map,yp([X("eGridDiv")],o.prototype,"eGridDiv",void 0),yp([X("columnModel")],o.prototype,"columnModel",void 0),yp([X("headerNavigationService")],o.prototype,"headerNavigationService",void 0),yp([X("rowRenderer")],o.prototype,"rowRenderer",void 0),yp([X("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),yp([X("cellPositionUtils")],o.prototype,"cellPositionUtils",void 0),yp([J("rangeService")],o.prototype,"rangeService",void 0),yp([X("navigationService")],o.prototype,"navigationService",void 0),yp([X("ctrlsService")],o.prototype,"ctrlsService",void 0),yp([X("filterManager")],o.prototype,"filterManager",void 0),yp([J("advancedFilterService")],o.prototype,"advancedFilterService",void 0),yp([Y],o.prototype,"init",null),o=n=yp([Q("focusService")],o)}(Bt),Sp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ep=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Rp=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.refreshFunctions=[],n.userHeaderClasses=new Set,n.ariaDescriptionProperties=new Map,n.column=e,n}return Sp(e,t),e.prototype.setComp=function(e,o,n,i){var r=this;t.prototype.setGui.call(this,o),this.comp=e,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(i),this.addColumnHoverListener(),this.setupFilterCss(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new ap(this.getPinned(),this.column,n,e,this)),this.createManagedBean(new ep([this.column],o)),this.createManagedBean(new Zc(this.column,o,this.beans)),this.createManagedBean(new Hi(o,{shouldStopEventPropagation:function(t){return r.shouldStopEventPropagation(t)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addMouseDownListenerIfNeeded(o),this.addManagedListener(this.column,ut.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onHeaderHeightChanged.bind(this))},e.prototype.addMouseDownListenerIfNeeded=function(t){var e=this;if(No()){var o=this.gridOptionsService.getDocument();["mousedown","touchstart"].forEach((function(n){e.addManagedListener(t,n,(function(e){var n=o.activeElement;n===t||t.contains(n)||(t.focus(),wp.toggleKeyboardMode(e))}))}))}},e.prototype.setupUserComp=function(){var t=this.lookupUserCompDetails();this.setCompDetails(t)},e.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setUserCompDetails(t)},e.prototype.lookupUserCompDetails=function(){var t=this.createParams(),e=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(e,t)},e.prototype.createParams=function(){var t=this,e=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:e.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(e){t.gridApi.showColumnMenuAfterButtonClick(t.column,e)},progressSort:function(e){t.sortController.progressSort(t.column,!!e,"uiColumnSorted")},setSort:function(e,o){t.sortController.setSortForColumn(t.column,e,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()}},e.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new cp(this.column)),this.selectAllFeature.setComp(this)},e.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e),e.key===Zn.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===Zn.ENTER&&this.onEnterKeyDown(e)},e.prototype.onEnterKeyDown=function(t){var e=this.comp.getUserCompInstance();if(e)if(t.ctrlKey||t.metaKey)this.menuEnabled&&e.showMenu&&(t.preventDefault(),e.showMenu());else if(this.sortable){var o=t.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}},e.prototype.isMenuEnabled=function(){return this.menuEnabled},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getRowIndex();this.focusService.setFocusedHeader(e,this.column)}this.setActiveHeader(!0)},e.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},e.prototype.setupTooltip=function(){var t=this,e={getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getGui:function(){return t.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return t.column.getColDef().headerTooltip}},o=this.createManagedBean(new eu(e,this.beans));o.setComp(this.eGui),this.refreshFunctions.push((function(){return o.refreshToolTip()}))},e.prototype.setupClassesFromColDef=function(){var t=this,e=function(){var e=t.column.getColDef(),o=Mc.getHeaderClassesFromColDef(e,t.gridOptionsService,t.column,null),n=t.userHeaderClasses;t.userHeaderClasses=new Set(o),o.forEach((function(e){n.has(e)?n.delete(e):t.comp.addOrRemoveCssClass(e,!0)})),n.forEach((function(e){return t.comp.addOrRemoveCssClass(e,!1)}))};this.refreshFunctions.push(e),e()},e.prototype.setDragSource=function(t){var e=this;if(this.dragSourceElement=t,this.removeDragSource(),t&&this.draggable){var o=!this.gridOptionsService.is("suppressDragLeaveHidesColumns");this.moveDragSource={type:Br.HeaderCell,eElement:t,getDefaultIconName:function(){return o?Us.ICON_HIDE:Us.ICON_NOT_ALLOWED},getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){o=!e.gridOptionsService.is("suppressDragLeaveHidesColumns"),e.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return e.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(t){var n;if(o){var i=(null===(n=null==t?void 0:t.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(t){var n;if(o){var i=(null===(n=null==t?void 0:t.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},e.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},e.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},e.prototype.onColDefChanged=function(){this.refresh()},e.prototype.updateState=function(){var t=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu,this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},e.prototype.addRefreshFunction=function(t){this.refreshFunctions.push(t)},e.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(t){return t()}))},e.prototype.refreshHeaderComp=function(){var t=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==t.componentClass)&&this.attemptHeaderCompRefresh(t.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(t)},e.prototype.attemptHeaderCompRefresh=function(t){var e=this.comp.getUserCompInstance();return!!e&&(!!e.refresh&&e.refresh(t))},e.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},e.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},e.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!!(!this.gridOptionsService.is("suppressMovableColumns")&&!t.suppressMovable&&!t.lockPosition)||!!t.enableRowGroup||!!t.enablePivot},e.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},e.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},e.prototype.onColumnValueChanged=function(){this.checkDisplayName()},e.prototype.setupWidth=function(){var t=this,e=function(){var e=t.column.getActualWidth();t.comp.setWidth(e+"px")};this.addManagedListener(this.column,ut.EVENT_WIDTH_CHANGED,e),e()},e.prototype.setupMovingCss=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.column.isMoving())};this.addManagedListener(this.column,ut.EVENT_MOVING_CHANGED,e),e()},e.prototype.setupMenuClass=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-column-menu-visible",t.column.isMenuVisible())};this.addManagedListener(this.column,ut.EVENT_MENU_VISIBLE_CHANGED,e),e()},e.prototype.setupSortableClass=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!t.sortable)};e(),this.addRefreshFunction(e),this.addManagedListener(this.eventService,ut.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},e.prototype.setupWrapTextClass=function(){var t=this,e=function(){var e=!!t.column.getColDef().wrapHeaderText;t.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",e)};e(),this.addRefreshFunction(e)},e.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},e.prototype.refreshSpanHeaderHeight=function(){var t=this,e=t.eGui,o=t.column,n=t.comp,i=t.columnModel,r=t.gridOptionsService;if(o.isSpanHeaderHeight()){var s=this.getColumnGroupPaddingInfo(),a=s.numberOfParents,l=s.isSpanningTotal;n.addOrRemoveCssClass("ag-header-span-height",a>0);var u=i.getColumnHeaderRowHeight();if(0===a)return n.addOrRemoveCssClass("ag-header-span-total",!1),e.style.setProperty("top","0px"),void e.style.setProperty("height",u+"px");n.addOrRemoveCssClass("ag-header-span-total",l);var c=a*(r.is("pivotMode")?i.getPivotGroupHeaderHeight():i.getGroupHeaderHeight());e.style.setProperty("top",-c+"px"),e.style.setProperty("height",u+c+"px")}},e.prototype.getColumnGroupPaddingInfo=function(){var t=this.column.getParent();if(!t||!t.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var e=t.getPaddingLevel()+1,o=!0;t;){if(!t.isPadding()){o=!1;break}t=t.getParent()}return{numberOfParents:e,isSpanningTotal:o}},e.prototype.setupAutoHeight=function(t){var e,o=this,n=function(e){if(o.isAlive()){var i=vn(o.getGui()),r=i.paddingTop+i.paddingBottom+i.borderBottomWidth+i.borderTopWidth,s=t.offsetHeight+r;if(e<5){var a=o.beans.gridOptionsService.getDocument();if(!a||!a.contains(t)||0==s)return void o.beans.frameworkOverrides.setTimeout((function(){return n(e+1)}),0)}o.columnModel.setColumnHeaderHeight(o.column,s)}},i=!1,r=function(){var t=o.column.isAutoHeaderHeight();t&&!i&&s(),!t&&i&&a()},s=function(){i=!0,n(0),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),e=o.resizeObserverService.observeResize(t,(function(){return n(0)}))},a=function(){i=!1,e&&e(),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),e=void 0};r(),this.addDestroyFunc((function(){return a()})),this.addManagedListener(this.column,ut.EVENT_WIDTH_CHANGED,(function(){return i&&n(0)})),this.addManagedListener(this.eventService,ut.EVENT_SORT_CHANGED,(function(){i&&o.beans.frameworkOverrides.setTimeout((function(){return n(0)}))})),this.addRefreshFunction(r)},e.prototype.refreshAriaSort=function(){if(this.sortable){var t=this.localeService.getLocaleTextFunc(),e=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Xe(e)),this.setAriaDescriptionProperty("sort",t("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},e.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var t=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",t("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},e.prototype.setAriaDescriptionProperty=function(t,e){null!=e?this.ariaDescriptionProperties.set(t,e):this.ariaDescriptionProperties.delete(t)},e.prototype.refreshAriaDescription=function(){var t=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(t.length?t.join(" "):void 0)},e.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},e.prototype.addColumnHoverListener=function(){var t=this,e=function(){if(t.gridOptionsService.is("columnHoverHighlight")){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,qt.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupFilterCss=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-filtered",t.column.isFilterActive())};this.addManagedListener(this.column,ut.EVENT_FILTER_ACTIVE_CHANGED,e),e()},e.prototype.getColId=function(){return this.column.getColId()},e.prototype.addActiveHeaderMouseListeners=function(){var t=this,e=function(e){return t.setActiveHeader("mouseenter"===e.type)};this.addManagedListener(this.getGui(),"mouseenter",e),this.addManagedListener(this.getGui(),"mouseleave",e)},e.prototype.setActiveHeader=function(t){this.comp.addOrRemoveCssClass("ag-header-active",t)},Ep([X("columnModel")],e.prototype,"columnModel",void 0),Ep([X("columnHoverService")],e.prototype,"columnHoverService",void 0),Ep([X("sortController")],e.prototype,"sortController",void 0),Ep([X("menuFactory")],e.prototype,"menuFactory",void 0),Ep([X("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ep([X("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ep([X("gridApi")],e.prototype,"gridApi",void 0),Ep([X("columnApi")],e.prototype,"columnApi",void 0),Ep([q],e.prototype,"removeDragSource",null),e}(Qc),bp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Op=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Tp=function(t){function e(e,o,n,i){var r=t.call(this)||this;return r.eResize=o,r.comp=e,r.pinned=n,r.columnGroup=i,r}return bp(e,t),e.prototype.postConstruct=function(){var t=this;if(this.columnGroup.isResizable()){var e=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(e),!this.gridOptionsService.is("suppressAutoSize")){var o=this.gridOptionsService.is("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",(function(){var e=[];t.columnGroup.getDisplayedLeafColumns().forEach((function(t){t.getColDef().suppressAutoSize||e.push(t.getColId())})),e.length>0&&t.columnModel.autoSizeColumns({columns:e,skipHeader:o,stopAtGroup:t.columnGroup,source:"uiColumnResized"}),t.resizeLeafColumnsToFit("uiColumnResized")}))}}else this.comp.setResizableDisplayed(!1)},e.prototype.onResizeStart=function(t){var e=this;this.calculateInitialValues();var o=null;if(t&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var n=o.getDisplayedLeafColumns();this.resizeTakeFromCols=n.filter((function(t){return t.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(t){return e.resizeTakeFromStartWidth+=t.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(t){return e.resizeTakeFromRatios.push(t.getActualWidth()/e.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},e.prototype.onResizing=function(t,e,o){void 0===o&&(o="uiColumnResized");var n=this.normaliseDragChange(e),i=this.resizeStartWidth+n;this.resizeColumns(i,o,t)},e.prototype.resizeLeafColumnsToFit=function(t){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,t,!0)},e.prototype.resizeColumns=function(t,e,o){void 0===o&&(o=!0);var n=[];if(n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:t}),this.resizeTakeFromCols){var i=t-this.resizeStartWidth;n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-i})}this.columnModel.resizeColumnSets({resizeSets:n,finished:o,source:e}),o&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},e.prototype.calculateInitialValues=function(){var t=this,e=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=e.filter((function(t){return t.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}))},e.prototype.normaliseDragChange=function(t){var e=t;return this.gridOptionsService.is("enableRtl")?"left"!==this.pinned&&(e*=-1):"right"===this.pinned&&(e*=-1),e},Op([X("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),Op([X("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),Op([X("columnModel")],e.prototype,"columnModel",void 0),Op([Y],e.prototype,"postConstruct",null),e}(Bt),Dp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_p=function(t){function e(e,o){var n=t.call(this)||this;return n.removeChildListenersFuncs=[],n.columnGroup=o,n.comp=e,n}return Dp(e,t),e.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Yt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},e.prototype.addListenersToChildrenColumns=function(){var t=this;this.removeListenersOnChildrenColumns();var e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener("widthChanged",e),o.addEventListener("visibleChanged",e),t.removeChildListenersFuncs.push((function(){o.removeEventListener("widthChanged",e),o.removeEventListener("visibleChanged",e)}))}))},e.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(t){return t()})),this.removeChildListenersFuncs=[]},e.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},e.prototype.onWidthChanged=function(){var t=this.columnGroup.getActualWidth();this.comp.setWidth(t+"px"),this.comp.addOrRemoveCssClass("ag-hidden",0===t)},Pp([Y],e.prototype,"postConstruct",null),e}(Bt),Ap=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lp=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.columnGroup=e,n}return Ap(e,t),e.prototype.setComp=function(e,o,n){t.prototype.setGui.call(this,o),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var i=this.getParentRowCtrl().getPinned(),r=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new ep(r,o)),this.createManagedBean(new Zc(this.columnGroup,o,this.beans)),this.createManagedBean(new _p(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Tp(e,n,i,this.columnGroup)),this.createManagedBean(new Hi(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},e.prototype.resizeLeafColumnsToFit=function(t){this.groupResizeFeature&&this.groupResizeFeature.resizeLeafColumnsToFit(t)},e.prototype.setupUserComp=function(){var t=this,e=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(e){t.columnModel.setColumnGroupOpened(t.columnGroup.getProvidedColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context};if(!e){for(var n=this.columnGroup,i=n.getLeafColumns();n.getParent()&&n.getParent().getLeafColumns().length===i.length;)n=n.getParent();var r=n.getColGroupDef();r&&(e=r.headerName),e||(e=i?this.columnModel.getDisplayNameForColumn(i[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(s)},e.prototype.setupTooltip=function(){var t=this,e=this.columnGroup.getColGroupDef(),o={getColumn:function(){return t.columnGroup},getGui:function(){return t.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return e&&e.headerTooltip}};e&&(o.getColDef=function(){return e}),this.createManagedBean(new eu(o,this.beans)).setComp(this.eGui)},e.prototype.setupExpandable=function(){var t=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(t,pt.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,pt.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},e.prototype.refreshExpanded=function(){var t=this.columnGroup;this.expandable=t.isExpandable();var e=t.isExpanded();this.expandable?this.comp.setAriaExpanded(e?"true":"false"):this.comp.setAriaExpanded(void 0)},e.prototype.getColId=function(){return this.columnGroup.getUniqueId()},e.prototype.addClasses=function(){var t=this,e=this.columnGroup.getColGroupDef(),o=Mc.getHeaderClassesFromColDef(e,this.gridOptionsService,null,this.columnGroup);this.columnGroup.isPadding()?(o.push("ag-header-group-cell-no-group"),this.columnGroup.getLeafColumns().every((function(t){return t.isSpanHeaderHeight()}))&&o.push("ag-header-span-height")):o.push("ag-header-group-cell-with-group");o.forEach((function(e){return t.comp.addOrRemoveCssClass(e,!0)}))},e.prototype.setupMovingCss=function(){var t=this,e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),o=function(){return t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.columnGroup.isMoving())};e.forEach((function(e){t.addManagedListener(e,ut.EVENT_MOVING_CHANGED,o)})),o()},e.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var e=this.getRowIndex();this.beans.focusService.setFocusedHeader(e,this.columnGroup)}},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var o=this.getWrapperHasFocus();if(this.expandable&&o&&e.key===Zn.ENTER){var n=this.columnGroup,i=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),i,"uiColumnExpanded")}},e.prototype.setDragSource=function(t){var e=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),i={type:Br.HeaderCell,eElement:t,getDefaultIconName:function(){return n?Us.ICON_HIDE:Us.ICON_NOT_ALLOWED},dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){n=!e.gridOptionsService.is("suppressDragLeaveHidesColumns"),o.forEach((function(t){return t.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(t){return t.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(t){var o;if(n){var i=(null===(o=null==t?void 0:t.columns)||void 0===o?void 0:o.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(t){var o;if(n){var i=(null===(o=null==t?void 0:t.columns)||void 0===o?void 0:o.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(i)}))}},e.prototype.getDragItemForGroup=function(){var t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),e={};t.forEach((function(t){return e[t.getId()]=t.isVisible()}));var o=[];return this.columnModel.getAllDisplayedColumns().forEach((function(e){t.indexOf(e)>=0&&(o.push(e),mt(t,e))})),t.forEach((function(t){return o.push(t)})),{columns:o,visibleState:e}},e.prototype.isSuppressMoving=function(){var t=!1;return this.columnGroup.getLeafColumns().forEach((function(e){(e.getColDef().suppressMovable||e.getColDef().lockPosition)&&(t=!0)})),t||this.gridOptionsService.is("suppressMovableColumns")},Fp([X("columnModel")],e.prototype,"columnModel",void 0),Fp([X("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Fp([X("gridApi")],e.prototype,"gridApi",void 0),Fp([X("columnApi")],e.prototype,"columnApi",void 0),e}(Qc),Ip=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Np=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Mp=0,Gp=function(t){function e(e,o,n){var i=t.call(this)||this;i.instanceId=Mp++,i.headerCellCtrls={},i.rowIndex=e,i.pinned=o,i.type=n;var r=n==Rc.COLUMN_GROUP?"ag-header-row-column-group":n==Rc.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.headerRowClass="ag-header-row "+r,i}return Ip(e,t),e.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.is("ensureDomOrder")},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setComp=function(t,e){void 0===e&&(e=!0),this.comp=t,e&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},e.prototype.getHeaderRowClass=function(){return this.headerRowClass},e.prototype.getAriaRowIndex=function(){return this.rowIndex+1},e.prototype.getTransform=function(){if(No())return"translateZ(0)"},e.prototype.addEventListeners=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_VIRTUAL_COLUMNS_CHANGED,(function(e){return t.onVirtualColumnsChanged(e.afterScroll)})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",(function(e){return t.isEnsureDomOrder=e.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))},e.prototype.getHeaderCellCtrl=function(t){return a(this.headerCellCtrls).find((function(e){return e.getColumnGroupChild()===t}))},e.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},e.prototype.getType=function(){return this.type},e.prototype.onColumnResized=function(){this.setWidth()},e.prototype.setWidth=function(){var t=this.getWidthForRow();this.comp.setWidth(t+"px")},e.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)},e.prototype.onRowHeightChanged=function(){var t=this.getTopAndHeight(),e=t.topOffset,o=t.rowHeight;this.comp.setTop(e+"px"),this.comp.setHeight(o+"px")},e.prototype.getTopAndHeight=function(){var t=this.columnModel.getHeaderRowCount(),e=[],o=0;this.filterManager.hasFloatingFilters()&&(t++,o=1);for(var n=this.columnModel.getColumnGroupHeaderRowHeight(),i=this.columnModel.getColumnHeaderRowHeight(),r=t-(1+o),s=0;s<r;s++)e.push(n);e.push(i);for(s=0;s<o;s++)e.push(this.columnModel.getFloatingFiltersHeight());var a=0;for(s=0;s<this.rowIndex;s++)a+=e[s];return{topOffset:a,rowHeight:e[this.rowIndex]}},e.prototype.getPinned=function(){return this.pinned},e.prototype.getRowIndex=function(){return this.rowIndex},e.prototype.onVirtualColumnsChanged=function(t){void 0===t&&(t=!1);var e=this.getHeaderCtrls(),o=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(e,o,t)},e.prototype.getHeaderCtrls=function(){var t=this,e=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(o){if(!o.isEmptyGroup()){var n=o.getUniqueId(),i=e[n];if(delete e[n],i&&i.getColumnGroupChild()!=o&&(t.destroyBean(i),i=void 0),null==i)switch(t.type){case Rc.FLOATING_FILTER:i=t.createBean(new ip(o,t));break;case Rc.COLUMN_GROUP:i=t.createBean(new Lp(o,t));break;default:i=t.createBean(new Rp(o,t))}t.headerCellCtrls[n]=i}}));return d(e,(function(e,o){var n;(n=o,!!t.focusService.isHeaderWrapperFocused(n)&&t.columnModel.isDisplayed(n.getColumnGroupChild()))?t.headerCellCtrls[e]=o:t.destroyBean(o)})),C(this.headerCellCtrls)},e.prototype.getColumnsInViewport=function(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},e.prototype.getColumnsInViewportPrintLayout=function(){var t=this;if(null!=this.pinned)return[];var e=[],o=this.getActualDepth();return["left",null,"right"].forEach((function(n){var i=t.columnModel.getVirtualHeaderGroupRow(n,o);e=e.concat(i)})),e},e.prototype.getActualDepth=function(){return this.type==Rc.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},e.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},e.prototype.focusHeader=function(t,e){var o=C(this.headerCellCtrls).find((function(e){return e.getColumnGroupChild()==t}));return!!o&&(o.focus(e),!0)},e.prototype.destroy=function(){var e=this;d(this.headerCellCtrls,(function(t,o){e.destroyBean(o)})),this.headerCellCtrls={},t.prototype.destroy.call(this)},Np([X("columnModel")],e.prototype,"columnModel",void 0),Np([X("focusService")],e.prototype,"focusService",void 0),Np([X("filterManager")],e.prototype,"filterManager",void 0),Np([Y],e.prototype,"postConstruct",null),e}(Bt),xp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hp=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},kp=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Bp=function(t){function e(e){var o=t.call(this)||this;return o.hidden=!1,o.includeFloatingFilter=!1,o.groupsRowCtrls=[],o.pinned=e,o}return xp(e,t),e.prototype.setComp=function(t,e){this.comp=t,this.eViewport=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,qt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},e.prototype.setupDragAndDrop=function(t){var e=new Lc(this.pinned,t);this.createManagedBean(e)},e.prototype.refresh=function(t){var e=this;void 0===t&&(t=!1);var o,n,i=new hi,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var t=e.columnModel.getHeaderRowCount()-1;e.groupsRowCtrls=e.destroyBeans(e.groupsRowCtrls);for(var o=0;o<t;o++){var n=e.createBean(new Gp(i.next(),e.pinned,Rc.COLUMN_GROUP));e.groupsRowCtrls.push(n)}}(),o=i.next(),((n=!(e.hidden||null!=e.columnsRowCtrl&&t&&e.columnsRowCtrl.getRowIndex()===o))||e.hidden)&&(e.columnsRowCtrl=e.destroyBean(e.columnsRowCtrl)),n&&(e.columnsRowCtrl=e.createBean(new Gp(o,e.pinned,Rc.COLUMN))),function(){e.includeFloatingFilter=e.filterManager.hasFloatingFilters()&&!e.hidden;var o=function(){e.filtersRowCtrl=e.destroyBean(e.filtersRowCtrl)};if(e.includeFloatingFilter){var n=i.next();if(e.filtersRowCtrl){var r=e.filtersRowCtrl.getRowIndex()!==n;t&&!r||o()}e.filtersRowCtrl||(e.filtersRowCtrl=e.createBean(new Gp(n,e.pinned,Rc.FLOATING_FILTER)))}else o()}();var s=this.getAllCtrls();this.comp.setCtrls(s),this.restoreFocusOnHeader(r)},e.prototype.restoreFocusOnHeader=function(t){null!=t&&t.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:t})},e.prototype.getAllCtrls=function(){var t=kp([],Hp(this.groupsRowCtrls));return this.columnsRowCtrl&&t.push(this.columnsRowCtrl),this.filtersRowCtrl&&t.push(this.filtersRowCtrl),t},e.prototype.onGridColumnsChanged=function(){this.refresh(!0)},e.prototype.onDisplayedColumnsChanged=function(){var t=this.filterManager.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==t&&this.refresh(!0)},e.prototype.setupCenterWidth=function(){var t=this;null==this.pinned&&this.createManagedBean(new Uu((function(e){return t.comp.setCenterWidth(e+"px")}),!0))},e.prototype.setHorizontalScroll=function(t){this.comp.setViewportScrollLeft(t)},e.prototype.setupPinnedWidth=function(){var t=this;if(null!=this.pinned){var e="left"===this.pinned,o="right"===this.pinned;this.hidden=!0;var n=function(){var n=e?t.pinnedWidthService.getPinnedLeftWidth():t.pinnedWidthService.getPinnedRightWidth();if(null!=n){var i=0==n,r=t.hidden!==i,s=t.gridOptionsService.is("enableRtl"),a=t.gridOptionsService.getScrollbarWidth(),l=t.scrollVisibleService.isVerticalScrollShowing()&&(s&&e||!s&&o)?n+a:n;t.comp.setPinnedContainerWidth(l+"px"),t.comp.setDisplayed(!i),r&&(t.hidden=i,t.refresh())}};this.addManagedListener(this.eventService,qt.EVENT_LEFT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,qt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,qt.EVENT_SCROLL_VISIBILITY_CHANGED,n),this.addManagedListener(this.eventService,qt.EVENT_SCROLLBAR_WIDTH_CHANGED,n)}},e.prototype.getHeaderCtrlForColumn=function(t){if(t instanceof ut){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(t)}if(0!==this.groupsRowCtrls.length)for(var e=0;e<this.groupsRowCtrls.length;e++){var o=this.groupsRowCtrls[e].getHeaderCellCtrl(t);if(o)return o}},e.prototype.getHtmlElementForColumnHeader=function(t){var e=this.getHeaderCtrlForColumn(t);return e?e.getGui():null},e.prototype.getRowType=function(t){var e=this.getAllCtrls()[t];return e?e.getType():void 0},e.prototype.focusHeader=function(t,e,o){var n=this.getAllCtrls()[t];return!!n&&n.focusHeader(e,o)},e.prototype.getRowCount=function(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)},e.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),t.prototype.destroy.call(this)},Vp([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Vp([X("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Vp([X("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),Vp([X("columnModel")],e.prototype,"columnModel",void 0),Vp([X("focusService")],e.prototype,"focusService",void 0),Vp([X("filterManager")],e.prototype,"filterManager",void 0),e}(Bt),jp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Up=function(t){function e(e){var o=t.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=e,o}return jp(e,t),e.prototype.init=function(){var t=this;this.selectAndSetTemplate();var e={setDisplayed:function(e){return t.setDisplayed(e)},setCtrls:function(e){return t.setCtrls(e)},setCenterWidth:function(e){return t.eCenterContainer.style.width=e},setViewportScrollLeft:function(e){return t.getGui().scrollLeft=e},setPinnedContainerWidth:function(e){var o=t.getGui();o.style.width=e,o.style.maxWidth=e,o.style.minWidth=e}};this.createManagedBean(new Bp(this.pinned)).setComp(e,this.getGui())},e.prototype.selectAndSetTemplate=function(){var t="left"==this.pinned,o="right"==this.pinned,n=t?e.PINNED_LEFT_TEMPLATE:o?e.PINNED_RIGHT_TEMPLATE:e.CENTER_TEMPLATE;this.setTemplate(n),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},e.prototype.destroyRowComps=function(){this.setCtrls([])},e.prototype.destroyRowComp=function(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())},e.prototype.setCtrls=function(t){var e,o=this,n=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];t.forEach((function(t){var i=t.getInstanceId(),r=n[i];delete n[i];var s=r||o.createBean(new zc(t));o.headerRowComps[i]=s,o.rowCompsList.push(s),function(t){var n=t.getGui();n.parentElement!=o.eRowContainer&&o.eRowContainer.appendChild(n),e&&Fn(o.eRowContainer,n,e),e=n}(s)})),C(n).forEach((function(t){return o.destroyRowComp(t)}))},e.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"></div>',e.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"></div>',e.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n            <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n        </div>',Wp([Pi("eCenterContainer")],e.prototype,"eCenterContainer",void 0),Wp([Y],e.prototype,"init",null),Wp([q],e.prototype,"destroyRowComps",null),e}(Ti),zp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(hp||(hp={}));var Yp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zp(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},e.prototype.getHeaderRowCount=function(){var t=this.ctrlsService.getHeaderRowContainerCtrl();return t?t.getRowCount():0},e.prototype.navigateVertically=function(t,e,o){if(e||(e=this.focusService.getFocusedHeader()),!e)return!1;var n=e.headerRowIndex,i=e.column,r=this.getHeaderRowCount(),s=t===hp.UP?this.headerPositionUtils.getColumnVisibleParent(i,n):this.headerPositionUtils.getColumnVisibleChild(i,n),a=s.nextRow,l=s.nextFocusColumn,u=!1;return a<0&&(a=0,l=i,u=!0),a>=r&&(a=-1),!(!u&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a,column:l},allowUserOverride:!0,event:o})},e.prototype.navigateHorizontally=function(t,e,o){void 0===e&&(e=!1);var n,i,r=this.focusService.getFocusedHeader();return t===hp.LEFT!==this.gridOptionsService.is("enableRtl")?(i="Before",n=this.headerPositionUtils.findHeader(r,i)):(i="After",n=this.headerPositionUtils.findHeader(r,i)),n||!e?this.focusService.focusHeaderPosition({headerPosition:n,direction:i,fromTab:e,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(r,i,o)},e.prototype.focusNextHeaderRow=function(t,e,o){var n,i=t.headerRowIndex,r=null;return"Before"===e?i>0&&(n=i-1,r=this.headerPositionUtils.findColAtEdgeForHeaderRow(n,"end")):(n=i+1,r=this.headerPositionUtils.findColAtEdgeForHeaderRow(n,"start")),this.focusService.focusHeaderPosition({headerPosition:r,direction:e,fromTab:!0,allowUserOverride:!0,event:o})},e.prototype.scrollToColumn=function(t,e){if(void 0===e&&(e="After"),!t.getPinned()){var o;if(t instanceof Yt){var n=t.getDisplayedLeafColumns();o="Before"===e?ft(n):n[0]}else o=t;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},Kp([X("focusService")],e.prototype,"focusService",void 0),Kp([X("headerPositionUtils")],e.prototype,"headerPositionUtils",void 0),Kp([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Kp([Y],e.prototype,"postConstruct",null),e=Kp([Q("headerNavigationService")],e)}(Bt),qp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Qp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Xp=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return qp(o,t),o.prototype.setComp=function(t,e,o){this.comp=t,this.eGui=e,this.createManagedBean(new Hi(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},o.prototype.setupHeaderHeight=function(){var t=this.setHeaderHeight.bind(this);t(),this.addManagedPropertyListener("headerHeight",t),this.addManagedPropertyListener("pivotHeaderHeight",t),this.addManagedPropertyListener("groupHeaderHeight",t),this.addManagedPropertyListener("pivotGroupHeaderHeight",t),this.addManagedPropertyListener("floatingFiltersHeight",t),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,t),this.addManagedListener(this.eventService,qt.EVENT_GRID_STYLES_CHANGED,t),this.addManagedListener(this.eventService,qt.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,t)},o.prototype.getHeaderHeight=function(){return this.headerHeight},o.prototype.setHeaderHeight=function(){var t,e=this.columnModel,o=0,n=e.getHeaderRowCount();this.filterManager.hasFloatingFilters()&&(n++,o=1);var i=this.columnModel.getColumnGroupHeaderRowHeight(),r=this.columnModel.getColumnHeaderRowHeight(),s=n-(1+o);if(t=o*e.getFloatingFiltersHeight(),t+=s*i,t+=r,this.headerHeight!==t){this.headerHeight=t;var a=t+1+"px";this.comp.setHeightAndMinHeight(a),this.eventService.dispatchEvent({type:qt.EVENT_HEADER_HEIGHT_CHANGED})}},o.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)},o.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.getAllDisplayedColumns().some((function(t){return t.isSpanHeaderHeight()}));this.comp.addOrRemoveCssClass("ag-header-allow-overflow",t)},o.prototype.onTabKeyDown=function(t){var e=this.gridOptionsService.is("enableRtl"),o=t.shiftKey!==e?hp.LEFT:hp.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},o.prototype.handleKeyDown=function(t){var o=null;switch(t.key){case Zn.LEFT:o=hp.LEFT;case Zn.RIGHT:e(o)||(o=hp.RIGHT),this.headerNavigationService.navigateHorizontally(o,!1,t);break;case Zn.UP:o=hp.UP;case Zn.DOWN:e(o)||(o=hp.DOWN),this.headerNavigationService.navigateVertically(o,null,t)&&t.preventDefault();break;default:return}},o.prototype.onFocusOut=function(t){var e=this.gridOptionsService.getDocument(),o=t.relatedTarget;!o&&this.eGui.contains(e.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},Qp([X("headerNavigationService")],o.prototype,"headerNavigationService",void 0),Qp([X("focusService")],o.prototype,"focusService",void 0),Qp([X("columnModel")],o.prototype,"columnModel",void 0),Qp([X("ctrlsService")],o.prototype,"ctrlsService",void 0),Qp([X("filterManager")],o.prototype,"filterManager",void 0),o}(Bt),Jp=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Zp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$p=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return Jp(e,t),e.prototype.postConstruct=function(){var t=this,e={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setHeightAndMinHeight:function(e){t.getGui().style.height=e,t.getGui().style.minHeight=e}};this.createManagedBean(new Xp).setComp(e,this.getGui(),this.getFocusableElement());var o=function(e){t.createManagedBean(e),t.appendChild(e)};o(new Up("left")),o(new Up(null)),o(new Up("right"))},e.TEMPLATE='<div class="ag-header" role="presentation"/>',Zp([Y],e.prototype,"postConstruct",null),e}(Ti),td=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ed=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},od=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return td(e,t),e.prototype.addResizeBar=function(t){var e=this,o={dragStartPixels:t.dragStartPixels||0,eElement:t.eResizeBar,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this,t),onDragging:this.onDragging.bind(this,t),includeTouch:!0,stopPropagationForTouch:!0};this.dragService.addDragSource(o);return function(){return e.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(t,e){this.dragStartX=e.clientX,this.setResizeIcons();var o=e instanceof MouseEvent&&!0===e.shiftKey;t.onResizeStart(o)},e.prototype.setResizeIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!0),t.disableUserSelect(!0)},e.prototype.onDragStop=function(t,e){t.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!1),t.disableUserSelect(!1)},e.prototype.onDragging=function(t,e){this.resizeAmount=e.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},ed([X("dragService")],e.prototype,"dragService",void 0),ed([X("ctrlsService")],e.prototype,"ctrlsService",void 0),e=ed([Q("horizontalResizeService")],e)}(Bt),nd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),id=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},rd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nd(e,t),e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(t,e){var o=this;this.showPopup(t,(function(n){o.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:e,ePopup:n})}),"columnMenu",e.target)},e.prototype.showMenuAfterButtonClick=function(t,e,o){var n=this;this.showPopup(t,(function(i){n.popupService.positionPopupByComponent({type:o,eventSource:e,ePopup:i,keepWithinBounds:!0,position:"under",column:t})}),o,e)},e.prototype.showPopup=function(t,e,o,n){var i=this,r=this.filterManager.getOrCreateFilterWrapper(t,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var s,a=document.createElement("div");Qe(a,"presentation"),a.classList.add("ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",(function(t){return i.trapFocusWithin(t,a)})),r.guiPromise.then((function(t){return a.appendChild(t)}));var l=n||this.ctrlsService.getGridBodyCtrl().getGui(),u=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(e){t.setMenuVisible(!1,"contextMenu");var o,s=e instanceof KeyboardEvent;if(i.tabListener&&(i.tabListener=i.tabListener()),s&&n&&Dn(n)){var a=i.focusService.findTabbableParent(n);a&&a.focus()}null===(o=r.filterPromise)||void 0===o||o.then((function(t){var e;return null===(e=null==t?void 0:t.afterGuiDetached)||void 0===e?void 0:e.call(t)}))},positionCallback:function(){return e(a)},anchorToElement:l,ariaLabel:u("ariaLabelColumnMenu","Column Menu")});c&&(this.hidePopup=s=c.hideFunc),r.filterPromise.then((function(t){e(a),t.afterGuiAttached&&t.afterGuiAttached({container:o,hidePopup:s})})),t.setMenuVisible(!0,"contextMenu")},e.prototype.trapFocusWithin=function(t,e){t.key!==Zn.TAB||t.defaultPrevented||this.focusService.findNextFocusableElement(e,!1,t.shiftKey)||(t.preventDefault(),this.focusService.focusInto(e,t.shiftKey))},e.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()&&t.getMenuTabs(["filterMenuTab"]).includes("filterMenuTab")},id([X("filterManager")],e.prototype,"filterManager",void 0),id([X("popupService")],e.prototype,"popupService",void 0),id([X("focusService")],e.prototype,"focusService",void 0),id([X("ctrlsService")],e.prototype,"ctrlsService",void 0),e=id([Q("menuFactory")],e)}(Bt),sd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ad=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ld=function(t){function e(o){var n=t.call(this,e.getTemplate(o.cssClass))||this;return n.items=[],n.tabbedItemScrollMap=new Map,n.params=o,o.items&&o.items.forEach((function(t){return n.addItem(t)})),n}return sd(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new Hi(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),this.addDestroyFunc((function(){var e,o,n;return null===(n=null===(o=null===(e=t.activeItem)||void 0===e?void 0:e.tabbedItem)||void 0===o?void 0:o.afterDetachedCallback)||void 0===n?void 0:n.call(o)}))},e.getTemplate=function(t){return'<div class="ag-tabs '+t+'">\n            <div ref="eHeader" role="tablist" class="ag-tabs-header '+(t?t+"-header":"")+'"></div>\n            <div ref="eBody" role="presentation" class="ag-tabs-body '+(t?t+"-body":"")+'"></div>\n        </div>'},e.prototype.handleKeyDown=function(t){var e=this.gridOptionsService.getDocument();switch(t.key){case Zn.RIGHT:case Zn.LEFT:if(!this.eHeader.contains(e.activeElement))return;var o=t.key===Zn.RIGHT,n=this.gridOptionsService.is("enableRtl"),i=this.items.indexOf(this.activeItem),r=o!==n?Math.min(i+1,this.items.length-1):Math.max(i-1,0);if(i===r)return;t.preventDefault();var s=this.items[r];this.showItemWrapper(s),s.eHeaderButton.focus();break;case Zn.UP:case Zn.DOWN:t.stopPropagation()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var e=this.focusService,o=this.eHeader,n=this.eBody,i=this.activeItem,r=this.gridOptionsService.getDocument().activeElement,s=t.target;if(t.preventDefault(),o.contains(r))e.focusInto(n,t.shiftKey);else{var a=null;e.isTargetUnderManagedComponent(n,s)&&(t.shiftKey&&(a=this.focusService.findFocusableElementBeforeTabGuard(n,s)),a||(a=i.eHeaderButton)),!a&&n.contains(r)&&((a=e.findNextFocusableElement(n,!1,t.shiftKey))||(a=i.eHeaderButton)),a&&a.focus()}}},e.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(t){var e=document.createElement("span");Qe(e,"tab"),e.setAttribute("tabindex","-1"),e.appendChild(t.title),e.classList.add("ag-tab"),this.eHeader.appendChild(e),$e(e,t.titleLabel);var o={tabbedItem:t,eHeaderButton:e};this.items.push(o),e.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(t){var e=this.items.find((function(e){return e.tabbedItem===t}));e&&this.showItemWrapper(e)},e.prototype.showItemWrapper=function(t){var e,o,n=this,i=t.tabbedItem,r=t.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:i}),this.activeItem!==t?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),On(this.eBody),i.bodyPromise.then((function(t){n.eBody.appendChild(t);var e=!n.focusService.isKeyboardMode();if(n.focusService.focusInto(n.eBody,!1,e),i.afterAttachedCallback&&i.afterAttachedCallback(n.afterAttachedParams),n.params.keepScrollPosition){var o=i.getScrollableContainer&&i.getScrollableContainer()||t;n.lastScrollListener=n.addManagedListener(o,"scroll",(function(){n.tabbedItemScrollMap.set(i.name,o.scrollTop)}));var r=n.tabbedItemScrollMap.get(i.name);void 0!==r&&setTimeout((function(){o.scrollTop=r}),0)}})),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),null===(o=(e=this.activeItem.tabbedItem).afterDetachedCallback)||void 0===o||o.call(e)),r.classList.add("ag-tab-selected"),this.activeItem=t):x(this.params.onActiveItemClicked)},ad([X("focusService")],e.prototype,"focusService",void 0),ad([Pi("eHeader")],e.prototype,"eHeader",void 0),ad([Pi("eBody")],e.prototype,"eBody",void 0),ad([Y],e.prototype,"postConstruct",null),e}(Ti);function ud(t){return T((function(){return console.warn("AG Grid: Since v29 simpleHttpRequest has been deprecated as it was only meant for use in internal AG Grid documentation examples. Please use the browser fetch api directly.")}),"simpleHttpRequest"),new vi((function(e){var o=new XMLHttpRequest;o.open("GET",t.url),o.send(),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&e(JSON.parse(o.responseText))}}))}var cd,pd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),dd=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},hd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return pd(e,t),e.prototype.observeResize=function(t,e){var o,n,i,r,s,a=this,l=this.gridOptionsService.getWindow(),u=this.gridOptionsService.is("suppressBrowserResizeObserver");return!!l.ResizeObserver&&!u?((o=new l.ResizeObserver(e)).observe(t),function(){return o.disconnect()}):(n=An(t),i=_n(t),r=!0,(s=function(){if(r){var o=An(t),l=_n(t);(o!==n||l!==i)&&(n=o,i=l,e()),a.doNextPolyfillTurn(s)}})(),function(){return r=!1})},e.prototype.doNextPolyfillTurn=function(t){this.polyfillFunctions.push(t),this.schedulePolyfill()},e.prototype.schedulePolyfill=function(){var t=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var e=t.polyfillFunctions;t.polyfillScheduled=!1,t.polyfillFunctions=[],e.forEach((function(t){return t()}))}),50)}},e=dd([Q("resizeObserverService")],e)}(Bt),fd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gd=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastPage=0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return fd(e,t),e.prototype.setScrollTop=function(t){var e=this.gridOptionsService.is("pagination");if(this.scrollGoingDown=t>=this.lastScrollTop,e&&0===t){var o=this.paginationProxy.getCurrentPage();o!==this.lastPage&&(this.lastPage=o,this.scrollGoingDown=!0)}this.lastScrollTop=t},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.is("suppressAnimationFrame")},e.prototype.isOn=function(){return this.useAnimationFrame},e.prototype.verifyAnimationFrameOn=function(t){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+t+" called but animation frames are off")},e.prototype.createTask=function(t,e,o){this.verifyAnimationFrameOn(o);var n={task:t,index:e,createOrder:++this.taskCount};this.addTaskToList(this[o],n),this.schedule()},e.prototype.cancelTask=function(t){this.cancelledTasks.add(t)},e.prototype.addTaskToList=function(t,e){t.list.push(e),t.sorted=!1},e.prototype.sortTaskList=function(t){if(!t.sorted){var e=this.scrollGoingDown?1:-1;t.list.sort((function(t,o){return t.index!==o.index?e*(o.index-t.index):o.createOrder-t.createOrder})),t.sorted=!0}},e.prototype.addDestroyTask=function(t){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(t),this.schedule()},e.prototype.executeFrame=function(t){this.verifyAnimationFrameOn("executeFrame");for(var e=this.createTasksP1,o=e.list,n=this.createTasksP2,i=n.list,r=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=t<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<t;){if(!u.getScrollFeature().scrollGridIfNeeded()){var c=void 0;if(o.length)this.sortTaskList(e),c=o.pop().task;else if(i.length)this.sortTaskList(n),c=i.pop().task;else{if(!r.length){this.cancelledTasks.clear();break}c=r.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}o.length||i.length||r.length?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var t=this.executeFrame.bind(this,60);this.requestAnimationFrame(t)},e.prototype.requestAnimationFrame=function(t){var e=this.gridOptionsService.getWindow();e.requestAnimationFrame?e.requestAnimationFrame(t):e.webkitRequestAnimationFrame?e.webkitRequestAnimationFrame(t):e.setTimeout(t,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},e.prototype.debounce=function(t){var e=this,o=!1;return function(){e.isOn()?o||(o=!0,e.addDestroyTask((function(){o=!1,t()}))):e.getFrameworkOverrides().setTimeout(t,0)}},gd([X("ctrlsService")],e.prototype,"ctrlsService",void 0),gd([X("paginationProxy")],e.prototype,"paginationProxy",void 0),gd([Y],e.prototype,"init",null),e=gd([Q("animationFrameService")],e)}(Bt),yd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),md=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Cd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yd(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCtrl=e.centerRowContainerCtrl}))},e.prototype.getPreferredWidthForColumn=function(t,e){var o=this.getHeaderCellForColumn(t);if(!o)return-1;var n=this.rowRenderer.getAllCellsForColumn(t);return e||n.push(o),this.addElementsToContainerAndGetWidth(n)},e.prototype.getPreferredWidthForColumnGroup=function(t){var e=this.getHeaderCellForColumn(t);return e?this.addElementsToContainerAndGetWidth([e]):-1},e.prototype.addElementsToContainerAndGetWidth=function(t){var e=this,o=document.createElement("form");o.style.position="fixed";var n=this.centerRowContainerCtrl.getContainerElement();t.forEach((function(t){return e.cloneItemIntoDummy(t,o)})),n.appendChild(o);var i=o.offsetWidth;return n.removeChild(o),i+this.getAutoSizePadding()},e.prototype.getAutoSizePadding=function(){var t=this.gridOptionsService.getNum("autoSizePadding");return null!=t&&t>=0?t:20},e.prototype.getHeaderCellForColumn=function(t){var e=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(o){var n=o.getHtmlElementForColumnHeader(t);null!=n&&(e=n)})),e},e.prototype.cloneItemIntoDummy=function(t,e){var o=t.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var n=document.createElement("div"),i=n.classList;["ag-header-cell","ag-header-group-cell"].some((function(t){return o.classList.contains(t)}))?(i.add("ag-header","ag-header-row"),n.style.position="static"):i.add("ag-row");for(var r=t.parentElement;r;){if(["ag-header-row","ag-row"].some((function(t){return r.classList.contains(t)}))){for(var s=0;s<r.classList.length;s++){var a=r.classList[s];"ag-row-position-absolute"!=a&&i.add(a)}break}r=r.parentElement}n.appendChild(o),e.appendChild(n)},md([X("rowRenderer")],e.prototype,"rowRenderer",void 0),md([X("ctrlsService")],e.prototype,"ctrlsService",void 0),md([X("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),md([Y],e.prototype,"postConstruct",null),e=md([Q("autoWidthCalculator")],e)}(Bt),wd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Sd=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ed=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Rd=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},bd=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Od=function(t){function e(e,o){var n=t.call(this)||this;return n.createRowCon=e,n.destroyRowCtrls=o,n.stickyRowCtrls=[],n.containerHeight=0,n}return wd(e,t),e.prototype.postConstruct=function(){var t=this;this.isClientSide="clientSide"===this.rowModel.getType(),this.ctrlsService.whenReady((function(e){t.gridBodyCtrl=e.gridBodyCtrl}))},e.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},e.prototype.checkStickyRows=function(){var t=this,e=0;if(!this.gridOptionsService.isGroupRowsSticky())return this.refreshNodesAndContainerHeight([],e);for(var o=[],n=this.rowRenderer.getFirstVisibleVerticalPixel(),i=function(i){var r,s,a,l;if(o.push(i),t.isClientSide){for(var u=i;u.expanded;)if(u.master)u=u.detailNode;else if(u.childrenAfterSort){if(0===u.childrenAfterSort.length)break;u=ft(u.childrenAfterSort)}l=u.rowTop+u.rowHeight}else if(i.master)l=i.detailNode.rowTop+i.detailNode.rowHeight;else{var c=null===(r=i.childStore)||void 0===r?void 0:r.getStoreBounds();l=(null!==(s=null==c?void 0:c.heightPx)&&void 0!==s?s:0)+(null!==(a=null==c?void 0:c.topPx)&&void 0!==a?a:0)}var p=n+e+i.rowHeight;i.stickyRowTop=l<p?e+(l-p):e,e=0,o.forEach((function(t){var o=t.stickyRowTop+t.rowHeight;e<o&&(e=o)}))};;){var r=n+e,s=this.rowModel.getRowIndexAtPixel(r),a=this.rowModel.getRow(s);if(null==a)break;if(a.level<0)break;for(var l=[],u=a.parent;u.level>=0;)l.push(u),u=u.parent;var c=l.reverse().find((function(t){return o.indexOf(t)<0&&t.displayed}));if(c)i(c);else{if(!(a.isExpandable()&&a.expanded&&a.rowTop<r))break;i(a)}}return this.refreshNodesAndContainerHeight(o,e)},e.prototype.refreshStickyNode=function(t){for(var e=[],o=0;o<this.stickyRowCtrls.length;o++){var n=this.stickyRowCtrls[o].getRowNode();n!==t&&e.push(n)}this.refreshNodesAndContainerHeight(e,this.containerHeight)&&this.checkStickyRows()},e.prototype.refreshNodesAndContainerHeight=function(t,e){var o,n,i,r=this,s=!1,a=this.stickyRowCtrls.filter((function(e){return-1===t.indexOf(e.getRowNode())})),l=t.filter((function(t){return-1===r.stickyRowCtrls.findIndex((function(e){return e.getRowNode()===t}))}));(a.length||l.length)&&(s=!0);var u={};a.forEach((function(t){u[t.getRowNode().id]=t,r.stickyRowCtrls=r.stickyRowCtrls.filter((function(e){return e!==t}))}));try{for(var c=Ed(Object.values(u)),p=c.next();!p.done;p=c.next()){p.value.getRowNode().sticky=!1}}catch(t){o={error:t}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(o)throw o.error}}this.destroyRowCtrls(u,!1);var d=l.map((function(t){return t.sticky=!0,r.createRowCon(t,!1,!1)}));return(i=this.stickyRowCtrls).push.apply(i,bd([],Rd(d))),this.stickyRowCtrls.forEach((function(t){return t.setRowTop(t.getRowNode().stickyRowTop)})),this.stickyRowCtrls.sort((function(t,e){return e.getRowNode().rowIndex-t.getRowNode().rowIndex})),this.containerHeight!==e&&(this.containerHeight=e,this.gridBodyCtrl.setStickyTopHeight(e),s=!0),s},Sd([X("rowModel")],e.prototype,"rowModel",void 0),Sd([X("rowRenderer")],e.prototype,"rowRenderer",void 0),Sd([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Sd([Y],e.prototype,"postConstruct",null),e}(Bt),Td=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Dd=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pd=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},_d=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Ad=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Fd=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCtrlsByRowIndex={},e.zombieRowCtrls={},e.allRowCtrls=[],e.topRowCtrls=[],e.bottomRowCtrls=[],e.refreshInProgress=!1,e.dataFirstRenderedFired=!1,e}return Td(o,t),o.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.initialise()}))},o.prototype.initialise=function(){if(this.addManagedListener(this.eventService,qt.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_BODY_HEIGHT_CHANGED,this.redraw.bind(this)),this.addManagedPropertyListener("domLayout",this.onDomLayoutChanged.bind(this)),this.addManagedPropertyListener("rowClass",this.redrawRows.bind(this)),this.gridOptionsService.isGroupRowsSticky()){var t=this.rowModel.getType();"clientSide"!==t&&"serverSide"!==t||(this.stickyRowFeature=this.createManagedBean(new Od(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this))))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.is("embedFullWidthRows"),this.redrawAfterModelUpdate()},o.prototype.initialiseCache=function(){if(this.gridOptionsService.is("keepDetailRows")){var t=this.getKeepDetailRowsCount(),e=null!=t?t:3;this.cachedRowCtrls=new Ld(e)}},o.prototype.getKeepDetailRowsCount=function(){var t=this.gridOptionsService.getNum("keepDetailRowsCount");return e(t)&&t>0?t:10},o.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},o.prototype.updateAllRowCtrls=function(){var t=C(this.rowCtrlsByRowIndex),e=this.gridOptionsService.is("ensureDomOrder"),o=this.gridOptionsService.isDomLayout("print");(e||o)&&t.sort((function(t,e){return t.getRowNode().rowIndex-e.getRowNode.rowIndex}));var n=C(this.zombieRowCtrls),i=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];n.length>0||i.length>0?this.allRowCtrls=_d(_d(_d([],Pd(t)),Pd(n)),Pd(i)):this.allRowCtrls=t},o.prototype.onCellFocusChanged=function(t){this.getAllCellCtrls().forEach((function(e){return e.onCellFocused(t)})),this.getFullWidthRowCtrls().forEach((function(e){return e.onFullWidthRowFocused(t)}))},o.prototype.registerCellEventListeners=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_CELL_FOCUSED,(function(e){t.onCellFocusChanged(e)})),this.addManagedListener(this.eventService,qt.EVENT_CELL_FOCUS_CLEARED,(function(){t.onCellFocusChanged()})),this.addManagedListener(this.eventService,qt.EVENT_FLASH_CELLS,(function(e){t.getAllCellCtrls().forEach((function(t){return t.onFlashCells(e)}))})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_HOVER_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onColumnHover()}))})),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){t.printLayout&&t.getAllCellCtrls().forEach((function(t){return t.onLeftChanged()}))})),this.gridOptionsService.is("enableRangeSelection")&&(this.addManagedListener(this.eventService,qt.EVENT_RANGE_SELECTION_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_MOVED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PINNED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_VISIBLE,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,qt.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},o.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(t){return t()})),this.destroyFuncsForColumnListeners.length=0},o.prototype.refreshListenersToColumnsForCellComps=function(){var t=this;this.removeGridColumnListeners();var e=this.columnModel.getAllGridColumns();e&&e.forEach((function(e){var o=function(o){t.getAllCellCtrls().forEach((function(t){t.getColumn()===e&&o(t)}))},n=function(){o((function(t){return t.onLeftChanged()}))},i=function(){o((function(t){return t.onWidthChanged()}))},r=function(){o((function(t){return t.onFirstRightPinnedChanged()}))},s=function(){o((function(t){return t.onLastLeftPinnedChanged()}))},a=function(){o((function(t){return t.onColDefChanged()}))};e.addEventListener("leftChanged",n),e.addEventListener("widthChanged",i),e.addEventListener("firstRightPinnedChanged",r),e.addEventListener("lastLeftPinnedChanged",s),e.addEventListener("colDefChanged",a),t.destroyFuncsForColumnListeners.push((function(){e.removeEventListener("leftChanged",n),e.removeEventListener("widthChanged",i),e.removeEventListener("firstRightPinnedChanged",r),e.removeEventListener("lastLeftPinnedChanged",s),e.removeEventListener("colDefChanged",a)}))}))},o.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsService.isDomLayout("print"),e=t||this.gridOptionsService.is("embedFullWidthRows"),o=e!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t,this.embedFullWidthRows=e,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},o.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},o.prototype.onPageLoaded=function(t){var e={recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:!0};this.redrawAfterModelUpdate(e)},o.prototype.getAllCellsForColumn=function(t){var e=[];return this.getAllRowCtrls().forEach((function(o){var n=o.getCellElement(t);n&&e.push(n)})),e},o.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},o.prototype.getTopRowCtrls=function(){return this.topRowCtrls},o.prototype.getCentreRowCtrls=function(){return this.allRowCtrls},o.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},o.prototype.refreshFloatingRows=function(t,e){var o=this;t.forEach((function(t){t.destroyFirstPass(),t.destroySecondPass()})),t.length=0,e&&e.forEach((function(e){var n=new Eu(e,o.beans,!1,!1,o.printLayout);t.push(n)}))},o.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},o.prototype.redrawRow=function(t,e){var o=this;if(void 0===e&&(e=!1),t.sticky)this.stickyRowFeature.refreshStickyNode(t);else{var n=function(e){var n=e[t.rowIndex];n&&n.getRowNode()===t&&(n.destroyFirstPass(),n.destroySecondPass(),e[t.rowIndex]=o.createRowCon(t,!1,!1))};switch(t.rowPinned){case"top":n(this.topRowCtrls);case"bottom":n(this.bottomRowCtrls);default:n(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}e||this.dispatchDisplayedRowsChanged(!1)},o.prototype.redrawRows=function(t){var e=this;if(null!=t)return null==t||t.forEach((function(t){return e.redrawRow(t,!0)})),void this.dispatchDisplayedRowsChanged(!1);this.redrawAfterModelUpdate()},o.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var e=(null==t?void 0:t.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==e)return null;var o=this.gridOptionsService.getDocument().activeElement,n=this.gridOptionsService.getDomData(o,fu.DOM_DATA_KEY_CELL_CTRL),i=this.gridOptionsService.getDomData(o,Eu.DOM_DATA_KEY_ROW_CTRL);return n||i?e:null},o.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var e=this.getCellToRestoreFocusToAfterRefresh(t);this.updateContainerHeights(),this.scrollToTopIfNewData(t);var o=!t.domLayoutChanged&&!!t.recycleRows,n=t.animate&&this.gridOptionsService.isAnimateRows(),i=o?this.getRowsToRecycle():null;o||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows(),this.recycleRows(i,n),this.gridBodyCtrl.updateRowCount(),t.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),null!=e&&this.restoreFocusedCell(e),this.releaseLockOnRefresh()},o.prototype.scrollToTopIfNewData=function(t){var e=t.newData||t.newPage,o=this.gridOptionsService.is("suppressScrollOnNewData");e&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},o.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.rowContainerHeightService.setModelHeight(t)}},o.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},o.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},o.prototype.isRefreshInProgress=function(){return this.refreshInProgress},o.prototype.restoreFocusedCell=function(t){t&&(this.focusService.setRestoreFocusedCell(t),this.onCellFocusChanged({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,api:this.beans.gridApi,columnApi:this.beans.columnApi,context:this.beans.gridOptionsService.context,type:"mock"}))},o.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.getAllRowCtrls().forEach((function(e){e.stopEditing(t)}))},o.prototype.getAllCellCtrls=function(){for(var t=[],e=this.getAllRowCtrls(),o=e.length,n=0;n<o;n++)for(var i=e[n].getAllCellCtrls(),r=i.length,s=0;s<r;s++)t.push(i[s]);return t},o.prototype.getAllRowCtrls=function(){var t,e,o=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],n=_d(_d(_d([],Pd(this.topRowCtrls)),Pd(this.bottomRowCtrls)),Pd(o));try{for(var i=Ad(Object.keys(this.rowCtrlsByRowIndex)),r=i.next();!r.done;r=i.next()){var s=r.value;n.push(this.rowCtrlsByRowIndex[s])}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n},o.prototype.addRenderedRowListener=function(t,e,o){var n=this.rowCtrlsByRowIndex[e];n&&n.addEventListener(t,o)},o.prototype.flashCells=function(t){void 0===t&&(t={});var e=t.flashDelay,o=t.fadeDelay;this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){return t.flashCell({flashDelay:e,fadeDelay:o})}))},o.prototype.refreshCells=function(t){var e=this;void 0===t&&(t={});var o={forceRefresh:t.force,newData:!1,suppressFlash:t.suppressFlash};this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){if(t.refreshShouldDestroy()){var e=t.getRowCtrl();e&&e.refreshCell(t)}else t.refreshCell(o)})),t.rowNodes&&(this.getRowCtrls(t.rowNodes).forEach((function(t){t.isFullWidth()&&(t.refreshFullWidth()||e.redrawRow(t.getRowNode(),!0))})),this.dispatchDisplayedRowsChanged(!1))},o.prototype.getCellRendererInstances=function(t){var e,o=this,n=this.getCellCtrls(t.rowNodes,t.columns).map((function(t){return t.getCellRenderer()})).filter((function(t){return null!=t}));if(null===(e=t.columns)||void 0===e?void 0:e.length)return n;var i=[],r=this.mapRowNodes(t.rowNodes);return this.getAllRowCtrls().forEach((function(t){if((!r||o.isRowInMap(t.getRowNode(),r))&&t.isFullWidth()){var e=t.getFullWidthCellRenderer();e&&i.push(e)}})),_d(_d([],Pd(i)),Pd(n))},o.prototype.getCellEditorInstances=function(t){var e=[];return this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){var o=t.getCellEditor();o&&e.push(o)})),e},o.prototype.getEditingCells=function(){var t=[];return this.getAllCellCtrls().forEach((function(e){if(e.isEditing()){var o=e.getCellPosition();t.push(o)}})),t},o.prototype.mapRowNodes=function(t){if(t){var e={top:{},bottom:{},normal:{}};return t.forEach((function(t){var o=t.id;"top"===t.rowPinned?e.top[o]=t:"bottom"===t.rowPinned?e.bottom[o]=t:e.normal[o]=t})),e}},o.prototype.isRowInMap=function(t,e){var o=t.id,n=t.rowPinned;return"bottom"===n?null!=e.bottom[o]:"top"===n?null!=e.top[o]:null!=e.normal[o]},o.prototype.getRowCtrls=function(t){var e=this,o=this.mapRowNodes(t),n=this.getAllRowCtrls();return t&&o?n.filter((function(t){var n=t.getRowNode();return e.isRowInMap(n,o)})):n},o.prototype.getCellCtrls=function(t,o){var n,i=this;e(o)&&(n={},o.forEach((function(t){var o=i.columnModel.getGridColumn(t);e(o)&&(n[o.getId()]=!0)})));var r=[];return this.getRowCtrls(t).forEach((function(t){t.getAllCellCtrls().forEach((function(t){var e=t.getColumn().getId();n&&!n[e]||r.push(t)}))})),r},o.prototype.destroy=function(){this.removeAllRowComps(),t.prototype.destroy.call(this)},o.prototype.removeAllRowComps=function(){var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},o.prototype.getRowsToRecycle=function(){var t=[];d(this.rowCtrlsByRowIndex,(function(e,o){null==o.getRowNode().id&&t.push(e)})),this.removeRowCtrls(t);var e={};return d(this.rowCtrlsByRowIndex,(function(t,o){var n=o.getRowNode();e[n.id]=o})),this.rowCtrlsByRowIndex={},e},o.prototype.removeRowCtrls=function(t){var e=this;t.forEach((function(t){var o=e.rowCtrlsByRowIndex[t];o&&(o.destroyFirstPass(),o.destroySecondPass()),delete e.rowCtrlsByRowIndex[t]}))},o.prototype.onBodyScroll=function(t){"vertical"===t.direction&&this.redraw({afterScroll:!0})},o.prototype.redraw=function(t){void 0===t&&(t={});var e,o=t.afterScroll;this.stickyRowFeature&&ko()&&(e=this.getCellToRestoreFocusToAfterRefresh()||void 0);var n=this.firstRenderedRow,i=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();var r=!1;this.stickyRowFeature&&(r=this.stickyRowFeature.checkStickyRows());var s=this.firstRenderedRow!==n||this.lastRenderedRow!==i;if((!o||r||s)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,o),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(o),null!=e)){var a=this.getCellToRestoreFocusToAfterRefresh();null!=e&&null==a&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(e))}},o.prototype.removeRowCompsNotToDraw=function(t){var e={};t.forEach((function(t){return e[t]=!0}));var o=Object.keys(this.rowCtrlsByRowIndex).filter((function(t){return!e[t]}));this.removeRowCtrls(o)},o.prototype.calculateIndexesToDraw=function(t){var e=this,o=Xo(this.firstRenderedRow,this.lastRenderedRow),n=function(t,n){var i=n.getRowNode().rowIndex;null!=i&&(i<e.firstRenderedRow||i>e.lastRenderedRow)&&e.doNotUnVirtualiseRow(n)&&o.push(i)};d(this.rowCtrlsByRowIndex,n),d(t,n),o.sort((function(t,e){return t-e}));for(var i=[],r=0;r<o.length;r++){var s=o[r],a=this.paginationProxy.getRow(s);a&&!a.sticky&&i.push(s)}return i},o.prototype.recycleRows=function(t,o,n){var i=this;void 0===o&&(o=!1),void 0===n&&(n=!1);var r=this.calculateIndexesToDraw(t);(this.removeRowCompsNotToDraw(r),this.printLayout&&(o=!1),r.forEach((function(r){e(i.createOrUpdateRowCtrl(r,t,o,n))})),t)&&(n&&!this.gridOptionsService.is("suppressAnimationFrame")&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){i.destroyRowCtrls(t,o),i.updateAllRowCtrls(),i.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(t,o));this.updateAllRowCtrls()},o.prototype.dispatchDisplayedRowsChanged=function(t){void 0===t&&(t=!1);var e={type:qt.EVENT_DISPLAYED_ROWS_CHANGED,afterScroll:t};this.eventService.dispatchEvent(e)},o.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.isPinningLeft(),e=this.columnModel.isPinningRight();(this.pinningLeft!==t||e!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=e,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},o.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];this.getFullWidthRowCtrls().forEach((function(e){var o=e.getRowNode().rowIndex;t.push(o.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(t),this.redraw({afterScroll:!0})},o.prototype.getFullWidthRowCtrls=function(t){var e=this,o=this.mapRowNodes(t);return this.getAllRowCtrls().filter((function(t){if(!t.isFullWidth())return!1;var n=t.getRowNode();return!(null!=o&&!e.isRowInMap(n,o))}))},o.prototype.createOrUpdateRowCtrl=function(t,o,n,i){var r,s=this.rowCtrlsByRowIndex[t];if(s||e(r=this.paginationProxy.getRow(t))&&e(o)&&o[r.id]&&r.alreadyRendered&&(s=o[r.id],o[r.id]=null),!s){if(r||(r=this.paginationProxy.getRow(t)),!e(r))return;s=this.createRowCon(r,n,i)}return r&&(r.alreadyRendered=!0),this.rowCtrlsByRowIndex[t]=s,s},o.prototype.destroyRowCtrls=function(t,e){var o=this,n=[];d(t,(function(t,i){i&&(o.cachedRowCtrls&&i.isCacheable()?o.cachedRowCtrls.addRow(i):(i.destroyFirstPass(),e?(o.zombieRowCtrls[i.getInstanceId()]=i,n.push((function(){i.destroySecondPass(),delete o.zombieRowCtrls[i.getInstanceId()]}))):i.destroySecondPass()))})),e&&(n.push((function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})),_(n))},o.prototype.getRowBuffer=function(){var t=this.gridOptionsService.getNum("rowBuffer");return"number"==typeof t?t<0&&(T((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),t=0,this.gridOptionsService.set("rowBuffer",0)):t=10,t},o.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.gridOptionsService.getRowHeightAsNumber()},o.prototype.workOutFirstAndLastRowsToRender=function(){var t,e;if(this.rowContainerHeightService.updateOffset(),this.paginationProxy.isRowsToRender())if(this.printLayout)this.environment.refreshRowHeightVariable(),t=this.paginationProxy.getPageFirstRow(),e=this.paginationProxy.getPageLastRow();else{var o=this.getRowBufferInPixels(),n=this.ctrlsService.getGridBodyCtrl(),i=this.gridOptionsService.is("suppressRowVirtualisation"),r=!1,s=void 0,a=void 0;do{var l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getCurrentPagePixelRange(),c=u.pageFirstPixel,p=u.pageLastPixel,d=this.rowContainerHeightService.getDivStretchOffset(),h=n.getScrollFeature().getVScrollPosition(),f=h.top,g=h.bottom;i?(s=c+d,a=p+d):(s=Math.max(f+l-o,c)+d,a=Math.min(g+l+o,p)+d),this.firstVisibleVPixel=Math.max(f+l,c)+d,r=this.ensureAllRowsInRangeHaveHeightsCalculated(s,a)}while(r);var v=this.paginationProxy.getRowIndexAtPixel(s),y=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getPageFirstRow(),C=this.paginationProxy.getPageLastRow();v<m&&(v=m),y>C&&(y=C),t=v,e=y}else t=0,e=-1;var w=this.gridOptionsService.isDomLayout("normal"),S=this.gridOptionsService.is("suppressMaxRenderedRowRestriction"),E=Math.max(this.getRowBuffer(),500);w&&!S&&e-t>E&&(e=t+E);var R=t!==this.firstRenderedRow,b=e!==this.lastRenderedRow;if(R||b){this.firstRenderedRow=t,this.lastRenderedRow=e;var O={type:qt.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:e};this.eventService.dispatchEvent(O)}},o.prototype.dispatchFirstDataRenderedEvent=function(){var t=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var e={type:qt.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((function(){t.beans.eventService.dispatchEvent(e)}))}},o.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,e){var o=this.paginationProxy.ensureRowHeightsValid(t,e,-1,-1);return o&&this.updateContainerHeights(),o},o.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},o.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},o.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},o.prototype.doNotUnVirtualiseRow=function(t){var e=t.getRowNode(),o=this.focusService.isRowNodeFocused(e),n=t.isEditing(),i=e.detail;return!!(o||n||i)&&!!this.paginationProxy.isRowPresent(e)},o.prototype.createRowCon=function(t,e,o){var n=this.cachedRowCtrls?this.cachedRowCtrls.getRow(t):null;if(n)return n;var i=this.gridOptionsService.is("suppressAnimationFrame"),r=o&&!i&&!this.printLayout;return new Eu(t,this.beans,e,r,this.printLayout)},o.prototype.getRenderedNodes=function(){var t=this.rowCtrlsByRowIndex;return Object.keys(t).map((function(e){return t[e].getRowNode()}))},o.prototype.getRowByPosition=function(t){var e,o=t.rowIndex;switch(t.rowPinned){case"top":e=this.topRowCtrls[o];break;case"bottom":e=this.bottomRowCtrls[o];break;default:(e=this.rowCtrlsByRowIndex[o])||(e=this.getStickyTopRowCtrls().find((function(t){return t.getRowNode().rowIndex===o}))||null)}return e},o.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},o.prototype.isRangeInRenderedViewport=function(t,e){if(null==t||null==e)return!1;var o=t>this.lastRenderedRow;return!(e<this.firstRenderedRow)&&!o},Dd([X("animationFrameService")],o.prototype,"animationFrameService",void 0),Dd([X("paginationProxy")],o.prototype,"paginationProxy",void 0),Dd([X("columnModel")],o.prototype,"columnModel",void 0),Dd([X("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),Dd([X("rowModel")],o.prototype,"rowModel",void 0),Dd([X("focusService")],o.prototype,"focusService",void 0),Dd([X("beans")],o.prototype,"beans",void 0),Dd([X("rowContainerHeightService")],o.prototype,"rowContainerHeightService",void 0),Dd([X("ctrlsService")],o.prototype,"ctrlsService",void 0),Dd([Y],o.prototype,"postConstruct",null),o=Dd([Q("rowRenderer")],o)}(Bt),Ld=function(){function t(t){this.entriesMap={},this.entriesList=[],this.maxCount=t}return t.prototype.addRow=function(t){if(this.entriesMap[t.getRowNode().id]=t,this.entriesList.push(t),t.setCached(!0),this.entriesList.length>this.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},t.prototype.getRow=function(t){if(null==t||null==t.id)return null;var e=this.entriesMap[t.id];return e?(this.removeFromCache(e),e.setCached(!1),e.getRowNode()!=t?null:e):null},t.prototype.removeFromCache=function(t){var e=t.getRowNode().id;delete this.entriesMap[e],mt(this.entriesList,t)},t.prototype.getEntries=function(){return this.entriesList},t}(),Id=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Nd=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Md=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Id(e,t),e.prototype.formatValue=function(t,e,o,n,i){void 0===i&&(i=!0);var r,s=null,a=t.getColDef();if(n?r=n:i&&(r=a.valueFormatter),r){var l={value:o,node:e,data:e?e.data:null,colDef:a,column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};s="function"==typeof r?r(l):this.expressionService.evaluate(r,l)}else if(a.refData)return a.refData[o]||"";return null==s&&Array.isArray(o)&&(s=o.join(", ")),s},Nd([X("expressionService")],e.prototype,"expressionService",void 0),e=Nd([Q("valueFormatterService")],e)}(Bt),Gd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xd=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Vd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gd(e,t),e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsService.get("pinnedTopRowData")),this.setPinnedBottomRowData(this.gridOptionsService.get("pinnedBottomRowData"))},e.prototype.isEmpty=function(t){return n("top"===t?this.pinnedTopRows:this.pinnedBottomRows)},e.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},e.prototype.getRowAtPixel=function(t,e){var o="top"===e?this.pinnedTopRows:this.pinnedBottomRows;if(n(o))return 0;for(var i=0;i<o.length;i++){var r=o[i];if(r.rowTop+r.rowHeight-1>=t)return i}return o.length-1},e.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0);var e={type:qt.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1);var e={type:qt.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.createNodesFromData=function(t,e){var o=this,n=[];if(t){var i=0;t.forEach((function(t,r){var s=new Ms(o.beans);s.data=t;var a=e?Ms.ID_PREFIX_TOP_PINNED:Ms.ID_PREFIX_BOTTOM_PINNED;s.id=a+r,s.rowPinned=e?"top":"bottom",s.setRowTop(i),s.setRowHeight(o.gridOptionsService.getRowHeightForNode(s).height),s.setRowIndex(r),i+=s.rowHeight,n.push(s)}))}return n},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},e.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},e.prototype.forEachPinnedTopRow=function(t){n(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},e.prototype.forEachPinnedBottomRow=function(t){n(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var e=ft(t);return e.rowTop+e.rowHeight},xd([X("beans")],e.prototype,"beans",void 0),xd([Y],e.prototype,"init",null),e=xd([Q("pinnedRowModel")],e)}(Bt);!function(t){t.Applied="Applied",t.StoreNotFound="StoreNotFound",t.StoreLoading="StoreLoading",t.StoreWaitingToLoad="StoreWaitingToLoad",t.StoreLoadingFailed="StoreLoadingFailed",t.StoreWrongType="StoreWrongType",t.Cancelled="Cancelled"}(cd||(cd={}));var Hd,kd=function(){function t(t,e){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:e,children:null},this.mapToItems[e.id]=this.pathRoot}return t.prototype.setInactive=function(){this.active=!1},t.prototype.isActive=function(){return this.active},t.prototype.depthFirstSearchChangedPath=function(t,e){if(t.children)for(var o=0;o<t.children.length;o++)this.depthFirstSearchChangedPath(t.children[o],e);e(t.rowNode)},t.prototype.depthFirstSearchEverything=function(t,e,o){if(t.childrenAfterGroup)for(var n=0;n<t.childrenAfterGroup.length;n++){var i=t.childrenAfterGroup[n];i.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[n],e,o):o&&e(i)}e(t)},t.prototype.forEachChangedNodeDepthFirst=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1),this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,e)},t.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},t.prototype.createPathItems=function(t){for(var e=t,o=0;!this.mapToItems[e.id];){var n={rowNode:e,children:null};this.mapToItems[e.id]=n,o++,e=e.parent}return o},t.prototype.populateColumnsMap=function(t,e){var o=this;if(this.keepingColumns&&e)for(var n=t;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),e.forEach((function(t){return o.nodeIdsToColumns[n.id][t.getId()]=!0})),n=n.parent},t.prototype.linkPathItems=function(t,e){for(var o=t,n=0;n<e;n++){var i=this.mapToItems[o.id],r=this.mapToItems[o.parent.id];r.children||(r.children=[]),r.children.push(i),o=o.parent}},t.prototype.addParentNode=function(t,e){if(t&&!t.isRowPinned()){var o=this.createPathItems(t);this.linkPathItems(t,o),this.populateColumnsMap(t,e)}},t.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},t.prototype.getValueColumnsForNode=function(t,e){if(!this.keepingColumns)return e;var o=this.nodeIdsToColumns[t.id];return e.filter((function(t){return o[t.getId()]}))},t.prototype.getNotValueColumnsForNode=function(t,e){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[t.id];return e.filter((function(t){return!o[t.getId()]}))},t}(),Bd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),jd=function(t){function e(o){var n=t.call(this)||this;return n.state=e.STATE_WAITING_TO_LOAD,n.version=0,n.id=o,n}return Bd(e,t),e.prototype.getId=function(){return this.id},e.prototype.load=function(){this.state=e.STATE_LOADING,this.loadFromDatasource()},e.prototype.getVersion=function(){return this.version},e.prototype.setStateWaitingToLoad=function(){this.version++,this.state=e.STATE_WAITING_TO_LOAD},e.prototype.getState=function(){return this.state},e.prototype.pageLoadFailed=function(t){this.isRequestMostRecentAndLive(t)&&(this.state=e.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},e.prototype.success=function(t,e){this.successCommon(t,e)},e.prototype.pageLoaded=function(t,e,o){this.successCommon(t,{rowData:e,rowCount:o})},e.prototype.isRequestMostRecentAndLive=function(t){var e=t===this.version,o=this.isAlive();return e&&o},e.prototype.successCommon=function(t,o){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(t)&&(this.state=e.STATE_LOADED,this.processServerResult(o))},e.prototype.dispatchLoadCompleted=function(t){void 0===t&&(t=!0);var o={type:e.EVENT_LOAD_COMPLETE,success:t,block:this};this.dispatchEvent(o)},e.EVENT_LOAD_COMPLETE="loadComplete",e.STATE_WAITING_TO_LOAD="needsLoading",e.STATE_LOADING="loading",e.STATE_LOADED="loaded",e.STATE_FAILED="failed",e}(Bt),Wd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ud=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},zd=function(t,e){return function(o,n){e(o,n,t)}},Kd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeBlockLoadsCount=0,e.blocks=[],e.active=!0,e}var o;return Wd(e,t),o=e,e.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var t=this.gridOptionsService.getNum("blockLoadDebounceMillis");t&&t>0&&(this.checkBlockToLoadDebounce=di.debounce(this.performCheckBlocksToLoad.bind(this),t))},e.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},e.prototype.getMaxConcurrentDatasourceRequests=function(){var t=this.gridOptionsService.getNum("maxConcurrentDatasourceRequests");return null==t?2:t<=0?void 0:t},e.prototype.addBlock=function(t){this.blocks.push(t),t.addEventListener(jd.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},e.prototype.removeBlock=function(t){di.removeFromArray(this.blocks,t)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:o.BLOCK_LOADED_EVENT}),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:o.BLOCK_LOADER_FINISHED_EVENT})},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var t=this.getAvailableLoadingCount(),e=this.blocks.filter((function(t){return t.getState()===jd.STATE_WAITING_TO_LOAD})).slice(0,t);this.registerLoads(e.length),e.forEach((function(t){return t.load()})),this.printCacheStatus()}},e.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType("serverSide"))return this.rowModel.getBlockStates();var t={};return this.blocks.forEach((function(e){var o=e.getBlockStateJson(),n=o.id,i=o.state;t[n]=i})),t},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},e.prototype.registerLoads=function(t){this.activeBlockLoadsCount+=t},e.prototype.getAvailableLoadingCount=function(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0},e.BLOCK_LOADED_EVENT="blockLoaded",e.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Ud([X("rowModel")],e.prototype,"rowModel",void 0),Ud([Y],e.prototype,"postConstruct",null),Ud([zd(0,$("loggerFactory"))],e.prototype,"setBeans",null),e=o=Ud([Q("rowNodeBlockLoader")],e)}(Bt),Yd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),qd=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Qd=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return Yd(n,t),n.prototype.postConstruct=function(){this.active=this.gridOptionsService.is("pagination"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,qt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationPageSizeChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},n.prototype.ensureRowHeightsValid=function(t,e,o,n){var i=this.rowModel.ensureRowHeightsValid(t,e,this.getPageFirstRow(),this.getPageLastRow());return i&&this.calculatePages(),i},n.prototype.isPaginateChildRows=function(){return!(!this.gridOptionsService.is("groupRemoveSingleChildren")&&!this.gridOptionsService.is("groupRemoveLowestSingleChildren"))||this.gridOptionsService.is("paginateChildRows")},n.prototype.onModelUpdated=function(t){this.calculatePages();var e={type:qt.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows};this.eventService.dispatchEvent(e)},n.prototype.onPaginationPageSizeChanged=function(){this.active=this.gridOptionsService.is("pagination"),this.calculatePages();var t={type:qt.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(t)},n.prototype.goToPage=function(t){if(this.active&&this.currentPage!==t&&"number"==typeof this.currentPage){this.currentPage=t;var e={type:qt.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};this.onModelUpdated(e)}},n.prototype.getPixelOffset=function(){return this.pixelOffset},n.prototype.getRow=function(t){return this.rowModel.getRow(t)},n.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},n.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},n.prototype.getCurrentPageHeight=function(){return o(this.topRowBounds)||o(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},n.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},n.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&(t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex)},n.prototype.isEmpty=function(){return this.rowModel.isEmpty()},n.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},n.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},n.prototype.forEachNodeOnPage=function(t){for(var e=this.getPageFirstRow(),o=this.getPageLastRow(),n=e;n<=o;n++){var i=this.getRow(n);i&&t(i)}},n.prototype.getType=function(){return this.rowModel.getType()},n.prototype.getRowBounds=function(t){var e=this.rowModel.getRowBounds(t);return e.rowIndex=t,e},n.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},n.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},n.prototype.getRowCount=function(){return this.rowModel.getRowCount()},n.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},n.prototype.goToPageWithIndex=function(t){if(this.active){var e=this.getPageForIndex(t);this.goToPage(e)}},n.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},n.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},n.prototype.getCurrentPage=function(){return this.currentPage},n.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},n.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},n.prototype.goToFirstPage=function(){this.goToPage(0)},n.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),e=Math.floor(t/this.pageSize);this.goToPage(e)},n.prototype.getPageSize=function(){return this.pageSize},n.prototype.getTotalPages=function(){return this.totalPages},n.prototype.setPageSize=function(){this.pageSize=this.gridOptionsService.getNum("paginationPageSize"),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},n.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(e(this.topRowBounds)?this.topRowBounds.rowTop:0)},n.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:qt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},n.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},n.prototype.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},n.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var e=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>t&&(o=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(e),o===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=n-1}}},n.prototype.getMasterRowCount=function(){return this.masterRowCount},n.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},n.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},qd([X("rowModel")],n.prototype,"rowModel",void 0),qd([Y],n.prototype,"postConstruct",null),n=qd([Q("paginationProxy")],n)}(Bt),Xd=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Jd=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Zd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xd(e,t),e.prototype.processAllCellClasses=function(t,e,o,n){this.processClassRules(t.cellClassRules,e,o,n),this.processStaticCellClasses(t,e,o)},e.prototype.processClassRules=function(t,e,o,n){if(null!=t){for(var i=Object.keys(t),r={},s={},a=function(o){var n,a=i[o],u=t[a];"string"==typeof u?n=l.expressionService.evaluate(u,e):"function"==typeof u&&(n=u(e)),a.split(" ").forEach((function(t){null!=t&&""!=t.trim()&&(n?r[t]=!0:s[t]=!0)}))},l=this,u=0;u<i.length;u++)a(u);n&&Object.keys(s).forEach(n),Object.keys(r).forEach(o)}},e.prototype.getStaticCellClasses=function(t,e){var o,n=t.cellClass;if(!n)return[];"function"==typeof n?o=n(e):o=n;return"string"==typeof o&&(o=[o]),o||[]},e.prototype.processStaticCellClasses=function(t,e,o){this.getStaticCellClasses(t,e).forEach((function(t){o(t)}))},Jd([X("expressionService")],e.prototype,"expressionService",void 0),e=Jd([Q("stylingService")],e)}(Bt),$d=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),th=function(t){function e(e){return t.call(this,e,"ag-toggle-button")||this}return $d(e,t),e.prototype.setValue=function(e,o){return t.prototype.setValue.call(this,e,o),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},e}(cr),eh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),oh=function(t){function e(e){return t.call(this,e,"ag-text-area",null,"textarea")||this}return eh(e,t),e.prototype.setValue=function(e,o){var n=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,n},e.prototype.setCols=function(t){return this.eInput.cols=t,this},e.prototype.setRows=function(t){return this.eInput.rows=t,this},e}(lr),nh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ih=function(t){function e(e){return t.call(this,e,"ag-date-field","date")||this}return nh(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this));var o=No();this.addManagedListener(this.eInput,"mousedown",(function(){e.isDisabled()||o||e.eInput.focus()})),this.eInput.step="any"},e.prototype.onWheel=function(t){document.activeElement===this.eInput&&t.preventDefault()},e.prototype.setMin=function(t){var e,o=t instanceof Date?null!==(e=tn(null!=t?t:null,!1))&&void 0!==e?e:void 0:t;return this.min===o||(this.min=o,Un(this.eInput,"min",o)),this},e.prototype.setMax=function(t){var e,o=t instanceof Date?null!==(e=tn(null!=t?t:null,!1))&&void 0!==e?e:void 0:t;return this.max===o||(this.max=o,Un(this.eInput,"max",o)),this},e.prototype.setStep=function(t){return this.step===t||(this.step=t,Un(this.eInput,"step",t)),this},e.prototype.getDate=function(){var t;if(this.eInput.validity.valid)return null!==(t=nn(this.getValue()))&&void 0!==t?t:void 0},e.prototype.setDate=function(t,e){this.setValue(tn(null!=t?t:null,!1),e)},e}(Mr),rh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),sh=function(t){function e(e){return t.call(this,e,"ag-range-field","range")||this}return rh(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.config,o=e.min,n=e.max,i=e.step;null!=o&&this.setMinValue(o),null!=n&&this.setMaxValue(n),this.setStep(i||1)},e.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(e){var o=e.target.value;t.setValue(o)}))},e.prototype.setMinValue=function(t){return this.min=t,this.eInput.setAttribute("min",t.toString()),this},e.prototype.setMaxValue=function(t){return this.max=t,this.eInput.setAttribute("max",t.toString()),this},e.prototype.setStep=function(t){return this.eInput.setAttribute("step",t.toString()),this},e.prototype.setValue=function(e,o){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());var n=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,n},e}(lr),ah=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),lh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},uh=function(t){function o(e,o){var n=t.call(this,'<div class="ag-rich-select-row" role="presentation"></div>')||this;return n.params=e,n.wrapperEl=o,n}return ah(o,t),o.prototype.postConstruct=function(){this.addManagedListener(this.getGui(),"mouseup",this.onMouseUp.bind(this))},o.prototype.setState=function(t){var e="";this.params.valueFormatter&&(e=this.params.valueFormatter(t)),this.populateWithRenderer(t,e)||this.populateWithoutRenderer(t,e),this.value=t},o.prototype.highlightString=function(t){var o=this.parsedValue;if(!this.params.cellRenderer&&e(o))if(e(t)){var n=null==o?void 0:o.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());if(n>=0){var i=n+t.length,r=oe(o.slice(0,n),!0),s=oe(o.slice(n,i),!0),a=oe(o.slice(i));this.renderValueWithoutRenderer(r+'<span class="ag-rich-select-row-text-highlight">'+s+"</span>"+a)}}else this.renderValueWithoutRenderer(o)},o.prototype.updateHighlighted=function(t){var e,o=this.getGui(),n="ag-rich-select-row-"+this.getCompId();(null===(e=o.parentElement)||void 0===e||e.setAttribute("id",n),t)&&(ao(this.getParentComponent().getAriaElement(),n),this.wrapperEl.setAttribute("data-active-option",n));So(o.parentElement,t),this.addOrRemoveCssClass("ag-rich-select-row-selected",t)},o.prototype.populateWithoutRenderer=function(t,o){var n=this.gridOptionsService.getDocument(),i=this.getGui(),r=n.createElement("span");r.style.overflow="hidden",r.style.textOverflow="ellipsis";var s=oe(e(o)?o:t,!0);this.parsedValue=e(s)?s:null,i.appendChild(r),this.renderValueWithoutRenderer(s)},o.prototype.renderValueWithoutRenderer=function(t){var o=this.getGui().querySelector("span");o&&(o.innerHTML=e(t)?t:"&nbsp;")},o.prototype.populateWithRenderer=function(t,e){var o,n,i=this;return this.params.cellRenderer&&(n=this.userComponentFactory.getCellRendererDetails(this.params,{value:t,valueFormatted:e,api:this.gridOptionsService.api})),n&&(o=n.newAgStackInstance()),o&&Kn(o,this.getGui()),!!o&&(o.then((function(t){i.addDestroyFunc((function(){i.getContext().destroyBean(t)}))})),!0)},o.prototype.onMouseUp=function(){var t=this.getParentComponent(),e={type:qt.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:!1,value:this.value};null==t||t.dispatchEvent(e)},lh([X("userComponentFactory")],o.prototype,"userComponentFactory",void 0),lh([Y],o.prototype,"postConstruct",null),o}(Ti),ch=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ph=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},dh=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},hh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ch(e,t),e.prototype.initialiseTabGuard=function(t){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var e=[this.eTopGuard,this.eBottomGuard],o={setTabIndex:function(t){e.forEach((function(e){return null!=t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new fp({comp:o,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:t.onFocusIn,onFocusOut:t.onFocusOut,focusInnerElement:t.focusInnerElement,handleKeyDown:t.handleKeyDown,onTabKeyDown:t.onTabKeyDown,shouldStopEventPropagation:t.shouldStopEventPropagation}))},e.prototype.createTabGuard=function(t){var e=document.createElement("div"),o="top"===t?Uc.TAB_GUARD_TOP:Uc.TAB_GUARD_BOTTOM;return e.classList.add(Uc.TAB_GUARD,o),Qe(e,"presentation"),e},e.prototype.addTabGuards=function(t,e){this.eFocusableElement.insertAdjacentElement("afterbegin",t),this.eFocusableElement.insertAdjacentElement("beforeend",e)},e.prototype.removeAllChildrenExceptTabGuards=function(){var t=[this.eTopGuard,this.eBottomGuard];On(this.getFocusableElement()),this.addTabGuards.apply(this,dh([],ph(t)))},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.tabGuardCtrl.forceFocusOutOfContainer(t)},e.prototype.appendChild=function(e,o){Bn(e)||(e=e.getGui());var n=this.eBottomGuard;n?n.insertAdjacentElement("beforebegin",e):t.prototype.appendChild.call(this,e,o)},e}(Ti),fh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vh=function(t){function e(o){var n=t.call(this,e.getTemplate((null==o?void 0:o.cssIdentifier)||"default"))||this;n.renderedRows=new Map,n.rowHeight=20;var i=o||{},r=i.cssIdentifier,s=void 0===r?"default":r,a=i.ariaRole,l=void 0===a?"listbox":a,u=i.listName;return n.cssIdentifier=s,n.ariaRole=l,n.listName=u,n}return fh(e,t),e.prototype.postConstruct=function(){var t=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(e){return t.onFocusIn(e)},onFocusOut:function(e){return t.onFocusOut(e)},focusInnerElement:function(e){return t.focusInnerElement(e)},onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}}),this.setAriaProperties(),this.addManagedListener(this.eventService,qt.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},e.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},e.prototype.setAriaProperties=function(){var t=this.localeService.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),e=this.eContainer;Qe(e,this.ariaRole),$e(e,t)},e.prototype.addResizeObserver=function(){var t=this,e=this.resizeObserverService.observeResize(this.getGui(),(function(){return t.animationFrameService.requestAnimationFrame((function(){return t.drawVirtualRows()}))}));this.addDestroyFunc(e)},e.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},e.prototype.onFocusIn=function(t){var e=t.target;return e.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=Ze(e)-1),!1},e.prototype.onFocusOut=function(t){return this.getFocusableElement().contains(t.relatedTarget)||(this.lastFocusedRowIndex=null),!1},e.prototype.handleKeyDown=function(t){switch(t.key){case Zn.UP:case Zn.DOWN:this.navigate(t.key===Zn.UP)&&t.preventDefault()}},e.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():(_t(t),this.forceFocusOutOfContainer(t.shiftKey))},e.prototype.navigate=function(t){if(null==this.lastFocusedRowIndex)return!1;var e=this.lastFocusedRowIndex+(t?-1:1);return!(e<0||e>=this.model.getRowCount())&&(this.focusRow(e),!0)},e.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},e.prototype.focusRow=function(t){var e=this;this.ensureIndexVisible(t),window.setTimeout((function(){if(e.isAlive()){var o=e.renderedRows.get(t);o&&o.eDiv.focus()}}),10)},e.prototype.getComponentAt=function(t){var e=this.renderedRows.get(t);return e&&e.rowComponent},e.prototype.forEachRenderedRow=function(t){this.renderedRows.forEach((function(e,o){return t(e.rowComponent,o)}))},e.getTemplate=function(t){return'<div class="ag-virtual-list-viewport ag-'+t+'-virtual-list-viewport" role="presentation">\n                <div class="ag-virtual-list-container ag-'+t+'-virtual-list-container" ref="eContainer"></div>\n            </div>'},e.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},e.prototype.ensureIndexVisible=function(t,e){void 0===e&&(e=!0);var o=this.model.getRowCount();if("number"!=typeof t||t<0||t>=o)return console.warn("AG Grid: invalid row index for ensureIndexVisible: "+t),!1;var n=t*this.rowHeight,i=n+this.rowHeight,r=this.getGui(),s=r.scrollTop,a=r.offsetHeight,l=s+a,u=e?0:this.rowHeight,c=l<i-u;if(s>n+u)return r.scrollTop=n,!0;if(c){var p=i-a;return r.scrollTop=p,!0}return!1},e.prototype.setComponentCreator=function(t){this.componentCreator=t},e.prototype.setComponentUpdater=function(t){this.componentUpdater=t},e.prototype.getRowHeight=function(){return this.rowHeight},e.prototype.getScrollTop=function(){return this.getGui().scrollTop},e.prototype.setRowHeight=function(t){this.rowHeight=t,this.refresh()},e.prototype.refresh=function(t){var e=this;if(null!=this.model&&this.isAlive()){var o=this.model.getRowCount();this.eContainer.style.height=o*this.rowHeight+"px",G((function(){return e.eContainer.clientHeight>=o*e.rowHeight}),(function(){e.isAlive()&&(e.canSoftRefresh(t)?e.drawVirtualRows(!0):(e.clearVirtualRows(),e.drawVirtualRows()))}))}},e.prototype.canSoftRefresh=function(t){return!!(t&&this.renderedRows.size&&"function"==typeof this.model.areRowsEqual&&this.componentUpdater)},e.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(e,o){return t.removeRow(o)}))},e.prototype.drawVirtualRows=function(t){if(this.isAlive()&&this.model){var e=this.getGui(),o=e.scrollTop,n=o+e.offsetHeight,i=Math.floor(o/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(i,r,t)}},e.prototype.ensureRowsRendered=function(t,e,o){var n=this;this.renderedRows.forEach((function(o,i){(i<t||i>e)&&i!==n.lastFocusedRowIndex&&n.removeRow(i)})),o&&this.refreshRows();for(var i=t;i<=e;i++)this.renderedRows.has(i)||i<this.model.getRowCount()&&this.insertRow(i)},e.prototype.insertRow=function(t){var e=this,o=this.model.getRow(t),n=document.createElement("div");if(n.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Qe(n,"tree"===this.ariaRole?"treeitem":"option"),co(n,this.model.getRowCount()),po(n,t+1),n.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var i=this.model.isRowSelected(t);So(n,!!i),Eo(n,i)}n.style.height=this.rowHeight+"px",n.style.top=this.rowHeight*t+"px";var r=this.componentCreator(o,n);r.addGuiEventListener("focusin",(function(){return e.lastFocusedRowIndex=t})),n.appendChild(r.getGui()),this.renderedRows.has(t-1)?this.renderedRows.get(t-1).eDiv.insertAdjacentElement("afterend",n):this.renderedRows.has(t+1)?this.renderedRows.get(t+1).eDiv.insertAdjacentElement("beforebegin",n):this.eContainer.appendChild(n),this.renderedRows.set(t,{rowComponent:r,eDiv:n,value:o})},e.prototype.removeRow=function(t){var e=this.renderedRows.get(t);this.eContainer.removeChild(e.eDiv),this.destroyBean(e.rowComponent),this.renderedRows.delete(t)},e.prototype.refreshRows=function(){var t=this,e=this.model.getRowCount();this.renderedRows.forEach((function(o,n){var i,r;if(n>=e)t.removeRow(n);else{var s=t.model.getRow(n);(null===(r=(i=t.model).areRowsEqual)||void 0===r?void 0:r.call(i,o.value,s))?t.componentUpdater(s,o.rowComponent):t.removeRow(n)}}))},e.prototype.addScrollListener=function(){var t=this;this.addGuiEventListener("scroll",(function(){return t.drawVirtualRows()}),{passive:!0})},e.prototype.setModel=function(t){this.model=t},e.prototype.getAriaElement=function(){return this.eContainer},e.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),t.prototype.destroy.call(this))},gh([X("resizeObserverService")],e.prototype,"resizeObserverService",void 0),gh([X("animationFrameService")],e.prototype,"animationFrameService",void 0),gh([Pi("eContainer")],e.prototype,"eContainer",void 0),gh([Y],e.prototype,"postConstruct",null),e}(hh),yh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),mh=function(){return(mh=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ch=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},wh=function(t){function o(e){var o,n,i=t.call(this,mh(mh({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"smallDown",ariaRole:"combobox",template:null!==(o=null==e?void 0:e.template)&&void 0!==o?o:'\n    <div class="ag-picker-field" role="presentation">\n        <div ref="eLabel"></div>\n            <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed">\n            <div ref="eDisplayField" class="ag-picker-field-display"></div>\n            <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>\n            <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n        </div>\n    </div>',modalPicker:!1},e),{maxPickerHeight:null!==(n=null==e?void 0:e.maxPickerHeight)&&void 0!==n?n:"calc(var(--ag-row-height) * 6.5)"}))||this;i.searchString="",i.highlightedItem=-1,i.lastRowHovered=-1,i.searchStringCreator=null;var r=e||{},s=r.cellRowHeight,a=r.value,l=r.valueList,u=r.searchStringCreator;return null!=s&&(i.cellRowHeight=s),void 0!==a&&(i.value=a),null!=l&&(i.values=l),u&&(i.searchStringCreator=u),i}return yh(o,t),o.prototype.postConstruct=function(){var e,o=this;t.prototype.postConstruct.call(this),this.createLoadingElement(),this.createListComponent();var n=this.config,i=n.allowTyping,r=n.placeholder;i?(this.eInput.setAutoComplete(!1).setInputPlaceholder(r),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.eWrapper.tabIndex=null!==(e=this.gridOptionsService.getNum("tabIndex"))&&void 0!==e?e:0;var s=this.config.searchDebounceDelay,a=void 0===s?300:s;this.clearSearchString=N(this.clearSearchString,a),this.renderSelectedValue(),i&&(this.eInput.onValueChange((function(t){return o.searchTextFromString(t)})),this.addManagedListener(this.eWrapper,"focus",this.onWrapperFocus.bind(this))),this.addManagedListener(this.eWrapper,"focusout",this.onWrapperFocusOut.bind(this))},o.prototype.createLoadingElement=function(){var t=this.gridOptionsService.getDocument(),e=this.localeService.getLocaleTextFunc(),o=t.createElement("div");o.classList.add("ag-loading-text"),o.innerText=e("loadingOoo","Loading..."),this.eLoading=o},o.prototype.createListComponent=function(){var t=this;this.listComponent=this.createBean(new vh({cssIdentifier:"rich-select"})),this.listComponent.setComponentCreator(this.createRowComponent.bind(this)),this.listComponent.setParentComponent(this),this.addManagedListener(this.listComponent,qt.EVENT_FIELD_PICKER_VALUE_SELECTED,(function(e){t.onListValueSelected(e.value,e.fromEnterKey)}));var e=this.cellRowHeight;e&&this.listComponent.setRowHeight(e);var o=this.listComponent.getGui(),n=this.listComponent.getAriaElement();this.addManagedListener(o,"mousemove",this.onPickerMouseMove.bind(this)),this.addManagedListener(o,"mousedown",(function(t){return t.preventDefault()})),o.classList.add("ag-rich-select-list");var i="ag-rich-select-list-"+this.listComponent.getCompId();n.setAttribute("id",i),$e(n,this.localeService.getLocaleTextFunc()(this.config.pickerAriaLabelKey,this.config.pickerAriaLabelValue)),Ro(this.eWrapper,n)},o.prototype.renderSelectedValue=function(){var t,o,n=this,i=this.value,r=this.eDisplayField,s=this.config,a=this.config.valueFormatter?this.config.valueFormatter(i):i;if(s.allowTyping)this.eInput.setValue(a);else if(s.cellRenderer&&(t=this.userComponentFactory.getCellRendererDetails(this.config,{value:i,valueFormatted:a,api:this.gridOptionsService.api})),t&&(o=t.newAgStackInstance()),o)On(r),Kn(o,r),o.then((function(t){n.addDestroyFunc((function(){return n.getContext().destroyBean(t)}))}));else if(e(this.value))r.innerText=a,r.classList.remove("ag-display-as-placeholder");else{var l=s.placeholder;e(l)?(r.innerHTML=""+oe(l),r.classList.add("ag-display-as-placeholder")):On(r)}},o.prototype.getCurrentValueIndex=function(){var t=this.currentList,e=this.value;if(null==e)return-1;for(var o=0;o<t.length;o++)if(t[o]===e)return o;return-1},o.prototype.highlightFilterMatch=function(){var t,e=this;null===(t=this.listComponent)||void 0===t||t.forEachRenderedRow((function(t,o){t.highlightString(e.searchString)}))},o.prototype.highlightSelectedValue=function(t){var e,o=this;null==t&&(t=this.getCurrentValueIndex()),this.highlightedItem=t,null===(e=this.listComponent)||void 0===e||e.forEachRenderedRow((function(e,n){var i=-1!==t&&o.highlightedItem===n;e.updateHighlighted(i)}))},o.prototype.setRowHeight=function(t){t!==this.cellRowHeight&&(this.cellRowHeight=t),this.listComponent&&this.listComponent.setRowHeight(t)},o.prototype.createPickerComponent=function(){var t=this.values;return t&&this.setValueList({valueList:t}),this.listComponent},o.prototype.setSearchStringCreator=function(t){this.searchStringCreator=t},o.prototype.setValueList=function(t){var e=t.valueList,o=t.refresh;this.listComponent&&this.currentList!==e&&(this.currentList=e,this.listComponent.setModel({getRowCount:function(){return e.length},getRow:function(t){return e[t]}}),o&&(this.values?this.listComponent.refresh():(this.values=e,this.isPickerDisplayed&&this.showCurrentValueInPicker())))},o.prototype.showPicker=function(){t.prototype.showPicker.call(this),this.showCurrentValueInPicker()},o.prototype.showCurrentValueInPicker=function(){var t,e;if(this.listComponent)if(this.currentList){(null===(t=this.eLoading)||void 0===t?void 0:t.offsetParent)&&(null===(e=this.eLoading.parentElement)||void 0===e||e.removeChild(this.eLoading));var o=this.getCurrentValueIndex();-1!==o?(this.listComponent.refresh(),this.listComponent.ensureIndexVisible(o),this.listComponent.refresh(!0),this.highlightSelectedValue(o)):this.listComponent.refresh()}else this.isPickerDisplayed&&this.eLoading&&this.listComponent.appendChild(this.eLoading)},o.prototype.beforeHidePicker=function(){this.highlightedItem=-1,t.prototype.beforeHidePicker.call(this)},o.prototype.onWrapperFocus=function(t){this.eInput&&this.eInput.getFocusableElement().focus()},o.prototype.onWrapperFocusOut=function(t){this.eWrapper.contains(t.relatedTarget)||this.hidePicker()},o.prototype.buildSearchStringFromKeyboardEvent=function(t){var e=t.key;if(e===Zn.BACKSPACE)this.searchString=this.searchString.slice(0,-1),e="";else if(!$n(t))return;t.preventDefault(),this.searchTextFromCharacter(e)},o.prototype.searchTextFromCharacter=function(t){this.searchString+=t,this.runSearch(),this.clearSearchString()},o.prototype.searchTextFromString=function(t){null==t&&(t=""),this.searchString=t,this.runSearch()},o.prototype.buildSearchStrings=function(t){var e,o=this.config.valueFormatter,n=void 0===o?function(t){return t}:o;return"number"==typeof t[0]||"string"==typeof t[0]?e=t.map((function(t){return n(t)})):"object"==typeof t[0]&&this.searchStringCreator&&(e=this.searchStringCreator(t)),e},o.prototype.getSuggestionsAndFilteredValues=function(t,e){var o=this,n=[],i=[];if(!t.length)return{suggestions:n,filteredValues:i};var r=this.config,s=r.allowTyping,a=r.searchType,l=void 0===a?"fuzzy":a,u=r.filterList&&s;if("fuzzy"===l){var c=me(this.searchString,e,!0);n=c.values;var p=c.indices;if(u&&p.length)for(var d=0;d<p.length;d++)i.push(this.values[p[d]])}else n=e.filter((function(t,e){var n=t.toLocaleLowerCase(),r=o.searchString.toLocaleLowerCase(),s="match"===l?n.startsWith(r):-1!==n.indexOf(r);return u&&s&&i.push(o.values[e]),s}));return{suggestions:n,filteredValues:i}},o.prototype.filterListModel=function(t){var e=this.config,o=e.allowTyping,n=e.filterList;o&&n&&this.setValueList({valueList:t,refresh:!0})},o.prototype.runSearch=function(){var t,e,o,n=this.values,i=this.buildSearchStrings(n);if(i){var r=this.getSuggestionsAndFilteredValues(this.searchString,i),s=r.suggestions,a=r.filteredValues,l=this.config,u=l.allowTyping,c=l.filterList,p=l.highlightMatch,d=l.searchType,h=void 0===d?"fuzzy":d,f=a.length,g=!(!u||!c||""===this.searchString);if(g&&this.filterListModel(g?a:n),s.length){var v=g?0:i.indexOf(s[0]);this.selectListItem(v),p&&"fuzzy"!==h&&this.highlightFilterMatch()}else if(this.highlightSelectedValue(-1),!g||f)null===(t=this.listComponent)||void 0===t||t.ensureIndexVisible(0);else if(g){this.getAriaElement().removeAttribute("data-active-option");var y=null===(e=this.listComponent)||void 0===e?void 0:e.getAriaElement();y&&ao(y,null)}var m=null===(o=this.listComponent)||void 0===o?void 0:o.getGui();null==m||m.classList.toggle("ag-hidden",g&&!f)}else this.highlightSelectedValue(-1)},o.prototype.clearSearchString=function(){this.searchString=""},o.prototype.selectListItem=function(t,e,o){!this.isPickerDisplayed||!this.listComponent||t<0||t>=this.currentList.length||(this.listComponent.ensureIndexVisible(t,!e)&&!o&&this.listComponent.refresh(!0),this.highlightSelectedValue(t))},o.prototype.setValue=function(e,o,n){var i=this.currentList.indexOf(e);return-1===i?this:(this.value=e,n||this.selectListItem(i),this.renderSelectedValue(),t.prototype.setValue.call(this,e,o))},o.prototype.createRowComponent=function(t){var e=new uh(this.config,this.eWrapper);e.setParentComponent(this.listComponent),this.getContext().createBean(e),e.setState(t);var o=this.config,n=o.highlightMatch,i=o.searchType;return n&&"fuzzy"!==(void 0===i?"fuzzy":i)&&e.highlightString(this.searchString),e},o.prototype.getRowForMouseEvent=function(t){var e=this.listComponent;if(!e)return-1;var o=(null==e?void 0:e.getGui()).getBoundingClientRect(),n=e.getScrollTop(),i=t.clientY-o.top+n;return Math.floor(i/e.getRowHeight())},o.prototype.onPickerMouseMove=function(t){if(this.listComponent){var e=this.getRowForMouseEvent(t);-1!==e&&e!=this.lastRowHovered&&(this.lastRowHovered=e,this.selectListItem(e,!0,!0))}},o.prototype.onNavigationKeyDown=function(t,e){t.preventDefault();var o=e===Zn.DOWN;if(this.isPickerDisplayed||!o){var n=this.highlightedItem,i=-1===n?0:n+(o?1:-1);this.selectListItem(i,!1,!0)}else this.showPicker()},o.prototype.onEnterKeyDown=function(t){this.isPickerDisplayed&&(t.preventDefault(),this.onListValueSelected(this.currentList[this.highlightedItem],!0))},o.prototype.onTabKeyDown=function(){this.isPickerDisplayed&&this.setValue(this.currentList[this.highlightedItem],!1,!0)},o.prototype.onListValueSelected=function(t,e){this.setValue(t,!1,!0),this.dispatchPickerEvent(t,e),this.hidePicker()},o.prototype.dispatchPickerEvent=function(t,e){var o={type:qt.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:e,value:t};this.dispatchEvent(o)},o.prototype.getFocusableElement=function(){return this.config.allowTyping?this.eInput.getFocusableElement():t.prototype.getFocusableElement.call(this)},o.prototype.onKeyDown=function(t){var e=t.key,o=this.config.allowTyping;switch(e){case Zn.LEFT:case Zn.RIGHT:case Zn.PAGE_HOME:case Zn.PAGE_END:o||t.preventDefault();break;case Zn.PAGE_UP:case Zn.PAGE_DOWN:t.preventDefault();break;case Zn.DOWN:case Zn.UP:this.onNavigationKeyDown(t,e);break;case Zn.ESCAPE:this.isPickerDisplayed&&(t.preventDefault(),_t(t),this.hidePicker());break;case Zn.ENTER:this.onEnterKeyDown(t);break;case Zn.TAB:this.onTabKeyDown();break;default:o||this.buildSearchStringFromKeyboardEvent(t)}},o.prototype.destroy=function(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),this.eLoading=void 0,t.prototype.destroy.call(this)},Ch([X("userComponentFactory")],o.prototype,"userComponentFactory",void 0),Ch([Pi("eInput")],o.prototype,"eInput",void 0),o}($i),Sh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Eh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Rh=function(t){function e(o){var n=t.call(this,o,e.TEMPLATE)||this;return n.labelAlignment="top",n}return Sh(e,t),e.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},e.prototype.onValueChange=function(t){var e=this,o=qt.EVENT_FIELD_VALUE_CHANGED;return this.addManagedListener(this.eText,o,(function(){var o=parseFloat(e.eText.getValue());e.eSlider.setValue(o.toString(),!0),t(o||0)})),this.addManagedListener(this.eSlider,o,(function(){var o=e.eSlider.getValue();e.eText.setValue(o,!0),t(parseFloat(o))})),this},e.prototype.setSliderWidth=function(t){return this.eSlider.setWidth(t),this},e.prototype.setTextFieldWidth=function(t){return this.eText.setWidth(t),this},e.prototype.setMinValue=function(t){return this.eSlider.setMinValue(t),this.eText.setMin(t),this},e.prototype.setMaxValue=function(t){return this.eSlider.setMaxValue(t),this.eText.setMax(t),this},e.prototype.getValue=function(){return this.eText.getValue()},e.prototype.setValue=function(t){return this.getValue()===t||(this.eText.setValue(t,!0),this.eSlider.setValue(t,!0),this.dispatchEvent({type:qt.EVENT_FIELD_VALUE_CHANGED})),this},e.prototype.setStep=function(t){return this.eSlider.setStep(t),this.eText.setStep(t),this},e.TEMPLATE='<div class="ag-slider">\n            <label ref="eLabel"></label>\n            <div class="ag-wrapper ag-slider-wrapper">\n                <ag-input-range ref="eSlider"></ag-input-range>\n                <ag-input-number-field ref="eText"></ag-input-number-field>\n            </div>\n        </div>',Eh([Pi("eLabel")],e.prototype,"eLabel",void 0),Eh([Pi("eSlider")],e.prototype,"eSlider",void 0),Eh([Pi("eText")],e.prototype,"eText",void 0),Eh([Y],e.prototype,"init",null),e}(qi),bh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Oh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Th=function(t){function e(o){void 0===o&&(o={});var n=t.call(this,e.getTemplate(o))||this;n.suppressEnabledCheckbox=!0,n.suppressOpenCloseIcons=!1;var i=o.title,r=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return n.title=i,n.cssIdentifier=o.cssIdentifier||"default",n.enabled=null==r||r,n.items=s||[],n.alignItems=o.alignItems||"center",null!=a&&(n.suppressEnabledCheckbox=a),null!=l&&(n.suppressOpenCloseIcons=l),n}return bh(e,t),e.getTemplate=function(t){var e=t.cssIdentifier||"default";return'<div class="ag-group ag-'+e+'-group" role="presentation">\n            <div class="ag-group-title-bar ag-'+e+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n                <span class="ag-group-title-bar-icon ag-'+e+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n                <span class="ag-group-title-bar-icon ag-'+e+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n                <span ref="eTitle" class="ag-group-title ag-'+e+'-group-title"></span>\n            </div>\n            <div ref="eToolbar" class="ag-group-toolbar ag-'+e+'-group-toolbar">\n                <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n            </div>\n            <div ref="eContainer" class="ag-group-container ag-group-container-'+(t.direction||"vertical")+" ag-"+e+'-group-container"></div>\n        </div>'},e.prototype.postConstruct=function(){if(this.items.length){var t=this.items;this.items=[],this.addItems(t)}var e=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},e.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(Qn("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Qn("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(e){switch(e.key){case Zn.ENTER:case Zn.SPACE:e.preventDefault(),t.toggleGroupExpand();break;case Zn.RIGHT:case Zn.LEFT:e.preventDefault(),t.toggleGroupExpand(e.key===Zn.RIGHT)}}))},e.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||lo(this.eTitleBar,this.expanded)},e.prototype.refreshChildDisplay=function(){var t=!this.suppressOpenCloseIcons;dn(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),dn(this.eGroupOpenedIcon,t&&this.expanded),dn(this.eGroupClosedIcon,t&&!this.expanded)},e.prototype.isExpanded=function(){return this.expanded},e.prototype.setAlignItems=function(t){this.alignItems!==t&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=t;var e="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(e),this},e.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),dn(this.eContainer,!0),this):(t=null!=t?t:!this.expanded,this.expanded===t||(this.expanded=t,this.refreshAriaStatus(),this.refreshChildDisplay(),dn(this.eContainer,t),this.dispatchEvent({type:this.expanded?e.EVENT_EXPANDED:e.EVENT_COLLAPSED})),this)},e.prototype.addItems=function(t){var e=this;t.forEach((function(t){return e.addItem(t)}))},e.prototype.addItem=function(t){var e=this.eContainer,o=t instanceof Ti?t.getGui():t;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),e.appendChild(o),this.items.push(o)},e.prototype.hideItem=function(t,e){dn(this.items[e],!t)},e.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},e.prototype.addCssClassToTitleBar=function(t){this.eTitleBar.classList.add(t)},e.prototype.setEnabled=function(t,e){return this.enabled=t,this.refreshDisabledStyles(),this.toggleGroupExpand(t),e||this.cbGroupEnabled.setValue(t),this},e.prototype.isEnabled=function(){return this.enabled},e.prototype.onEnableChange=function(t){var e=this;return this.cbGroupEnabled.onValueChange((function(o){e.setEnabled(o,!0),t(o)})),this},e.prototype.hideEnabledCheckbox=function(t){return this.suppressEnabledCheckbox=t,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},e.prototype.hideOpenCloseIcons=function(t){return this.suppressOpenCloseIcons=t,t&&this.toggleGroupExpand(!0),this},e.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},e.EVENT_EXPANDED="expanded",e.EVENT_COLLAPSED="collapsed",Oh([Pi("eTitleBar")],e.prototype,"eTitleBar",void 0),Oh([Pi("eGroupOpenedIcon")],e.prototype,"eGroupOpenedIcon",void 0),Oh([Pi("eGroupClosedIcon")],e.prototype,"eGroupClosedIcon",void 0),Oh([Pi("eToolbar")],e.prototype,"eToolbar",void 0),Oh([Pi("cbGroupEnabled")],e.prototype,"cbGroupEnabled",void 0),Oh([Pi("eTitle")],e.prototype,"eTitle",void 0),Oh([Pi("eContainer")],e.prototype,"eContainer",void 0),Oh([Y],e.prototype,"postConstruct",null),e}(Ti),Dh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ph=function(){return(Ph=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},_h=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ah=function(t){function e(e){void 0===e&&(e=1);var o=t.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return o.level=e,o.menuItems=[],o}return Dh(e,t),e.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}})},e.prototype.onTabKeyDown=function(t){var e=this.getParentComponent(),o=e&&e.getGui();o&&o.classList.contains("ag-focus-managed")||t.preventDefault(),t.shiftKey&&this.closeIfIsChild(t)},e.prototype.handleKeyDown=function(t){switch(t.key){case Zn.UP:case Zn.RIGHT:case Zn.DOWN:case Zn.LEFT:t.preventDefault(),this.handleNavKey(t.key);break;case Zn.ESCAPE:var e=this.findTopMenu();e&&this.focusService.focusInto(e.getGui())}},e.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},e.prototype.addMenuItems=function(t){var e=this;null!=t&&t.forEach((function(t){"separator"===t?e.addSeparator():"string"==typeof t?console.warn("AG Grid: unrecognised menu item "+t):e.addItem(t)}))},e.prototype.addItem=function(t){var e=this,o=this.createManagedBean(new Gh(Ph(Ph({},t),{isAnotherSubMenuOpen:function(){return e.menuItems.some((function(t){return t.isSubMenuOpen()}))}})));o.setParentComponent(this),io(o.getGui(),this.level),this.menuItems.push(o),this.appendChild(o.getGui()),this.addManagedListener(o,Gh.EVENT_MENU_ITEM_SELECTED,(function(t){e.dispatchEvent(t)})),this.addManagedListener(o,Gh.EVENT_MENU_ITEM_ACTIVATED,(function(t){e.activeMenuItem&&e.activeMenuItem!==t.menuItem&&e.activeMenuItem.deactivate(),e.activeMenuItem=t.menuItem}))},e.prototype.activateFirstItem=function(){var t=this.menuItems.filter((function(t){return!t.isDisabled()}))[0];t&&t.activate()},e.prototype.addSeparator=function(){this.appendChild(Pn('\n            <div class="ag-menu-separator" aria-hidden="true">\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n            </div>'))},e.prototype.findTopMenu=function(){var t=this.getParentComponent();if(!t&&this instanceof e)return this;for(;;){var o=t&&t.getParentComponent&&t.getParentComponent();if(!o||!(o instanceof e||o instanceof Gh))break;t=o}return t instanceof e?t:void 0},e.prototype.handleNavKey=function(t){switch(t){case Zn.UP:case Zn.DOWN:var e=this.findNextItem(t===Zn.UP);return void(e&&e!==this.activeMenuItem&&e.activate())}t===(this.gridOptionsService.is("enableRtl")?Zn.RIGHT:Zn.LEFT)?this.closeIfIsChild():this.openChild()},e.prototype.closeIfIsChild=function(t){var e=this.getParentComponent();e&&e instanceof Gh&&(t&&t.preventDefault(),e.closeSubMenu(),e.getGui().focus())},e.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},e.prototype.findNextItem=function(t){var e=this.menuItems.filter((function(t){return!t.isDisabled()}));if(e.length){if(!this.activeMenuItem)return t?ft(e):e[0];var o;t&&e.reverse();for(var n=!1,i=0;i<e.length;i++){var r=e[i];if(n){o=r;break}r===this.activeMenuItem&&(n=!0)}return o||this.activeMenuItem}},e.prototype.destroy=function(){this.clearActiveItem(),t.prototype.destroy.call(this)},_h([X("focusService")],e.prototype,"focusService",void 0),_h([Y],e.prototype,"postConstruct",null),e}(hh),Fh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Lh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ih=function(t){function e(e){var o=t.call(this)||this;return o.wrappedComponent=e,o.setTemplateFromElement(e.getGui()),o}return Fh(e,t),e.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}})},e.prototype.handleKeyDown=function(t){t.key===Zn.ESCAPE&&this.closePanel()},e.prototype.onTabKeyDown=function(t){t.defaultPrevented||(this.closePanel(),t.preventDefault())},e.prototype.closePanel=function(){var t=this.parentComponent;t.closeSubMenu(),setTimeout((function(){return t.getGui().focus()}),0)},Lh([Y],e.prototype,"postConstruct",null),e}(hh),Nh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gh=function(t){function e(e){var o=t.call(this)||this;return o.params=e,o.isActive=!1,o.subMenuIsOpen=!1,o.setTemplate('<div class="'+o.getClassName()+'" tabindex="-1" role="treeitem"></div>'),o}return Nh(e,t),e.prototype.init=function(){var t=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var e=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),ro(e,!0)):(this.addGuiEventListener("click",(function(e){return t.onItemSelected(e)})),this.addGuiEventListener("keydown",(function(e){e.key!==Zn.ENTER&&e.key!==Zn.SPACE||(e.preventDefault(),t.onItemSelected(e))})),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation(),t.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return t.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return t.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(e){return t.addCssClass(e)}))},e.prototype.isDisabled=function(){return!!this.params.disabled},e.prototype.openSubMenu=function(t){var o=this;if(void 0===t&&(t=!1),this.closeSubMenu(),this.params.subMenu){var n,i=Pn('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var r=Je(this.getGui()),s=isNaN(r)?1:r+1,a=this.createBean(new Ah(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),i.appendChild(a.getGui()),this.addManagedListener(a,e.EVENT_MENU_ITEM_SELECTED,(function(t){return o.dispatchEvent(t)})),a.addGuiEventListener("mouseenter",(function(){return o.cancelDeactivate()})),n=function(){return o.destroyBean(a)},t&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new Ih(l));u.setParentComponent(this);var c=u.getGui(),p=function(){return o.cancelDeactivate()};c.addEventListener("mouseenter",p),n=function(){return c.removeEventListener("mouseenter",p)},i.appendChild(c),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var d=this.getGui(),h=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:d,ePopup:i}),f=this.localeService.getLocaleTextFunc(),g=this.popupService.addPopup({modal:!0,eChild:i,positionCallback:h,anchorToElement:d,ariaLabel:f("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,lo(d,!0),this.hideSubMenu=function(){g&&g.hideFunc(),o.subMenuIsOpen=!1,lo(d,!1),n()}}},e.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,lo(this.getGui(),!1))},e.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},e.prototype.activate=function(t){var e=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),t&&this.params.subMenu&&window.setTimeout((function(){e.isAlive()&&e.isActive&&e.openSubMenu()}),300),this.onItemActivated())},e.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},e.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var t=Pn('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?t.appendChild(Xn("check",this.gridOptionsService)):this.params.icon&&(Bn(this.params.icon)?t.appendChild(this.params.icon):"string"==typeof this.params.icon?t.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(t)}},e.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var t=Pn('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(t)}},e.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsService.is("enableBrowserTooltips")?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Si(this)))},e.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},e.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var t=Pn('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(t)}},e.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var t=Pn('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),e=this.getGui();if(this.params.subMenu){var o=this.gridOptionsService.is("enableRtl")?"smallLeft":"smallRight";lo(e,!1),t.appendChild(Xn(o,this.gridOptionsService))}e.appendChild(t)}},e.prototype.onItemSelected=function(t){if(this.params.action?this.params.action():this.openSubMenu(t&&"keydown"===t.type),!this.params.subMenu||this.params.action){var o={type:e.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:t};this.dispatchEvent(o)}},e.prototype.onItemActivated=function(){var t={type:e.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(t)},e.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},e.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},e.prototype.onMouseEnter=function(){var t=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return t.activate(!0)}),e.ACTIVATION_DELAY):this.activate(!0)},e.prototype.onMouseLeave=function(){var t=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return t.deactivate()}),e.ACTIVATION_DELAY):this.deactivate()},e.prototype.getClassName=function(t){var e=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return t?e+"-"+t:e},e.EVENT_MENU_ITEM_SELECTED="menuItemSelected",e.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",e.ACTIVATION_DELAY=80,Mh([X("popupService")],e.prototype,"popupService",void 0),Mh([Y],e.prototype,"init",null),e}(Ti),xh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hh=function(t){function e(o){var n=t.call(this,e.getTemplate(o))||this;return n.closable=!0,n.config=o,n}return xh(e,t),e.getTemplate=function(t){var e=t&&t.cssIdentifier||"default";return'<div class="ag-panel ag-'+e+'-panel" tabindex="-1">\n            <div ref="eTitleBar" class="ag-panel-title-bar ag-'+e+'-panel-title-bar ag-unselectable">\n                <span ref="eTitle" class="ag-panel-title-bar-title ag-'+e+'-panel-title-bar-title"></span>\n                <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+e+'-panel-title-bar-buttons"></div>\n            </div>\n            <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+e+'-panel-content-wrapper"></div>\n        </div>'},e.prototype.postConstruct=function(){var t=this,e=this.config,o=e.component,n=e.closable,i=e.hideTitleBar,r=e.title,s=e.minWidth,a=void 0===s?250:s,l=e.width,u=e.minHeight,c=void 0===u?250:u,p=e.height,d=e.centered,h=e.popup,f=e.x,g=e.y;this.positionableFeature=new ji(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return t.positionableFeature.getHeight()-t.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var v=this.getGui();o&&this.setBodyComponent(o),i?dn(this.eTitleBar,!1):(r&&this.setTitle(r),this.setClosable(null!=n?n:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(e){var o=t.gridOptionsService.getDocument();if(v.contains(e.relatedTarget)||v.contains(o.activeElement)||t.eTitleBarButtons.contains(e.target))e.preventDefault();else{var n=t.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");n&&n.focus()}})),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},e.prototype.renderComponent=function(){var t=this,e=this.getGui();e.focus(),this.close=function(){e.parentElement.removeChild(e),t.destroy()}},e.prototype.getHeight=function(){return this.positionableFeature.getHeight()},e.prototype.setHeight=function(t){this.positionableFeature.setHeight(t)},e.prototype.getWidth=function(){return this.positionableFeature.getWidth()},e.prototype.setWidth=function(t){this.positionableFeature.setWidth(t)},e.prototype.setClosable=function(t){if(t!==this.closable&&(this.closable=t),t){var o=this.closeButtonComp=new Ti(e.CLOSE_BTN_TEMPLATE);this.getContext().createBean(o);var n=o.getGui(),i=Xn("close",this.gridOptionsService);i.classList.add("ag-panel-title-bar-button-icon"),n.appendChild(i),this.addTitleBarButton(o),o.addManagedListener(n,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(n=this.closeButtonComp.getGui()).parentElement.removeChild(n),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},e.prototype.setBodyComponent=function(t){t.setParentComponent(this),this.eContentWrapper.appendChild(t.getGui())},e.prototype.addTitleBarButton=function(t,e){var o=this.eTitleBarButtons,n=o.children,i=n.length;null==e&&(e=i),e=Math.max(0,Math.min(e,i)),t.addCssClass("ag-panel-title-bar-button");var r=t.getGui();0===e?o.insertAdjacentElement("afterbegin",r):e===i?o.insertAdjacentElement("beforeend",r):n[e-1].insertAdjacentElement("afterend",r),t.setParentComponent(this)},e.prototype.getBodyHeight=function(){return yn(this.eContentWrapper)},e.prototype.getBodyWidth=function(){return mn(this.eContentWrapper)},e.prototype.setTitle=function(t){this.eTitle.innerText=t},e.prototype.onBtClose=function(){this.close()},e.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&e.offsetParent&&this.close(),t.prototype.destroy.call(this)},e.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Vh([Pi("eContentWrapper")],e.prototype,"eContentWrapper",void 0),Vh([Pi("eTitleBar")],e.prototype,"eTitleBar",void 0),Vh([Pi("eTitleBarButtons")],e.prototype,"eTitleBarButtons",void 0),Vh([Pi("eTitle")],e.prototype,"eTitle",void 0),Vh([Y],e.prototype,"postConstruct",null),e}(Ti),kh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bh=function(){return(Bh=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},jh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Wh=function(t){function e(e){var o=t.call(this,Bh(Bh({},e),{popup:!0}))||this;return o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.lastPosition={x:0,y:0,width:0,height:0},o}return kh(e,t),e.prototype.postConstruct=function(){var e=this,o=this.getGui(),n=this.config,i=n.movable,r=n.resizable,s=n.maximizable;this.addCssClass("ag-dialog"),t.prototype.postConstruct.call(this),this.addManagedListener(o,"focusin",(function(t){o.contains(t.relatedTarget)||e.popupService.bringPopupToFront(o)})),i&&this.setMovable(i),s&&this.setMaximizable(s),r&&this.setResizable(r)},e.prototype.renderComponent=function(){var t=this.getGui(),e=this.config,o=e.alwaysOnTop,n=e.modal,i=e.title,r=e.afterGuiAttached,s=this.localeService.getLocaleTextFunc(),a=this.popupService.addPopup({modal:n,eChild:t,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:i||s("ariaLabelDialog","Dialog"),afterGuiAttached:r});a&&(this.close=a.hideFunc)},e.prototype.toggleMaximize=function(){var t=this.positionableFeature.getPosition();if(this.isMaximized){var e=this.lastPosition,o=e.x,n=e.y,i=e.width,r=e.height;this.setWidth(i),this.setHeight(r),this.positionableFeature.offsetElement(o,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=t.x,this.lastPosition.y=t.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},e.prototype.refreshMaximizeIcon=function(){dn(this.maximizeIcon,!this.isMaximized),dn(this.minimizeIcon,this.isMaximized)},e.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(t){return t()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},e.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),t.prototype.destroy.call(this)},e.prototype.setResizable=function(t){this.positionableFeature.setResizable(t)},e.prototype.setMovable=function(t){this.positionableFeature.setMovable(t,this.eTitleBar)},e.prototype.setMaximizable=function(t){var e=this;if(!t)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&t!==this.isMaximizable){var n=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),n.addManagedListener(n.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(n,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){e.isMaximized=!1,e.refreshMaximizeIcon()}))}},e.prototype.buildMaximizeAndMinimizeElements=function(){var t=this.maximizeButtonComp=this.createBean(new Ti('<div class="ag-dialog-button"></span>')),e=t.getGui();return this.maximizeIcon=Xn("maximize",this.gridOptionsService),e.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=Xn("minimize",this.gridOptionsService),e.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),t},jh([X("popupService")],e.prototype,"popupService",void 0),e}(Hh),Uh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),zh=function(){return(zh=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Kh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Yh=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},qh=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t};!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal"}(Hd||(Hd={}));var Qh,Xh=0,Jh=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.popupList=[],e}var n;return Uh(o,t),n=o,o.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridCtrl=e.gridCtrl,t.addManagedListener(t.gridCtrl,qt.EVENT_KEYBOARD_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.add(wp.AG_KEYBOARD_FOCUS)}))})),t.addManagedListener(t.gridCtrl,qt.EVENT_MOUSE_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.remove(wp.AG_KEYBOARD_FOCUS)}))}))}))},o.prototype.getPopupParent=function(){var t=this.gridOptionsService.get("popupParent");return t||this.gridCtrl.getGui()},o.prototype.positionPopupForMenu=function(t){var e=t.eventSource,o=t.ePopup,n=this.getPopupIndex(o);-1!==n&&(this.popupList[n].alignedToElement=e);var i=e.getBoundingClientRect(),r=this.getParentRect(),s=this.keepXYWithinBounds(o,i.top-r.top,Hd.vertical),a=o.clientWidth>0?o.clientWidth:200;o.style.minWidth=a+"px";var l,u=r.right-r.left-a;function c(){return i.right-r.left-2}function p(){return i.left-r.left-a}this.gridOptionsService.is("enableRtl")?((l=p())<0&&(l=c(),this.setAlignedStyles(o,"left")),l>u&&(l=0,this.setAlignedStyles(o,"right"))):((l=c())>u&&(l=p(),this.setAlignedStyles(o,"right")),l<0&&(l=0,this.setAlignedStyles(o,"left"))),o.style.left=l+"px",o.style.top=s+"px"},o.prototype.positionPopupUnderMouseEvent=function(t){var e=this,o=t.ePopup,n=t.nudgeX,i=t.nudgeY,r=t.skipObserver;this.positionPopup({ePopup:o,nudgeX:n,nudgeY:i,keepWithinBounds:!0,skipObserver:r,updatePosition:function(){return e.calculatePointerAlign(t.mouseEvent)},postProcessCallback:function(){return e.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)}})},o.prototype.calculatePointerAlign=function(t){var e=this.getParentRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},o.prototype.positionPopupByComponent=function(t){var e=this,o=t.ePopup,n=t.nudgeX,i=t.nudgeY,r=t.keepWithinBounds,s=t.eventSource,a=t.alignSide,l=void 0===a?"left":a,u=t.position,c=void 0===u?"over":u,p=t.column,d=t.rowNode,h=t.type,f=s.getBoundingClientRect(),g=this.getParentRect(),v=this.getPopupIndex(o);-1!==v&&(this.popupList[v].alignedToElement=s);this.positionPopup({ePopup:o,nudgeX:n,nudgeY:i,keepWithinBounds:r,updatePosition:function(){var n,r=f.left-g.left;("right"===l&&(r-=o.offsetWidth-f.width),"over"===c)?(n=f.top-g.top,e.setAlignedStyles(o,"over")):(e.setAlignedStyles(o,"under"),n="under"===e.shouldRenderUnderOrAbove(o,f,g,t.nudgeY||0)?f.top-g.top+f.height:f.top-o.offsetHeight-2*(i||0)-g.top);return{x:r,y:n}},postProcessCallback:function(){return e.callPostProcessPopup(h,o,s,null,p,d)}})},o.prototype.shouldRenderUnderOrAbove=function(t,e,o,n){var i=o.bottom-e.bottom,r=e.top-o.top,s=t.offsetHeight+n;return i>s?"under":r>s||r>i?"above":"under"},o.prototype.setAlignedStyles=function(t,e){var o=this.getPopupIndex(t);if(-1!==o){var n=this.popupList[o].alignedToElement;if(n){["right","left","over","above","under"].forEach((function(e){n.classList.remove("ag-has-popup-positioned-"+e),t.classList.remove("ag-popup-positioned-"+e)})),e&&(n.classList.add("ag-has-popup-positioned-"+e),t.classList.add("ag-popup-positioned-"+e))}}},o.prototype.callPostProcessPopup=function(t,e,o,n,i,r){var s=this.gridOptionsService.getCallback("postProcessPopup");s&&s({column:i,rowNode:r,ePopup:e,type:t,eventSource:o,mouseEvent:n})},o.prototype.positionPopup=function(t){var e=this,o=t.ePopup,i=t.keepWithinBounds,r=t.nudgeX,s=t.nudgeY,a=t.skipObserver,l=t.updatePosition,u={width:0,height:0},c=function(n){void 0===n&&(n=!1);var a=l(),c=a.x,p=a.y;n&&o.clientWidth===u.width&&o.clientHeight===u.height||(u.width=o.clientWidth,u.height=o.clientHeight,r&&(c+=r),s&&(p+=s),i&&(c=e.keepXYWithinBounds(o,c,Hd.horizontal),p=e.keepXYWithinBounds(o,p,Hd.vertical)),o.style.left=c+"px",o.style.top=p+"px",t.postProcessCallback&&t.postProcessCallback())};if(c(),!a){var p=this.resizeObserverService.observeResize(o,(function(){return c(!0)}));setTimeout((function(){return p()}),n.WAIT_FOR_POPUP_CONTENT_RESIZE)}},o.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},o.prototype.getPopupList=function(){return this.popupList},o.prototype.getParentRect=function(){var t=this.gridOptionsService.getDocument(),e=this.getPopupParent();return e===t.body?e=t.documentElement:"static"===getComputedStyle(e).position&&(e=e.offsetParent),Sn(e)},o.prototype.keepXYWithinBounds=function(t,e,o){var n=o===Hd.vertical,i=n?"clientHeight":"clientWidth",r=n?"top":"left",s=n?"offsetHeight":"offsetWidth",a=n?"scrollTop":"scrollLeft",l=this.gridOptionsService.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=t[s],g=h?(n?Cn:wn)(u)+u[a]:c[i];h&&(g-=Math.abs(d[r]-p[r]));var v=g-f;return Math.min(Math.max(e,0),Math.abs(v))},o.prototype.addPopup=function(t){var e=this.gridOptionsService.getDocument(),o=t.eChild,n=t.ariaLabel,i=t.alwaysOnTop,r=t.positionCallback,s=t.anchorToElement;if(!e)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){}};var a=this.getPopupIndex(o);if(-1!==a)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(o);var l=this.createPopupWrapper(o,n,!!i),u=this.addEventListenersToPopup(zh(zh({},t),{wrapperEl:l}));return r&&r(),this.addPopupToPopupList(o,l,u,s),{hideFunc:u}},o.prototype.initialisePopupPosition=function(t){var o=this.getPopupParent().getBoundingClientRect();e(t.style.top)||(t.style.top=-1*o.top+"px"),e(t.style.left)||(t.style.left=-1*o.left+"px")},o.prototype.createPopupWrapper=function(t,e,o){var n,i=this.getPopupParent(),r=document.createElement("div"),s=this.environment.getTheme().allThemes;return s.length&&(n=r.classList).add.apply(n,qh([],Yh(s))),r.classList.add("ag-popup"),t.classList.add(this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),t.hasAttribute("role")||Qe(t,"dialog"),$e(t,e),this.focusService.isKeyboardMode()&&t.classList.add(wp.AG_KEYBOARD_FOCUS),r.appendChild(t),i.appendChild(r),o?this.setAlwaysOnTop(t,!0):this.bringPopupToFront(t),r},o.prototype.addEventListenersToPopup=function(t){var e=this,o=this.gridOptionsService.getDocument(),n=this.getPopupParent(),i=t.wrapperEl,r=t.eChild;t.click;var s=t.closedCallback,a=t.afterGuiAttached,l=t.closeOnEsc,u=t.modal,c=!1,p=function(t){i.contains(o.activeElement)&&(t.key!==Zn.ESCAPE||At(t)||f({keyboardEvent:t}))},d=function(t){return f({mouseEvent:t})},h=function(t){return f({touchEvent:t})},f=function(t){void 0===t&&(t={});var a=t.mouseEvent,l=t.touchEvent,u=t.keyboardEvent;e.isEventFromCurrentPopup({mouseEvent:a,touchEvent:l},r)||c||(c=!0,n.removeChild(i),o.removeEventListener("keydown",p),o.removeEventListener("mousedown",d),o.removeEventListener("touchstart",h),o.removeEventListener("contextmenu",d),e.eventService.removeEventListener(qt.EVENT_DRAG_STARTED,d),s&&s(a||l||u),e.removePopupFromPopupList(r))};return a&&a({hidePopup:f}),window.setTimeout((function(){l&&o.addEventListener("keydown",p),u&&(o.addEventListener("mousedown",d),e.eventService.addEventListener(qt.EVENT_DRAG_STARTED,d),o.addEventListener("touchstart",h),o.addEventListener("contextmenu",d))}),0),f},o.prototype.addPopupToPopupList=function(t,e,o,n){this.popupList.push({element:t,wrapper:e,hideFunc:o,instanceId:Xh++,isAnchored:!!n}),n&&this.setPopupPositionRelatedToElement(t,n)},o.prototype.getPopupIndex=function(t){return this.popupList.findIndex((function(e){return e.element===t}))},o.prototype.setPopupPositionRelatedToElement=function(t,e){var o=this.getPopupIndex(t);if(-1!==o){var n=this.popupList[o];if(n.stopAnchoringPromise&&n.stopAnchoringPromise.then((function(t){return t&&t()})),n.stopAnchoringPromise=void 0,n.isAnchored=!1,e){var i=this.keepPopupPositionedRelativeTo({element:e,ePopup:t,hidePopup:n.hideFunc});return n.stopAnchoringPromise=i,n.isAnchored=!0,i}}},o.prototype.removePopupFromPopupList=function(t){this.setAlignedStyles(t,null),this.setPopupPositionRelatedToElement(t,null),this.popupList=this.popupList.filter((function(e){return e.element!==t}))},o.prototype.keepPopupPositionedRelativeTo=function(t){var e=this,o=this.getPopupParent(),n=o.getBoundingClientRect(),i=t.element,r=t.ePopup,s=i.getBoundingClientRect(),a=n.top-s.top,l=n.left-s.left,u=a,c=l,p=r.style.top,d=parseInt(p.substring(0,p.length-1),10),h=r.style.left,f=parseInt(h.substring(0,h.length-1),10);return new vi((function(n){e.getFrameworkOverrides().setInterval((function(){var n=o.getBoundingClientRect(),s=i.getBoundingClientRect();if(0==s.top&&0==s.left&&0==s.height&&0==s.width)t.hidePopup();else{var p=n.top-s.top;if(p!=u){var h=e.keepXYWithinBounds(r,d+a-p,Hd.vertical);r.style.top=h+"px"}u=p;var g=n.left-s.left;if(g!=c){var v=e.keepXYWithinBounds(r,f+l-g,Hd.horizontal);r.style.left=v+"px"}c=g}}),200).then((function(t){n((function(){null!=t&&window.clearInterval(t)}))}))}))},o.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(t){return t.isAnchored}))},o.prototype.isEventFromCurrentPopup=function(t,e){var o=t.mouseEvent,n=t.touchEvent,i=o||n;if(!i)return!1;var r=this.getPopupIndex(e);if(-1===r)return!1;for(var s=r;s<this.popupList.length;s++){if(Nt(this.popupList[s].element,i))return!0}return this.isElementWithinCustomPopup(i.target)},o.prototype.isElementWithinCustomPopup=function(t){for(var e=this.gridOptionsService.getDocument();t&&t!==e.body;){if(t.classList.contains("ag-custom-component-popup")||null===t.parentElement)return!0;t=t.parentElement}return!1},o.prototype.getWrapper=function(t){for(;!t.classList.contains("ag-popup")&&t.parentElement;)t=t.parentElement;return t.classList.contains("ag-popup")?t:null},o.prototype.setAlwaysOnTop=function(t,e){var o=this.getWrapper(t);o&&(o.classList.toggle("ag-always-on-top",!!e),e&&this.bringPopupToFront(o))},o.prototype.bringPopupToFront=function(t){var e=this.getPopupParent(),o=Array.prototype.slice.call(e.querySelectorAll(".ag-popup")),n=o.length,i=Array.prototype.slice.call(e.querySelectorAll(".ag-popup.ag-always-on-top")),r=i.length,s=this.getWrapper(t);if(s&&!(n<=1)&&e.contains(t)){var a=o.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(t){0!==t.scrollTop&&u.push([t,t.scrollTop])})),r)s.classList.contains("ag-always-on-top")?a!==n-1&&ft(i).insertAdjacentElement("afterend",s):a!==n-r-1&&i[0].insertAdjacentElement("beforebegin",s);else a!==n-1&&ft(o).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,eWrapper:s};this.eventService.dispatchEvent(p)}},o.WAIT_FOR_POPUP_CONTENT_RESIZE=200,Kh([X("focusService")],o.prototype,"focusService",void 0),Kh([X("ctrlsService")],o.prototype,"ctrlsService",void 0),Kh([X("resizeObserverService")],o.prototype,"resizeObserverService",void 0),Kh([Y],o.prototype,"postConstruct",null),o=n=Kh([Q("popupService")],o)}(Bt),Zh=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$h=function(t){function o(){var e=t.call(this,'\n        <div class="ag-autocomplete-row" role="presentation">\n            <div class="ag-autocomplete-row-label"></div>\n        </div>')||this;return e.hasHighlighting=!1,e}return Zh(o,t),o.prototype.setState=function(t,e){this.value=t,this.render(),this.updateSelected(e)},o.prototype.updateSelected=function(t){this.addOrRemoveCssClass("ag-autocomplete-row-selected",t)},o.prototype.setSearchString=function(t){var o,n=!1;if(e(t)){var i=null===(o=this.value)||void 0===o?void 0:o.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());if(i>=0){n=!0,this.hasHighlighting=!0;var r=i+t.length,s=oe(this.value.slice(0,i)),a=oe(this.value.slice(i,r)),l=oe(this.value.slice(r));this.getGui().lastElementChild.innerHTML=s+"<b>"+a+"</b>"+l}}!n&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},o.prototype.render=function(){var t;this.getGui().lastElementChild.innerHTML=null!==(t=oe(this.value))&&void 0!==t?t:"&nbsp;"},o}(Ti),tf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ef=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},of=function(t){function o(e){var n=t.call(this,o.TEMPLATE)||this;return n.params=e,n.searchString="",n}return tf(o,t),o.prototype.destroy=function(){t.prototype.destroy.call(this)},o.prototype.init=function(){var t=this;this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new vh({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:function(){return t.autocompleteEntries.length},getRow:function(e){return t.autocompleteEntries[e]}});var e=this.virtualList.getGui();this.addManagedListener(e,"click",(function(){return t.params.onConfirmed()})),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",(function(t){return t.preventDefault()})),this.setSelectedValue(0)},o.prototype.onNavigationKeyDown=function(t,e){t.preventDefault();var o=this.autocompleteEntries.indexOf(this.selectedValue),n=e===Zn.UP?o-1:o+1;this.checkSetSelectedValue(n)},o.prototype.setSearch=function(t){this.searchString=t,e(t)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()},o.prototype.runContainsSearch=function(t,e){var o,n=!1,i=t.toLocaleLowerCase(),r=e.filter((function(t){var e=t.toLocaleLowerCase().indexOf(i),r=0===e,s=e>=0;return s&&(!o||!n&&r||n===r&&t.length<o.length)&&(o=t,n=r),s}));return!o&&r.length&&(o=r[0]),{topMatch:o,allMatches:r}},o.prototype.runSearch=function(){var t,e,o,n,i=this.params.autocompleteEntries,r=i.map((function(t){var e;return null!==(e=t.displayValue)&&void 0!==e?e:t.key}));if(this.params.useFuzzySearch)n=(o=me(this.searchString,r,!0).values).length?o[0]:void 0;else{var s=this.runContainsSearch(this.searchString,r);o=s.allMatches,n=s.topMatch}var a=i.filter((function(t){var e=t.key,n=t.displayValue;return o.includes(null!=n?n:e)}));if(!a.length&&this.selectedValue&&(null===(e=null===(t=this.params)||void 0===t?void 0:t.forceLastSelection)||void 0===e?void 0:e.call(t,this.selectedValue,this.searchString))&&(a=[this.selectedValue]),this.autocompleteEntries=a,this.virtualList.refresh(),n){var l=o.indexOf(n);this.checkSetSelectedValue(l)}},o.prototype.updateSearchInList=function(){var t=this;this.virtualList.forEachRenderedRow((function(e){return e.setSearchString(t.searchString)}))},o.prototype.checkSetSelectedValue=function(t){t>=0&&t<this.autocompleteEntries.length&&this.setSelectedValue(t)},o.prototype.setSelectedValue=function(t){var e=this.autocompleteEntries[t];this.selectedValue!==e&&(this.selectedValue=e,this.virtualList.ensureIndexVisible(t),this.virtualList.forEachRenderedRow((function(e,o){e.updateSelected(t===o)})))},o.prototype.createRowComponent=function(t){var e,o=new $h;return this.getContext().createBean(o),o.setState(null!==(e=t.displayValue)&&void 0!==e?e:t.key,t===this.selectedValue),o},o.prototype.onMouseMove=function(t){var e=this.virtualList.getGui().getBoundingClientRect(),o=this.virtualList.getScrollTop(),n=t.clientY-e.top+o,i=Math.floor(n/this.virtualList.getRowHeight());this.checkSetSelectedValue(i)},o.prototype.afterGuiAttached=function(){this.virtualList.refresh()},o.prototype.getSelectedValue=function(){var t;return this.autocompleteEntries.length&&null!==(t=this.selectedValue)&&void 0!==t?t:null},o.TEMPLATE='<div class="ag-autocomplete-list-popup">\n            <div ref="eList" class="ag-autocomplete-list"></div>\n        <div>',ef([Pi("eList")],o.prototype,"eList",void 0),ef([Y],o.prototype,"init",null),o}(gs),nf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),rf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sf=function(e){function o(){var t=e.call(this,'\n            <div class="ag-autocomplete" role="presentation">\n                <ag-input-text-field ref="eAutocompleteInput"></ag-input-text-field>\n            </div>')||this;return t.isListOpen=!1,t.lastPosition=0,t.valid=!0,t}return nf(o,e),o.prototype.postConstruct=function(){var t=this;this.eAutocompleteInput.onValueChange((function(e){return t.onValueChanged(e)})),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc((function(){t.destroyBean(t.autocompleteList)})),this.addGuiEventListener("focusout",(function(){return t.onFocusOut()}))},o.prototype.onValueChanged=function(e){var o=t(e);this.updateValue(o),this.updateAutocompleteList(o)},o.prototype.updateValue=function(t){this.updateLastPosition(),this.dispatchEvent({type:o.EVENT_VALUE_CHANGED,value:t}),this.validate(t)},o.prototype.updateAutocompleteList=function(t){var e,o,n,i,r=null!==(o=null===(e=this.listGenerator)||void 0===e?void 0:e.call(this,t,this.lastPosition))&&void 0!==o?o:{enabled:!1};if(r.type&&r.type===(null===(n=this.autocompleteListParams)||void 0===n?void 0:n.type)||this.isListOpen&&this.closeList(),this.autocompleteListParams=r,null===(i=this.autocompleteListParams)||void 0===i?void 0:i.enabled){this.isListOpen||this.openList();var s=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(null!=s?s:"")}else this.isListOpen&&this.closeList()},o.prototype.onKeyDown=function(t){var e=this,o=t.key;switch(this.updateLastPosition(),o){case Zn.ENTER:this.onEnterKeyDown(t);break;case Zn.TAB:this.onTabKeyDown(t);break;case Zn.DOWN:case Zn.UP:this.onUpDownKeyDown(t,o);break;case Zn.LEFT:case Zn.RIGHT:case Zn.PAGE_HOME:case Zn.PAGE_END:setTimeout((function(){e.updatePositionAndList()}));break;case Zn.ESCAPE:this.onEscapeKeyDown(t);break;case Zn.SPACE:t.ctrlKey&&!this.isListOpen&&(t.preventDefault(),this.forceOpenList())}},o.prototype.confirmSelection=function(){var t,e=null===(t=this.autocompleteList)||void 0===t?void 0:t.getSelectedValue();e&&(this.closeList(),this.dispatchEvent({type:o.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:e,autocompleteType:this.autocompleteListParams.type}))},o.prototype.onTabKeyDown=function(t){this.isListOpen&&(t.preventDefault(),t.stopPropagation(),this.confirmSelection())},o.prototype.onEnterKeyDown=function(t){t.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()},o.prototype.onUpDownKeyDown=function(t,e){var o;t.preventDefault(),this.isListOpen?null===(o=this.autocompleteList)||void 0===o||o.onNavigationKeyDown(t,e):this.forceOpenList()},o.prototype.onEscapeKeyDown=function(t){this.isListOpen&&(t.preventDefault(),t.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))},o.prototype.onFocusOut=function(){this.isListOpen&&this.closeList()},o.prototype.updatePositionAndList=function(){var t;this.updateLastPosition(),this.updateAutocompleteList(null!==(t=this.eAutocompleteInput.getValue())&&void 0!==t?t:null)},o.prototype.setCaret=function(t,e){var o=this.gridOptionsService.getDocument();e&&o.activeElement===o.body&&this.eAutocompleteInput.getFocusableElement().focus(),this.eAutocompleteInput.getInputElement().setSelectionRange(t,t)},o.prototype.forceOpenList=function(){this.onValueChanged(this.eAutocompleteInput.getValue())},o.prototype.updateLastPosition=function(){var t;this.lastPosition=null!==(t=this.eAutocompleteInput.getInputElement().selectionStart)&&void 0!==t?t:0},o.prototype.validate=function(t){var e;this.validator&&(this.validationMessage=this.validator(t),this.eAutocompleteInput.getInputElement().setCustomValidity(null!==(e=this.validationMessage)&&void 0!==e?e:""),this.valid=!this.validationMessage,this.dispatchEvent({type:o.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))},o.prototype.openList=function(){var t=this;this.isListOpen=!0,this.autocompleteList=this.createBean(new of({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:function(){return t.confirmSelection()},forceLastSelection:this.forceLastSelection}));var e=this.autocompleteList.getGui(),o={ePopup:e,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gridOptionsService.is("enableRtl")?"right":"left",keepWithinBounds:!0},n=this.popupService.addPopup({eChild:e,anchorToElement:this.getGui(),positionCallback:function(){return t.popupService.positionPopupByComponent(o)},ariaLabel:this.listAriaLabel});this.hidePopup=n.hideFunc,this.autocompleteList.afterGuiAttached()},o.prototype.closeList=function(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null},o.prototype.onCompleted=function(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:o.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})},o.prototype.getValue=function(){return t(this.eAutocompleteInput.getValue())},o.prototype.setInputPlaceholder=function(t){return this.eAutocompleteInput.setInputPlaceholder(t),this},o.prototype.setInputAriaLabel=function(t){return this.eAutocompleteInput.setInputAriaLabel(t),this},o.prototype.setListAriaLabel=function(t){return this.listAriaLabel=t,this},o.prototype.setListGenerator=function(t){return this.listGenerator=t,this},o.prototype.setValidator=function(t){return this.validator=t,this},o.prototype.isValid=function(){return this.valid},o.prototype.setValue=function(t){var e=t.value,o=t.position,n=t.silent,i=t.updateListOnlyIfOpen,r=t.restoreFocus;this.eAutocompleteInput.setValue(e,!0),this.setCaret(null!=o?o:this.lastPosition,r),n||this.updateValue(e),i&&!this.isListOpen||this.updateAutocompleteList(e)},o.prototype.setForceLastSelection=function(t){return this.forceLastSelection=t,this},o.prototype.setInputDisabled=function(t){return this.eAutocompleteInput.setDisabled(t),this},o.EVENT_VALUE_CHANGED="eventValueChanged",o.EVENT_VALUE_CONFIRMED="eventValueConfirmed",o.EVENT_OPTION_SELECTED="eventOptionSelected",o.EVENT_VALID_CHANGED="eventValidChanged",rf([X("popupService")],o.prototype,"popupService",void 0),rf([Pi("eAutocompleteInput")],o.prototype,"eAutocompleteInput",void 0),rf([Y],o.prototype,"postConstruct",null),o}(Ti),af=["mouseover","mouseout","mouseenter","mouseleave","mousemove"],lf=["touchstart","touchend","touchmove","touchcancel"],uf=function(){function t(){this.renderingEngine="vanilla",this.isOutsideAngular=function(t){return Rt(af,t)}}return t.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},t.prototype.setInterval=function(t,e){return new vi((function(o){o(window.setInterval(t,e))}))},t.prototype.addEventListener=function(t,e,o,n){var i=Rt(lf,e);t.addEventListener(e,o,{capture:!!n,passive:i})},t.prototype.dispatchEvent=function(t,e,o){e()},t.prototype.frameworkComponent=function(t){return null},t.prototype.isFrameworkComponent=function(t){return!1},t}(),cf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),pf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},df=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},hf=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ff=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cf(e,t),e.prototype.getNextCellToFocus=function(t,e,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(t,e):this.getNextCellToFocusWithoutCtrlPressed(t,e)},e.prototype.getNextCellToFocusWithCtrlPressed=function(t,e){var o,n,i=t===Zn.UP,r=t===Zn.DOWN,s=t===Zn.LEFT;if(i||r)n=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=e.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsService.is("enableRtl");n=e.rowIndex,o=s!==l?a[0]:ft(a)}return{rowIndex:n,rowPinned:null,column:o}},e.prototype.getNextCellToFocusWithoutCtrlPressed=function(t,e){for(var o=e,n=!1;!n;){switch(t){case Zn.UP:o=this.getCellAbove(o);break;case Zn.DOWN:o=this.getCellBelow(o);break;case Zn.RIGHT:o=this.gridOptionsService.is("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case Zn.LEFT:o=this.gridOptionsService.is("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+t)}n=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(t){var e,o=t.column;switch(t.rowPinned){case"top":e=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case"bottom":e=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:e=this.rowModel.getRow(t.rowIndex)}return!!e&&!o.isSuppressNavigable(e)},e.prototype.getCellToLeft=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColBefore(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getCellToRight=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColAfter(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getRowBelow=function(t){var e=t.rowIndex,o=t.rowPinned;if(this.isLastRowInContainer(t))switch(o){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var n=this.rowModel.getRow(t.rowIndex),i=this.getNextStickyPosition(n);return i||{rowIndex:e+1,rowPinned:o}},e.prototype.getNextStickyPosition=function(t,e){if(this.gridOptionsService.isGroupRowsSticky()&&t&&t.sticky){var o=hf([],df(this.rowRenderer.getStickyTopRowCtrls())).sort((function(t,e){return t.getRowNode().rowIndex-e.getRowNode().rowIndex})),n=e?-1:1,i=o.findIndex((function(e){return e.getRowNode().rowIndex===t.rowIndex})),r=o[i+n];return r?{rowIndex:r.getRowNode().rowIndex,rowPinned:null}:void 0}},e.prototype.getCellBelow=function(t){if(!t)return null;var e=this.getRowBelow(t);return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.isLastRowInContainer=function(t){var e=t.rowPinned,o=t.rowIndex;return"top"===e?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:"bottom"===e?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},e.prototype.getRowAbove=function(t){var e=t.rowIndex,o=t.rowPinned;if(o?0===e:e===this.paginationProxy.getPageFirstRow())return"top"===o?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var n=this.rowModel.getRow(t.rowIndex),i=this.getNextStickyPosition(n,!0);return i||{rowIndex:e-1,rowPinned:o}},e.prototype.getCellAbove=function(t){if(!t)return null;var e=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:"top"}},e.prototype.getNextTabbedCell=function(t,e){return e?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},e.prototype.getNextTabbedCellForwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),n=t.rowIndex,i=t.rowPinned,r=this.columnModel.getDisplayedColAfter(t.column);if(!r){r=e[0];var s=this.getRowBelow(t);if(o(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,i=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:i}},e.prototype.getNextTabbedCellBackwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),n=t.rowIndex,i=t.rowPinned,r=this.columnModel.getDisplayedColBefore(t.column);if(!r){r=ft(e);var s=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(o(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,i=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:i}},pf([X("columnModel")],e.prototype,"columnModel",void 0),pf([X("rowModel")],e.prototype,"rowModel",void 0),pf([X("rowRenderer")],e.prototype,"rowRenderer",void 0),pf([X("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),pf([X("paginationProxy")],e.prototype,"paginationProxy",void 0),e=pf([Q("cellNavigationService")],e)}(Bt),gf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},yf=function(t,e){return function(o,n){e(o,n,t)}},mf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}return gf(e,t),e.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},e.prototype.init=function(){this.addManagedListener(this.eventService,qt.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(t){if(!this.consuming){var e=this.gridOptionsService.get("alignedGrids");e&&e.forEach((function(e){if(e.api){var o=e.api.__getAlignedGridService();t(o)}}))}},e.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},e.prototype.fireColumnEvent=function(t){this.fireEvent((function(e){e.onColumnEvent(t)}))},e.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(e){e.onScrollEvent(t)}))},e.prototype.onScrollEvent=function(t){var e=this;this.onEvent((function(){e.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(t.left,!0)}))},e.prototype.getMasterColumns=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t)})):t.column&&e.push(t.column),e},e.prototype.getColumnIds=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t.getColId())})):t.column&&e.push(t.column.getColId()),e},e.prototype.onColumnEvent=function(t){var e=this;this.onEvent((function(){switch(t.type){case qt.EVENT_COLUMN_MOVED:case qt.EVENT_COLUMN_VISIBLE:case qt.EVENT_COLUMN_PINNED:case qt.EVENT_COLUMN_RESIZED:var o=t;e.processColumnEvent(o);break;case qt.EVENT_COLUMN_GROUP_OPENED:var n=t;e.processGroupOpenedEvent(n);break;case qt.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(t){var e=t.columnGroup,o=null;if(e){var n=e.getGroupId();o=this.columnModel.getProvidedColumnGroup(n)}e&&!o||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+e.isExpanded()),this.columnModel.setColumnGroupOpened(o,e.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(t){var e,o=this,n=t.column,i=null;if(n&&(i=this.columnModel.getPrimaryColumn(n.getColId())),!n||i){var r=this.getMasterColumns(t);switch(t.type){case qt.EVENT_COLUMN_MOVED:var s=t,a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:a,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex);break;case qt.EVENT_COLUMN_VISIBLE:var l=t;a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,hide:t.hide}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+l.visible);break;case qt.EVENT_COLUMN_PINNED:var u=t;a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,pinned:t.pinned}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+u.pinned);break;case qt.EVENT_COLUMN_RESIZED:var c=t,p={};r.forEach((function(e){o.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+e.getActualWidth()),p[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()}})),null===(e=c.flexColumns)||void 0===e||e.forEach((function(t){p[t.getId()]&&delete p[t.getId()]})),this.columnModel.setColumnWidths(Object.values(p),!1,c.finished,"alignedGridChanged")}var d=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),h=this.gridOptionsService.get("alignedGrids");h&&h.forEach((function(t){t.api&&t.api.setAlwaysShowVerticalScroll(d)}))}},vf([X("columnModel")],e.prototype,"columnModel",void 0),vf([X("ctrlsService")],e.prototype,"ctrlsService",void 0),vf([yf(0,$("loggerFactory"))],e.prototype,"setBeans",null),vf([Y],e.prototype,"init",null),e=vf([Q("alignedGridsService")],e)}(Bt),Cf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),wf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Sf=function(t,e){return function(o,n){e(o,n,t)}},Ef=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Rf=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return Cf(o,t),o.prototype.setBeans=function(t){this.logger=t.create("selectionService"),this.reset()},o.prototype.init=function(){var t=this;this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.addManagedPropertyListener("groupSelectsChildren",(function(e){return t.groupSelectsChildren=e.currentValue})),this.rowSelection=this.gridOptionsService.get("rowSelection"),this.addManagedPropertyListener("rowSelection",(function(e){return t.rowSelection=e.currentValue})),this.addManagedListener(this.eventService,qt.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},o.prototype.isMultiselect=function(){return"multiple"===this.rowSelection},o.prototype.setNodesSelected=function(t){var e;if(0===t.nodes.length)return 0;var o=t.newValue,n=t.clearSelection,i=t.suppressFinishActions,r=t.rangeSelect;t.event;var s=t.source,a=void 0===s?"api":s;if(t.nodes.length>1&&!this.isMultiselect())return console.warn("AG Grid: cannot multi select while rowSelection='single'"),0;var l=this.groupSelectsChildren&&!0===t.groupSelectsFiltered,u=t.nodes.map((function(t){return t.footer?t.sibling:t}));if(r){if(t.nodes.length>1)return console.warn("AG Grid: cannot range select while selecting multiple rows"),0;var c=this.getLastSelectedNode();if(c)if(c!==(f=u[0])&&this.isMultiselect()){var p=this.selectRange(f,c,t.newValue,a);return this.setLastSelectedNode(f),p}}for(var d=0,h=0;h<u.length;h++){var f=u[h];if(!(l&&f.group))f.selectThisNode(o,t.event,a)&&d++;this.groupSelectsChildren&&(null===(e=f.childrenAfterGroup)||void 0===e?void 0:e.length)&&(d+=this.selectChildren(f,o,l,a))}if(!i){if(o&&(n||!this.isMultiselect())&&(d+=this.clearOtherNodes(u[0],a)),d>0){this.updateGroupsFromChildrenSelections(a);var g={type:qt.EVENT_SELECTION_CHANGED,source:a};this.eventService.dispatchEvent(g)}o&&this.setLastSelectedNode(u[u.length-1])}return d},o.prototype.selectRange=function(t,e,o,n){var i=this;void 0===o&&(o=!0);var r=this.rowModel.getNodesInRangeForSelection(t,e),s=0;r.forEach((function(e){e.group&&i.groupSelectsChildren||!1===o&&t===e||e.selectThisNode(o,void 0,n)&&s++})),this.updateGroupsFromChildrenSelections(n);var a={type:qt.EVENT_SELECTION_CHANGED,source:n};return this.eventService.dispatchEvent(a),s},o.prototype.selectChildren=function(t,e,o,n){var i=o?t.childrenAfterAggFilter:t.childrenAfterGroup;return di.missing(i)?0:this.setNodesSelected({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:o,source:n,nodes:i})},o.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},o.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},o.prototype.getSelectedNodes=function(){var t=[];return d(this.selectedNodes,(function(e,o){o&&t.push(o)})),t},o.prototype.getSelectedRows=function(){var t=[];return d(this.selectedNodes,(function(e,o){o&&o.data&&t.push(o.data)})),t},o.prototype.getSelectionCount=function(){return Object.values(this.selectedNodes).length},o.prototype.filterFromSelection=function(t){var e={};Object.entries(this.selectedNodes).forEach((function(o){var n=Ef(o,2),i=n[0],r=n[1];r&&t(r)&&(e[i]=r)})),this.selectedNodes=e},o.prototype.updateGroupsFromChildrenSelections=function(t,e){if(!this.groupSelectsChildren)return!1;if("clientSide"!==this.rowModel.getType())return!1;var o=this.rowModel.getRootNode();e||(e=new kd(!0,o)).setInactive();var n=!1;return e.forEachChangedNodeDepthFirst((function(e){if(e!==o){var i=e.calculateSelectedFromChildren();n=e.selectThisNode(null!==i&&i,void 0,t)||n}})),n},o.prototype.clearOtherNodes=function(t,e){var o=this,n={},i=0;return d(this.selectedNodes,(function(r,s){if(s&&s.id!==t.id){var a=o.selectedNodes[s.id];i+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:e}),o.groupSelectsChildren&&s.parent&&(n[s.parent.id]=s.parent)}})),d(n,(function(t,o){var n=o.calculateSelectedFromChildren();o.selectThisNode(null!==n&&n,void 0,e)})),i},o.prototype.onRowSelected=function(t){var e=t.node;this.groupSelectsChildren&&e.group||(e.isSelected()?this.selectedNodes[e.id]=e:delete this.selectedNodes[e.id])},o.prototype.syncInRowNode=function(t,e){this.syncInOldRowNode(t,e),this.syncInNewRowNode(t)},o.prototype.syncInOldRowNode=function(t,o){if(e(o)&&t.id!==o.id&&o){var n=o.id;this.selectedNodes[n]==t&&(this.selectedNodes[o.id]=o)}},o.prototype.syncInNewRowNode=function(t){e(this.selectedNodes[t.id])?(t.setSelectedInitialValue(!0),this.selectedNodes[t.id]=t):t.setSelectedInitialValue(!1)},o.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},o.prototype.getBestCostNodeSelection=function(){if("clientSide"===this.rowModel.getType()){var t=this.rowModel.getTopLevelNodes();if(null!==t){var e=[];return function t(o){for(var n=0,i=o.length;n<i;n++){var r=o[n];if(r.isSelected())e.push(r);else{var s=r;s.group&&s.children&&t(s.children)}}}(t),e}}},o.prototype.isEmpty=function(){var t=0;return d(this.selectedNodes,(function(e,o){o&&t++})),0===t},o.prototype.deselectAllRowNodes=function(t){var e=function(t){return t.selectThisNode(!1,void 0,n)},o="clientSide"===this.rowModel.getType(),n=t.source,i=t.justFiltered,r=t.justCurrentPage;if(r||i){if(!o)return void console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");this.getNodesToSelect(i,r).forEach(e)}else d(this.selectedNodes,(function(t,o){o&&e(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(n);var s={type:qt.EVENT_SELECTION_CHANGED,source:n};this.eventService.dispatchEvent(s)},o.prototype.getSelectAllState=function(t,e){var o=this,n=0,i=0;return this.getNodesToSelect(t,e).forEach((function(t){o.groupSelectsChildren&&t.group||(t.isSelected()?n++:t.selectable&&i++)})),(0!==n||0!==i)&&(n>0&&i>0?null:n>0)},o.prototype.getNodesToSelect=function(t,e){var o=this;if(void 0===t&&(t=!1),void 0===e&&(e=!1),"clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var n=[];if(e)return this.paginationProxy.forEachNodeOnPage((function(t){if(t.group)if(t.expanded)o.groupSelectsChildren||n.push(t);else{var e=function(t){var o;n.push(t),(null===(o=t.childrenAfterFilter)||void 0===o?void 0:o.length)&&t.childrenAfterFilter.forEach(e)};e(t)}else n.push(t)})),n;var i=this.rowModel;return t?(i.forEachNodeAfterFilter((function(t){n.push(t)})),n):(i.forEachNode((function(t){n.push(t)})),n)},o.prototype.selectAllRowNodes=function(t){if("clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var e=t.source,o=t.justFiltered,n=t.justCurrentPage;this.getNodesToSelect(o,n).forEach((function(t){return t.selectThisNode(!0,void 0,e)})),"clientSide"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(e);var i={type:qt.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(i)},o.prototype.getServerSideSelectionState=function(){return null},o.prototype.setServerSideSelectionState=function(t){},wf([X("rowModel")],o.prototype,"rowModel",void 0),wf([X("paginationProxy")],o.prototype,"paginationProxy",void 0),wf([Sf(0,$("loggerFactory"))],o.prototype,"setBeans",null),wf([Y],o.prototype,"init",null),o=wf([Q("selectionService")],o)}(Bt),bf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Of=function(){function t(){}return t.prototype.sizeColumnsToFit=function(t){void 0===t&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},t.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},t.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},t.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},t.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},t.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnModel.getColumnState()},t.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},t.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,e){this.columnModel.setColumnVisible(t,e,"api")},t.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},t.prototype.setColumnPinned=function(t,e){this.columnModel.setColumnPinned(t,e,"api")},t.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},t.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},t.prototype.moveColumn=function(t,e){this.columnModel.moveColumn(t,e,"api")},t.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},t.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},t.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e)},t.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e)},t.prototype.setColumnWidth=function(t,e,o,n){void 0===o&&(o=!0),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,o,n)},t.prototype.setColumnWidths=function(t,e,o){void 0===e&&(e=!0),this.columnModel.setColumnWidths(t,!1,e,o)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getPivotResultColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},t.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},t.prototype.autoSizeColumn=function(t,e){return this.columnModel.autoSizeColumn(t,e,"api")},t.prototype.autoSizeColumns=function(t,e){this.columnModel.autoSizeColumns({columns:t,skipHeader:e})},t.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},t.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},t.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(di.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return be("28.0","getAllColumns","getColumns"),this.getColumns()},t.prototype.getPrimaryColumns=function(){return be("28.0","getPrimaryColumns","getColumns"),this.getColumns()},t.prototype.getSecondaryColumns=function(){return be("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},t.prototype.setSecondaryColumns=function(t){be("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(t)},t.prototype.getSecondaryPivotColumn=function(t,e){return be("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(t,e)},bf([X("columnModel")],t.prototype,"columnModel",void 0),bf([q],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=bf([Q("columnApi")],t)}(),Tf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Df=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pf=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialised=!1,e.isSsrm=!1,e}return Tf(n,t),n.prototype.init=function(){var t=this;this.isSsrm=this.gridOptionsService.isRowModelType("serverSide"),this.cellExpressions=this.gridOptionsService.is("enableCellExpressions"),this.isTreeData=this.gridOptionsService.is("treeData"),this.initialised=!0,this.eventService.addEventListener(qt.EVENT_CELL_VALUE_CHANGED,(function(e){return t.callColumnCellValueChangedHandler(e)}),this.gridOptionsService.useAsyncEvents()),this.addManagedPropertyListener("treeData",(function(e){return t.isTreeData=e.currentValue}))},n.prototype.getValue=function(t,e,o,n){if(void 0===o&&(o=!1),void 0===n&&(n=!1),this.initialised||this.init(),e){var i,r=t.getColDef(),s=r.field,a=t.getColId(),l=e.data,u=e.groupData&&void 0!==e.groupData[a],c=!n&&e.aggData&&void 0!==e.aggData[a],p=this.isSsrm&&n&&!!t.getColDef().aggFunc,d=this.isSsrm&&e.footer&&e.field&&(!0===t.getColDef().showRowGroup||t.getColDef().showRowGroup===e.field);if(o&&r.filterValueGetter?i=this.executeFilterValueGetter(r.filterValueGetter,l,t,e):this.isTreeData&&c?i=e.aggData[a]:this.isTreeData&&r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,t,e):this.isTreeData&&s&&l?i=S(l,s,t.isFieldContainsDots()):u?i=e.groupData[a]:c?i=e.aggData[a]:r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,t,e):d?i=S(l,e.field,t.isFieldContainsDots()):s&&l&&!p&&(i=S(l,s,t.isFieldContainsDots())),this.cellExpressions&&"string"==typeof i&&0===i.indexOf("=")){var h=i.substring(1);i=this.executeValueGetter(h,l,t,e)}if(null==i){var f=this.getOpenedGroup(e,t);if(null!=f)return f}return i}},n.prototype.getOpenedGroup=function(t,e){if(this.gridOptionsService.is("showOpenedGroup")&&e.getColDef().showRowGroup)for(var o=e.getColDef().showRowGroup,n=t.parent;null!=n;){if(n.rowGroupColumn&&(!0===o||o===n.rowGroupColumn.getColId()))return n.key;n=n.parent}},n.prototype.setValue=function(t,n,i,r){var s=this.columnModel.getPrimaryColumn(n);if(!t||!s)return!1;o(t.data)&&(t.data={});var a=s.getColDef(),l=a.field,u=a.valueSetter;if(o(l)&&o(u))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;if(!this.dataTypeService.checkType(s,i))return console.warn("AG Grid: Data type of the new value does not match the cell data type of the column"),!1;var c,p={node:t,data:t.data,oldValue:this.getValue(s,t),newValue:i,colDef:s.getColDef(),column:s,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};if(p.newValue=i,void 0===(c=e(u)?"function"==typeof u?u(p):this.expressionService.evaluate(u,p):this.setValueUsingField(t.data,l,i,s.isFieldContainsDots()))&&(c=!0),!c)return!1;t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),p.newValue=this.getValue(s,t);var d={type:qt.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:p.column,api:p.api,columnApi:p.columnApi,colDef:p.colDef,context:p.context,data:t.data,node:t,oldValue:p.oldValue,newValue:p.newValue,value:p.newValue,source:r};return this.eventService.dispatchEvent(d),!0},n.prototype.callColumnCellValueChangedHandler=function(t){var e=t.colDef.onCellValueChanged;"function"==typeof e&&e({node:t.node,data:t.data,oldValue:t.oldValue,newValue:t.newValue,colDef:t.colDef,column:t.column,api:t.api,columnApi:t.columnApi,context:t.context})},n.prototype.setValueUsingField=function(t,e,o,n){if(!e)return!1;var i=!1;if(n)for(var r=e.split("."),s=t;r.length>0&&s;){var a=r.shift();0===r.length?(i=s[a]===o)||(s[a]=o):s=s[a]}else(i=t[e]===o)||(t[e]=o);return!i},n.prototype.executeFilterValueGetter=function(t,e,o,n){var i={data:e,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,n)};return"function"==typeof t?t(i):this.expressionService.evaluate(t,i)},n.prototype.executeValueGetter=function(t,e,o,n){var i=o.getColId(),r=this.valueCache.getValue(n,i);if(void 0!==r)return r;var s,a={data:e,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,n)};return s="function"==typeof t?t(a):this.expressionService.evaluate(t,a),this.valueCache.setValue(n,i,s),s},n.prototype.getValueCallback=function(t,e){var o=this.columnModel.getPrimaryColumn(e);return o?this.getValue(o,t):null},n.prototype.getKeyForNode=function(t,e){var o=this.getValue(t,e),n=t.getColDef().keyCreator,i=o;n&&(i=n({value:o,colDef:t.getColDef(),column:t,node:e,data:e.data,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}));return"string"==typeof i||null==i||"[object Object]"===(i=String(i))&&T((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),i},Df([X("expressionService")],n.prototype,"expressionService",void 0),Df([X("columnModel")],n.prototype,"columnModel",void 0),Df([X("valueCache")],n.prototype,"valueCache",void 0),Df([X("dataTypeService")],n.prototype,"dataTypeService",void 0),Df([Y],n.prototype,"init",null),n=Df([Q("valueService")],n)}(Bt),_f=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Af=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ff=function(t,e){return function(o,n){e(o,n,t)}},Lf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return _f(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},e.prototype.evaluate=function(t,e){if("string"==typeof t)return this.evaluateExpression(t,e);console.error("AG Grid: value should be either a string or a function",t)},e.prototype.evaluateExpression=function(t,e){try{return this.createExpressionFunction(t)(e.value,e.context,e.oldValue,e.newValue,e.value,e.node,e.data,e.colDef,e.rowIndex,e.api,e.columnApi,e.getValue,e.column,e.columnGroup)}catch(o){return console.log("Processing of the expression failed"),console.log("Expression = "+t),console.log("Params =",e),console.log("Exception = "+o),null}},e.prototype.createExpressionFunction=function(t){if(this.expressionToFunctionCache[t])return this.expressionToFunctionCache[t];var e=this.createFunctionBody(t),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",e);return this.expressionToFunctionCache[t]=o,o},e.prototype.createFunctionBody=function(t){return t.indexOf("return")>=0?t:"return "+t+";"},Af([Ff(0,$("loggerFactory"))],e.prototype,"setBeans",null),e=Af([Q("expressionService")],e)}(Bt),If=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Nf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Mf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return If(e,t),e.prototype.getTemplate=function(t,e){var o=this.templateCache[t];if(o)return o;var n=this.waitingCallbacks[t],i=this;if(!n){n=[],this.waitingCallbacks[t]=n;var r=new XMLHttpRequest;r.onload=function(){i.handleHttpResult(this,t)},r.open("GET",t),r.send()}return e&&n.push(e),null},e.prototype.handleHttpResult=function(t,e){if(200===t.status&&null!==t.response){this.templateCache[e]=t.response||t.responseText;for(var o=this.waitingCallbacks[e],n=0;n<o.length;n++){(0,o[n])()}}else console.warn("AG Grid: Unable to get template error "+t.status+" - "+e)},e=Nf([Q("templateService")],e)}(Bt),Gf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Vf=function(t,e){return function(o,n){e(o,n,t)}},Hf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gf(e,t),e.prototype.setBeans=function(t){this.logging=t.is("debug")},e.prototype.create=function(t){return new kf(t,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},xf([Vf(0,$("gridOptionsService"))],e.prototype,"setBeans",null),e=xf([Q("loggerFactory")],e)}(Bt),kf=function(){function t(t,e){this.name=t,this.isLoggingFunc=e}return t.prototype.isLogging=function(){return this.isLoggingFunc()},t.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},t}(),Bf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),jf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Wf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bf(e,t),e.prototype.setComp=function(t,e,o){var n=this;this.view=t,this.eGridHostDiv=e,this.eGui=o,this.eGui.setAttribute("grid-id",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:function(){return n.eGui},isInterestedIn:function(t){return t===Br.HeaderCell||t===Br.ToolPanel},getIconName:function(){return Us.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(e),this.createManagedBean(new Fl(this.view)),this.addRtlSupport(),this.addManagedListener(this,qt.EVENT_KEYBOARD_FOCUS,(function(){n.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,qt.EVENT_MOUSE_FOCUS,(function(){n.view.addOrRemoveKeyboardFocusClass(!1)}));var i=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return i()})),this.ctrlsService.registerGridCtrl(this)},e.prototype.isDetailGrid=function(){var t,e=this.focusService.findTabbableParent(this.getGui());return(null===(t=null==e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},e.prototype.showDropZones=function(){return j.__isRegistered(V.RowGroupingModule,this.context.getGridId())},e.prototype.showSideBar=function(){return j.__isRegistered(V.SideBarModule,this.context.getGridId())},e.prototype.showStatusBar=function(){return j.__isRegistered(V.StatusBarModule,this.context.getGridId())},e.prototype.showWatermark=function(){return j.__isRegistered(V.EnterpriseCoreModule,this.context.getGridId())},e.prototype.onGridSizeChanged=function(){var t={type:qt.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(t)},e.prototype.addRtlSupport=function(){var t=this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(t)},e.prototype.destroyGridUi=function(){this.view.destroyGridUi()},e.prototype.getGui=function(){return this.eGui},e.prototype.setResizeCursor=function(t){this.view.setCursor(t?"ew-resize":null)},e.prototype.disableUserSelect=function(t){this.view.setUserSelect(t?"none":null)},e.prototype.focusNextInnerContainer=function(t){var e=this.gridOptionsService.getDocument(),o=this.view.getFocusableContainers(),n=o.findIndex((function(t){return t.contains(e.activeElement)}))+(t?-1:1);return!(n<=0||n>=o.length)&&this.focusService.focusInto(o[n])},e.prototype.focusInnerElement=function(t){var e=this.view.getFocusableContainers(),o=this.columnModel.getAllDisplayedColumns();if(t){if(e.length>1)return this.focusService.focusInto(ft(e),!0);var n=ft(o);if(this.focusService.focusGridView(n,!0))return!0}return 0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusGridView(o[0]):this.focusService.focusFirstHeader()},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.view.forceFocusOutOfContainer(t)},jf([X("focusService")],e.prototype,"focusService",void 0),jf([X("resizeObserverService")],e.prototype,"resizeObserverService",void 0),jf([X("columnModel")],e.prototype,"columnModel",void 0),jf([X("ctrlsService")],e.prototype,"ctrlsService",void 0),jf([X("mouseEventService")],e.prototype,"mouseEventService",void 0),jf([X("dragAndDropService")],e.prototype,"dragAndDropService",void 0),e}(Bt),Uf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),zf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Kf=function(t){function e(e){var o=t.call(this)||this;return o.eGridDiv=e,o}return Uf(e,t),e.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var e={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(e){return t.addCssClass(e)},addOrRemoveKeyboardFocusClass:function(e){return t.addOrRemoveCssClass(wp.AG_KEYBOARD_FOCUS,e)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(e){t.getGui().style.userSelect=null!=e?e:"",t.getGui().style.webkitUserSelect=null!=e?e:""},setCursor:function(e){t.getGui().style.cursor=null!=e?e:""}};this.ctrl=this.createManagedBean(new Wf);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(e){return t.ctrl.focusInnerElement(e)}})},e.prototype.insertGridIntoDom=function(){var t=this,e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc((function(){t.eGridDiv.removeChild(e),t.logger.log("Grid removed from DOM")}))},e.prototype.updateLayoutClasses=function(t,e){var o=this.eRootWrapperBody.classList;o.toggle(hl.AUTO_HEIGHT,e.autoHeight),o.toggle(hl.NORMAL,e.normal),o.toggle(hl.PRINT,e.print),this.addOrRemoveCssClass(hl.AUTO_HEIGHT,e.autoHeight),this.addOrRemoveCssClass(hl.NORMAL,e.normal),this.addOrRemoveCssClass(hl.PRINT,e.print)},e.prototype.createTemplate=function(){return'<div class="ag-root-wrapper" role="presentation">\n                '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n                <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\n                    <ag-grid-body ref="gridBody"></ag-grid-body>\n                    '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n                </div>\n                "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n                <ag-pagination></ag-pagination>\n                "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n            </div>"},e.prototype.getFocusableElement=function(){return this.eRootWrapperBody},e.prototype.getFocusableContainers=function(){var t=[this.gridBodyComp.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return Dn(t)}))},zf([X("loggerFactory")],e.prototype,"loggerFactory",void 0),zf([Pi("gridBody")],e.prototype,"gridBodyComp",void 0),zf([Pi("sideBar")],e.prototype,"sideBarComp",void 0),zf([Pi("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0),zf([Y],e.prototype,"postConstruct",null),e}(hh),Yf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),qf=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Qf=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Xf=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Jf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var o;return Yf(e,t),o=e,e.prototype.progressSort=function(t,e,o){var n=this.getNextSortDirection(t);this.setSortForColumn(t,n,e,o)},e.prototype.setSortForColumn=function(t,e,o,n){"asc"!==e&&"desc"!==e&&(e=null);var i=[t];if(this.gridOptionsService.isColumnsSortingCoupledToGroup()&&t.getColDef().showRowGroup){var r=this.columnModel.getSourceColumnsForGroupColumn(t),s=null==r?void 0:r.filter((function(t){return t.getColDef().sortable}));s&&(i=Xf([t],Qf(s)))}i.forEach((function(t){return t.setSort(e,n)})),(o||this.gridOptionsService.is("alwaysMultiSort"))&&!this.gridOptionsService.is("suppressMultiSort")||this.clearSortBarTheseColumns(i,n),this.updateSortIndex(t),this.dispatchSortChangedEvents(n)},e.prototype.updateSortIndex=function(t){var e=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=this.columnModel.getGroupDisplayColumnForGroup(t.getId()),n=e&&o||t,i=this.getColumnsWithSortingOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(t){return t.setSortIndex(null)}));var r=i.filter((function(t){return t!==n}));(n.getSort()?Xf(Xf([],Qf(r)),[n]):r).forEach((function(t,e){return t.setSortIndex(e)}))},e.prototype.onSortChanged=function(t){this.dispatchSortChangedEvents(t)},e.prototype.isSortActive=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t&&t.length>0},e.prototype.dispatchSortChangedEvents=function(t){var e={type:qt.EVENT_SORT_CHANGED,source:t};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarTheseColumns=function(t,e){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){t.includes(o)||o.setSort(void 0,e)}))},e.prototype.getNextSortDirection=function(t){var e;if(e=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?this.gridOptionsService.get("sortingOrder"):o.DEFAULT_SORTING_ORDER,!Array.isArray(e)||e.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+e),null;var n,i=e.indexOf(t.getSort()),r=i<0,s=i==e.length-1;return n=r||s?e[0]:e[i+1],o.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("AG Grid: invalid sort type "+n),null):n},e.prototype.getIndexedSortMap=function(){var t=this,e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));if(this.columnModel.isPivotMode()){var o=this.gridOptionsService.isColumnsSortingCoupledToGroup();e=e.filter((function(e){var n=!!e.getAggFunc(),i=!e.isPrimary(),r=o?t.columnModel.getGroupDisplayColumnForGroup(e.getId()):e.getColDef().showRowGroup;return n||i||r}))}var n=this.columnModel.getRowGroupColumns().filter((function(t){return!!t.getSort()})),i=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!n.length;i&&(e=Xf([],Qf(new Set(e.map((function(e){var o;return null!==(o=t.columnModel.getGroupDisplayColumnForGroup(e.getId()))&&void 0!==o?o:e}))))));var r={};e.forEach((function(t,e){return r[t.getId()]=e})),e.sort((function(t,e){var o=t.getSortIndex(),n=e.getSortIndex();return null!=o&&null!=n?o-n:null==o&&null==n?r[t.getId()]>r[e.getId()]?1:-1:null==n?-1:1}));var s=new Map;return e.forEach((function(t,e){return s.set(t,e)})),i&&n.forEach((function(e){var o=t.columnModel.getGroupDisplayColumnForGroup(e.getId());s.set(e,s.get(o))})),s},e.prototype.getColumnsWithSortingOrdered=function(){return Xf([],Qf(this.getIndexedSortMap().entries())).sort((function(t,e){var o=Qf(t,2);o[0];var n=o[1],i=Qf(e,2);return i[0],n-i[1]})).map((function(t){return Qf(t,1)[0]}))},e.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().filter((function(t){return t.getSort()})).map((function(t){return{sort:t.getSort(),colId:t.getId()}}))},e.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().filter((function(t){return t.getSort()})).map((function(t){return{sort:t.getSort(),column:t}}))},e.prototype.canColumnDisplayMixedSort=function(t){var e=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=!!t.getColDef().showRowGroup;return e&&o},e.prototype.getDisplaySortForColumn=function(t){var e=this.columnModel.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!(null==e?void 0:e.length))return t.getSort();var o=null!=t.getColDef().field||!!t.getColDef().valueGetter?Xf([t],Qf(e)):e,n=o[0].getSort();return o.every((function(t){return t.getSort()==n}))?n:"mixed"},e.prototype.getDisplaySortIndexForColumn=function(t){return this.getIndexedSortMap().get(t)},e.DEFAULT_SORTING_ORDER=["asc","desc",null],qf([X("columnModel")],e.prototype,"columnModel",void 0),e=o=qf([Q("sortController")],e)}(Bt),Zf=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$f=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},tg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zf(e,t),e.prototype.setMouseOver=function(t){this.selectedColumns=t;var e={type:qt.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.clearMouseOver=function(){this.selectedColumns=null;var t={type:qt.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},e.prototype.isHovered=function(t){return!!this.selectedColumns&&this.selectedColumns.indexOf(t)>=0},e=$f([Q("columnHoverService")],e)}(Bt),eg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),og=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ng=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.animationThreadCount=0,e}return eg(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){return t.gridBodyCtrl=e.gridBodyCtrl}))},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsService.is("suppressColumnMoveAnimation")||this.gridOptionsService.is("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(t){this.active?this.executeNextFuncs.push(t):t()},e.prototype.executeLaterVMTurn=function(t){this.active?this.executeLaterFuncs.push(t):t()},e.prototype.ensureAnimationCssClassPresent=function(){var t=this;this.animationThreadCount++;var e=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){t.animationThreadCount===e&&t.gridBodyCtrl.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var t=this.executeNextFuncs;this.executeNextFuncs=[];var e=this.executeLaterFuncs;this.executeLaterFuncs=[],0===t.length&&0===e.length||(window.setTimeout((function(){return t.forEach((function(t){return t()}))}),0),window.setTimeout((function(){return e.forEach((function(t){return t()}))}),300))},og([X("ctrlsService")],e.prototype,"ctrlsService",void 0),og([Y],e.prototype,"postConstruct",null),e=og([Q("columnAnimationService")],e)}(Bt),ig=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),rg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ig(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCon=e.centerRowContainerCtrl,t.addManagedListener(t.eventService,qt.EVENT_BODY_HEIGHT_CHANGED,t.checkPageSize.bind(t)),t.addManagedListener(t.eventService,qt.EVENT_SCROLL_VISIBILITY_CHANGED,t.checkPageSize.bind(t)),t.checkPageSize()}))},e.prototype.notActive=function(){return!this.gridOptionsService.is("paginationAutoPageSize")||null==this.centerRowContainerCon},e.prototype.checkPageSize=function(){var t=this;if(!this.notActive()){var e=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(e>0){var o=function(){var o=t.gridOptionsService.getRowHeightAsNumber(),n=Math.floor(e/o);t.gridOptionsService.set("paginationPageSize",n)};this.isBodyRendered?N((function(){return o()}),50)():(o(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},rg([X("ctrlsService")],e.prototype,"ctrlsService",void 0),rg([Y],e.prototype,"postConstruct",null),e=rg([Q("paginationAutoPageSizeService")],e)}(Bt),ag=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),lg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ug=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}return ag(e,t),e.prototype.init=function(){this.active=this.gridOptionsService.is("valueCache"),this.neverExpires=this.gridOptionsService.is("valueCacheNeverExpires")},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(t,e,o){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[e]=o)},e.prototype.getValue=function(t,e){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[e]},lg([Y],e.prototype,"init",null),e=lg([Q("valueCache")],e)}(Bt),cg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),pg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},dg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cg(e,t),e.prototype.init=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,qt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},e.prototype.onCellValueChanged=function(t){"paste"!==t.source&&this.doChangeDetection(t.node,t.column)},e.prototype.doChangeDetection=function(t,e){if(!this.gridOptionsService.is("suppressChangeDetection")){var o=[t];if(this.clientSideRowModel&&!t.isRowPinned()){var n=this.gridOptionsService.is("aggregateOnlyChangedColumns"),i=new kd(n,this.clientSideRowModel.getRootNode());i.addParentNode(t.parent,[e]),this.clientSideRowModel.doAggregate(i),i.forEachChangedNodeDepthFirst((function(t){o.push(t)}))}this.rowRenderer.refreshCells({rowNodes:o})}},pg([X("rowModel")],e.prototype,"rowModel",void 0),pg([X("rowRenderer")],e.prototype,"rowRenderer",void 0),pg([Y],e.prototype,"init",null),e=pg([Q("changeDetectionService")],e)}(Bt),hg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),fg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},gg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hg(e,t),e.prototype.adaptFunction=function(t,e){var o=this.componentMetadataProvider.retrieve(t);return o&&o.functionAdapter?o.functionAdapter(e):null},e.prototype.adaptCellRendererFunction=function(t){return function(){function e(){}return e.prototype.refresh=function(t){return!1},e.prototype.getGui=function(){return this.eGui},e.prototype.init=function(e){var o=t(e),n=typeof o;this.eGui="string"!==n&&"number"!==n&&"boolean"!==n?null!=o?o:Pn("<span></span>"):Pn("<span>"+o+"</span>")},e}()},e.prototype.doesImplementIComponent=function(t){return!!t&&(t.prototype&&"getGui"in t.prototype)},fg([X("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=fg([Q("agComponentUtils")],e)}(Bt),vg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),yg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},mg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vg(e,t),e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(t){return this.componentMetaData[t]},yg([X("agComponentUtils")],e.prototype,"agComponentUtils",void 0),yg([Y],e.prototype,"postConstruct",null),e=yg([Q("componentMetadataProvider")],e)}(Bt),Cg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),wg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Sg=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Eg=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Rg={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},bg={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Og=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.calculatedSizes={},e}return Cg(o,t),o.prototype.postConstruct=function(){var t,e=this,o=null!==(t=this.getTheme().el)&&void 0!==t?t:this.eGridDiv;this.mutationObserver=new MutationObserver((function(){e.calculatedSizes={},e.fireGridStylesChangedEvent()})),this.mutationObserver.observe(o||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},o.prototype.fireGridStylesChangedEvent=function(){var t={type:qt.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(t)},o.prototype.getSassVariable=function(t){var e=this.getTheme(),o=e.themeFamily,n=e.el;if(o&&0===o.indexOf("ag-theme")){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[o]||(this.calculatedSizes[o]={});var i=this.calculatedSizes[o][t];return null!=i?i:(this.calculatedSizes[o][t]=this.calculateValueForSassProperty(t,o,n),this.calculatedSizes[o][t])}},o.prototype.calculateValueForSassProperty=function(t,e,o){var n,i="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),r=Rg[i][t],s=this.gridOptionsService.getDocument();if(o||(o=this.eGridDiv),!bg[t])return r;var a=bg[t],l=s.createElement("div"),u=Array.from(o.classList);(n=l.classList).add.apply(n,Eg([e],Sg(u))),l.style.position="absolute";var c=a.reduce((function(t,e){var o=s.createElement("div");return o.style.position="static",o.classList.add(e),t.appendChild(o),o}),l),p=0;if(s.body){s.body.appendChild(l);var d=-1!==t.toLowerCase().indexOf("height")?"height":"width";p=parseInt(window.getComputedStyle(c)[d],10),s.body.removeChild(l)}return p||r},o.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},o.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("chartMenuPanelWidth")},o.prototype.getTheme=function(){for(var t=/\bag-(material|(?:theme-([\w\-]*)))\b/g,e=this.eGridDiv,o=null,n=[];e;){if(o=t.exec(e.className)){var i=e.className.match(t);i&&(n=i);break}e=e.parentElement||void 0}if(!o)return{allThemes:n};var r=o[0];return{theme:r,el:e,themeFamily:r.replace(/-dark$/,""),allThemes:n}},o.prototype.getFromTheme=function(t,e){var o;return null!==(o=this.getSassVariable(e))&&void 0!==o?o:t},o.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},o.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},o.prototype.refreshRowHeightVariable=function(){var t=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),e=this.gridOptionsService.getNum("rowHeight");if(null==e||isNaN(e)||!isFinite(e))return-1;var o=e+"px";return t!=o?(this.eGridDiv.style.setProperty("--ag-line-height",o),e):""!=t?parseFloat(t):-1},o.prototype.getMinColWidth=function(){var t=this.getFromTheme(null,"headerCellMinWidth");return e(t)?Math.max(t,10):10},o.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),t.prototype.destroy.call(this)},wg([X("eGridDiv")],o.prototype,"eGridDiv",void 0),wg([Y],o.prototype,"postConstruct",null),o=wg([Q("environment")],o)}(Bt),Tg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Dg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pg=function(t,e){return function(o,n){e(o,n,t)}},_g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return Tg(e,t),e.prototype.agWire=function(t){this.logger=t.create("RowContainerHeightService")},e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,qt.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=jo(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},e.prototype.isStretching=function(){return this.stretching},e.prototype.getDivStretchOffset=function(){return this.divStretchOffset},e.prototype.updateOffset=function(){if(this.stretching){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,e=this.getUiBodyHeight();(t!==this.scrollY||e!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=e,this.calculateOffset())}},e.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var t=this.scrollY/this.maxScrollY,e=t*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+e+" ("+this.pixelsToShave+" * "+t+")"),this.setDivStretchOffset(e)},e.prototype.setUiContainerHeight=function(t){t!==this.uiContainerHeight&&(this.uiContainerHeight=t,this.eventService.dispatchEvent({type:qt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},e.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},e.prototype.setDivStretchOffset=function(t){var e="number"==typeof t?Math.floor(t):null;this.divStretchOffset!==e&&(this.divStretchOffset=e,this.eventService.dispatchEvent({type:qt.EVENT_HEIGHT_SCALE_CHANGED}))},e.prototype.setModelHeight=function(t){this.modelHeight=t,this.stretching=null!=t&&this.maxDivHeight>0&&t>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},e.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},e.prototype.getRealPixelPosition=function(t){return t-this.divStretchOffset},e.prototype.getUiBodyHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return t.bottom-t.top},e.prototype.getScrollPositionForPixel=function(t){if(this.pixelsToShave<=0)return t;var e=t/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*e},Dg([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Dg([Pg(0,$("loggerFactory"))],e.prototype,"agWire",null),Dg([Y],e.prototype,"postConstruct",null),e=Dg([Q("rowContainerHeightService")],e)}(Bt),Ag=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lg=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return Ag(o,t),o.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.isRowSelectableFunc=this.gridOptionsService.get("isRowSelectable")},o.prototype.updateSelectableAfterGrouping=function(t){if(this.isRowSelectableFunc){this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))}},o.prototype.recurseDown=function(t,o){var n=this;t&&t.forEach((function(t){if(t.group){var i;if(t.hasChildren()&&n.recurseDown(o(t),o),n.groupSelectsChildren)i=e((o(t)||[]).find((function(t){return!0===t.selectable})));else i=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(t);t.setRowSelectable(i)}}))},Fg([Y],o.prototype,"init",null),o=Fg([Q("selectableService")],o)}(Bt),Ig=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ng=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Mg=function(t){function e(){var e=t.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e.areListenersSetup=!1,e}return Ig(e,t),e.prototype.postConstruct=function(){var t=this.gridOptionsService.is("enableRtl");this.setTemplate(this.getTemplate());var e=this.btFirst,o=this.btPrevious,n=this.btNext,i=this.btLast;this.activateTabIndex([e,o,n,i]),e.insertAdjacentElement("afterbegin",Xn(t?"last":"first",this.gridOptionsService)),o.insertAdjacentElement("afterbegin",Xn(t?"next":"previous",this.gridOptionsService)),n.insertAdjacentElement("afterbegin",Xn(t?"previous":"next",this.gridOptionsService)),i.insertAdjacentElement("afterbegin",Xn(t?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},e.prototype.onPaginationChanged=function(){var t=this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},e.prototype.setupListeners=function(){var t=this;this.areListenersSetup||(this.addManagedListener(this.eventService,qt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(e){var o=e.el,n=e.fn;t.addManagedListener(o,"click",n),t.addManagedListener(o,"keydown",(function(t){t.key!==Zn.ENTER&&t.key!==Zn.SPACE||(t.preventDefault(),n())}))})),this.areListenersSetup=!0)},e.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},e.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,e=this.paginationProxy.getCurrentPage(),o=t?e+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},e.prototype.formatNumber=function(t){var e=this.gridOptionsService.getCallback("paginationNumberFormatter");if(e)return e({value:t});var o=this.localeService.getLocaleTextFunc();return Jo(t,o("thousandSeparator",","),o("decimalSeparator","."))},e.prototype.getTemplate=function(){var t=this.localeService.getLocaleTextFunc(),e=t("page","Page"),o=t("to","to"),n=t("of","of"),i=t("firstPage","First Page"),r=t("previousPage","Previous Page"),s=t("nextPage","Next Page"),a=t("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n                <span class="ag-paging-row-summary-panel" role="status">\n                    <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+l+'-to">'+o+'</span>\n                    <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+l+'-of">'+n+'</span>\n                    <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n                </span>\n                <span class="ag-paging-page-summary-panel" role="presentation">\n                    <div ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="'+i+'"></div>\n                    <div ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="'+r+'"></div>\n                    <span class="ag-paging-description" role="status">\n                        <span id="ag-'+l+'-start-page">'+e+'</span>\n                        <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n                        <span id="ag-'+l+'-of-page">'+n+'</span>\n                        <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n                    </span>\n                    <div ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="'+s+'"></div>\n                    <div ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="'+a+'"></div>\n                </span>\n            </div>'},e.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},e.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},e.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},e.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var n=this.isZeroPagesToDisplay(),i=e&&t===o-1;this.nextButtonDisabled=i||n,this.lastButtonDisabled=!e||n||t===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},e.prototype.toggleButtonDisabled=function(t,e){ro(t,e),t.classList.toggle("ag-disabled",e)},e.prototype.updateRowLabels=function(){var t,e,o=this.paginationProxy.getCurrentPage(),n=this.paginationProxy.getPageSize(),i=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(this.isZeroPagesToDisplay()?t=e=0:(e=(t=n*o+1)+n-1,i&&e>r&&(e=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.rowNodeBlockLoader.isLoading()){var s=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=s("pageLastRowUnknown","?")}else this.lbLastRowOnPage.innerHTML=this.formatNumber(e)},e.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages();return t&&0===e},e.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages(),o=t?this.paginationProxy.getMasterRowCount():null;if(1===o){var n=this.paginationProxy.getRow(0);if(n&&n.group&&!(n.groupData||n.aggData))return void this.setTotalLabelsToZero()}if(t)this.lbTotal.innerHTML=this.formatNumber(e),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},e.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Ng([X("paginationProxy")],e.prototype,"paginationProxy",void 0),Ng([X("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Ng([Pi("btFirst")],e.prototype,"btFirst",void 0),Ng([Pi("btPrevious")],e.prototype,"btPrevious",void 0),Ng([Pi("btNext")],e.prototype,"btNext",void 0),Ng([Pi("btLast")],e.prototype,"btLast",void 0),Ng([Pi("lbRecordCount")],e.prototype,"lbRecordCount",void 0),Ng([Pi("lbFirstRowOnPage")],e.prototype,"lbFirstRowOnPage",void 0),Ng([Pi("lbLastRowOnPage")],e.prototype,"lbLastRowOnPage",void 0),Ng([Pi("lbCurrent")],e.prototype,"lbCurrent",void 0),Ng([Pi("lbTotal")],e.prototype,"lbTotal",void 0),Ng([Y],e.prototype,"postConstruct",null),e}(Ti),Gg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows"}(Qh||(Qh={}));var Vg=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o.manuallyDisplayed=!1,o}return Gg(e,t),e.prototype.updateLayoutClasses=function(t,e){var o=this.eOverlayWrapper.classList;o.toggle(hl.AUTO_HEIGHT,e.autoHeight),o.toggle(hl.NORMAL,e.normal),o.toggle(hl.PRINT,e.print)},e.prototype.postConstruct=function(){this.createManagedBean(new Fl(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,qt.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},e.prototype.setWrapperTypeClass=function(t){var e=this.eOverlayWrapper.classList;e.toggle("ag-overlay-loading-wrapper",t===Qh.Loading),e.toggle("ag-overlay-no-rows-wrapper",t===Qh.NoRows)},e.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var t=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,Qh.Loading)}},e.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var t=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,Qh.NoRows)}},e.prototype.showOverlay=function(t,e){var o=this;this.inProgress||(this.setWrapperTypeClass(e),this.destroyActiveOverlay(),this.inProgress=!0,t&&t.then((function(t){o.inProgress=!1,o.eOverlayWrapper.appendChild(t.getGui()),o.activeOverlay=t,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0,{skipAriaHidden:!0}))},e.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),On(this.eOverlayWrapper))},e.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},e.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},e.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),e=this.gridOptionsService.is("suppressNoRowsOverlay");t&&!e?this.showNoRowsOverlay():this.hideOverlay()},e.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},e.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},e.TEMPLATE='\n        <div class="ag-overlay" aria-hidden="true">\n            <div class="ag-overlay-panel">\n                <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n            </div>\n        </div>',xg([X("userComponentFactory")],e.prototype,"userComponentFactory",void 0),xg([X("paginationProxy")],e.prototype,"paginationProxy",void 0),xg([X("gridApi")],e.prototype,"gridApi",void 0),xg([X("columnModel")],e.prototype,"columnModel",void 0),xg([Pi("eOverlayWrapper")],e.prototype,"eOverlayWrapper",void 0),xg([Y],e.prototype,"postConstruct",null),e}(Ti),Hg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),kg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Bg=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return Hg(o,t),o.prototype.getFirstRow=function(){var t,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?t="top":this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t="bottom"),void 0===t?null:{rowIndex:e,rowPinned:t}},o.prototype.getLastRow=function(){var t,e=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),n=this.pinnedRowModel.getPinnedTopRowCount();return o?(e="bottom",t=o-1):this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageLastRow()):n&&(e="top",t=n-1),void 0===t?null:{rowIndex:t,rowPinned:e}},o.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},o.prototype.sameRow=function(t,e){return!t&&!e||!(t&&!e||!t&&e)&&(t.rowIndex===e.rowIndex&&t.rowPinned==e.rowPinned)},o.prototype.before=function(t,o){switch(t.rowPinned){case"top":if("top"!==o.rowPinned)return!0;break;case"bottom":if("bottom"!==o.rowPinned)return!1;break;default:if(e(o.rowPinned))return"top"!==o.rowPinned}return t.rowIndex<o.rowIndex},o.prototype.rowMax=function(t){var e,o=this;return t.forEach((function(t){(void 0===e||o.before(e,t))&&(e=t)})),e},o.prototype.rowMin=function(t){var e,o=this;return t.forEach((function(t){(void 0===e||o.before(t,e))&&(e=t)})),e},kg([X("rowModel")],o.prototype,"rowModel",void 0),kg([X("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),kg([X("paginationProxy")],o.prototype,"paginationProxy",void 0),o=kg([Q("rowPositionUtils")],o)}(Bt),jg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ug=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jg(e,t),e.prototype.createId=function(t){var e=t.rowIndex,o=t.rowPinned,n=t.column;return this.createIdFromValues({rowIndex:e,column:n,rowPinned:o})},e.prototype.createIdFromValues=function(t){var e=t.rowIndex,o=t.rowPinned;return e+"."+(null==o?"null":o)+"."+t.column.getId()},e.prototype.equals=function(t,e){var o=t.column===e.column,n=t.rowPinned===e.rowPinned,i=t.rowIndex===e.rowIndex;return o&&n&&i},e=Wg([Q("cellPositionUtils")],e)}(Bt),zg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kg=function(t){this.cellValueChanges=t},Yg=function(t){function e(e,o,n,i){var r=t.call(this,e)||this;return r.initialRange=o,r.finalRange=n,r.ranges=i,r}return zg(e,t),e}(Kg),qg=function(){function t(e){this.actionStack=[],this.maxStackSize=e||t.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return t.prototype.pop=function(){return this.actionStack.pop()},t.prototype.push=function(t){t.cellValueChanges&&t.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},t.prototype.clear=function(){this.actionStack=[]},t.prototype.getCurrentStackSize=function(){return this.actionStack.length},t.DEFAULT_STACK_SIZE=10,t}(),Qg=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Xg=function(){return(Xg=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Jg=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Zg=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},$g=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},tv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isRangeInAction=!1,e.onCellValueChanged=function(t){var o={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},n=null!==e.activeCellEdit&&e.cellPositionUtils.equals(e.activeCellEdit,o),i=null!==e.activeRowEdit&&e.rowPositionUtils.sameRow(e.activeRowEdit,o);if(n||i||e.isPasting||e.isRangeInAction){var r=t.rowPinned,s=t.rowIndex,a=t.column,l=t.oldValue,u=t.value,c={rowPinned:r,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};e.cellValueChanges.push(c)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return Qg(e,t),e.prototype.init=function(){var t=this;if(this.gridOptionsService.is("undoRedoCellEditing")){var e=this.gridOptionsService.getNum("undoRedoCellEditingLimit");e<=0||(this.undoStack=new qg(e),this.redoStack=new qg(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,qt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,qt.EVENT_MODEL_UPDATED,(function(e){e.keepUndoRedoStack||t.clearStacks()})),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,qt.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,qt.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})))}},e.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},e.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},e.prototype.undo=function(t){var e={type:qt.EVENT_UNDO_STARTED,source:t};this.eventService.dispatchEvent(e);var o=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),n={type:qt.EVENT_UNDO_ENDED,source:t,operationPerformed:o};this.eventService.dispatchEvent(n)},e.prototype.redo=function(t){var e={type:qt.EVENT_REDO_STARTED,source:t};this.eventService.dispatchEvent(e);var o=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),n={type:qt.EVENT_REDO_ENDED,source:t,operationPerformed:o};this.eventService.dispatchEvent(n)},e.prototype.undoRedo=function(t,e,o,n,i){if(!t)return!1;var r=t.pop();return!(!r||!r.cellValueChanges)&&(this.processAction(r,(function(t){return t[n]}),i),r instanceof Yg?this.processRange(r.ranges||[r[o]]):this.processCell(r.cellValueChanges),e.push(r),!0)},e.prototype.processAction=function(t,e,o){var n=this;t.cellValueChanges.forEach((function(t){var i=t.rowIndex,r=t.rowPinned,s=t.columnId,a={rowIndex:i,rowPinned:r},l=n.getRowNode(a);l.displayed&&l.setDataValue(s,e(t),o)}))},e.prototype.processRange=function(t){var e,o=this;this.rangeService.removeAllCellRanges(!0),t.forEach((function(n,i){if(n){var r=n.startRow,s=n.endRow;i===t.length-1&&(e={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:n.startColumn.getColId()},o.setLastFocusedCell(e));var a={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:n.startColumn,columns:n.columns};o.rangeService.addCellRange(a)}}))},e.prototype.processCell=function(t){var e=t[0],o={rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.getRowNode(o),i={rowPinned:e.rowPinned,rowIndex:n.rowIndex,columnId:e.columnId};this.setLastFocusedCell(i,!!this.rangeService)},e.prototype.setLastFocusedCell=function(t,e){var o=t.rowIndex,n=t.columnId,i=t.rowPinned,r=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getGridColumn(n);if(s){r.ensureIndexVisible(o),r.ensureColumnVisible(s);var a={rowIndex:o,column:s,rowPinned:i};this.focusService.setFocusedCell(Xg(Xg({},a),{forceBrowserFocus:!0})),e&&this.rangeService.setRangeToCell(a)}},e.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_ROW_EDITING_STARTED,(function(e){t.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,qt.EVENT_ROW_EDITING_STOPPED,(function(){var e=new Kg(t.cellValueChanges);t.pushActionsToUndoStack(e),t.activeRowEdit=null}))},e.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_CELL_EDITING_STARTED,(function(e){t.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,qt.EVENT_CELL_EDITING_STOPPED,(function(e){if(t.activeCellEdit=null,e.valueChanged&&!t.activeRowEdit&&!t.isPasting&&!t.isRangeInAction){var o=new Kg(t.cellValueChanges);t.pushActionsToUndoStack(o)}}))},e.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,qt.EVENT_PASTE_END,(function(){var e=new Kg(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isPasting=!1}))},e.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_FILL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,qt.EVENT_FILL_END,(function(e){var o=new Yg(t.cellValueChanges,e.initialRange,e.finalRange);t.pushActionsToUndoStack(o),t.isRangeInAction=!1}))},e.prototype.addCellKeyListeners=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,qt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var e;e=t.rangeService&&t.gridOptionsService.is("enableRangeSelection")?new Yg(t.cellValueChanges,void 0,void 0,$g([],Zg(t.rangeService.getCellRanges()))):new Kg(t.cellValueChanges),t.pushActionsToUndoStack(e),t.isRangeInAction=!1}))},e.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},Jg([X("focusService")],e.prototype,"focusService",void 0),Jg([X("ctrlsService")],e.prototype,"ctrlsService",void 0),Jg([X("rowModel")],e.prototype,"rowModel",void 0),Jg([X("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Jg([X("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Jg([X("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Jg([X("columnModel")],e.prototype,"columnModel",void 0),Jg([J("rangeService")],e.prototype,"rangeService",void 0),Jg([Y],e.prototype,"init",null),e=Jg([Q("undoRedoService")],e)}(Bt),ev=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ov=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},nv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ev(e,t),e.prototype.findHeader=function(t,e){var o,n,i;if(t.column instanceof Yt?(n="getDisplayedGroup"+e,o=this.columnModel[n](t.column)):(i="getDisplayedCol"+e,o=this.columnModel[i](t.column)),o){var r=t.headerRowIndex;if(this.getHeaderRowType(r)===Rc.COLUMN_GROUP){var s=o;if(s.isPadding()&&this.isAnyChildSpanningHeaderHeight(s)){var a=this.getColumnVisibleChild(s,r,e),l=a.nextFocusColumn,u=a.nextRow;l&&(o=l,r=u)}}return{column:o,headerRowIndex:r}}},e.prototype.isAnyChildSpanningHeaderHeight=function(t){return!!t&&t.getLeafColumns().some((function(t){return t.isSpanHeaderHeight()}))},e.prototype.getColumnVisibleParent=function(t,e){var o=this.getHeaderRowType(e),n=o===Rc.FLOATING_FILTER,i=o===Rc.COLUMN,r=n?t:t.getParent(),s=e-1;if(i&&this.isAnyChildSpanningHeaderHeight(t.getParent())){for(;r&&r.isPadding();)r=r.getParent(),s--;s<0&&(r=t,s=e)}return{nextFocusColumn:r,nextRow:s}},e.prototype.getColumnVisibleChild=function(t,e,o){void 0===o&&(o="After");var n=t,i=e+1;if(this.getHeaderRowType(e)===Rc.COLUMN_GROUP){var r=t.getLeafColumns(),s="After"===o?r[0]:ft(r);if(this.isAnyChildSpanningHeaderHeight(s.getParent())){n=s;for(var a=s.getParent();a&&a!==t;)a=a.getParent(),i++}else n=t.getDisplayedChildren()[0]}return{nextFocusColumn:n,nextRow:i}},e.prototype.getHeaderRowType=function(t){var e=this.ctrlsService.getHeaderRowContainerCtrl();if(e)return e.getRowType(t)},e.prototype.findColAtEdgeForHeaderRow=function(t,e){var o=this.columnModel.getAllDisplayedColumns(),n=o["start"===e?0:o.length-1];if(n){var i=this.ctrlsService.getHeaderRowContainerCtrl(n.getPinned()).getRowType(t);return i==Rc.COLUMN_GROUP?{headerRowIndex:t,column:this.columnModel.getColumnGroupAtLevel(n,t)}:{headerRowIndex:null==i?-1:t,column:n}}},ov([X("columnModel")],e.prototype,"columnModel",void 0),ov([X("ctrlsService")],e.prototype,"ctrlsService",void 0),e=ov([Q("headerPositionUtils")],e)}(Bt),iv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},rv=function(){function t(){}return t.prototype.buildColumnDefs=function(t,e,o){var n=this,i=[],r={};return t.forEach((function(t){for(var s=!0,a=n.createDefFromColumn(t,e,o),l=t.getOriginalParent(),u=null;l;){var c=null;if(l.isPadding())l=l.getOriginalParent();else{var p=r[l.getGroupId()];if(p){p.children.push(a),s=!1;break}if((c=n.createDefFromGroup(l))&&(c.children=[a],r[c.groupId]=c,a=c,l=l.getOriginalParent()),null!=l&&u===l){s=!1;break}u=l}}s&&i.push(a)})),i},t.prototype.createDefFromGroup=function(t){var e=f(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},t.prototype.createDefFromColumn=function(t,e,o){var n=f(t.getColDef());return n.colId=t.getColId(),n.width=t.getActualWidth(),n.rowGroup=t.isRowGroupActive(),n.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,n.pivot=t.isPivotActive(),n.pivotIndex=t.isPivotActive()?o.indexOf(t):null,n.aggFunc=t.isValueActive()?t.getAggFunc():null,n.hide=!t.isVisible()||void 0,n.pinned=t.isPinned()?t.getPinned():null,n.sort=t.getSort()?t.getSort():null,n.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,n},t=iv([Q("columnDefFactory")],t)}(),sv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},av=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var o=[];return e(t.extraCssClass)&&o.push(t.extraCssClass),o.push("ag-row"),o.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&o.push("ag-opacity-zero"),o.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&o.push("ag-row-pinned"),t.rowNode.isSelected()&&o.push("ag-row-selected"),t.rowNode.footer&&o.push("ag-row-footer"),o.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&o.push("ag-row-loading"),t.fullWidthRow&&o.push("ag-full-width-row"),t.expandable&&(o.push("ag-row-group"),o.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&o.push("ag-row-dragging"),Ot(o,this.processClassesFromGridOptions(t.rowNode)),Ot(o,this.preProcessRowClassRules(t.rowNode)),o.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&o.push("ag-row-first"),t.lastRowOnPage&&o.push("ag-row-last"),t.fullWidthRow&&("left"===t.pinned&&o.push("ag-cell-last-left-pinned"),"right"===t.pinned&&o.push("ag-cell-first-right-pinned")),o},t.prototype.processClassesFromGridOptions=function(t){var e=[],o=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},n=this.gridOptionsService.get("rowClass");if(n){if("function"==typeof n)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];o(n)}var i=this.gridOptionsService.getCallback("getRowClass");i&&o(i({data:t.data,node:t,rowIndex:t.rowIndex}));return e},t.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,(function(t){e.push(t)}),(function(t){})),e},t.prototype.processRowClassRules=function(t,e,o){var n={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"),n,e,o)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},sv([X("stylingService")],t.prototype,"stylingService",void 0),sv([X("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t=sv([Q("rowCssClassCalculator")],t)}(),lv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),uv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},cv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lv(e,t),e.prototype.init=function(){var t=this;this.isAccentedSort=this.gridOptionsService.is("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",(function(e){return t.isAccentedSort=e.currentValue})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return t.primaryColumnsSortGroups=t.gridOptionsService.isColumnsSortingCoupledToGroup()}))},e.prototype.doFullSort=function(t,e){var o=t.map((function(t,e){return{currentPos:e,rowNode:t}}));return o.sort(this.compareRowNodes.bind(this,e)),o.map((function(t){return t.rowNode}))},e.prototype.compareRowNodes=function(t,e,o){for(var n=e.rowNode,i=o.rowNode,r=0,s=t.length;r<s;r++){var a=t[r],l="desc"===a.sort,u=this.getValue(n,a.column),c=this.getValue(i,a.column),p=void 0,d=this.getComparator(a,n);if(p=d?d(u,c,n,i,l):di.defaultComparator(u,c,this.isAccentedSort),!isNaN(p)&&0!==p)return"asc"===a.sort?p:-1*p}return e.currentPos-o.currentPos},e.prototype.getComparator=function(t,e){var o=t.column,n=o.getColDef().comparator;if(null!=n)return n;if(o.getColDef().showRowGroup){var i=!e.group&&o.getColDef().field;if(i){var r=this.columnModel.getPrimaryColumn(i);if(r)return r.getColDef().comparator}}},e.prototype.getValue=function(t,e){var o,n;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(e,t,!1,!1);if(t.rowGroupColumn===e){if(this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(e.getColDef().keyCreator)return t.key;var i=null===(o=t.allLeafChildren)||void 0===o?void 0:o[0];return i?this.valueService.getValue(e,i,!1,!1):void 0}var r=this.columnModel.getGroupDisplayColumnForGroup(e.getId());if(!r)return;return null===(n=t.groupData)||void 0===n?void 0:n[r.getId()]}return t.group&&e.getColDef().showRowGroup?void 0:this.valueService.getValue(e,t,!1,!1)},uv([X("valueService")],e.prototype,"valueService",void 0),uv([X("columnModel")],e.prototype,"columnModel",void 0),uv([Y],e.prototype,"init",null),e=uv([Q("rowNodeSorter")],e)}(Bt),pv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),dv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},hv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ready=!1,e.readyCallbacks=[],e}var o;return pv(e,t),o=e,e.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollComp&&null!=this.fakeVScrollComp&&null!=this.gridHeaderCtrl,this.ready){var t=this.createReadyParams();this.readyCallbacks.forEach((function(e){return e(t)})),this.readyCallbacks.length=0}},e.prototype.whenReady=function(t){this.ready?t(this.createReadyParams()):this.readyCallbacks.push(t)},e.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},e.prototype.registerFakeHScrollComp=function(t){this.fakeHScrollComp=t,this.checkReady()},e.prototype.registerFakeVScrollComp=function(t){this.fakeVScrollComp=t,this.checkReady()},e.prototype.registerGridHeaderCtrl=function(t){this.gridHeaderCtrl=t,this.checkReady()},e.prototype.registerCenterRowContainerCtrl=function(t){this.centerRowContainerCtrl=t,this.checkReady()},e.prototype.registerLeftRowContainerCtrl=function(t){this.leftRowContainerCtrl=t,this.checkReady()},e.prototype.registerRightRowContainerCtrl=function(t){this.rightRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopCenterRowContainerCtrl=function(t){this.topCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopLeftRowContainerCon=function(t){this.topLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopRightRowContainerCtrl=function(t){this.topRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopCenterRowContainerCtrl=function(t){this.stickyTopCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopLeftRowContainerCon=function(t){this.stickyTopLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopRightRowContainerCtrl=function(t){this.stickyTopRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomCenterRowContainerCtrl=function(t){this.bottomCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomLeftRowContainerCtrl=function(t){this.bottomLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomRightRowContainerCtrl=function(t){this.bottomRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerHeaderContainer=function(t,e){switch(e){case"left":this.leftHeaderRowContainerCtrl=t;break;case"right":this.rightHeaderRowContainerCtrl=t;break;default:this.centerHeaderRowContainerCtrl=t}this.checkReady()},e.prototype.registerGridBodyCtrl=function(t){this.gridBodyCtrl=t,this.checkReady()},e.prototype.registerGridCtrl=function(t){this.gridCtrl=t,this.checkReady()},e.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},e.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},e.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},e.prototype.getGridCtrl=function(){return this.gridCtrl},e.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},e.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},e.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},e.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},e.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},e.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},e.prototype.getHeaderRowContainerCtrl=function(t){switch(t){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},e.NAME="ctrlsService",e=o=dv([Q(o.NAME)],e)}(Bt),fv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registry={},e}return fv(e,t),e.prototype.register=function(t){this.registry[t.controllerName]=t.controllerClass},e.prototype.getInstance=function(t){var e=this.registry[t];if(null!=e)return new e},e=gv([Q("ctrlsFactory")],e)}(Bt),yv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),mv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Cv=function(t){function e(e,o){var n=t.call(this,e)||this;return n.direction=o,n.hideTimeout=null,n}return yv(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,qt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",Vo()||Ho())},e.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=Yo(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},e.prototype.addActiveListenerToggles=function(){var t=this,e=this.getGui();["mouseenter","mousedown","touchstart"].forEach((function(o){return t.addManagedListener(e,o,(function(){return t.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","touchend"].forEach((function(o){return t.addManagedListener(e,o,(function(){return t.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},e.prototype.onScrollVisibilityChanged=function(){var t=this;void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame((function(){return t.setScrollVisible()}))},e.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var t=this;this.addManagedListener(this.eventService,qt.EVENT_BODY_SCROLL,(function(e){e.direction===t.direction&&(null!==t.hideTimeout&&(window.clearTimeout(t.hideTimeout),t.hideTimeout=null),t.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))})),this.addManagedListener(this.eventService,qt.EVENT_BODY_SCROLL_END,(function(){t.hideTimeout=window.setTimeout((function(){t.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),t.hideTimeout=null}),400)}))},e.prototype.attemptSettingScrollPosition=function(t){var e=this,o=this.getViewport();G((function(){return Dn(o)}),(function(){return e.setScrollPosition(t)}),100)},e.prototype.getViewport=function(){return this.eViewport},e.prototype.getContainer=function(){return this.eContainer},e.prototype.onScrollCallback=function(t){this.addManagedListener(this.getViewport(),"scroll",t)},mv([Pi("eViewport")],e.prototype,"eViewport",void 0),mv([Pi("eContainer")],e.prototype,"eContainer",void 0),mv([X("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),mv([X("ctrlsService")],e.prototype,"ctrlsService",void 0),mv([X("animationFrameService")],e.prototype,"animationFrameService",void 0),e}(Ti),wv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Sv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ev=function(t){function e(){return t.call(this,e.TEMPLATE,"horizontal")||this}return wv(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,qt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",o),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new Uu((function(t){return e.eContainer.style.width=t+"px"})))},e.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.is("enableRtl"),t.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},e.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},e.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var t=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=t+"px"}},e.prototype.onScrollVisibilityChanged=function(){t.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},e.prototype.setFakeHScrollSpacerWidths=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),e=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&t,n=this.gridOptionsService.getScrollbarWidth();o&&(e+=n),Vn(this.eRightSpacer,e),this.eRightSpacer.classList.toggle("ag-scroller-corner",e<=n);var i=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&t&&(i+=n),Vn(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=n)},e.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isHorizontalScrollShowing(),e=this.invisibleScrollbar,o=this.gridOptionsService.is("suppressHorizontalScroll"),n=t&&this.gridOptionsService.getScrollbarWidth()||0,i=o?0:0===n&&e?16:n;this.addOrRemoveCssClass("ag-scrollbar-invisible",e),Hn(this.getGui(),i),Hn(this.eViewport,i),Hn(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})},e.prototype.getScrollPosition=function(){return Rn(this.getViewport(),this.enableRtl)},e.prototype.setScrollPosition=function(t){Dn(this.getViewport())||this.attemptSettingScrollPosition(t),bn(this.getViewport(),t,this.enableRtl)},e.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n            <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n            <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n                <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n            </div>\n            <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n        </div>',Sv([Pi("eLeftSpacer")],e.prototype,"eLeftSpacer",void 0),Sv([Pi("eRightSpacer")],e.prototype,"eRightSpacer",void 0),Sv([X("columnModel")],e.prototype,"columnModel",void 0),Sv([X("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Sv([Y],e.prototype,"postConstruct",null),e}(Cv),Rv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),bv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ov=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rv(e,t),e.prototype.postConstruct=function(){var t=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,qt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedPropertyListener("domLayout",t)},e.prototype.checkContainerWidths=function(){var t=this.gridOptionsService.isDomLayout("print"),e=t?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=t?0:this.columnModel.getDisplayedColumnsRightWidth();e!=this.leftWidth&&(this.leftWidth=e,this.eventService.dispatchEvent({type:qt.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:qt.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},e.prototype.getPinnedRightWidth=function(){return this.rightWidth},e.prototype.getPinnedLeftWidth=function(){return this.leftWidth},bv([X("columnModel")],e.prototype,"columnModel",void 0),bv([Y],e.prototype,"postConstruct",null),e=bv([Q("pinnedWidthService")],e)}(Bt),Tv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Dv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.events=[],e}return Tv(e,t),e.prototype.postConstruct=function(){"clientSide"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},e.prototype.dispatchExpanded=function(t){var e=this;if(null!=this.clientSideRowModel){this.events.push(t);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){e.clientSideRowModel&&e.clientSideRowModel.onRowGroupOpened(),e.events.forEach((function(t){return e.eventService.dispatchEvent(t)})),e.events=[]}))),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(t)},Dv([X("animationFrameService")],e.prototype,"animationFrameService",void 0),Dv([X("rowModel")],e.prototype,"rowModel",void 0),Dv([Y],e.prototype,"postConstruct",null),e=Dv([Q("rowNodeEventThrottle")],e)}(Bt),_v=function(){return(_v=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Av=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Fv=function(t,e){return function(o,n){e(o,n,t)}},Lv=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Iv=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t};function Nv(t){return!0===t||"true"===t}var Mv,Gv=function(){function t(){var t=this;this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new nt,this.globalEventHandlerFactory=function(e){return function(o,i){if(!t.destroyed){var r=n.alwaysSyncGlobalEvents.has(o);if(!(r&&!e||!r&&e)){var s=ge.getCallbackForEvent(o);"function"==typeof t.gridOptions[s]&&t.gridOptions[s](i)}}}}}var n;return n=t,Object.defineProperty(t.prototype,"context",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),t.prototype.agWire=function(t,e){this.gridOptions.api=t,this.gridOptions.columnApi=e,this.api=t,this.columnApi=e},t.prototype.init=function(){this.gridOptionLookup=new Set(Iv(Iv([],Lv(ge.ALL_PROPERTIES)),Lv(ge.EVENT_CALLBACKS)));var t=!this.is("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandlerFactory().bind(this),t),this.eventService.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.getScrollbarWidth()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},t.prototype.is=function(t){return Nv(this.gridOptions[t])},t.prototype.get=function(t){return this.gridOptions[t]},t.prototype.getNum=function(t){return"number"==typeof(e=this.gridOptions[t])?e:"string"==typeof e?parseInt(e,10):void 0;var e},t.prototype.getCallback=function(t){return this.mergeGridCommonParams(this.gridOptions[t])},t.prototype.exists=function(t){return e(this.gridOptions[t])},t.prototype.mergeGridCommonParams=function(t){var e=this;if(t){return function(o){var n=o;return n.api=e.api,n.columnApi=e.columnApi,n.context=e.context,t(n)}}return t},t.prototype.__setPropertyOnly=function(t,e){var o=this.gridOptions[t];return this.gridOptionLookup.has(t)&&(this.gridOptions[t]=e),o!==e},t.prototype.set=function(t,e,o,n,i){if(void 0===o&&(o=!1),void 0===n&&(n={}),void 0===i&&(i=void 0),this.gridOptionLookup.has(t)){var r=this.gridOptions[t];if(o||r!==e){this.gridOptions[t]=e;var s=_v({type:t,currentValue:e,previousValue:r,changeSet:i},n);this.propertyEventService.dispatchEvent(s)}}},t.prototype.addEventListener=function(t,e){this.propertyEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.propertyEventService.removeEventListener(t,e)},t.prototype.getGridId=function(){return this.api.getGridId()},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var t="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:zo();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:qt.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.isRowModelType=function(t){return this.gridOptions.rowModelType===t||"clientSide"===t&&o(this.gridOptions.rowModelType)},t.prototype.isDomLayout=function(t){var e;return(null!==(e=this.gridOptions.domLayout)&&void 0!==e?e:"normal")===t},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.useAsyncEvents=function(){return!this.is("suppressAsyncEvents")},t.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(t,e,o){if(void 0===e&&(e=!1),null==o&&(o=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(e)return{height:o,estimated:!0};var n={node:t,data:t.data},i=this.getCallback("getRowHeight")(n);if(this.isNumeric(i))return 0===i&&T((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,i),estimated:!1}}return t.detail&&this.is("masterDetail")?this.getMasterDetailRowHeight():{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o,estimated:!1}},t.prototype.getMasterDetailRowHeight=function(){return this.is("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||o(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var t=this.environment.refreshRowHeightVariable();return-1!==t?t:(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},t.prototype.isNumeric=function(t){return!isNaN(t)&&"number"==typeof t&&isFinite(t)},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(t,e){var o=t[this.getDomDataKey()];return o?o[e]:void 0},t.prototype.setDomData=function(t,e,n){var i=this.getDomDataKey(),r=t[i];o(r)&&(r={},t[i]=r),r[e]=n},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&e(this.gridOptions.getDocument)?t=this.gridOptions.getDocument():this.eGridDiv&&(t=this.eGridDiv.ownerDocument),t&&e(t)?t:document},t.prototype.getWindow=function(){return this.getDocument().defaultView||window},t.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},t.prototype.getAsyncTransactionWaitMillis=function(){return e(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},t.prototype.isAnimateRows=function(){return!this.is("ensureDomOrder")&&this.is("animateRows")},t.prototype.isGroupRowsSticky=function(){return!(this.is("suppressGroupRowsSticky")||this.is("paginateChildRows")||this.is("groupHideOpenParents"))},t.prototype.isColumnsSortingCoupledToGroup=function(){var t=this.gridOptions.autoGroupColumnDef;return this.isRowModelType("clientSide")&&!(null==t?void 0:t.comparator)&&!this.is("treeData")},t.prototype.getGroupAggFiltering=function(){var t=this.gridOptions.groupAggFiltering;return"function"==typeof t?this.getCallback("groupAggFiltering"):Nv(t)?function(){return!0}:void 0},t.prototype.isGroupIncludeFooterTrueOrCallback=function(){var t=this.gridOptions.groupIncludeFooter;return Nv(t)||"function"==typeof t},t.prototype.getGroupIncludeFooter=function(){var t=this.gridOptions.groupIncludeFooter;return"function"==typeof t?this.getCallback("groupIncludeFooter"):Nv(t)?function(){return!0}:function(){return!1}},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?De("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},t.prototype.isGroupUseEntireRow=function(t){return!t&&(!!this.gridOptions.groupDisplayType&&De("groupRows",this.gridOptions.groupDisplayType))},t.alwaysSyncGlobalEvents=new Set([qt.EVENT_GRID_PRE_DESTROYED]),Av([X("gridOptions")],t.prototype,"gridOptions",void 0),Av([X("eventService")],t.prototype,"eventService",void 0),Av([X("environment")],t.prototype,"environment",void 0),Av([X("eGridDiv")],t.prototype,"eGridDiv",void 0),Av([Fv(0,$("gridApi")),Fv(1,$("columnApi"))],t.prototype,"agWire",null),Av([Y],t.prototype,"init",null),Av([q],t.prototype,"destroy",null),t=n=Av([Q("gridOptionsService")],t)}(),xv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xv(e,t),e.prototype.getLocaleTextFunc=function(){var t=this.gridOptionsService.getCallback("getLocaleText");if(t)return function(e,o,n){return t({key:e,defaultValue:o,variableValues:n})};var e=this.gridOptionsService.get("localeText");return function(t,o,n){var i=e&&e[t];if(i&&n&&n.length)for(var r=0;!(r>=n.length);){if(-1===i.indexOf("${variable}"))break;i=i.replace("${variable}",n[r++])}return null!=i?i:o}},e=Vv([Q("localeService")],e)}(Bt),kv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},jv=function(t){function e(){return t.call(this,e.TEMPLATE,"vertical")||this}return kv(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.createManagedBean(new Vu(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,qt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))},e.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),e=this.invisibleScrollbar,o=t&&this.gridOptionsService.getScrollbarWidth()||0,n=0===o&&e?16:o;this.addOrRemoveCssClass("ag-scrollbar-invisible",e),Vn(this.getGui(),n),Vn(this.eViewport,n),Vn(this.eContainer,n),this.setDisplayed(t,{skipAriaHidden:!0})},e.prototype.onRowContainerHeightChanged=function(){var t=this.ctrlsService.getGridBodyCtrl().getBodyViewportElement();this.eViewport.scrollTop!=t.scrollTop&&(this.eViewport.scrollTop=t.scrollTop)},e.prototype.getScrollPosition=function(){return this.getViewport().scrollTop},e.prototype.setScrollPosition=function(t){Dn(this.getViewport())||this.attemptSettingScrollPosition(t),this.getViewport().scrollTop=t},e.TEMPLATE='<div class="ag-body-vertical-scroll" aria-hidden="true">\n            <div class="ag-body-vertical-scroll-viewport" ref="eViewport">\n                <div class="ag-body-vertical-scroll-container" ref="eContainer"></div>\n            </div>\n        </div>',Bv([Y],e.prototype,"postConstruct",null),e}(Cv),Wv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Uv=function(){return(Uv=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},zv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Kv=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Yv=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},qv={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},Qv=["january","february","march","april","may","june","july","august","september","october","november","december"],Xv=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.dataTypeDefinitions={},e.isWaitingForRowData=!1,e.isColumnTypeOverrideInDataTypeDefinitions=!1,e.columnStateUpdatesPendingInference={},e.columnStateUpdateListenerDestroyFuncs=[],e}return Wv(o,t),o.prototype.init=function(){var t=this;this.groupHideOpenParents=this.gridOptionsService.is("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",(function(){t.groupHideOpenParents=t.gridOptionsService.is("groupHideOpenParents")})),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",(function(){t.processDataTypeDefinitions(),t.columnModel.recreateColumnDefs("gridOptionsChanged")}))},o.prototype.processDataTypeDefinitions=function(){var t,e=this,o=this.getDefaultDataTypes();this.dataTypeDefinitions={},Object.entries(o).forEach((function(t){var o=Kv(t,2),n=o[0],i=o[1];e.dataTypeDefinitions[n]=Uv(Uv({},i),{groupSafeValueFormatter:e.createGroupSafeValueFormatter(i)})}));var n=null!==(t=this.gridOptionsService.get("dataTypeDefinitions"))&&void 0!==t?t:{};this.dataTypeMatchers={},Object.entries(n).forEach((function(t){var i=Kv(t,2),r=i[0],s=i[1],a=e.processDataTypeDefinition(s,n,[r],o);a&&(e.dataTypeDefinitions[r]=a,s.dataTypeMatcher&&(e.dataTypeMatchers[r]=s.dataTypeMatcher))})),this.checkObjectValueHandlers(o),["dateString","text","number","boolean","date"].forEach((function(t){var n=e.dataTypeMatchers[t];n&&delete e.dataTypeMatchers[t],e.dataTypeMatchers[t]=null!=n?n:o[t].dataTypeMatcher}))},o.prototype.mergeDataTypeDefinitions=function(t,e){var o=Uv(Uv({},t),e);return t.columnTypes&&e.columnTypes&&e.appendColumnTypes&&(o.columnTypes=Yv(Yv([],Kv(this.convertColumnTypes(t.columnTypes))),Kv(this.convertColumnTypes(e.columnTypes)))),o},o.prototype.processDataTypeDefinition=function(t,e,o,n){var i,r=t.extendsDataType;if(t.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),t.extendsDataType===t.baseDataType){var s=n[r];if(!this.validateDataTypeDefinition(t,s,r))return;i=this.mergeDataTypeDefinitions(s,t)}else{if(o.includes(r))return void T((function(){return console.warn('AG Grid: Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.')}),"dataTypeExtendsCircularRef");var a=e[r];if(!this.validateDataTypeDefinition(t,a,r))return;var l=this.processDataTypeDefinition(a,e,Yv(Yv([],Kv(o)),[r]),n);if(!l)return;i=this.mergeDataTypeDefinitions(l,t)}return Uv(Uv({},i),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(i)})},o.prototype.validateDataTypeDefinition=function(t,e,o){return e?e.baseDataType===t.baseDataType||(T((function(){return console.warn('AG Grid: The "baseDataType" property of a data type definition must match that of its parent.')}),"dataTypeBaseTypesMatch"),!1):(T((function(){return console.warn("AG Grid: The data type definition "+o+" does not exist.")}),"dataTypeDefMissing"+o),!1)},o.prototype.createGroupSafeValueFormatter=function(t){var e=this;if(t.valueFormatter)return function(o){var n,i;if(!(null===(n=o.node)||void 0===n?void 0:n.group))return e.groupHideOpenParents&&o.column.isRowGroupActive()?"string"!=typeof o.value||(null===(i=t.dataTypeMatcher)||void 0===i?void 0:i.call(t,o.value))?t.valueFormatter(o):void 0:t.valueFormatter(o);var r=o.column.getAggFunc();if(r){if("first"===r||"last"===r)return t.valueFormatter(o);if("number"===t.baseDataType&&"count"!==r){if("number"==typeof o.value)return t.valueFormatter(o);if("object"==typeof o.value){if(!o.value)return;if("toNumber"in o.value)return t.valueFormatter(Uv(Uv({},o),{value:o.value.toNumber()}));if("value"in o.value)return t.valueFormatter(Uv(Uv({},o),{value:o.value.value}))}}}}},o.prototype.updateColDefAndGetDataTypeDefinitionColumnType=function(t,e,o){var n=e.cellDataType,i=e.field;if(void 0===n&&(n=t.cellDataType),null!=n&&!0!==n||(n=!!this.canInferCellDataType(t,e)&&this.inferCellDataType(i,o)),n){var r=this.dataTypeDefinitions[n];if(r)return t.cellDataType=n,r.groupSafeValueFormatter&&(t.valueFormatter=r.groupSafeValueFormatter),r.valueParser&&(t.valueParser=r.valueParser),r.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(t,r,o),r.columnTypes;T((function(){return console.warn('AG Grid: Missing data type definition - "'+n+'"')}),"dataTypeMissing"+n)}else t.cellDataType=!1},o.prototype.updateColDefAndGetColumnType=function(t,e,o){var n,i,r=this.updateColDefAndGetDataTypeDefinitionColumnType(t,e,o),s=null!==(i=null!==(n=e.type)&&void 0!==n?n:r)&&void 0!==i?i:t.type;return t.type=s,s?this.convertColumnTypes(s):void 0},o.prototype.addColumnListeners=function(t){if(this.isWaitingForRowData){var e=this.columnStateUpdatesPendingInference[t.getColId()];if(e){var o=function(t){e.add(t.key)};t.addEventListener(ut.EVENT_STATE_UPDATED,o),this.columnStateUpdateListenerDestroyFuncs.push((function(){return t.removeEventListener(ut.EVENT_STATE_UPDATED,o)}))}}},o.prototype.canInferCellDataType=function(t,e){var o,n=this;if("clientSide"!==this.rowModel.getType())return!1;var i={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(this.doColDefPropsPreventInference(e,i))return!1;var r=null===e.type?t.type:e.type;if(r){var s=null!==(o=this.gridOptionsService.get("columnTypes"))&&void 0!==o?o:{};if(this.convertColumnTypes(r).some((function(t){var e=s[t.trim()];return e&&n.doColDefPropsPreventInference(e,i)})))return!1}return!this.doColDefPropsPreventInference(t,i)},o.prototype.doColDefPropsPreventInference=function(t,e){var o=this;return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some((function(n){var i=Kv(n,2),r=i[0],s=i[1];return o.doesColDefPropPreventInference(t,e,r,s)}))},o.prototype.doesColDefPropPreventInference=function(t,e,o,n){if(!e[o])return!1;var i=t[o];return null===i?(e[o]=!1,!1):void 0===n?!!i:i===n},o.prototype.inferCellDataType=function(t,e){var o;if(t){var n,i=this.getInitialData();if(i){var r=t.indexOf(".")>=0&&!this.gridOptionsService.is("suppressFieldDotNotation");n=S(i,t,r)}else this.initWaitForRowData(e);if(null!=n)return Kv(null!==(o=Object.entries(this.dataTypeMatchers).find((function(t){var e=Kv(t,2);return e[0],(0,e[1])(n)})))&&void 0!==o?o:["object"],1)[0]}},o.prototype.getInitialData=function(){var t=this.gridOptionsService.get("rowData");if(null==t?void 0:t.length)return t[0];if(this.initialData)return this.initialData;var e=this.rowModel.getRootNode().allLeafChildren;return(null==e?void 0:e.length)?e[0].data:null},o.prototype.initWaitForRowData=function(t){var e=this;if(this.columnStateUpdatesPendingInference[t]=new Set,!this.isWaitingForRowData){this.isWaitingForRowData=!0;var o=this.isColumnTypeOverrideInDataTypeDefinitions;o&&this.columnModel.queueResizeOperations();var n=this.addManagedListener(this.eventService,qt.EVENT_ROW_DATA_UPDATE_STARTED,(function(t){var i=t.firstRowData;if(i){null==n||n(),e.isWaitingForRowData=!1,e.processColumnsPendingInference(i,o),e.columnStateUpdatesPendingInference={},o&&e.columnModel.processResizeOperations();var r={type:qt.EVENT_DATA_TYPES_INFERRED};e.eventService.dispatchEvent(r)}}))}},o.prototype.isPendingInference=function(){return this.isWaitingForRowData},o.prototype.processColumnsPendingInference=function(t,e){var o=this;this.initialData=t;var n=[];this.columnStateUpdateListenerDestroyFuncs.forEach((function(t){return t()})),this.columnStateUpdateListenerDestroyFuncs=[];var i={},r={};Object.entries(this.columnStateUpdatesPendingInference).forEach((function(t){var s=Kv(t,2),a=s[0],l=s[1],u=o.columnModel.getGridColumn(a);if(u){var c=u.getColDef();if(o.columnModel.resetColumnDefIntoColumn(u)){var p=u.getColDef();if(e&&p.type&&p.type!==c.type){var d=o.getUpdatedColumnState(u,l);d.rowGroup&&null==d.rowGroupIndex&&(i[a]=d),d.pivot&&null==d.pivotIndex&&(r[a]=d),n.push(d)}}}})),e&&n.push.apply(n,Yv([],Kv(this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(i,r)))),n.length&&this.columnModel.applyColumnState({state:n},"cellDataTypeInferred"),this.initialData=null},o.prototype.getUpdatedColumnState=function(t,e){var o=this.columnModel.getColumnStateFromColDef(t);return e.forEach((function(t){delete o[t],"rowGroup"===t?delete o.rowGroupIndex:"pivot"===t&&delete o.pivotIndex})),o},o.prototype.checkObjectValueHandlers=function(t){var e=this.dataTypeDefinitions.object,o=t.object;this.hasObjectValueParser=e.valueParser!==o.valueParser,this.hasObjectValueFormatter=e.valueFormatter!==o.valueFormatter},o.prototype.convertColumnTypes=function(t){var e=[];t instanceof Array?t.some((function(t){return"string"!=typeof t}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):e=t:"string"==typeof t?e=t.split(","):console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");return e},o.prototype.getDateStringTypeDefinition=function(){return this.dataTypeDefinitions.dateString},o.prototype.getDateParserFunction=function(){return this.getDateStringTypeDefinition().dateParser},o.prototype.getDateFormatterFunction=function(){return this.getDateStringTypeDefinition().dateFormatter},o.prototype.getDataTypeDefinition=function(t){var e=t.getColDef();if(e.cellDataType)return this.dataTypeDefinitions[e.cellDataType]},o.prototype.getBaseDataType=function(t){var e;return null===(e=this.getDataTypeDefinition(t))||void 0===e?void 0:e.baseDataType},o.prototype.checkType=function(t,e){var o;if(null==e)return!0;var n=null===(o=this.getDataTypeDefinition(t))||void 0===o?void 0:o.dataTypeMatcher;return!n||n(e)},o.prototype.validateColDef=function(t){"object"===t.cellDataType&&(t.valueFormatter!==this.dataTypeDefinitions.object.groupSafeValueFormatter||this.hasObjectValueFormatter||T((function(){return console.warn('AG Grid: Cell data type is "object" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set "colDef.valueFormatter"')}),"dataTypeObjectValueFormatter"),t.editable&&t.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&T((function(){return console.warn('AG Grid: Cell data type is "object" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set "colDef.valueParser"')}),"dataTypeObjectValueParser"))},o.prototype.setColDefPropertiesForBaseDataType=function(t,o,n){var i=this,r=function(t,e,n){var r=t.getColDef().valueFormatter;return r===o.groupSafeValueFormatter&&(r=o.valueFormatter),i.valueFormatterService.formatValue(t,e,n,r)},s=j.__isRegistered(V.SetFilterModule,this.context.getGridId()),a=this.localeService.getLocaleTextFunc(),l=function(e){var o=t.filterParams;t.filterParams="object"==typeof o?Uv(Uv({},o),e):e};switch(t.useValueFormatterForExport=!0,t.useValueParserForImport=!0,o.baseDataType){case"number":t.cellEditor="agNumberCellEditor",s&&l({comparator:function(t,e){var o=null==t?0:parseInt(t),n=null==e?0:parseInt(e);return o===n?0:o>n?1:-1}});break;case"boolean":t.cellEditor="agCheckboxCellEditor",t.cellRenderer="agCheckboxCellRenderer",t.suppressKeyboardEvent=function(t){return!!t.colDef.editable&&t.event.key===Zn.SPACE},l(s?{valueFormatter:function(t){return e(t.value)?a(String(t.value),t.value?"True":"False"):a("blanks","(Blanks)")}}:{maxNumConditions:1,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:function(t,e){return e},numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:function(t,e){return!1===e},numberOfInputs:0}]});break;case"date":t.cellEditor="agDateCellEditor",t.keyCreator=function(t){return r(t.column,t.node,t.value)},s&&l({valueFormatter:function(t){var o=r(t.column,t.node,t.value);return e(o)?o:a("blanks","(Blanks)")},treeList:!0,treeListFormatter:function(t,e){if(1===e&&null!=t){var o=Qv[Number(t)-1];return a(o,qv[o])}return null!=t?t:a("blanks","(Blanks)")}});break;case"dateString":t.cellEditor="agDateStringCellEditor",t.keyCreator=function(t){return r(t.column,t.node,t.value)};var u=this.getDateParserFunction();l(s?{valueFormatter:function(t){var o=r(t.column,t.node,t.value);return e(o)?o:a("blanks","(Blanks)")},treeList:!0,treeListPathGetter:function(t){var e=u(null!=t?t:void 0);return e?[String(e.getFullYear()),String(e.getMonth()+1),String(e.getDate())]:null},treeListFormatter:function(t,e){if(1===e&&null!=t){var o=Qv[Number(t)-1];return a(o,qv[o])}return null!=t?t:a("blanks","(Blanks)")}}:{comparator:function(t,e){var o=u(e);return null==e||o<t?-1:o>t?1:0}});break;case"object":t.cellEditorParams={useFormatter:!0},t.comparator=function(t,e){var o=i.columnModel.getPrimaryColumn(n),s=null==o?void 0:o.getColDef();if(!o||!s)return 0;var a=null==t?"":r(o,null,t),l=null==e?"":r(o,null,e);return a===l?0:a>l?1:-1},t.keyCreator=function(t){return r(t.column,t.node,t.value)},s?l({valueFormatter:function(t){var o=r(t.column,t.node,t.value);return e(o)?o:a("blanks","(Blanks)")}}):t.filterValueGetter=function(t){return r(t.column,t.node,i.valueService.getValue(t.column,t.node))}}},o.prototype.getDefaultDataTypes=function(){var t=function(t){return!!t.match("^\\d{4}-\\d{2}-\\d{2}$")},e=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:function(t){return""===t.newValue?null:Number(t.newValue)},valueFormatter:function(t){return null==t.value?"":"number"!=typeof t.value||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value)},dataTypeMatcher:function(t){return"number"==typeof t}},text:{baseDataType:"text",valueParser:function(t){return""===t.newValue?null:i(t.newValue)},dataTypeMatcher:function(t){return"string"==typeof t}},boolean:{baseDataType:"boolean",valueParser:function(t){return""===t.newValue?null:"true"===String(t.newValue).toLowerCase()},valueFormatter:function(t){return null==t.value?"":String(t.value)},dataTypeMatcher:function(t){return"boolean"==typeof t}},date:{baseDataType:"date",valueParser:function(t){return nn(null==t.newValue?null:String(t.newValue))},valueFormatter:function(t){var o;return null==t.value?"":t.value instanceof Date&&!isNaN(t.value.getTime())?null!==(o=tn(t.value,!1))&&void 0!==o?o:"":e("invalidDate","Invalid Date")},dataTypeMatcher:function(t){return t instanceof Date}},dateString:{baseDataType:"dateString",dateParser:function(t){var e;return null!==(e=nn(t))&&void 0!==e?e:void 0},dateFormatter:function(t){var e;return null!==(e=tn(null!=t?t:null,!1))&&void 0!==e?e:void 0},valueParser:function(e){return t(String(e.newValue))?e.newValue:null},valueFormatter:function(e){return t(String(e.value))?e.value:""},dataTypeMatcher:function(e){return"string"==typeof e&&t(e)}},object:{baseDataType:"object",valueParser:function(){return null},valueFormatter:function(t){var e;return null!==(e=i(t.value))&&void 0!==e?e:""}}}},zv([X("rowModel")],o.prototype,"rowModel",void 0),zv([X("columnModel")],o.prototype,"columnModel",void 0),zv([X("columnUtils")],o.prototype,"columnUtils",void 0),zv([X("valueService")],o.prototype,"valueService",void 0),zv([X("valueFormatterService")],o.prototype,"valueFormatterService",void 0),zv([Y],o.prototype,"init",null),o=zv([Q("dataTypeService")],o)}(Bt),Jv=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Zv=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$v=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return Jv(o,t),o.prototype.parseValue=function(t,o,n,i){var r=t.getColDef(),s={node:o,data:null==o?void 0:o.data,oldValue:i,newValue:n,colDef:r,column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context},a=r.valueParser;return e(a)?"function"==typeof a?a(s):this.expressionService.evaluate(a,s):n},Zv([X("expressionService")],o.prototype,"expressionService",void 0),o=Zv([Q("valueParserService")],o)}(Bt),ty=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},ey=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},oy=function(){function t(t,e,o){e?(this.gridOptions=e,(new iy).create(t,e,(function(e){var o=new Kf(t);e.createBean(o)}),void 0,o)):console.error("AG Grid: no gridOptions provided to the grid")}return t.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},t}(),ny=1,iy=function(){function t(){}return t.prototype.create=function(t,e,o,n,i){var r,s=this,a=!!e.debug,l=null!==(r=e.gridId)&&void 0!==r?r:String(ny++),u=this.getRegisteredModules(i,l),c=this.createBeansList(e.rowModelType,u,l),p=this.createProvidedBeans(t,e,i);if(c){var d={providedBeanInstances:p,beanClasses:c,debug:a,gridId:l},h=new kf("AG Grid",(function(){return e.debug})),f=new kf("Context",(function(){return d.debug})),g=new z(d,f),v=g.getBean("beans");this.registerModuleUserComponents(v,u),this.registerStackComponents(v,u),this.registerControllers(v,u),o(g),v.ctrlsService.whenReady((function(){s.setColumnsAndData(v),s.dispatchGridReadyEvent(v);var t=j.__isRegistered(V.EnterpriseCoreModule,l);h.log("initialised successfully, enterprise = "+t)})),n&&n(g)}},t.prototype.registerControllers=function(t,e){e.forEach((function(e){e.controllers&&e.controllers.forEach((function(e){return t.ctrlsFactory.register(e)}))}))},t.prototype.registerStackComponents=function(t,e){var o=this.createAgStackComponentsList(e);t.agStackComponentsRegistry.setupComponents(o)},t.prototype.getRegisteredModules=function(t,e){var o=t?t.modules:null,n=j.__getRegisteredModules(e),i=[],r={},s=function(t,e,o){var n;r[(n=e).moduleName]||(r[n.moduleName]=!0,i.push(n),j.__register(n,t,o)),e.dependantModules&&e.dependantModules.forEach((function(e){return s(t,e,o)}))};return o&&o.forEach((function(t){return s(!0,t,e)})),n&&n.forEach((function(t){return s(!j.__isPackageBased(),t,void 0)})),i},t.prototype.registerModuleUserComponents=function(t,e){this.extractModuleEntity(e,(function(t){return t.userComponents?t.userComponents:[]})).forEach((function(e){t.userComponentRegistry.registerDefaultComponent(e.componentName,e.componentClass)}))},t.prototype.createProvidedBeans=function(t,e,n){var i=n?n.frameworkOverrides:null;o(i)&&(i=new uf);var r={gridOptions:e,eGridDiv:t,globalEventListener:n?n.globalEventListener:null,globalSyncEventListener:n?n.globalSyncEventListener:null,frameworkOverrides:i};return n&&n.providedBeanInstances&&Object.assign(r,n.providedBeanInstances),r},t.prototype.createAgStackComponentsList=function(t){var e=[{componentName:"AgCheckbox",componentClass:cr},{componentName:"AgRadioButton",componentClass:dr},{componentName:"AgToggleButton",componentClass:th},{componentName:"AgInputTextField",componentClass:Mr},{componentName:"AgInputTextArea",componentClass:oh},{componentName:"AgInputNumberField",componentClass:xr},{componentName:"AgInputDateField",componentClass:ih},{componentName:"AgInputRange",componentClass:sh},{componentName:"AgRichSelect",componentClass:wh},{componentName:"AgSelect",componentClass:rr},{componentName:"AgSlider",componentClass:Rh},{componentName:"AgGridBody",componentClass:oc},{componentName:"AgHeaderRoot",componentClass:$p},{componentName:"AgSortIndicator",componentClass:as},{componentName:"AgPagination",componentClass:Mg},{componentName:"AgOverlayWrapper",componentClass:Vg},{componentName:"AgGroupComponent",componentClass:Th},{componentName:"AgPanel",componentClass:Hh},{componentName:"AgDialog",componentClass:Wh},{componentName:"AgRowContainer",componentClass:bc},{componentName:"AgFakeHorizontalScroll",componentClass:Ev},{componentName:"AgFakeVerticalScroll",componentClass:jv},{componentName:"AgAutocomplete",componentClass:sf}],o=this.extractModuleEntity(t,(function(t){return t.agStackComponents?t.agStackComponents:[]}));return e=e.concat(o)},t.prototype.createBeansList=function(t,e,o){void 0===t&&(t="clientSide");var n=e.filter((function(e){return!e.rowModel||e.rowModel===t})),i={clientSide:V.ClientSideRowModelModule,infinite:V.InfiniteRowModelModule,serverSide:V.ServerSideRowModelModule,viewport:V.ViewportRowModelModule};if(i[t]){if(j.__assertRegistered(i[t],"rowModelType = '"+t+"'",o)){var r=[nu,Bg,Ug,nv,sg,fl,Ia,gg,mg,hd,tl,_g,od,Hv,Te,Vd,rl,Be,nt,Gv,Jh,Rf,Sl,Me,Yp,Qd,Fd,Lf,zt,Mf,mf,dc,ug,Pf,Hf,Ve,Cd,rd,Us,Of,wp,lc,Og,ff,Md,Zd,rc,Jf,tg,ng,Lg,$t,dg,vd,tv,Ue,rv,av,Kd,cv,hv,Ov,Pv,vv,Xv,$v,yl],s=this.extractModuleEntity(n,(function(t){return t.beans?t.beans:[]}));r.push.apply(r,ey([],ty(s)));var a=[];return r.forEach((function(t){a.indexOf(t)<0&&a.push(t)})),a}}else console.error("AG Grid: could not find row model for rowModelType = "+t)},t.prototype.extractModuleEntity=function(t,e){return[].concat.apply([],ey([],ty(t.map(e))))},t.prototype.setColumnsAndData=function(t){var e=t.gridOptionsService.get("columnDefs");t.columnModel.setColumnDefs(e||[],"gridInitializing"),t.rowModel.start()},t.prototype.dispatchGridReadyEvent=function(t){var e={type:qt.EVENT_GRID_READY};t.eventService.dispatchEvent(e)},t}(),ry=function(){function t(){}return t.prototype.wrap=function(t,e,o,n){var i=this;void 0===o&&(o=[]);var r=this.createWrapper(t,n);return e.forEach((function(t){i.createMethod(r,t,!0)})),o.forEach((function(t){i.createMethod(r,t,!1)})),r},t.prototype.unwrap=function(t){return t},t.prototype.createMethod=function(t,e,o){t.addMethod(e,this.createMethodProxy(t,e,o))},t.prototype.createMethodProxy=function(t,e,o){return function(){return t.hasMethod(e)?t.callMethod(e,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},t}(),sy={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","doughnut"],lineGroup:["line"],scatterGroup:["scatter","bubble"],areaGroup:["area","stackedArea","normalizedArea"],histogramGroup:["histogram"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]},ay=["chartSettings","chartData","chartFormat"],ly=["chartUnlink","chartLink","chartDownload"],uy={settings:"chartSettings",data:"chartData",format:"chartFormat"},cy=0;!function(t){t.InsideBase="insideBase",t.InsideEnd="insideEnd",t.Center="center",t.OutsideEnd="outsideEnd"}(Mv||(Mv={}));
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
 * @version v30.2.1
 * @link https://www.ag-grid.com/
 * @license MIT
 */
var py="undefined"==typeof global?{}:global;py.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,py.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,py.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,py.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,py.Node="undefined"==typeof Node?{}:Node,py.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var dy,hy=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},fy=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},gy=function(){function t(e,o,n,i,r,s){this.nextId=0,this.allNodesMap={},this.rootNode=e,this.gridOptionsService=o,this.eventService=n,this.columnModel=i,this.beans=s,this.selectionService=r,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=t.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return t.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsService.is("suppressParentsInRowNodes"),this.isRowMasterFunc=this.gridOptionsService.get("isRowMaster"),this.doingMasterDetail=this.gridOptionsService.is("masterDetail")},t.prototype.getCopyOfNodesMap=function(){return di.cloneObject(this.allNodesMap)},t.prototype.getRowNode=function(t){return this.allNodesMap[t]},t.prototype.setRowData=function(e){var o=this;if("string"!=typeof e){this.dispatchRowDataUpdateStartedEvent(e);var n=this.rootNode,i=this.rootNode.sibling;n.childrenAfterFilter=null,n.childrenAfterGroup=null,n.childrenAfterAggFilter=null,n.childrenAfterSort=null,n.childrenMapped=null,n.updateHasChildren(),this.nextId=0,this.allNodesMap={},e?n.allLeafChildren=e.map((function(e){return o.createNode(e,o.rootNode,t.TOP_LEVEL)})):(n.allLeafChildren=[],n.childrenAfterGroup=[]),i&&(i.childrenAfterFilter=n.childrenAfterFilter,i.childrenAfterGroup=n.childrenAfterGroup,i.childrenAfterAggFilter=n.childrenAfterAggFilter,i.childrenAfterSort=n.childrenAfterSort,i.childrenMapped=n.childrenMapped,i.allLeafChildren=n.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},t.prototype.updateRowData=function(t,e){this.dispatchRowDataUpdateStartedEvent(t.add);var o={remove:[],update:[],add:[]},n=[];return this.executeRemove(t,o,n),this.executeUpdate(t,o,n),this.executeAdd(t,o),this.updateSelection(n,"rowDataChanged"),e&&di.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),o},t.prototype.dispatchRowDataUpdateStartedEvent=function(t){var e={type:qt.EVENT_ROW_DATA_UPDATE_STARTED,firstRowData:(null==t?void 0:t.length)?t[0]:null};this.eventService.dispatchEvent(e)},t.prototype.updateSelection=function(t,e){var o=t.length>0;if(o&&this.selectionService.setNodesSelected({newValue:!1,nodes:t,suppressFinishActions:!0,source:e}),this.selectionService.updateGroupsFromChildrenSelections(e),o){var n={type:qt.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(n)}},t.prototype.executeAdd=function(e,o){var n,i=this,r=e.add,s=e.addIndex;if(!di.missingOrEmpty(r)){var a=r.map((function(e){return i.createNode(e,i.rootNode,t.TOP_LEVEL)}));if("number"==typeof s&&s>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=s;if(this.gridOptionsService.is("treeData")&&s>0&&u>0)for(var p=0;p<u;p++)if((null===(n=l[p])||void 0===n?void 0:n.rowIndex)==s-1){c=p+1;break}var d=l.slice(0,c),h=l.slice(c,l.length);this.rootNode.allLeafChildren=fy(fy(fy([],hy(d)),hy(a)),hy(h))}else this.rootNode.allLeafChildren=fy(fy([],hy(this.rootNode.allLeafChildren)),hy(a));this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),o.add=a}},t.prototype.executeRemove=function(t,e,o){var n=this,i=t.remove;if(!di.missingOrEmpty(i)){var r={};i.forEach((function(t){var i=n.lookupRowNode(t);i&&(i.isSelected()&&o.push(i),i.clearRowTopAndRowIndex(),r[i.id]=!0,delete n.allNodesMap[i.id],e.remove.push(i))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(t){return!r[t.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},t.prototype.executeUpdate=function(e,o,n){var i=this,r=e.update;di.missingOrEmpty(r)||r.forEach((function(e){var r=i.lookupRowNode(e);r&&(r.updateData(e),!r.selectable&&r.isSelected()&&n.push(r),i.setMasterForRow(r,e,t.TOP_LEVEL,!1),o.update.push(r))}))},t.prototype.lookupRowNode=function(t){var e,o=this.gridOptionsService.getCallback("getRowId");if(o){var n=o({data:t,level:0});if(!(e=this.allNodesMap[n]))return console.error("AG Grid: could not find row id="+n+", data item was not found for this id"),null}else if(!(e=this.rootNode.allLeafChildren.find((function(e){return e.data===t}))))return console.error("AG Grid: could not find data item as object was not found",t),console.error("Consider using getRowId to help the Grid find matching row data"),null;return e||null},t.prototype.createNode=function(t,e,o){var n=new Ms(this.beans);return n.group=!1,this.setMasterForRow(n,t,o,!0),e&&!this.suppressParentsInRowNodes&&(n.parent=e),n.level=o,n.setDataAndId(t,this.nextId.toString()),this.allNodesMap[n.id]&&console.warn("AG Grid: duplicate node id '"+n.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[n.id]=n,this.nextId++,n},t.prototype.setMasterForRow=function(t,e,o,n){if(this.gridOptionsService.is("treeData"))t.setMaster(!1),n&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),n){var i=this.columnModel.getRowGroupColumns(),r=o+(i?i.length:0);t.expanded=!!t.master&&this.isExpanded(r)}},t.prototype.isExpanded=function(t){var e=this.gridOptionsService.getNum("groupDefaultExpanded");return-1===e||t<e},t.TOP_LEVEL=0,t.ROOT_NODE_ID="ROOT_NODE_ID",t}(),vy=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),yy=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},my=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},Cy=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t};!function(t){t[t.Normal=0]="Normal",t[t.AfterFilter=1]="AfterFilter",t[t.AfterFilterAndSort=2]="AfterFilterAndSort",t[t.PivotNodes=3]="PivotNodes"}(dy||(dy={}));var wy,Sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onRowHeightChanged_debounced=di.debounce(e.onRowHeightChanged.bind(e),100),e.rowsToDisplay=[],e}return vy(e,t),e.prototype.init=function(){var t=this,e=this.refreshModel.bind(this,{step:ol.EVERYTHING}),o=!this.gridOptionsService.is("suppressAnimationFrame"),n=this.refreshModel.bind(this,{step:ol.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:o});this.addManagedListener(this.eventService,qt.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:ol.PIVOT})),this.addManagedListener(this.eventService,qt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,qt.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this));var i=this.refreshModel.bind(this,{step:ol.MAP,keepRenderedRows:!0,animate:o});this.addManagedPropertyListeners(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter"],i);var r=this.refreshModel.bind(this,{step:ol.AGGREGATE,keepRenderedRows:!0,animate:o});this.addManagedPropertyListeners(["groupIncludeTotalFooter"],r),this.rootNode=new Ms(this.beans),this.nodeManager=new gy(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans),this.addManagedPropertyListener("treeData",(function(){t.setRowData(t.rootNode.allLeafChildren.map((function(t){return t.data})))}))},e.prototype.start=function(){var t=this.gridOptionsService.get("rowData");t&&this.setRowData(t)},e.prototype.ensureRowHeightsValid=function(t,e,o,n){var i,r=!1;do{i=!1;for(var s=this.getRowIndexAtPixel(t),a=this.getRowIndexAtPixel(e),l=Math.max(s,o),u=Math.min(a,n),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsService.getRowHeightForNode(p);p.setRowHeight(d.height),i=!0,r=!0}}i&&this.setRowTopAndRowIndex()}while(i);return r},e.prototype.setRowTopAndRowIndex=function(){for(var t=this.environment.getDefaultRowHeight(),e=0,o=new Set,n=this.gridOptionsService.isDomLayout("normal"),i=0;i<this.rowsToDisplay.length;i++){var r=this.rowsToDisplay[i];if(null!=r.id&&o.add(r.id),null==r.rowHeight){var s=this.gridOptionsService.getRowHeightForNode(r,n,t);r.setRowHeight(s.height,s.estimated)}r.setRowTop(e),r.setRowIndex(i),e+=r.rowHeight}return o},e.prototype.clearRowTopAndRowIndex=function(t,e){var o=t.isActive(),n=function(t){t&&null!=t.id&&!e.has(t.id)&&t.clearRowTopAndRowIndex()},i=function(t){if(n(t),n(t.detailNode),n(t.sibling),t.hasChildren()&&t.childrenAfterGroup){var e=-1==t.level;o&&!e&&!t.expanded||t.childrenAfterGroup.forEach(i)}};i(this.rootNode)},e.prototype.ensureRowsAtPixel=function(t,e,o){var n=this;void 0===o&&(o=0);var i=this.getRowIndexAtPixel(e),r=this.getRow(i),s=!this.gridOptionsService.is("suppressAnimationFrame");return r!==t[0]&&(t.forEach((function(t){di.removeFromArray(n.rootNode.allLeafChildren,t)})),t.forEach((function(t,e){di.insertIntoArray(n.rootNode.allLeafChildren,t,Math.max(i+o,0)+e)})),this.refreshModel({step:ol.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:s}),!0)},e.prototype.highlightRowAtPixel=function(t,e){var o=null!=e?this.getRowIndexAtPixel(e):null,n=null!=o?this.getRow(o):null;if(n&&t&&n!==t&&null!=e){var i=this.getHighlightPosition(e,n);this.lastHighlightedRow&&this.lastHighlightedRow!==n&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),n.setHighlighted(i),this.lastHighlightedRow=n}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},e.prototype.getHighlightPosition=function(t,e){if(!e){var o=this.getRowIndexAtPixel(t);if(!(e=this.getRow(o||0)))return el.Below}return t-e.rowTop<e.rowHeight/2?el.Above:el.Below},e.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},e.prototype.isLastRowIndexKnown=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var t=this.rootNode.childrenAfterAggFilter;return t?t.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(t){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return t;var e=this.rootNode.childrenAfterSort[t];if(this.gridOptionsService.is("groupHideOpenParents"))for(;e.expanded&&e.childrenAfterSort&&e.childrenAfterSort.length>0;)e=e.childrenAfterSort[0];return e.rowIndex},e.prototype.getRowBounds=function(t){if(di.missing(this.rowsToDisplay))return null;var e=this.rowsToDisplay[t];return e?{rowTop:e.rowTop,rowHeight:e.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var t=this.gridOptionsService.isAnimateRows();this.refreshModel({step:ol.MAP,keepRenderedRows:!0,animate:t})},e.prototype.onFilterChanged=function(t){if(!t.afterDataChange){var e=this.gridOptionsService.isAnimateRows(),o=0===t.columns.length||t.columns.some((function(t){return t.isPrimary()}))?ol.FILTER:ol.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:e})}},e.prototype.onSortChanged=function(){var t=this.gridOptionsService.isAnimateRows();this.refreshModel({step:ol.SORT,keepRenderedRows:!0,animate:t,keepEditingRows:!0})},e.prototype.getType=function(){return"clientSide"},e.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:ol.PIVOT}):this.refreshModel({step:ol.AGGREGATE})},e.prototype.createChangePath=function(t){var e=di.missingOrEmpty(t),o=new kd(!1,this.rootNode);return(e||this.gridOptionsService.is("treeData"))&&o.setInactive(),o},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(t){if(!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction"))return!1;if(null==t.rowNodeTransactions)return!1;var e=t.rowNodeTransactions.filter((function(t){return null!=t.add&&t.add.length>0||null!=t.remove&&t.remove.length>0}));return null==e||0==e.length},e.prototype.buildRefreshModelParams=function(t){var e=ol.EVERYTHING,o={everything:ol.EVERYTHING,group:ol.EVERYTHING,filter:ol.FILTER,map:ol.MAP,aggregate:ol.AGGREGATE,sort:ol.SORT,pivot:ol.PIVOT};if(di.exists(t)&&(e=o[t]),!di.missing(e))return{step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.is("suppressAnimationFrame")};console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(o).join(", "))},e.prototype.refreshModel=function(t){var e="object"==typeof t&&"step"in t?t:this.buildRefreshModelParams(t);if(e&&!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case ol.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,!!e.afterColumnsChanged);case ol.FILTER:this.doFilter(o);case ol.PIVOT:this.doPivot(o);case ol.AGGREGATE:this.doAggregate(o);case ol.FILTER_AGGREGATES:this.doFilterAggregates(o);case ol.SORT:this.doSort(e.rowNodeTransactions,o);case ol.MAP:this.doRowsToDisplay()}var n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,n);var i={type:qt.EVENT_MODEL_UPDATED,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack};this.eventService.dispatchEvent(i)}},e.prototype.isEmpty=function(){var t=di.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return di.missing(this.rootNode)||t||!this.columnModel.isReady()},e.prototype.isRowsToRender=function(){return di.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(t,e){var o=!e,n=!1,i=[],r=this.gridOptionsService.is("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort((function(s){if(!n)if(o&&(s===e||s===t)&&(n=!0,s.group&&r))i.push.apply(i,Cy([],my(s.allLeafChildren)));else{if(!o){if(s!==e&&s!==t)return;o=!0}(!s.group||!r)&&i.push(s)}})),i},e.prototype.setDatasource=function(t){console.error("AG Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(t){return this.rowsToDisplay[t]},e.prototype.isRowPresent=function(t){return this.rowsToDisplay.indexOf(t)>=0},e.prototype.getRowIndexAtPixel=function(t){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var e=0,o=this.rowsToDisplay.length-1;if(t<=0)return 0;if(di.last(this.rowsToDisplay).rowTop<=t)return this.rowsToDisplay.length-1;for(var n=-1,i=-1;;){var r=Math.floor((e+o)/2),s=this.rowsToDisplay[r];if(this.isRowInPixel(s,t))return r;if(s.rowTop<t?e=r+1:s.rowTop>t&&(o=r-1),n===e&&i===o)return r;n=e,i=o}},e.prototype.isRowInPixel=function(t,e){var o=t.rowTop,n=t.rowTop+t.rowHeight;return o<=e&&n>e},e.prototype.forEachLeafNode=function(t){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(e,o){return t(e,o)}))},e.prototype.forEachNode=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:Cy([],my(this.rootNode.childrenAfterGroup||[])),callback:t,recursionType:dy.Normal,index:0,includeFooterNodes:e})},e.prototype.forEachNodeAfterFilter=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:Cy([],my(this.rootNode.childrenAfterAggFilter||[])),callback:t,recursionType:dy.AfterFilter,index:0,includeFooterNodes:e})},e.prototype.forEachNodeAfterFilterAndSort=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:Cy([],my(this.rootNode.childrenAfterSort||[])),callback:t,recursionType:dy.AfterFilterAndSort,index:0,includeFooterNodes:e})},e.prototype.forEachPivotNode=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:t,recursionType:dy.PivotNodes,index:0,includeFooterNodes:e})},e.prototype.recursivelyWalkNodesAndCallback=function(t){for(var e,o=t.nodes,n=t.callback,i=t.recursionType,r=t.includeFooterNodes,s=t.index,a=0;a<o.length;a++){var l=o[a];if(n(l,s++),l.hasChildren()&&!l.footer){var u=null;switch(i){case dy.Normal:u=l.childrenAfterGroup;break;case dy.AfterFilter:u=l.childrenAfterAggFilter;break;case dy.AfterFilterAndSort:u=l.childrenAfterSort;break;case dy.PivotNodes:u=l.leafGroup?null:l.childrenAfterSort}u&&(s=this.recursivelyWalkNodesAndCallback({nodes:Cy([],my(u)),callback:n,recursionType:i,index:s,includeFooterNodes:r}))}}var c=null===(e=o[0])||void 0===e?void 0:e.parent;if(!r||!c)return s;if(c===this.rootNode){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))return s}else if(!this.gridOptionsService.getGroupIncludeFooter()({node:c}))return s;return c.createFooter(),n(c.sibling,s++),s},e.prototype.doAggregate=function(t){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.doFilterAggregates=function(t){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:t}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},e.prototype.expandOrCollapseAll=function(t){var e=this.gridOptionsService.is("treeData"),o=this.columnModel.isPivotActive(),n=function(i){i&&i.forEach((function(i){var r=function(){i.expanded=t,n(i.childrenAfterGroup)};e?di.exists(i.childrenAfterGroup)&&r():o?!i.leafGroup&&r():i.group&&r()}))};this.rootNode&&n(this.rootNode.childrenAfterGroup),this.refreshModel({step:ol.MAP});var i=t?"expandAll":"collapseAll",r={type:qt.EVENT_EXPAND_COLLAPSE_ALL,source:i};this.eventService.dispatchEvent(r)},e.prototype.doSort=function(t,e){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,changedPath:e})},e.prototype.doRowGrouping=function(t,e,o,n,i){if(this.groupStage){if(e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodeOrder:o,changedPath:n}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:i}),this.restoreGroupState(t)),this.gridOptionsService.is("groupSelectsChildren")&&this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",n)){var r={type:qt.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(r)}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren()},e.prototype.restoreGroupState=function(t){t&&di.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(e,o){"boolean"==typeof t[o]&&(e.expanded=t[o])}))},e.prototype.doFilter=function(t){this.filterStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.doPivot=function(t){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsService.is("rememberGroupStateWhenNewData"))return null;var t={};return di.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(e,o){return t[o]=e.expanded})),t},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(t){if("string"==typeof t&&0==t.indexOf(Ms.ID_PREFIX_ROW_GROUP)){var e=void 0;return this.forEachNode((function(o){o.id===t&&(e=o)})),e}return this.nodeManager.getRowNode(t)},e.prototype.setRowData=function(t){var e=this.getGroupState();this.nodeManager.setRowData(t),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:qt.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o),this.refreshModel({step:ol.EVERYTHING,groupState:e,newData:!0})},e.prototype.batchUpdateRowData=function(t,e){var o=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var n=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){o.executeBatchUpdateRowData()}),n)}this.rowDataTransactionBatch.push({rowDataTransaction:t,callback:e})},e.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},e.prototype.executeBatchUpdateRowData=function(){var t=this;this.valueCache.onDataChanged();var e=[],o=[],n=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(i){var r=t.nodeManager.updateRowData(i.rowDataTransaction,void 0);o.push(r),i.callback&&e.push(i.callback.bind(null,r)),"number"==typeof i.rowDataTransaction.addIndex&&(n=!0)})),this.commonUpdateRowData(o,void 0,n),e.length>0&&window.setTimeout((function(){e.forEach((function(t){return t()}))}),0),o.length>0){var i={type:qt.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(i)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},e.prototype.updateRowData=function(t,e){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(t,e),n="number"==typeof t.addIndex;return this.commonUpdateRowData([o],e,n),o},e.prototype.createRowNodeOrder=function(){if(!this.gridOptionsService.is("suppressMaintainUnsortedOrder")){var t={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var e=0;e<this.rootNode.allLeafChildren.length;e++){t[this.rootNode.allLeafChildren[e].id]=e}return t}},e.prototype.commonUpdateRowData=function(t,e,o){var n=!this.gridOptionsService.is("suppressAnimationFrame");o&&(e=this.createRowNodeOrder()),this.refreshModel({step:ol.EVERYTHING,rowNodeTransactions:t,rowNodeOrder:e,keepRenderedRows:!0,keepEditingRows:!0,animate:n}),this.filterManager.onNewRowsLoaded("rowDataUpdated");var i={type:qt.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(i)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:ol.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},e.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},e.prototype.resetRowHeights=function(){var t=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),t&&this.onRowHeightChanged()},e.prototype.resetRowHeightsForAllRowNodes=function(){var t=!1;return this.forEachNode((function(e){e.setRowHeight(e.rowHeight,!0);var o=e.detailNode;o&&o.setRowHeight(o.rowHeight,!0),e.sibling&&e.sibling.setRowHeight(e.sibling.rowHeight,!0),t=!0})),t},e.prototype.onGridStylesChanges=function(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()},yy([X("columnModel")],e.prototype,"columnModel",void 0),yy([X("selectionService")],e.prototype,"selectionService",void 0),yy([X("filterManager")],e.prototype,"filterManager",void 0),yy([X("valueCache")],e.prototype,"valueCache",void 0),yy([X("beans")],e.prototype,"beans",void 0),yy([X("filterStage")],e.prototype,"filterStage",void 0),yy([X("sortStage")],e.prototype,"sortStage",void 0),yy([X("flattenStage")],e.prototype,"flattenStage",void 0),yy([J("groupStage")],e.prototype,"groupStage",void 0),yy([J("aggregationStage")],e.prototype,"aggregationStage",void 0),yy([J("pivotStage")],e.prototype,"pivotStage",void 0),yy([J("filterAggregatesStage")],e.prototype,"filterAggregatesStage",void 0),yy([Y],e.prototype,"init",null),e=yy([Q("rowModel")],e)}(Bt),Ey=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ry=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},by=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ey(e,t),e.prototype.execute=function(t){var e=t.changedPath;this.filterService.filter(e)},Ry([X("filterService")],e.prototype,"filterService",void 0),e=Ry([Q("filterStage")],e)}(Bt),Oy=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ty=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Dy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oy(e,t),e.prototype.execute=function(t){var e=this,o=this.sortController.getSortOptions(),n=di.exists(o)&&o.length>0,i=n&&di.exists(t.rowNodeTransactions)&&this.gridOptionsService.is("deltaSort"),r=o.some((function(t){return e.gridOptionsService.isColumnsSortingCoupledToGroup()?t.column.isPrimary()&&t.column.isRowGroupActive():!!t.column.getColDef().showRowGroup}));this.sortService.sort(o,n,i,t.rowNodeTransactions,t.changedPath,r)},Ty([X("sortService")],e.prototype,"sortService",void 0),Ty([X("sortController")],e.prototype,"sortController",void 0),Ty([X("columnModel")],e.prototype,"columnModel",void 0),e=Ty([Q("sortStage")],e)}(Bt),Py=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_y=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ay=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Py(e,t),e.prototype.execute=function(t){var e=t.rowNode,o=[],n=this.columnModel.isPivotMode(),i=n&&e.leafGroup,r=i?[e]:e.childrenAfterSort,s=this.getFlattenDetails();return this.recursivelyAddToRowsToDisplay(s,r,o,n,0),!i&&o.length>0&&s.groupIncludeTotalFooter&&(e.createFooter(),this.addRowNodeToRowsToDisplay(s,e.sibling,o,0)),o},e.prototype.getFlattenDetails=function(){var t=this.gridOptionsService.is("groupRemoveSingleChildren");return{groupRemoveLowestSingleChildren:!t&&this.gridOptionsService.is("groupRemoveLowestSingleChildren"),groupRemoveSingleChildren:t,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.is("groupHideOpenParents"),groupIncludeTotalFooter:this.gridOptionsService.is("groupIncludeTotalFooter"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}},e.prototype.recursivelyAddToRowsToDisplay=function(t,e,o,n,i){if(!di.missingOrEmpty(e))for(var r=0;r<e.length;r++){var s=e[r],a=s.hasChildren(),l=n&&!a,u=t.groupRemoveSingleChildren&&a&&1===s.childrenAfterGroup.length,c=t.groupRemoveLowestSingleChildren&&a&&s.leafGroup&&1===s.childrenAfterGroup.length,p=n&&s.leafGroup,d=t.hideOpenParents&&s.expanded&&!s.master&&!p;if(!(l||d||u||c)&&this.addRowNodeToRowsToDisplay(t,s,o,i),!n||!s.leafGroup)if(a){var h=u||c;if(s.expanded||h){var f=h?i:i+1;this.recursivelyAddToRowsToDisplay(t,s.childrenAfterSort,o,n,f),t.getGroupIncludeFooter({node:s})?(s.createFooter(),this.addRowNodeToRowsToDisplay(t,s.sibling,o,f)):s.destroyFooter()}}else if(s.master&&s.expanded){var g=this.createDetailNode(s);this.addRowNodeToRowsToDisplay(t,g,o,i)}}},e.prototype.addRowNodeToRowsToDisplay=function(t,e,o,n){o.push(e),e.setUiLevel(t.isGroupMultiAutoColumn?0:n)},e.prototype.createDetailNode=function(t){if(di.exists(t.detailNode))return t.detailNode;var e=new Ms(this.beans);return e.detail=!0,e.selectable=!1,e.parent=t,di.exists(t.id)&&(e.id="detail_"+t.id),e.data=t.data,e.level=t.level+1,t.detailNode=e,e},_y([X("columnModel")],e.prototype,"columnModel",void 0),_y([X("beans")],e.prototype,"beans",void 0),e=_y([Q("flattenStage")],e)}(Bt),Fy=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ly=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Iy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fy(e,t),e.prototype.init=function(){this.postSortFunc=this.gridOptionsService.getCallback("postSortRows")},e.prototype.sort=function(t,e,o,n,i,r){var s=this,a=this.gridOptionsService.is("groupMaintainOrder"),l=this.columnModel.getAllGridColumns().some((function(t){return t.isRowGroupActive()})),u={};o&&n&&(u=this.calculateDirtyNodes(n));var c=this.columnModel.isPivotMode();i&&i.forEachChangedNodeDepthFirst((function(n){s.pullDownGroupDataForHideOpenParents(n.childrenAfterAggFilter,!0);var p=c&&n.leafGroup;if(a&&l&&!n.leafGroup&&!r){var d=n.childrenAfterAggFilter.slice(0);if(n.childrenAfterSort){var h={};n.childrenAfterSort.forEach((function(t,e){h[t.id]=e})),d.sort((function(t,e){var o,n;return(null!==(o=h[t.id])&&void 0!==o?o:0)-(null!==(n=h[e.id])&&void 0!==n?n:0)}))}n.childrenAfterSort=d}else n.childrenAfterSort=!e||p?n.childrenAfterAggFilter.slice(0):o?s.doDeltaSort(n,u,i,t):s.rowNodeSorter.doFullSort(n.childrenAfterAggFilter,t);if(n.sibling&&(n.sibling.childrenAfterSort=n.childrenAfterSort),s.updateChildIndexes(n),s.postSortFunc){var f={nodes:n.childrenAfterSort};s.postSortFunc(f)}})),this.updateGroupDataForHideOpenParents(i)},e.prototype.calculateDirtyNodes=function(t){var e={},o=function(t){t&&t.forEach((function(t){return e[t.id]=!0}))};return t&&t.forEach((function(t){o(t.add),o(t.update),o(t.remove)})),e},e.prototype.doDeltaSort=function(t,e,o,n){var i=this,r=t.childrenAfterAggFilter,s=t.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(r,n);var a={},l=[];r.forEach((function(t){e[t.id]||!o.canSkip(t)?l.push(t):a[t.id]=!0}));var u=s.filter((function(t){return a[t.id]})),c=function(t,e){return{currentPos:e,rowNode:t}},p=l.map(c).sort((function(t,e){return i.rowNodeSorter.compareRowNodes(n,t,e)}));return this.mergeSortedArrays(n,p,u.map(c)).map((function(t){return t.rowNode}))},e.prototype.mergeSortedArrays=function(t,e,o){for(var n=[],i=0,r=0;i<e.length&&r<o.length;){this.rowNodeSorter.compareRowNodes(t,e[i],o[r])<0?n.push(e[i++]):n.push(o[r++])}for(;i<e.length;)n.push(e[i++]);for(;r<o.length;)n.push(o[r++]);return n},e.prototype.updateChildIndexes=function(t){if(!di.missing(t.childrenAfterSort))for(var e=t.childrenAfterSort,o=0;o<e.length;o++){var n=e[o],i=0===o,r=o===t.childrenAfterSort.length-1;n.setFirstChild(i),n.setLastChild(r),n.setChildIndex(o)}},e.prototype.updateGroupDataForHideOpenParents=function(t){var e=this;if(this.gridOptionsService.is("groupHideOpenParents")){if(this.gridOptionsService.is("treeData")){return di.doOnce((function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")}),"sortService.hideOpenParentsWithTreeData"),!1}var o=function(t){e.pullDownGroupDataForHideOpenParents(t.childrenAfterSort,!1),t.childrenAfterSort.forEach((function(t){t.hasChildren()&&o(t)}))};t&&t.executeFromRootNode((function(t){return o(t)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(t,e){var o=this;this.gridOptionsService.is("groupHideOpenParents")&&!di.missing(t)&&t.forEach((function(t){o.columnModel.getGroupDisplayColumns().forEach((function(n){var i=n.getColDef().showRowGroup;if("string"==typeof i){var r=i,s=o.columnModel.getPrimaryColumn(r);if(!(s===t.rowGroupColumn))if(e)t.setGroupValue(n.getId(),void 0);else{var a=t.getFirstChildOfFirstChild(s);a&&t.setGroupValue(n.getId(),a.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Ly([X("columnModel")],e.prototype,"columnModel",void 0),Ly([X("rowNodeSorter")],e.prototype,"rowNodeSorter",void 0),Ly([Y],e.prototype,"init",null),e=Ly([Q("sortService")],e)}(Bt),Ny=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),My=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ny(e,t),e.prototype.filter=function(t){var e=this.filterManager.isChildFilterPresent();this.filterNodes(e,t)},e.prototype.filterNodes=function(t,e){var o=this,n=function(e,n){e.hasChildren()?e.childrenAfterFilter=t&&!n?e.childrenAfterGroup.filter((function(t){var e=t.childrenAfterFilter&&t.childrenAfterFilter.length>0,n=t.data&&o.filterManager.doesRowPassFilter({rowNode:t});return e||n})):e.childrenAfterGroup:e.childrenAfterFilter=e.childrenAfterGroup,e.sibling&&(e.sibling.childrenAfterFilter=e.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var i=function(t,e){if(t.childrenAfterGroup)for(var r=0;r<t.childrenAfterGroup.length;r++){var s=t.childrenAfterGroup[r],a=e||o.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?i(t.childrenAfterGroup[r],a):n(s,a)}n(t,e)};e.executeFromRootNode((function(t){return i(t,!1)}))}else{e.forEachChangedNodeDepthFirst((function(t){return n(t,!1)}),!0)}},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.is("treeData")&&!this.gridOptionsService.is("excludeChildrenWhenTreeDataFiltering")},My([X("filterManager")],e.prototype,"filterManager",void 0),e=My([Q("filterService")],e)}(Bt),xy=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vy=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hy=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return s},ky=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xy(e,t),e.prototype.postConstruct=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},e.prototype.isActive=function(){var t=this.gridOptionsService.exists("getRowId");return!this.gridOptionsService.is("resetRowDataOnUpdate")&&t},e.prototype.setRowData=function(t){var e=this.createTransactionForRowData(t);if(e){var o=Hy(e,2),n=o[0],i=o[1];this.clientSideRowModel.updateRowData(n,i)}},e.prototype.createTransactionForRowData=function(t){if(di.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var e=this.gridOptionsService.getCallback("getRowId");if(null!=e){var o={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),i=this.gridOptionsService.is("suppressMaintainUnsortedOrder")?void 0:{};return di.exists(t)&&t.forEach((function(t,r){var s=e({data:t,level:0}),a=n[s];(i&&(i[s]=r),a)?(a.data!==t&&o.update.push(t),n[s]=void 0):o.add.push(t)})),di.iterateObject(n,(function(t,e){e&&o.remove.push(e.data)})),[o,i]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Vy([X("rowModel")],e.prototype,"rowModel",void 0),Vy([X("rowRenderer")],e.prototype,"rowRenderer",void 0),Vy([Y],e.prototype,"postConstruct",null),e=Vy([Q("immutableService")],e)}(Bt),By={version:"30.2.1",moduleName:V.ClientSideRowModelModule,rowModel:"clientSide",beans:[Sy,by,Dy,Ay,Iy,Gy,ky]},jy=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wy=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Uy=function(t){function e(e,o,n){var i=t.call(this,e)||this;return i.parentCache=o,i.params=n,i.startRow=e*n.blockSize,i.endRow=i.startRow+n.blockSize,i}return jy(e,t),e.prototype.postConstruct=function(){this.createRowNodes()},e.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},e.prototype.setDataAndId=function(t,e,o){di.exists(e)?t.setDataAndId(e,o.toString()):t.setDataAndId(void 0,void 0)},e.prototype.loadFromDatasource=function(){var t=this,e=this.createLoadParams();di.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){t.params.datasource.getRows(e)}),0)},e.prototype.processServerFail=function(){},e.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.context}},e.prototype.forEachNode=function(t,e,o){var n=this;this.rowNodes.forEach((function(i,r){n.startRow+r<o&&t(i,e.next())}))},e.prototype.getLastAccessed=function(){return this.lastAccessed},e.prototype.getRow=function(t,e){void 0===e&&(e=!1),e||(this.lastAccessed=this.params.lastAccessedSequence.next());var o=t-this.startRow;return this.rowNodes[o]},e.prototype.getStartRow=function(){return this.startRow},e.prototype.getEndRow=function(){return this.endRow},e.prototype.createRowNodes=function(){this.rowNodes=[];for(var t=0;t<this.params.blockSize;t++){var e=this.startRow+t,o=new Ms(this.beans);o.setRowHeight(this.params.rowHeight),o.uiLevel=0,o.setRowIndex(e),o.setRowTop(this.params.rowHeight*e),this.rowNodes.push(o)}},e.prototype.processServerResult=function(t){var e=this;this.rowNodes.forEach((function(o,n){var i=t.rowData?t.rowData[n]:void 0;!o.id&&o.alreadyRendered&&i&&(e.rowNodes[n]=new Ms(e.beans),e.rowNodes[n].setRowIndex(o.rowIndex),e.rowNodes[n].setRowTop(o.rowTop),e.rowNodes[n].setRowHeight(o.rowHeight),o.clearRowTopAndRowIndex()),e.setDataAndId(e.rowNodes[n],i,e.startRow+n)}));var o=null!=t.rowCount&&t.rowCount>=0?t.rowCount:void 0;this.parentCache.pageLoaded(this,o)},e.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(t){t.clearRowTopAndRowIndex()}))},Wy([X("beans")],e.prototype,"beans",void 0),Wy([Y],e.prototype,"postConstruct",null),Wy([q],e.prototype,"destroyRowNodes",null),e}(jd),zy=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ky=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Yy=function(t,e){return function(o,n){e(o,n,t)}},qy=function(t){function e(e){var o=t.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=e.initialRowCount,o.params=e,o}return zy(e,t),e.prototype.setBeans=function(t){this.logger=t.create("InfiniteCache")},e.prototype.getRow=function(t,e){void 0===e&&(e=!1);var o=Math.floor(t/this.params.blockSize),n=this.blocks[o];if(!n){if(e)return;n=this.createBlock(o)}return n.getRow(t)},e.prototype.createBlock=function(t){var e=this.createBean(new Uy(t,this,this.params));return this.blocks[e.getId()]=e,this.blockCount++,this.purgeBlocksIfNeeded(e),this.params.rowNodeBlockLoader.addBlock(e),e},e.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(t){return t.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},e.prototype.destroyAllBlocks=function(){var t=this;this.getBlocksInOrder().forEach((function(e){return t.destroyBlock(e)}))},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},e.prototype.pageLoaded=function(t,e){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+t.getId()+", lastRow = "+e),this.checkRowCount(t,e),this.onCacheUpdated())},e.prototype.purgeBlocksIfNeeded=function(t){var o=this,n=this.getBlocksInOrder().filter((function(e){return e!=t}));n.sort((function(t,e){return e.getLastAccessed()-t.getLastAccessed()}));var i=this.params.maxBlocksInCache>0,r=i?this.params.maxBlocksInCache-1:null,s=e.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach((function(t,e){if(t.getState()===Uy.STATE_WAITING_TO_LOAD&&e>=s||!!i&&e>=r){if(o.isBlockCurrentlyDisplayed(t))return;if(o.isBlockFocused(t))return;o.removeBlockFromCache(t)}}))},e.prototype.isBlockFocused=function(t){var e=this.focusService.getFocusCellToUseAfterRefresh();if(!e)return!1;if(null!=e.rowPinned)return!1;var o=t.getStartRow(),n=t.getEndRow();return e.rowIndex>=o&&e.rowIndex<n},e.prototype.isBlockCurrentlyDisplayed=function(t){var e=t.getStartRow(),o=t.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(e,o)},e.prototype.removeBlockFromCache=function(t){t&&this.destroyBlock(t)},e.prototype.checkRowCount=function(t,e){if("number"==typeof e&&e>=0)this.rowCount=e,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(t.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<o&&(this.rowCount=o)}},e.prototype.setRowCount=function(t,e){this.rowCount=t,di.exists(e)&&(this.lastRowIndexKnown=e),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()},e.prototype.forEachNodeDeep=function(t){var e=this,o=new hi;this.getBlocksInOrder().forEach((function(n){return n.forEachNode(t,o,e.rowCount)}))},e.prototype.getBlocksInOrder=function(){return di.getAllValuesInObject(this.blocks).sort((function(t,e){return t.getId()-e.getId()}))},e.prototype.destroyBlock=function(t){delete this.blocks[t.getId()],this.destroyBean(t),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(t)},e.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var t={type:qt.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(t)}},e.prototype.destroyAllBlocksPastVirtualRowCount=function(){var t=this,e=[];this.getBlocksInOrder().forEach((function(o){o.getId()*t.params.blockSize>=t.rowCount&&e.push(o)})),e.length>0&&e.forEach((function(e){return t.destroyBlock(e)}))},e.prototype.purgeCache=function(){var t=this;this.getBlocksInOrder().forEach((function(e){return t.removeBlockFromCache(e)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},e.prototype.getRowNodesInRange=function(t,e){var o=this,n=[],i=-1,r=!1,s=new hi;di.missing(t)&&(r=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(r&&i+1!==l.getId()?a=!0:(i=l.getId(),l.forEachNode((function(o){var i=o===t||o===e;(r||i)&&n.push(o),i&&(r=!r)}),s,o.rowCount)))})),a||r?[]:n},e.MAX_EMPTY_BLOCKS_TO_KEEP=2,Ky([X("rowRenderer")],e.prototype,"rowRenderer",void 0),Ky([X("focusService")],e.prototype,"focusService",void 0),Ky([Yy(0,$("loggerFactory"))],e.prototype,"setBeans",null),Ky([q],e.prototype,"destroyAllBlocks",null),e}(Bt),Qy=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Xy=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Jy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qy(e,t),e.prototype.getRowBounds=function(t){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*t}},e.prototype.ensureRowHeightsValid=function(t,e,o,n){return!1},e.prototype.init=function(){var t=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return t.destroyCache()})),this.verifyProps())},e.prototype.verifyProps=function(){if(this.gridOptionsService.exists("initialGroupOrderComparator")){di.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.InitialGroupOrderComparator")}},e.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},e.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,qt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,qt.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},e.prototype.onFilterChanged=function(){this.reset()},e.prototype.onSortChanged=function(){this.reset()},e.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},e.prototype.isSortModelDifferent=function(){return!di.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},e.prototype.getType=function(){return"infinite"},e.prototype.setDatasource=function(t){this.destroyDatasource(),this.datasource=t,t&&this.reset()},e.prototype.isEmpty=function(){return!this.infiniteCache},e.prototype.isRowsToRender=function(){return!!this.infiniteCache},e.prototype.getNodesInRangeForSelection=function(t,e){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(t,e):[]},e.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsService.getCallback("getRowId")||this.selectionService.reset(),this.resetCache();var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)}},e.prototype.createModelUpdatedEvent=function(){return{type:qt.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},e.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsService.getNum("infiniteInitialRowCount"),1),maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"),100),lastAccessedSequence:new hi},this.infiniteCache=this.createBean(new qy(this.cacheParams))},e.prototype.defaultIfInvalid=function(t,e){return t>0?t:e},e.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},e.prototype.onCacheUpdated=function(){var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)},e.prototype.getRow=function(t){if(this.infiniteCache&&!(t>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(t)},e.prototype.getRowNode=function(t){var e;return this.forEachNode((function(o){o.id===t&&(e=o)})),e},e.prototype.forEachNode=function(t){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(t)},e.prototype.getTopLevelRowCount=function(){return this.getRowCount()},e.prototype.getTopLevelRowDisplayedIndex=function(t){return t},e.prototype.getRowIndexAtPixel=function(t){if(0!==this.rowHeight){var e=Math.floor(t/this.rowHeight),o=this.getRowCount()-1;return e>o?o:e}return 0},e.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},e.prototype.isRowPresent=function(t){return!!this.getRowNode(t.id)},e.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},e.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},e.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},e.prototype.setRowCount=function(t,e){this.infiniteCache&&this.infiniteCache.setRowCount(t,e)},Xy([X("filterManager")],e.prototype,"filterManager",void 0),Xy([X("sortController")],e.prototype,"sortController",void 0),Xy([X("selectionService")],e.prototype,"selectionService",void 0),Xy([X("rowRenderer")],e.prototype,"rowRenderer",void 0),Xy([X("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Xy([Y],e.prototype,"init",null),Xy([q],e.prototype,"destroyDatasource",null),e=Xy([Q("rowModel")],e)}(Bt),Zy={version:"30.2.1",moduleName:V.InfiniteRowModelModule,rowModel:"infinite",beans:[Jy]},$y=function(){function t(){}return t.prototype.setBeans=function(t){this.beans=t},t.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return null!=t&&t.length||(t=this.getDefaultFileName()),-1===t.indexOf(".")?t+"."+e:t},t.prototype.getData=function(t){var e=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(e,t)},t}(),tm=function(){function t(t){this.groupColumns=[];var e=t.columnModel,o=t.valueService,n=t.gridOptionsService,i=t.valueFormatterService,r=t.valueParserService,s=t.processCellCallback,a=t.processHeaderCallback,l=t.processGroupHeaderCallback,u=t.processRowGroupCallback;this.columnModel=e,this.valueService=o,this.gridOptionsService=n,this.valueFormatterService=i,this.valueParserService=r,this.processCellCallback=s,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=u}return t.prototype.prepare=function(t){this.groupColumns=t.filter((function(t){return!!t.getColDef().showRowGroup}))},t.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return null!=e?e:""},t.prototype.extractRowCellValue=function(t,e,o,n,i){var r=this.gridOptionsService.is("groupHideOpenParents")&&!i.footer||!this.shouldRenderGroupSummaryCell(i,t,e)?this.valueService.getValue(t,i):this.createValueForGroupNode(i);return this.processCell({accumulatedRowIndex:o,rowNode:i,column:t,value:r,processCellCallback:this.processCellCallback,type:n})},t.prototype.shouldRenderGroupSummaryCell=function(t,e,o){var n;if(!(t&&t.group))return!1;if(-1!==this.groupColumns.indexOf(e)){if(null!=(null===(n=t.groupData)||void 0===n?void 0:n[e.getId()]))return!0;if(this.gridOptionsService.isRowModelType("serverSide")&&t.group)return!0;if(t.footer&&-1===t.level){var i=e.getColDef();return null==i||!0===i.showRowGroup||i.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var r=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&r},t.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},t.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var e=t.footer,o=[t.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,o.push(t.key);var n=o.reverse().join(" -> ");return e?"Total "+n:n},t.prototype.processCell=function(t){var e,o=this,n=t.accumulatedRowIndex,i=t.rowNode,r=t.column,s=t.value,a=t.processCellCallback,l=t.type;return a?{value:null!==(e=a({accumulatedRowIndex:n,column:r,node:i,value:s,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:l,parseValue:function(t){return o.valueParserService.parseValue(r,i,t,o.valueService.getValue(r,i))},formatValue:function(t){var e;return null!==(e=o.valueFormatterService.formatValue(r,i,t))&&void 0!==e?e:t}}))&&void 0!==e?e:""}:r.getColDef().useValueFormatterForExport?{value:null!=s?s:"",valueFormatted:this.valueFormatterService.formatValue(r,i,s)}:{value:null!=s?s:""}},t}(),em=function(){function t(){}return t.download=function(t,e){var o=document.defaultView||window;if(o){var n=document.createElement("a"),i=o.URL.createObjectURL(e);n.setAttribute("href",i),n.setAttribute("download",t),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(n),o.setTimeout((function(){o.URL.revokeObjectURL(i)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},t}(),om=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),nm=function(t){function e(e){var o=t.call(this,e)||this;o.isFirstLine=!0,o.result="";var n=e.suppressQuotes,i=e.columnSeparator;return o.suppressQuotes=n,o.columnSeparator=i,o}return om(e,t),e.prototype.addCustomContent=function(t){var e=this;t&&("string"==typeof t?(/^\s*\n/.test(t)||this.beginNewLine(),t=t.replace(/\r?\n/g,"\r\n"),this.result+=t):t.forEach((function(t){e.beginNewLine(),t.forEach((function(t,o){0!==o&&(e.result+=e.columnSeparator),e.result+=e.putInQuotes(t.data.value||""),t.mergeAcross&&e.appendEmptyCells(t.mergeAcross)}))})))},e.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},e.prototype.onNewHeaderGroupingRowColumn=function(t,e,o,n){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},e.prototype.appendEmptyCells=function(t){for(var e=1;e<=t;e++)this.result+=this.columnSeparator+this.putInQuotes("")},e.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},e.prototype.onNewHeaderRowColumn=function(t,e){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(t))},e.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},e.prototype.onNewBodyRowColumn=function(t,e,o){var n;0!=e&&(this.result+=this.columnSeparator);var i=this.extractRowCellValue(t,e,e,"csv",o);this.result+=this.putInQuotes(null!==(n=i.valueFormatted)&&void 0!==n?n:i.value)},e.prototype.putInQuotes=function(t){return this.suppressQuotes?t:null==t?'""':("string"==typeof t?e=t:"function"==typeof t.toString?e=t.toString():(console.warn("AG Grid: unknown value type during csv conversion"),e=""),'"'+e.replace(/"/g,'""')+'"');var e},e.prototype.parse=function(){return this.result},e.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},e}(tm),im=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),rm=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return im(e,t),e.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},e.prototype.getMergedParams=function(t){var e=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},e,t)},e.prototype.export=function(t){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var e=this.getMergedParams(t),o=this.getData(e),n=new Blob(["\ufeff",o],{type:"text/plain"});return em.download(this.getFileName(e.fileName),n),o},e.prototype.exportDataAsCsv=function(t){return this.export(t)},e.prototype.getDataAsCsv=function(t,e){void 0===e&&(e=!1);var o=e?Object.assign({},t):this.getMergedParams(t);return this.getData(o)},e.prototype.getDefaultFileName=function(){return"export.csv"},e.prototype.getDefaultFileExtension=function(){return"csv"},e.prototype.createSerializingSession=function(t){var e=this,o=e.columnModel,n=e.valueService,i=e.gridOptionsService,r=e.valueFormatterService,s=e.valueParserService,a=t,l=a.processCellCallback,u=a.processHeaderCallback,c=a.processGroupHeaderCallback,p=a.processRowGroupCallback,d=a.suppressQuotes,h=a.columnSeparator;return new nm({columnModel:o,valueService:n,gridOptionsService:i,valueFormatterService:r,valueParserService:s,processCellCallback:l||void 0,processHeaderCallback:u||void 0,processGroupHeaderCallback:c||void 0,processRowGroupCallback:p||void 0,suppressQuotes:d||!1,columnSeparator:h||","})},e.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressCsvExport")},rm([X("columnModel")],e.prototype,"columnModel",void 0),rm([X("valueService")],e.prototype,"valueService",void 0),rm([X("gridSerializer")],e.prototype,"gridSerializer",void 0),rm([X("gridOptionsService")],e.prototype,"gridOptionsService",void 0),rm([X("valueFormatterService")],e.prototype,"valueFormatterService",void 0),rm([X("valueParserService")],e.prototype,"valueParserService",void 0),rm([Y],e.prototype,"postConstruct",null),e=rm([Q("csvCreator")],e)}($y),am=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),lm=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY"}(wy||(wy={}));var um=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return am(e,t),e.prototype.serialize=function(t,e){void 0===e&&(e={});var o=this.getColumnsToExport(e.allColumns,e.columnKeys);return di.compose(this.prepareSession(o),this.prependContent(e),this.exportColumnGroups(e,o),this.exportHeaders(e,o),this.processPinnedTopRows(e,o),this.processRows(e,o),this.processPinnedBottomRows(e,o),this.appendContent(e))(t).parse()},e.prototype.processRow=function(t,e,o,n){var i=e.shouldRowBeSkipped||function(){return!1},r=this.gridOptionsService.context,s=this.gridOptionsService.api,a=this.gridOptionsService.columnApi,l=this.gridOptionsService.is("groupRemoveSingleChildren"),u=this.gridOptionsService.is("groupRemoveLowestSingleChildren"),c=null!=e.rowPositions||!!e.onlySelected,p=this.gridOptionsService.is("groupHideOpenParents")&&!c,d=this.columnModel.isPivotMode()?n.leafGroup:!n.group,h=!!n.footer,f=e.skipGroups||e.skipRowGroups,g=u&&n.leafGroup,v=1===n.allChildrenCount&&(l||g);if((f&&e.skipGroups&&di.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!d&&!h&&(e.skipRowGroups||v||p)||e.onlySelected&&!n.isSelected()||e.skipPinnedTop&&"top"===n.rowPinned||e.skipPinnedBottom&&"bottom"===n.rowPinned))&&((!(-1===n.level)||d||h)&&!i({node:n,api:s,columnApi:a,context:r}))){var y=t.onNewBodyRow(n);if(o.forEach((function(t,e){y.onColumn(t,e,n)})),e.getCustomContentBelowRow){var m=e.getCustomContentBelowRow({node:n,api:s,columnApi:a,context:r});m&&t.addCustomContent(m)}}},e.prototype.appendContent=function(t){return function(e){var o=t.customFooter||t.appendContent;return o&&(t.customFooter&&di.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),e.addCustomContent(o)),e}},e.prototype.prependContent=function(t){return function(e){var o=t.customHeader||t.prependContent;return o&&(t.customHeader&&di.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),e.addCustomContent(o)),e}},e.prototype.prepareSession=function(t){return function(e){return e.prepare(t),e}},e.prototype.exportColumnGroups=function(t,e){var o=this;return function(n){if(t.skipColumnGroupHeaders)t.columnGroups&&di.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var i=new Qt,r=o.displayedGroupCreator.createDisplayedGroups(e,i,null);o.recursivelyAddHeaderGroups(r,n,t.processGroupHeaderCallback)}return n}},e.prototype.exportHeaders=function(t,e){return function(o){if(t.skipHeader||t.skipColumnHeaders)t.skipHeader&&di.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var n=o.onNewHeaderRow();e.forEach((function(t,e){n.onColumn(t,e,void 0)}))}return o}},e.prototype.processPinnedTopRows=function(t,e){var o=this;return function(n){var i=o.processRow.bind(o,n,t,e);return t.rowPositions?t.rowPositions.filter((function(t){return"top"===t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return o.pinnedRowModel.getPinnedTopRow(t.rowIndex)})).forEach(i):o.pinnedRowModel.forEachPinnedTopRow(i),n}},e.prototype.processRows=function(t,e){var o=this;return function(n){var i=o.rowModel,r=i.getType(),s="clientSide"===r,a="serverSide"===r,l=!s&&t.onlySelected,u=o.processRow.bind(o,n,t,e),c=t.exportedRows,p=void 0===c?"filteredAndSorted":c;if(t.rowPositions)t.rowPositions.filter((function(t){return null==t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return i.getRow(t.rowIndex)})).forEach(u);else if(o.columnModel.isPivotMode())s?i.forEachPivotNode(u,!0):a?i.forEachNodeAfterFilterAndSort(u,!0):i.forEachNode(u);else if(t.onlySelectedAllPages||l){var d=o.selectionService.getSelectedNodes();o.replicateSortedOrder(d),d.forEach(u)}else"all"===p?i.forEachNode(u):s||a?i.forEachNodeAfterFilterAndSort(u,!0):i.forEachNode(u);return n}},e.prototype.replicateSortedOrder=function(t){var e=this,o=this.sortController.getSortOptions(),n=function(t,i){var r,s,a,l;return null!=t.rowIndex&&null!=i.rowIndex?t.rowIndex-i.rowIndex:t.level===i.level?(null===(r=t.parent)||void 0===r?void 0:r.id)===(null===(s=i.parent)||void 0===s?void 0:s.id)?e.rowNodeSorter.compareRowNodes(o,{rowNode:t,currentPos:null!==(a=t.rowIndex)&&void 0!==a?a:-1},{rowNode:i,currentPos:null!==(l=i.rowIndex)&&void 0!==l?l:-1}):n(t.parent,i.parent):t.level>i.level?n(t.parent,i):n(t,i.parent)};t.sort(n)},e.prototype.processPinnedBottomRows=function(t,e){var o=this;return function(n){var i=o.processRow.bind(o,n,t,e);return t.rowPositions?t.rowPositions.filter((function(t){return"bottom"===t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return o.pinnedRowModel.getPinnedBottomRow(t.rowIndex)})).forEach(i):o.pinnedRowModel.forEachPinnedBottomRow(i),n}},e.prototype.getColumnsToExport=function(t,e){void 0===t&&(t=!1);var o=this.columnModel.isPivotMode();return e&&e.length?this.columnModel.getGridColumns(e):t&&!o?(this.gridOptionsService.is("treeData")?this.columnModel.getGridColumns(["ag-Grid-AutoColumn"]):[]).concat(this.columnModel.getAllGridColumns()||[]):this.columnModel.getAllDisplayedColumns()},e.prototype.recursivelyAddHeaderGroups=function(t,e,o){var n=[];t.forEach((function(t){var e=t;e.getChildren&&e.getChildren().forEach((function(t){return n.push(t)}))})),t.length>0&&t[0]instanceof Yt&&this.doAddHeaderHeader(e,t,o),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,e,o)},e.prototype.doAddHeaderHeader=function(t,e,o){var n=this,i=t.onNewHeaderGroupingRow(),r=0;e.forEach((function(t){var e,s=t;e=o?o({columnGroup:s,api:n.gridOptionsService.api,columnApi:n.gridOptionsService.columnApi,context:n.gridOptionsService.context}):n.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(t,e,o,n){var i=di.last(t);return"open"===e.getColumnGroupShow()?i&&null==i[1]||(i=[o],t.push(i)):i&&null==i[1]&&(i[1]=o-1),o===n.length-1&&i&&null==i[1]&&(i[1]=o),t}),[]);i.onColumn(s,e||"",r++,s.getLeafColumns().length-1,a)}))},lm([X("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),lm([X("columnModel")],e.prototype,"columnModel",void 0),lm([X("rowModel")],e.prototype,"rowModel",void 0),lm([X("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),lm([X("selectionService")],e.prototype,"selectionService",void 0),lm([X("rowNodeSorter")],e.prototype,"rowNodeSorter",void 0),lm([X("sortController")],e.prototype,"sortController",void 0),e=lm([Q("gridSerializer")],e)}(Bt),cm={version:"30.2.1",moduleName:V.CsvExportModule,beans:[sm,um]},pm=function(){function t(){}return t.createHeader=function(t){void 0===t&&(t={});var e=["version"];return t.version||(t.version="1.0"),t.encoding&&e.push("encoding"),t.standalone&&e.push("standalone"),"<?xml "+e.map((function(e){return e+'="'+t[e]+'"'})).join(" ")+" ?>"},t.createXml=function(t,e){var o=this,n="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach((function(t){Object.keys(t.map).forEach((function(i){n+=o.returnAttributeIfPopulated(t.prefix+i,t.map[i],e)}))})),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach((function(i){n+=o.returnAttributeIfPopulated(i,t.properties.rawMap[i],e)})));var i="<"+t.name+n;return t.children||null!=t.textNode?null!=t.textNode?i+">"+t.textNode+"</"+t.name+">\r\n":(i+=">\r\n",t.children&&t.children.forEach((function(t){i+=o.createXml(t,e)})),i+"</"+t.name+">\r\n"):i+"/>\r\n"},t.returnAttributeIfPopulated=function(t,e,o){if(!e&&""!==e&&0!==e)return"";var n=e;return"boolean"==typeof e&&o&&(n=o(e))," "+t+'="'+n+'"'},t}(),dm=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},hm=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),fm=function(){function t(){}return t.addFolders=function(t){t.forEach(this.addFolder.bind(this))},t.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},t.addFile=function(t,e,o){void 0===o&&(o=!1),this.files.push({path:t,created:new Date,content:e,isBase64:o})},t.getContent=function(t){void 0===t&&(t="application/zip");var e=this.buildFileStream(),o=this.buildUint8Array(e);return this.clearStream(),new Blob([o],{type:t})},t.clearStream=function(){this.folders=[],this.files=[]},t.buildFileStream=function(t){var e,o;void 0===t&&(t="");var n=this.folders.concat(this.files),i=n.length,r="",s=0,a=0;try{for(var l=dm(n),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,t+=d+f,r+=h}}catch(t){e={error:t}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(e)throw e.error}}return t+r+this.buildFolderEnd(i,a,s)},t.getHeader=function(t,e){var o=t.content,n=t.path,i=t.created,r=t.isBase64,s=di.utf8_encode,a=di.decToHex,l=s(n),u=l!==n,c=this.convertTime(i),p=this.convertDate(i),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=o?this.getConvertedContent(o,r):{size:0,content:""},g=f.size,v=f.content,y="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(v):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK\x03\x04"+y+l+d,folderHeader:"PK\x01\x02\x14\0"+y+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\x10\0\0\0")+a(e,4)+l+d,content:v||""}},t.getConvertedContent=function(t,e){return void 0===e&&(e=!1),e&&(t=t.split(";base64,")[1]),{size:(t=e?atob(t):t).length,content:t}},t.buildFolderEnd=function(t,e,o){var n=di.decToHex;return"PK\x05\x06\0\0\0\0"+n(t,2)+n(t,2)+n(e,4)+n(o,4)+"\0\0"},t.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o<e.length;o++)e[o]=t.charCodeAt(o);return e},t.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,o=new Uint8Array(e),n=0;n<e;n++)o[n]=t.charCodeAt(n);var i=-1,r=0;for(n=0;n<e;n++)r=o[n],i=i>>>8^hm[255&(i^r)];return-1^i},t.convertTime=function(t){var e=t.getHours();return e<<=6,e|=t.getMinutes(),e<<=5,e|=t.getSeconds()/2},t.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e|=t.getMonth()+1,e<<=5,e|=t.getDate()},t.folders=[],t.files=[],t}(),gm=[By,Zy,cm];j.registerModules(gm);export{Qc as AbstractHeaderCellCtrl,Xi as AgAbstractField,qi as AgAbstractLabel,sf as AgAutocomplete,cr as AgCheckbox,Wh as AgDialog,Th as AgGroupComponent,ih as AgInputDateField,xr as AgInputNumberField,sh as AgInputRange,oh as AgInputTextArea,Mr as AgInputTextField,Gh as AgMenuItemComponent,Ah as AgMenuList,Ih as AgMenuPanel,Hh as AgPanel,$i as AgPickerField,vi as AgPromise,ui as AgPromiseStatus,dr as AgRadioButton,wh as AgRichSelect,rr as AgSelect,Rh as AgSlider,Ue as AgStackComponentsRegistry,th as AgToggleButton,mf as AlignedGridsService,gm as AllCommunityModules,As as AnimateShowChangeCellRenderer,Is as AnimateSlideCellRenderer,vd as AnimationFrameService,sl as AutoScrollService,Cd as AutoWidthCalculator,X as Autowired,Mv as BarColumnLabelPlacement,ry as BaseComponentWrapper,$y as BaseCreator,tm as BaseGridSerializingSession,Q as Bean,Bt as BeanStub,nu as Beans,Tc as BodyDropPivotTarget,Lc as BodyDropTarget,ly as CHART_TOOLBAR_ALLOW_LIST,ay as CHART_TOOL_PANEL_ALLOW_LIST,uy as CHART_TOOL_PANEL_MENU_OPTIONS,yc as CellComp,fu as CellCtrl,ff as CellNavigationService,Ug as CellPositionUtils,Kl as CellRangeType,kd as ChangedPath,Pa as CheckboxCellEditor,Oa as CheckboxCellRenderer,Hs as CheckboxSelectionComponent,By as ClientSideRowModelModule,ol as ClientSideRowModelSteps,le as ColDefUtil,ut as Column,Of as ColumnApi,zt as ColumnFactory,Yt as ColumnGroup,u as ColumnKeyCreator,Me as ColumnModel,Ve as ColumnUtils,Ti as Component,ge as ComponentUtil,z as Context,Mc as CssClassApplier,Ei as CssClassManager,sm as CsvCreator,cm as CsvExportModule,hv as CtrlsService,Si as CustomTooltipFeature,sy as DEFAULT_CHART_GROUPS,Xv as DataTypeService,ma as DateCellEditor,br as DateFilter,Ea as DateStringCellEditor,Be as DisplayedGroupCreator,em as Downloader,Us as DragAndDropService,rl as DragService,Br as DragSourceType,Og as Environment,nt as EventService,qt as Events,Ws as ExcelFactoryMode,Lf as ExpressionService,Sl as FilterManager,Ja as FloatingFilterMapper,wp as FocusService,Zt as GROUP_AUTO_COLUMN_ID,oy as Grid,fl as GridApi,oc as GridBodyComp,Yl as GridBodyCtrl,Kf as GridComp,iy as GridCoreCreator,Wf as GridCtrl,$p as GridHeaderComp,Xp as GridHeaderCtrl,Gv as GridOptionsService,um as GridSerializer,na as GroupCellRenderer,ta as GroupCellRendererCtrl,Qt as GroupInstanceIdCreator,Rp as HeaderCellCtrl,Tl as HeaderFilterCellComp,ip as HeaderFilterCellCtrl,Lp as HeaderGroupCellCtrl,hp as HeaderNavigationDirection,Yp as HeaderNavigationService,nv as HeaderPositionUtils,zc as HeaderRowComp,Up as HeaderRowContainerComp,Bp as HeaderRowContainerCtrl,Gp as HeaderRowCtrl,Rc as HeaderRowType,Wr as HorizontalDirection,od as HorizontalResizeService,Zy as InfiniteRowModelModule,Zn as KeyCode,ms as LargeTextCellEditor,hl as LayoutCssClasses,Hv as LocaleService,kf as Logger,Hf as LoggerFactory,Hi as ManagedFocusFeature,V as ModuleNames,j as ModuleRegistry,lc as MouseEventService,_c as MoveColumnFeature,dc as NavigationService,ga as NumberCellEditor,Ur as NumberFilter,hi as NumberSequence,J as Optional,Qd as PaginationProxy,Vd as PinnedRowModel,gs as PopupComponent,gc as PopupEditorWrapper,Jh as PopupService,ji as PositionableFeature,Y as PostConstruct,K as PreConstruct,q as PreDestroy,pe as PropertyKeys,pt as ProvidedColumnGroup,zi as ProvidedFilter,$ as Qualifier,Di as QuerySelector,Pi as RefSelector,hd as ResizeObserverService,Ml as RowAnimationCssClasses,bc as RowContainerComp,Zu as RowContainerCtrl,Cu as RowContainerName,wu as RowContainerType,Eu as RowCtrl,el as RowHighlightPosition,Ms as RowNode,jd as RowNodeBlock,Kd as RowNodeBlockLoader,cv as RowNodeSorter,Bg as RowPositionUtils,Fd as RowRenderer,wy as RowType,Cr as ScalarFilter,rc as ScrollVisibleService,Ss as SelectCellEditor,Lg as SelectableService,zl as SelectionHandleType,cd as ServerSideTransactionResultStatus,Zc as SetLeftFeature,yr as SimpleFilter,Jf as SortController,as as SortIndicatorComp,rd as StandardMenuFactory,Zd as StylingService,Uc as TabGuardClassNames,hh as TabGuardComp,fp as TabGuardCtrl,ld as TabbedLayout,Mf as TemplateService,Ds as TextCellEditor,qr as TextFilter,ns as TextFloatingFilter,yi as Timer,eu as TooltipFeature,is as TouchListener,tl as UserComponentFactory,Ia as UserComponentRegistry,ug as ValueCache,Md as ValueFormatterService,$v as ValueParserService,Pf as ValueService,uf as VanillaFrameworkOverrides,jr as VerticalDirection,vh as VirtualList,cl as VirtualListDragFeature,pm as XmlFactory,fm as ZipContainer,di as _,cy as __FORCE_MODULE_DETECTION,Qu as getRowContainerTypeForName,ud as simpleHttpRequest};