@siemens/ix-aggrid 1.4.0-beta.0 → 1.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,304 +0,0 @@
1
- /**
2
- * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.0
3
- * @link https://www.ag-grid.com/
4
- * @license MIT
5
- */
6
- /**
7
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
8
- * @version v28.2.0
9
- * @link https://www.ag-grid.com/
10
- * @license MIT
11
- */
12
- function t(t){return null==t||""===t?null:t}function i(t,i){return void 0===i&&(i=!1),null!=t&&(""!==t||i)}function n(t){return!i(t)}function e(t){return null==t||0===t.length}function r(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function o(t){if(void 0!==t){if(null===t||""===t)return null;if("number"==typeof t)return isNaN(t)?void 0:t;var i=parseInt(t,10);return isNaN(i)?void 0:i}}function s(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function u(t){if(t instanceof Set||t instanceof Map){var i=[];return t.forEach((function(t){return i.push(t)})),i}return Object.values(t)}var h=Object.freeze({__proto__:null,makeNull:t,exists:i,missing:n,missingOrEmpty:e,toStringOrNull:r,attrToNumber:o,attrToBoolean:s,attrToString:function(t){if(null!=t&&""!==t)return t},referenceCompare:function(t,i){return null==t&&null==i||(null!=t||null==i)&&(null==t||null!=i)&&t===i},jsonEquals:function(t,i){return(t?JSON.stringify(t):null)===(i?JSON.stringify(i):null)},defaultComparator:function(t,i,n){void 0===n&&(n=!1);var e=null==t,r=null==i;if(t&&t.toNumber&&(t=t.toNumber()),i&&i.toNumber&&(i=i.toNumber()),e&&r)return 0;if(e)return-1;if(r)return 1;function o(t,i){return t>i?1:t<i?-1:0}if("string"!=typeof t)return o(t,i);if(!n)return o(t,i);try{return t.localeCompare(i)}catch(n){return o(t,i)}},values:u}),c=function(){function t(){this.existingKeys={}}return t.prototype.addExistingKeys=function(t){for(var i=0;i<t.length;i++)this.existingKeys[t[i]]=!0},t.prototype.getUniqueKey=function(t,i){t=r(t);for(var n=0;;){var e=void 0;if(t?(e=t,0!==n&&(e+="_"+n)):i?(e=i,0!==n&&(e+="_"+n)):e=""+n,!this.existingKeys[e])return this.existingKeys[e]=!0,e;n++}},t}();
13
- /**
14
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
15
- * @version v28.2.0
16
- * @link https://www.ag-grid.com/
17
- * @license MIT
18
- */
19
- /**
20
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
21
- * @version v28.2.0
22
- * @link https://www.ag-grid.com/
23
- * @license MIT
24
- */
25
- function a(t,i){null!=t&&(Array.isArray(t)?t.forEach((function(t,n){return i(""+n,t)})):Object.keys(t).forEach((function(n){return i(n,t[n])})))}function f(t){for(var i={},n=Object.keys(t),e=0;e<n.length;e++){var r=n[e];i[r]=t[r]}return i}function l(t,i){if(t){var n=t,e={};return Object.keys(n).forEach((function(t){if(!(i&&i.indexOf(t)>=0)){var r=n[t],o=C(r)&&r.constructor===Object;e[t]=o?l(r):r}})),e}}function d(t,i){return t[i]}function v(t,i,n){t[i]=n}function p(t,i,n,e){var r=d(t,n);void 0!==r&&v(i,n,e?e(r):r)}function g(t){var i={};return t.filter((function(t){return null!=t})).forEach((function(t){Object.keys(t).forEach((function(t){return i[t]=null}))})),Object.keys(i)}function m(t){if(!t)return[];var i=Object;if("function"==typeof i.values)return i.values(t);var n=[];for(var e in t)t.hasOwnProperty(e)&&t.propertyIsEnumerable(e)&&n.push(t[e]);return n}function w(t,n,e,r){void 0===e&&(e=!0),void 0===r&&(r=!1),i(n)&&a(n,(function(i,n){var o=t[i];o!==n&&(r&&null==o&&null!=n&&"object"==typeof n&&n.constructor===Object&&(t[i]=o={}),C(n)&&C(o)&&!Array.isArray(o)?w(o,n,e,r):(e||void 0!==n)&&(t[i]=n))}))}function b(t,i,n){if(i&&t){if(!n)return t[i];for(var e=i.split("."),r=t,o=0;o<e.length;o++){if(null==r)return;r=r[e[o]]}return r}}function y(t,i){Object.keys(t).forEach((function(i){"object"==typeof t[i]&&(t[i]=void 0)}));var n=Object.getPrototypeOf(t),e={};Object.keys(n).forEach((function(t){"function"==typeof n[t]&&(e[t]={value:function(){console.warn("AG Grid: "+i+" 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,e)}function C(t){return"object"==typeof t&&null!==t}var R=Object.freeze({__proto__:null,iterateObject:a,cloneObject:f,deepCloneObject:function(t){return JSON.parse(JSON.stringify(t))},deepCloneDefinition:l,getProperty:d,setProperty:v,copyPropertiesIfPresent:function(t,i){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];n.forEach((function(n){return p(t,i,n)}))},copyPropertyIfPresent:p,getAllKeysInObjects:g,getAllValuesInObject:m,mergeDeep:w,missingOrEmptyObject:function(t){return n(t)||0===Object.keys(t).length},get:function(t,i,n){if(null==t)return n;for(var e=i.split("."),r=t;e.length>1;)if(null==(r=r[e.shift()]))return n;var o=r[e[0]];return null!=o?o:n},set:function(t,i,n){if(null!=t){for(var e=i.split("."),r=t;e.length>1;)if(null==(r=r[e.shift()]))return;r[e[0]]=n}},deepFreeze:function t(i){return Object.freeze(i),u(i).forEach((function(i){(C(i)||"function"==typeof i)&&t(i)})),i},getValueUsingField:b,removeAllReferences:y,isNonNullObject:C}),S={};
26
- /**
27
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
28
- * @version v28.2.0
29
- * @link https://www.ag-grid.com/
30
- * @license MIT
31
- */function O(t,i){S[i]||(t(),S[i]=!0)}function A(t){if(t.name)return t.name;var i=/function\s+([^\(]+)/.exec(t.toString());return i&&2===i.length?i[1].trim():null}function j(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){M(t,400)}var _=[],x=!1;function F(t){_.push(t),x||(x=!0,window.setTimeout((function(){var t=_.slice();_.length=0,x=!1,t.forEach((function(t){return t()}))}),0))}function M(t,i){void 0===i&&(i=0),t.length>0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),i)}function k(t,i,n){var e;return void 0===n&&(n=!1),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var s=this,u=n&&!e;window.clearTimeout(e),e=window.setTimeout((function(){e=null,n||t.apply(s,r)}),i),u&&t.apply(s,r)}}function D(t,i){var n=0;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this,s=(new Date).getTime();s-n<i||(n=s,t.apply(o,e))}}function P(t,i,n,e){void 0===n&&(n=100);var r=(new Date).getTime(),o=null,s=!1,u=function(){var u=(new Date).getTime()-r>n;(t()||u)&&(i(),s=!0,null!=o&&(window.clearInterval(o),o=null),u&&e&&console.warn(e))};u(),s||(o=window.setInterval(u,10))}function I(t){t&&t()}var T=Object.freeze({__proto__:null,doOnce:O,getFunctionName:A,isFunction:j,executeInAWhile:G,executeNextVMTurn:F,executeAfter:M,debounce:k,throttle:D,waitUntil:P,compose:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return function(i){return t.reduce((function(t,i){return i(t)}),i)}},callIfPresent:I,noop:function(){}}),E=function(){function t(t,i){if(this.beanWrappers={},this.destroyed=!1,t&&t.beanClasses){this.contextParams=t,this.logger=i,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return t.prototype.getBeanInstances=function(){return u(this.beanWrappers).map((function(t){return t.beanInstance}))},t.prototype.createBean=function(t,i){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],i),t},t.prototype.wireBeans=function(t,n){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),i(n)&&t.forEach(n),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),a(this.beanWrappers,(function(i,n){var e;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(e=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,o,s=t.getBeansForParameters(e,n.bean.name),u=(r=n.bean,o=[null].concat(s),new(r.bind.apply(r,o)));n.beanInstance=u}));var i=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+i)},t.prototype.createBeanWrapper=function(t){var i=t.__agBeanMetaData;if(!i){var n;return n=t.prototype.constructor?A(t.prototype.constructor):""+t,void console.error("Context item "+n+" is not a bean")}this.beanWrappers[i.beanName]={bean:t,beanInstance:null,beanName:i.beanName}},t.prototype.autoWireBeans=function(t){var i=this;t.forEach((function(t){i.forEachMetaDataInHierarchy(t,(function(n,e){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=i.lookupBeanInstance(e,n.beanName,n.optional);t[n.attributeName]=r}))}))}))},t.prototype.methodWireBeans=function(t){var i=this;t.forEach((function(t){i.forEachMetaDataInHierarchy(t,(function(n,e){a(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var o=i.getBeansForParameters(r,e);t[n].apply(t,o)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,i){for(var n=Object.getPrototypeOf(t);null!=n;){var e=n.constructor;e.hasOwnProperty("__agBeanMetaData")&&i(e.__agBeanMetaData,this.getBeanName(e)),n=Object.getPrototypeOf(n)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var i=t.toString();return i.substring(9,i.indexOf("("))},t.prototype.getBeansForParameters=function(t,i){var n=this,e=[];return t&&a(t,(function(t,r){var o=n.lookupBeanInstance(i,r);e[Number(t)]=o})),e},t.prototype.lookupBeanInstance=function(t,i,n){if(void 0===n&&(n=!1),"context"===i)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(i))return this.contextParams.providedBeanInstances[i];var e=this.beanWrappers[i];return e?e.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+i+" while initialising "+t),null)},t.prototype.callLifeCycleMethods=function(t,i){var n=this;t.forEach((function(t){return n.callLifeCycleMethodsOnBean(t,i)}))},t.prototype.callLifeCycleMethodsOnBean=function(t,i,n){var e={};this.forEachMetaDataInHierarchy(t,(function(t){var r=t[i];r&&r.forEach((function(t){t!=n&&(e[t]=!0)}))})),Object.keys(e).forEach((function(i){return t[i]()}))},t.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,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 i=this;return t?(t.forEach((function(t){i.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy"),"function"==typeof t.destroy&&t.destroy()})),[]):[]},t}();function N(t,i){var n=K(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(i)}function L(t,i){var n=K(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(i)}function H(t,i){var n=K(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(i)}function B(t){return function(i){K(i).beanName=t}}function W(t){return function(i,n){z(i,t,!1,0,n,null)}}function V(t){return function(i,n){z(i,t,!0,0,n,null)}}function z(t,i,n,e,r,o){if(null!==i)if("number"!=typeof o){var s=K(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:i,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function U(t){return function(i,n,e){var r,o="function"==typeof i?i:i.constructor;if("number"==typeof e){var s=void 0;n?(r=K(o),s=n):(r=K(o),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][e]=t}}}function K(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}
32
- /**
33
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
34
- * @version v28.2.0
35
- * @link https://www.ag-grid.com/
36
- * @license MIT
37
- */var q,Y=function(){return(Y=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},J=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Z=function(t,i){return function(n,e){i(n,e,t)}},$=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,i,n,e){if(void 0===e&&(e=null),this.frameworkOverrides=n,this.gridOptionsWrapper=i,e){var r=i.useAsyncEvents();this.addGlobalListener(e,r)}},t.prototype.getListeners=function(t,i,n){var e=i?this.allAsyncListeners:this.allSyncListeners,r=e.get(t);return!r&&n&&(r=new Set,e.set(t,r)),r},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,i,n){void 0===n&&(n=!1),this.getListeners(t,n,!0).add(i)},t.prototype.removeEventListener=function(t,i,n){void 0===n&&(n=!1);var e=this.getListeners(t,n,!1);e&&(e.delete(i),0===e.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(t))},t.prototype.addGlobalListener=function(t,i){void 0===i&&(i=!1),(i?this.globalAsyncListeners:this.globalSyncListeners).add(t)},t.prototype.removeGlobalListener=function(t,i){void 0===i&&(i=!1),(i?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},t.prototype.dispatchEvent=function(t){var i=t;this.gridOptionsWrapper&&(i=Y(Y({},t),{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),this.dispatchToListeners(i,!0),this.dispatchToListeners(i,!1),this.firedEvents[i.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,i){var n=this,e=t.type,r=this.getListeners(e,i,!1);r&&function(e){e.forEach((function(e){i?n.dispatchAsync((function(){return e(t)})):e(t)}))}(r),(i?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){i?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(e,(function(){return r(e,t)}),!0)})):n.frameworkOverrides.dispatchEvent(e,(function(){return r(e,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()}))},J([Z(0,U("loggerFactory")),Z(1,U("gridOptionsWrapper")),Z(2,U("frameworkOverrides")),Z(3,U("globalEventListener"))],t.prototype,"setBeans",null),J([B("eventService")],t)}(),Q=function(){function t(){}return t.ROW_BUFFER_SIZE=10,t.LAYOUT_INTERVAL=500,t.BATCH_WAIT_MILLIS=50,t.EXPORT_TYPE_DRAG_COPY="dragCopy",t.EXPORT_TYPE_CLIPBOARD="clipboard",t.EXPORT_TYPE_EXCEL="excel",t.EXPORT_TYPE_CSV="csv",t.ROW_MODEL_TYPE_INFINITE="infinite",t.ROW_MODEL_TYPE_VIEWPORT="viewport",t.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",t.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",t.ALWAYS="always",t.ONLY_WHEN_GROUPING="onlyWhenGrouping",t.PINNED_TOP="top",t.PINNED_BOTTOM="bottom",t.DOM_LAYOUT_NORMAL="normal",t.DOM_LAYOUT_PRINT="print",t.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",t.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",t.SOURCE_PASTE="paste",t.PINNED_RIGHT="right",t.PINNED_LEFT="left",t.SORT_ASC="asc",t.SORT_DESC="desc",t.INPUT_SELECTOR="input, select, button, textarea",t.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",t.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",t}();!function(t){t.CommunityCoreModule="@ag-grid-community/core",t.CommunityAllModules="@ag-grid-community/all",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.EnterpriseAllModules="@ag-grid-enterprise/all",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnToolPanelModule="@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.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue",t.PolymerModule="@ag-grid-community/polymer"}(q||(q={}));
38
- /**
39
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
40
- * @version v28.2.0
41
- * @link https://www.ag-grid.com/
42
- * @license MIT
43
- */
44
- var X=function(){function t(){}return t.register=function(i,n){void 0===n&&(n=!0),t.modulesMap[i.moduleName]=i,void 0===t.moduleBased?t.moduleBased=n:t.moduleBased!==n&&O((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.registerModules=function(i,n){void 0===n&&(n=!0),i&&i.forEach((function(i){return t.register(i,n)}))},t.assertRegistered=function(i,n){return!!this.isRegistered(i)||(e=t.moduleBased?"AG Grid: unable to use "+n+" as module "+i+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",O((function(){console.warn(e)}),n+i),!1);var e},t.isRegistered=function(i){return!!t.modulesMap[i]},t.getRegisteredModules=function(){return u(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}(),tt=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},it=0,nt=function(){function t(t,i,n,e){this.instanceId=it++,this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new $,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=i,this.colId=n,this.primary=e,this.setState(t)}return t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setState=function(t){void 0!==t.sort?t.sort!==Q.SORT_ASC&&t.sort!==Q.SORT_DESC||(this.sort=t.sort):t.initialSort!==Q.SORT_ASC&&t.initialSort!==Q.SORT_DESC||(this.sort=t.initialSort);var i=o(t.sortIndex),n=o(t.initialSortIndex);void 0!==i?null!==i&&(this.sortIndex=i):null!==n&&(this.sortIndex=n);var e=s(t.hide),r=s(t.initialHide);this.visible=void 0!==e?!e:!r,this.setPinned(void 0!==t.pinned?t.pinned:t.initialPinned);var u=o(t.flex),h=o(t.initialFlex);void 0!==u?this.flex=u:void 0!==h&&(this.flex=h)},t.prototype.setColDef=function(i,n){this.colDef=i,this.userProvidedColDef=n,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_COL_DEF_CHANGED,"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.validate()},t.prototype.initDotNotation=function(){var t=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=i(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=i(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.resetActualWidth=function(t){void 0===t&&(t="api");var i=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(i,t,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(t){return!(n(this.colDef)||n(this.colDef.showRowGroup)||!0!==this.colDef.showRowGroup&&this.colDef.showRowGroup!==t)},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function n(t,i,n){O((function(){n?console.warn(t,n):O((function(){return console.warn(t)}),i)}),i)}this.gridOptionsWrapper.isRowModelDefault()&&!X.isRegistered(q.RowGroupingModule)&&["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(e){i(t[e])&&(X.isPackageBased()?n("AG Grid: "+e+" is only valid in ag-grid-enterprise, your column definition should not have "+e,"ColumnRowGroupingMissing"+e):n("AG Grid: "+e+" is only valid with AG Grid Enterprise Module "+q.RowGroupingModule+" - your column definition should not have "+e,"ColumnRowGroupingMissing"+e))})),X.isRegistered(q.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(X.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+q.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(e){i(t[e])&&n("AG Grid: "+e+" is not possible when doing tree data, your column definition should not have "+e,"TreeDataCannotRowGroup")})),i(this.colDef.width)&&"number"!=typeof this.colDef.width&&n("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),t.pinnedRowCellRenderer&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowCellRendererParams&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowCellRendererFramework&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowValueGetter&&n("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},t.prototype.addEventListener=function(t,i){this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService.removeEventListener(t,i)},t.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},t.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var i=this.createColumnFunctionCallbackParams(t);return(0,this.colDef.suppressNavigable)(i)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&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,i){return"boolean"==typeof i?i:"function"==typeof i&&i(this.createColumnFunctionCallbackParams(t))},t.prototype.setMoving=function(i,n){void 0===n&&(n="api"),this.moving=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MOVING_CHANGED,n))},t.prototype.createColumnEvent=function(t,i){return{type:t,column:this,columns:[this],source:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(i,n){void 0===n&&(n="api"),this.sort!==i&&(this.sort=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_SORT_CHANGED,n)))},t.prototype.setMenuVisible=function(i,n){void 0===n&&(n="api"),this.menuVisible!==i&&(this.menuVisible=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MENU_VISIBLE_CHANGED,n)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return this.sort===Q.SORT_ASC},t.prototype.isSortDescending=function(){return this.sort===Q.SORT_DESC},t.prototype.isSortNone=function(){return n(this.sort)},t.prototype.isSorting=function(){return i(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(t){this.sortIndex=t},t.prototype.setAggFunc=function(t){this.aggFunc=t},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(i,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==i&&(this.left=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LEFT_CHANGED,n)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(i,n,e){void 0===n&&(n="api"),this.filterActive!==i&&(this.filterActive=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(t.EVENT_FILTER_CHANGED,n);e&&w(r,e),this.eventService.dispatchEvent(r)},t.prototype.setPinned=function(t){this.pinned=!0===t||t===Q.PINNED_LEFT?Q.PINNED_LEFT:t===Q.PINNED_RIGHT?Q.PINNED_RIGHT:null},t.prototype.setFirstRightPinned=function(i,n){void 0===n&&(n="api"),this.firstRightPinned!==i&&(this.firstRightPinned=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},t.prototype.setLastLeftPinned=function(i,n){void 0===n&&(n="api"),this.lastLeftPinned!==i&&(this.lastLeftPinned=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return this.pinned===Q.PINNED_LEFT||this.pinned===Q.PINNED_RIGHT},t.prototype.isPinnedLeft=function(){return this.pinned===Q.PINNED_LEFT},t.prototype.isPinnedRight=function(){return this.pinned===Q.PINNED_RIGHT},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(i,n){void 0===n&&(n="api");var e=!0===i;this.visible!==e&&(this.visible=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VISIBLE_CHANGED,n)))},t.prototype.isVisible=function(){return this.visible},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.getColId()},t.prototype.getUniqueId=function(){return this.getId()},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 i=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,i},t.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.getColSpan=function(t){if(n(this.colDef.colSpan))return 1;var i=this.createBaseColDefParams(t),e=this.colDef.colSpan(i);return Math.max(e,1)},t.prototype.getRowSpan=function(t){if(n(this.colDef.rowSpan))return 1;var i=this.createBaseColDefParams(t),e=this.colDef.rowSpan(i);return Math.max(e,1)},t.prototype.setActualWidth=function(t,i,n){void 0===i&&(i="api"),void 0===n&&(n=!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"!==i&&"gridInitializing"!==i&&(this.flex=null),n||this.fireColumnWidthChangedEvent(i))},t.prototype.fireColumnWidthChangedEvent=function(i){this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_WIDTH_CHANGED,i))},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)},t.prototype.setMinimum=function(t){void 0===t&&(t="api"),i(this.minWidth)&&this.setActualWidth(this.minWidth,t)},t.prototype.setRowGroupActive=function(i,n){void 0===n&&(n="api"),this.rowGroupActive!==i&&(this.rowGroupActive=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_ROW_GROUP_CHANGED,n)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(i,n){void 0===n&&(n="api"),this.pivotActive!==i&&(this.pivotActive=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_PIVOT_CHANGED,n)))},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(i,n){void 0===n&&(n="api"),this.aggregationActive!==i&&(this.aggregationActive=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VALUE_CHANGED,n)))},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 i=this.getColDef().menuTabs;return null==i&&(i=t),i},t.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},t.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},t.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},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",tt([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),tt([W("columnUtils")],t.prototype,"columnUtils",void 0),tt([L],t.prototype,"initialise",null),t}();
45
- /**
46
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
47
- * @version v28.2.0
48
- * @link https://www.ag-grid.com/
49
- * @license MIT
50
- */
51
- /**
52
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
53
- * @version v28.2.0
54
- * @link https://www.ag-grid.com/
55
- * @license MIT
56
- */
57
- function et(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var e=0;e<t.length;e++){var r=t[e];if(i(r))return r}return null}function rt(t){if(t&&t.length)return t[t.length-1]}function ot(t,i,n){return null==t&&null==i||null!=t&&null!=i&&t.length===i.length&&t.every((function(t,e){return n?n(t,i[e]):i[e]===t}))}function st(t){return t.sort((function(t,i){return t-i}))}function ut(t,i){var n=t.indexOf(i);n>=0&&t.splice(n,1)}function ht(t,i){i.forEach((function(i){return ut(t,i)}))}function ct(t,i,n){t.splice(n,0,i)}function at(t,i,n){ht(t,i),i.slice().reverse().forEach((function(i){return ct(t,i,n)}))}function ft(t,i){return t.indexOf(i)>-1}function lt(t){return[].concat.apply([],t)}function dt(t,i){null!=i&&null!=t&&i.forEach((function(i){return t.push(i)}))}var vt=Object.freeze({__proto__:null,firstExistingValue:et,existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:rt,areEqual:ot,compareArrays:function(t,i){return ot(t,i)},shallowCompare:function(t,i){return ot(t,i)},sortNumerically:st,removeRepeatsFromArray:function(t,i){if(t)for(var n=t.length-2;n>=0;n--)t[n]===i&&t[n+1]===i&&t.splice(n+1,1)},removeFromArray:ut,removeAllFromArray:ht,insertIntoArray:ct,insertArrayIntoArray:function(t,i,n){if(null!=t&&null!=i)for(var e=i.length-1;e>=0;e--)ct(t,i[e],n)},moveInArray:at,includes:ft,flatten:lt,pushAll:dt,toStrings:function(t){return t.map(r)},forEachReverse:function(t,i){if(null!=t)for(var n=t.length-1;n>=0;n--)i(t[n],n)}}),pt=function(){function t(t,i,n,e){this.displayedChildren=[],this.localEventService=new $,this.groupId=i,this.instanceId=n,this.providedColumnGroup=t,this.pinned=e}return t.createUniqueId=function(t,i){return t+"_"+i},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.instanceId)},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(i){i instanceof t&&i.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var i=rt(this.displayedChildren).getLeft();this.setLeft(i)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.setLeft=function(i){this.oldLeft=i,this.left!==i&&(this.left=i,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,i){this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService.removeEventListener(t,i)},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.isChildInThisGroupDeepSearch=function(i){var n=!1;return this.children.forEach((function(e){i===e&&(n=!0),e instanceof t&&e.isChildInThisGroupDeepSearch(i)&&(n=!0)})),n},t.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach((function(i){t+=i.getActualWidth()})),t},t.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach((function(i){i.isResizable()&&(t=!0)})),t},t.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach((function(i){t+=i.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(i){this.displayedChildren.forEach((function(n){n instanceof nt?i.push(n):n instanceof t&&n.addDisplayedLeafColumns(i)}))},t.prototype.addLeafColumns=function(i){this.children.forEach((function(n){n instanceof nt?i.push(n):n instanceof t&&n.addLeafColumns(i)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},t.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},t.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},t.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},t.prototype.calculateDisplayedColumns=function(){var i=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!n||!n.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(e){if(!(e instanceof t)||e.displayedChildren&&e.displayedChildren.length)switch(e.getColumnGroupShow()){case t.HEADER_GROUP_SHOW_OPEN:n.providedColumnGroup.isExpanded()&&i.displayedChildren.push(e);break;case t.HEADER_GROUP_SHOW_CLOSED:n.providedColumnGroup.isExpanded()||i.displayedChildren.push(e);break;default:i.displayedChildren.push(e)}})),this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.HEADER_GROUP_SHOW_OPEN="open",t.HEADER_GROUP_SHOW_CLOSED="closed",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),gt=function(){function t(t,i,n,e){this.localEventService=new $,this.expandable=!1,this.colGroupDef=t,this.groupId=i,this.expanded=!!t&&!!t.openByDefault,this.padding=n,this.level=e}return 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(i){this.expanded=void 0!==i&&i,this.localEventService.dispatchEvent({type:t.EVENT_EXPANDED_CHANGED})},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(i){this.children&&this.children.forEach((function(n){n instanceof nt?i.push(n):n instanceof t&&n.addLeafColumns(i)}))},t.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},t.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.getLeafColumns().forEach((function(i){return i.addEventListener(nt.EVENT_VISIBLE_CHANGED,t.onColumnVisibilityChanged.bind(t))}))},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var i=!1,n=!1,e=!1,r=this.findChildrenRemovingPadding(),o=0,s=r.length;o<s;o++){var u=r[o];if(u.isVisible()){var h=u.getColumnGroupShow();h===pt.HEADER_GROUP_SHOW_OPEN?(i=!0,e=!0):h===pt.HEADER_GROUP_SHOW_CLOSED?(n=!0,e=!0):(i=!0,n=!0)}}var c=i&&n&&e;this.expandable!==c&&(this.expandable=c,this.localEventService.dispatchEvent({type:t.EVENT_EXPANDABLE_CHANGED}))}},t.prototype.findChildrenRemovingPadding=function(){var i=[],n=function(e){e.forEach((function(e){e instanceof t&&e.isPadding()?n(e.children):i.push(e)}))};return n(this.children),i},t.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},t.prototype.addEventListener=function(t,i){this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService.removeEventListener(t,i)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_EXPANDABLE_CHANGED="expandableChanged",t}(),mt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},wt=["touchstart","touchend","touchmove","touchcancel"],bt={};
58
- /**
59
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
60
- * @version v28.2.0
61
- * @link https://www.ag-grid.com/
62
- * @license MIT
63
- */function yt(t){t.__ag_Grid_Stop_Propagation=!0}function Ct(t){return!0===t.__ag_Grid_Stop_Propagation}var Rt,St=(Rt={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof bt[t])return bt[t];var i=document.createElement(Rt[t]||"div");return bt[t="on"+t]=t in i});function Ot(t,i,n){for(var e=i.target;e;){var r=t.getDomData(e,n);if(r)return r;e=e.parentElement}return null}function At(t,i){return!(!i||!t)&&Gt(i).indexOf(t)>=0}function jt(t){for(var i=[],n=t.target;n;)i.push(n),n=n.parentElement;return i}function Gt(t){var i=t;return i.path?i.path:i.composedPath?i.composedPath():i.__agGridEventPath?i.__agGridEventPath:jt(t)}function _t(t,i,n,e){var r=ft(wt,n);t&&t.addEventListener&&t.addEventListener(i,n,e,r?{passive:!0}:void 0)}var xt,Ft=Object.freeze({__proto__:null,stopPropagationForAgGrid:yt,isStopPropagationForAgGrid:Ct,isEventSupported:St,getCtrlForEvent:Ot,addChangeListener:function(t,i){t.addEventListener("changed",i),t.addEventListener("paste",i),t.addEventListener("input",i)},isElementInEventPath:At,createEventPath:jt,addAgGridEventPath:function(t){t.__agGridEventPath=Gt(t)},getEventPath:Gt,addSafePassiveEventListener:_t}),Mt=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},kt=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!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,i){this.localEventService||(this.localEventService=new $),this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService&&this.localEventService.removeEventListener(t,i)},t.prototype.dispatchEventAsync=function(t){var i=this;window.setTimeout((function(){return i.dispatchEvent(t)}),0)},t.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},t.prototype.addManagedListener=function(t,i,n){var e=this;if(!this.destroyed){t instanceof HTMLElement?_t(this.getFrameworkOverrides(),t,i,n):t.addEventListener(i,n);var r=function(){return t.removeEventListener(i,n),e.destroyFunctions=e.destroyFunctions.filter((function(t){return t!==r})),null};return this.destroyFunctions.push(r),r}},t.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},t.prototype.createManagedBean=function(t,i){var n=this.createBean(t,i);return this.addDestroyFunc(this.destroyBean.bind(this,t,i)),n},t.prototype.createBean=function(t,i,n){return(i||this.getContext()).createBean(t,n)},t.prototype.destroyBean=function(t,i){return(i||this.getContext()).destroyBean(t)},t.prototype.destroyBeans=function(t,i){var n=this;return t&&t.forEach((function(t){return n.destroyBean(t,i)})),[]},t.EVENT_DESTROYED="destroyed",Mt([W("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Mt([W("context")],t.prototype,"context",void 0),Mt([W("eventService")],t.prototype,"eventService",void 0),Mt([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Mt([H],t.prototype,"destroy",null),t}(),Dt=(xt=function(t,i){return(xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(t,i)},function(t,i){function n(){this.constructor=t}xt(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),Pt=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},It=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var n;return Dt(i,t),i.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},i.prototype.createColumnTree=function(t,i,n){var e=new c,r=this.extractExistingTreeData(n),o=r.existingCols,s=r.existingGroups;e.addExistingKeys(r.existingColKeys);var u=this.recursivelyCreateColumns(t,0,i,o,e,s),h=this.findMaxDept(u,0);this.logger.log("Number of levels for grouped columns is "+h);var a=this.balanceColumnTree(u,0,h,e);return this.columnUtils.depthFirstOriginalTreeSearch(null,a,(function(t,i){t instanceof gt&&t.setupExpandable(),t.setOriginalParent(i)})),{columnTree:a,treeDept:h}},i.prototype.extractExistingTreeData=function(t){var i=[],n=[],e=[];return t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){if(t instanceof gt)n.push(t);else{var r=t;e.push(r.getId()),i.push(r)}})),{existingCols:i,existingGroups:n,existingColKeys:e}},i.prototype.createForAutoGroups=function(t,i){var n=this;return t.map((function(t){return n.createAutoGroupTreeItem(i,t)}))},i.prototype.createAutoGroupTreeItem=function(t,i){for(var n=i,e=this.findDepth(t)-1;e>=0;e--){var r=new gt(null,"FAKE_PATH_"+i.getId()+"}_"+e,!0,e);this.context.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},i.prototype.findDepth=function(t){for(var i=0,n=t;n&&n[0]&&n[0]instanceof gt;)i++,n=n[0].getChildren();return i},i.prototype.balanceColumnTree=function(t,i,n,e){for(var r=[],o=0;o<t.length;o++){var s=t[o];if(s instanceof gt){var u=s,h=this.balanceColumnTree(u.getChildren(),i+1,n,e);u.setChildren(h),r.push(u)}else{for(var c=void 0,a=void 0,f=n-1;f>=i;f--){var l=e.getUniqueKey(null,null),d=this.createMergedColGroupDef(null),v=new gt(d,l,!0,i);this.context.createBean(v),a&&a.setChildren([v]),a=v,c||(c=a)}if(c&&a){if(r.push(c),t.some((function(t){return t instanceof gt}))){a.setChildren([s]);continue}a.setChildren(t);break}r.push(s)}}return r},i.prototype.findMaxDept=function(t,i){for(var n=i,e=0;e<t.length;e++){var r=t[e];if(r instanceof gt){var o=this.findMaxDept(r.getChildren(),i+1);n<o&&(n=o)}}return n},i.prototype.recursivelyCreateColumns=function(t,i,n,e,r,o){var s=this;return(t||[]).map((function(t){return s.isColumnGroup(t)?s.createColumnGroup(n,t,i,e,r,o):s.createColumn(n,t,e,r)}))},i.prototype.createColumnGroup=function(t,i,n,e,r,o){var s=this.createMergedColGroupDef(i),u=r.getUniqueKey(s.groupId||null,null),h=new gt(s,u,!1,n);this.context.createBean(h);var c=this.findExistingGroup(i,o);c&&ut(o,c),c&&c.isExpanded()&&h.setExpanded(!0);var a=this.recursivelyCreateColumns(s.children,n+1,t,e,r,o);return h.setChildren(a),h},i.prototype.createMergedColGroupDef=function(t){var i={};return Object.assign(i,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(i,t),this.checkForDeprecatedItems(i),i},i.prototype.createColumn=function(t,i,n,e){var r=this.mergeColDefs(i);this.checkForDeprecatedItems(r);var o=this.findExistingColumn(i,n);if(n&&o&&ut(n,o),o)o.setColDef(r,i),this.applyColumnState(o,r);else{var s=e.getUniqueKey(r.colId,r.field);o=new nt(r,i,s,t),this.context.createBean(o)}return o},i.prototype.applyColumnState=function(t,i){var n=o(i.flex);if(void 0!==n&&t.setFlex(n),t.getFlex()<=0){var e=o(i.width);if(null!=e)t.setActualWidth(e);else{var r=t.getActualWidth();t.setActualWidth(r)}}void 0!==i.sort&&t.setSort(i.sort==Q.SORT_ASC||i.sort==Q.SORT_DESC?i.sort:void 0);var u=o(i.sortIndex);void 0!==u&&t.setSortIndex(u);var h=s(i.hide);void 0!==h&&t.setVisible(!h),void 0!==i.pinned&&t.setPinned(i.pinned)},i.prototype.findExistingColumn=function(t,i){return(i||[]).find((function(i){var n=i.getUserProvidedColDef();if(!n)return!1;var e=null!=t.field;return null!=t.colId?i.getId()===t.colId:e?n.field===t.field:n===t}))},i.prototype.findExistingGroup=function(t,i){return i.find((function(i){return!(!i.getColGroupDef()||null==t.groupId||i.getId()!==t.groupId)}))},i.prototype.mergeColDefs=function(t){var i={},n=this.gridOptionsWrapper.getDefaultColDef();w(i,n,!1,!0);var e=t.type;e||(e=n&&n.type),e&&this.assignColumnTypes(e,i),w(i,t,!1,!0);var r=this.gridOptionsWrapper.getAutoGroupColumnDef(),o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();return t.rowGroup&&r&&o&&w(i,{sort:r.sort,initialSort:r.initialSort},!1,!0),i},i.prototype.assignColumnTypes=function(t,i){var n=[];if(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[]'"):n=t;else{if("string"!=typeof t)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=t.split(",")}var e=Object.assign({},mt);a(this.gridOptionsWrapper.getColumnTypes()||{},(function(t,i){t in e?console.warn("AG Grid: the column type '"+t+"' is a default column type and cannot be overridden."):e[t]=i})),n.forEach((function(t){var n=e[t.trim()];n?w(i,n,!1,!0):console.warn("AG Grid: colDef.type '"+t+"' does not correspond to defined gridOptions.columnTypes")}))},i.prototype.checkForDeprecatedItems=function(t){if(t){var i=t;void 0!==i.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==i.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(i.suppressRowGroup||i.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),i.displayName&&(console.warn("AG Grid: Found displayName "+i.displayName+", please use headerName instead, displayName is deprecated."),i.headerName=i.displayName)}},i.prototype.isColumnGroup=function(t){return void 0!==t.children},Pt([W("columnUtils")],i.prototype,"columnUtils",void 0),Pt([(0,n=U("loggerFactory"),function(t,i){n(t,i,0)})],i.prototype,"setBeans",null),Pt([B("columnFactory")],i)}(kt),Tt=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_PASTE_START="pasteStart",t.EVENT_PASTE_END="pasteEnd",t.EVENT_FILL_START="fillStart",t.EVENT_FILL_END="fillEnd",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_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_CELL_KEY_DOWN="cellKeyDown",t.EVENT_CELL_KEY_PRESS="cellKeyPress",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_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_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_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_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}(),Et=function(){function t(){this.existingIds={}}return t.prototype.getInstanceIdForKey=function(t){var i,n=this.existingIds[t];return this.existingIds[t]=i="number"!=typeof n?0:n+1,i},t}(),Nt=/[&<>"']/g,Lt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};
64
- /**
65
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
66
- * @version v28.2.0
67
- * @link https://www.ag-grid.com/
68
- * @license MIT
69
- */function Ht(t){return null==t?null:t.replace(/([A-Z])/g,(function(t){return"-"+t[0].toLowerCase()}))}function Bt(t){return null==t?null:t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function Wt(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}function Vt(t,i){if(null==t)return null;var n=t.toString().toString();return i?n:n.replace(Nt,(function(t){return Lt[t]}))}function zt(t){return t&&null!=t?t.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(t){return t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):"")})).join(" "):null}var Ut=Object.freeze({__proto__:null,utf8_encode:function(t){var i=String.fromCharCode;function n(t,n){return i(t>>n&63|128)}function e(t){if(t>=0&&t<=31&&10!==t)return"_x"+t.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(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),e=i(t>>12&15|224),e+=n(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=n(t,12),e+=n(t,6)),e+i(63&t|128)}for(var r=function(t){var i=[];if(!t)return[];for(var n,e,r=t.length,o=0;o<r;)(n=t.charCodeAt(o++))>=55296&&n<=56319&&o<r?56320==(64512&(e=t.charCodeAt(o++)))?i.push(((1023&n)<<10)+(1023&e)+65536):(i.push(n),o--):i.push(n);return i}(t),o=r.length,s=-1,u="";++s<o;)u+=e(r[s]);return u},camelCaseToHyphen:Ht,hyphenToCamelCase:Bt,capitalise:Wt,escapeString:Vt,camelCaseToHumanText:zt});
70
- /**
71
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
72
- * @version v28.2.0
73
- * @link https://www.ag-grid.com/
74
- * @license MIT
75
- */function Kt(t){var i=new Map;return t.forEach((function(t){return i.set(t[0],t[1])})),i}var qt=Object.freeze({__proto__:null,convertToMap:Kt,mapById:function(t,i){var n=new Map;return t.forEach((function(t){return n.set(i(t),t)})),n},keys:function(t){var i=[];return t.forEach((function(t,n){return i.push(n)})),i}}),Yt=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Jt=function(){function t(){}return t.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],t.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","floatingFilterFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],t.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],t.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],t.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","showDisabledCheckboxes","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle","wrapHeaderText","autoHeaderHeight"],t.ALL_PROPERTIES=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Yt(arguments[i]));return t}(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),Zt=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},$t=function(){function t(){}return t.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType"],t.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],t.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],t.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],t.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","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","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","enableChartToolPanelsButton","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","serverSideInfiniteScroll","rowGroupPanelSuppressSort"],t.ALL_PROPERTIES=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Zt(arguments[i]));return t}(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES=["localeTextFunc","getLocaleText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getGroupRowAgg","getRowNodeId","isFullWidthCell","isFullWidthRow","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","isRowMaster","isRowSelectable","postSort","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","defaultGroupSortComparator","defaultGroupOrderComparator","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering","rowDragText"],t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),Qt=function(){return(Qt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},Xt=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},ti=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Xt(arguments[i]));return t},ii=function(){function t(){}return t.getEventCallbacks=function(){return t.EVENT_CALLBACKS||(t.EVENT_CALLBACKS=t.EVENTS.map((function(i){return t.getCallbackForEvent(i)}))),t.EVENT_CALLBACKS},t.copyAttributesToGridOptions=function(i,n){"object"!=typeof i&&(i={});var e=i,r=function(t){return void 0!==n[t]};return r("groupAggFiltering")&&"function"!=typeof n.groupAggFiltering&&(e.groupAggFiltering=t.toBoolean(n.groupAggFiltering),delete n.groupAggFiltering),ti(t.ARRAY_PROPERTIES,t.STRING_PROPERTIES,t.OBJECT_PROPERTIES,t.FUNCTION_PROPERTIES,t.getEventCallbacks()).filter(r).forEach((function(t){return e[t]=n[t]})),t.BOOLEAN_PROPERTIES.filter(r).forEach((function(i){return e[i]=t.toBoolean(n[i])})),t.NUMBER_PROPERTIES.filter(r).forEach((function(i){return e[i]=t.toNumber(n[i])})),i},t.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},t.processOnChange=function(i,n,e,r){if(i){var o=Qt({},i),s=n,u=function(t){return o[t]};u("groupAggFiltering")&&(s.groupAggFiltering="function"==typeof o.groupAggFiltering?o.groupAggFiltering:t.toBoolean(o.groupAggFiltering),delete o.groupAggFiltering),u("groupDisplayType")&&"string"==typeof o.groupDisplayType.currentValue&&(e.setGroupDisplayType(o.groupDisplayType.currentValue),delete o.groupDisplayType),o.rowClass&&(e.setRowClass(o.rowClass.currentValue),delete o.rowClass),ti(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.getEventCallbacks()).filter(u).forEach((function(t){return s[t]=o[t].currentValue})),t.BOOLEAN_PROPERTIES.filter(u).forEach((function(i){return s[i]=t.toBoolean(o[i].currentValue)})),t.NUMBER_PROPERTIES.filter(u).forEach((function(i){return s[i]=t.toNumber(o[i].currentValue)})),o.enableCellTextSelection&&(e.setEnableCellTextSelection(t.toBoolean(o.enableCellTextSelection.currentValue)),delete o.enableCellTextSelection),o.quickFilterText&&(e.setQuickFilter(o.quickFilterText.currentValue),delete o.quickFilterText),o.autoGroupColumnDef&&(e.setAutoGroupColumnDef(o.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete o.autoGroupColumnDef),o.columnDefs&&(e.setColumnDefs(o.columnDefs.currentValue,"gridOptionsChanged"),delete o.columnDefs),o.defaultColDef&&(e.setDefaultColDef(o.defaultColDef.currentValue,"gridOptionsChanged"),delete o.defaultColDef),o.paginationPageSize&&(e.paginationSetPageSize(t.toNumber(o.paginationPageSize.currentValue)),delete o.paginationPageSize),o.pivotMode&&(r.setPivotMode(t.toBoolean(o.pivotMode.currentValue)),delete o.pivotMode),o.groupRemoveSingleChildren&&(e.setGroupRemoveSingleChildren(t.toBoolean(o.groupRemoveSingleChildren.currentValue)),delete o.groupRemoveSingleChildren),o.suppressRowDrag&&(e.setSuppressRowDrag(t.toBoolean(o.suppressRowDrag.currentValue)),delete o.suppressRowDrag),o.suppressMoveWhenRowDragging&&(e.setSuppressMoveWhenRowDragging(t.toBoolean(o.suppressMoveWhenRowDragging.currentValue)),delete o.suppressMoveWhenRowDragging),o.suppressRowClickSelection&&(e.setSuppressRowClickSelection(t.toBoolean(o.suppressRowClickSelection.currentValue)),delete o.suppressRowClickSelection),o.suppressClipboardPaste&&(e.setSuppressClipboardPaste(t.toBoolean(o.suppressClipboardPaste.currentValue)),delete o.suppressClipboardPaste),o.headerHeight&&(e.setHeaderHeight(t.toNumber(o.headerHeight.currentValue)),delete o.headerHeight);var h=e;Object.keys(o).forEach((function(t){var n="set"+t.charAt(0).toUpperCase()+t.substring(1);h[n]&&h[n](i[t].currentValue)}));var c={type:Tt.EVENT_COMPONENT_STATE_CHANGED};a(i,(function(t,i){c[t]=i})),e.dispatchEvent(c)}},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=[],t.PUBLIC_EVENTS=[],t.EXCLUDED_INTERNAL_EVENTS=[],t.STRING_PROPERTIES=$t.STRING_PROPERTIES,t.OBJECT_PROPERTIES=$t.OBJECT_PROPERTIES,t.ARRAY_PROPERTIES=$t.ARRAY_PROPERTIES,t.NUMBER_PROPERTIES=$t.NUMBER_PROPERTIES,t.BOOLEAN_PROPERTIES=$t.BOOLEAN_PROPERTIES,t.FUNCTION_PROPERTIES=$t.FUNCTION_PROPERTIES,t.ALL_PROPERTIES=$t.ALL_PROPERTIES,t}();
76
- /**
77
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
78
- * @version v28.2.0
79
- * @link https://www.ag-grid.com/
80
- * @license MIT
81
- */ii.EVENTS=u(Tt),ii.EXCLUDED_INTERNAL_EVENTS=[Tt.EVENT_SCROLLBAR_WIDTH_CHANGED,Tt.EVENT_CHECKBOX_CHANGED,Tt.EVENT_HEIGHT_SCALE_CHANGED,Tt.EVENT_BODY_HEIGHT_CHANGED,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,Tt.EVENT_SCROLL_VISIBILITY_CHANGED,Tt.EVENT_COLUMN_HOVER_CHANGED,Tt.EVENT_FLASH_CELLS,Tt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,Tt.EVENT_DISPLAYED_ROWS_CHANGED,Tt.EVENT_LEFT_PINNED_WIDTH_CHANGED,Tt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,Tt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,Tt.EVENT_POPUP_TO_FRONT,Tt.EVENT_KEYBOARD_FOCUS,Tt.EVENT_MOUSE_FOCUS,Tt.EVENT_STORE_UPDATED,Tt.EVENT_COLUMN_PANEL_ITEM_DRAG_START,Tt.EVENT_COLUMN_PANEL_ITEM_DRAG_END,Tt.EVENT_FILL_START,Tt.EVENT_FILL_END,Tt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,Tt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,Tt.EVENT_FULL_WIDTH_ROW_FOCUSED,Tt.EVENT_HEADER_HEIGHT_CHANGED,Tt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED],ii.PUBLIC_EVENTS=ii.EVENTS.filter((function(t){return!ft(ii.EXCLUDED_INTERNAL_EVENTS,t)}));
82
- /**
83
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
84
- * @version v28.2.0
85
- * @link https://www.ag-grid.com/
86
- * @license MIT
87
- */
88
- var ni,ei,ri,oi,si,ui,hi,ci,ai,fi,li=function(){function t(){}return t.parse=function(i){if(!i)return null;if(!0===i)return{toolPanels:[t.DEFAULT_COLUMN_COMP,t.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof i)return t.parse([i]);if(Array.isArray(i)){var n=[];return i.forEach((function(i){var e=t.DEFAULT_BY_KEY[i];e?n.push(e):console.warn("AG Grid: the key "+i+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","))})),0===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:t.parseComponents(i.toolPanels),defaultToolPanel:i.defaultToolPanel,hiddenByDefault:i.hiddenByDefault,position:i.position}},t.parseComponents=function(i){var n=[];return i?(i.forEach((function(i){var e=null;if("string"==typeof i){var r=t.DEFAULT_BY_KEY[i];if(!r)return void console.warn("AG Grid: the key "+i+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","));e=r}else e=i;n.push(e)})),n):n},t.DEFAULT_BY_KEY={columns:t.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},filters:t.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"}},t}();
89
- /**
90
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
91
- * @version v28.2.0
92
- * @link https://www.ag-grid.com/
93
- * @license MIT
94
- */function di(){if(fi)return fi;var t,i,n=navigator.userAgent,e=n.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(e[1]))return{name:"IE",version:i=null!=(t=/\brv[ :]+(\d+)/g.exec(n)||[])[1]?parseFloat(t[1]):0};if("Chrome"===e[1]&&null!=(t=n.match(/\bOPR|Edge\/(\d+)/)))return{name:"Opera",version:i=null!=t[1]?parseFloat(t[1]):0};e=e[2]?[e[1],e[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=n.match(/version\/(\d+)/i))&&e.splice(1,1,t[1]);var r=e[0];return i=null!=e[1]?parseFloat(e[1]):0,fi={name:r,version:i}}function vi(){return void 0===ri&&(void 0===ei&&(ei=/*@cc_on!@*/!!document.documentMode),ri=!(ei||!window.StyleMedia)),ri}function pi(){return void 0===ni&&(ni=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),ni}function gi(){if(void 0===oi){var t=window;oi=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return oi}function mi(){if(void 0===si){var t=window;si=void 0!==t.InstallTrigger}return si}function wi(){return void 0===ui&&(ui=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),ui}function bi(){return void 0===hi&&(hi=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),hi}function yi(){return!pi()||di().version>=15}function Ci(t){if(!t)return null;var i=t.tabIndex,n=t.getAttribute("tabIndex");return-1!==i||null!==n&&(""!==n||mi())?i.toString():null}function Ri(){if(!document.body)return-1;var t=1e6,i=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var e=2*t;if(n.style.height=e+"px",e>i||n.clientHeight!==e)break;t=e}return document.body.removeChild(n),t}function Si(){return null==ai&&Oi(),ai}function Oi(){var t=document.body,i=document.createElement("div");i.style.width=i.style.height="100px",i.style.opacity="0",i.style.overflow="scroll",i.style.msOverflowStyle="scrollbar",i.style.position="absolute",t.appendChild(i);var n=i.offsetWidth-i.clientWidth;0===n&&0===i.clientWidth&&(n=null),i.parentNode&&i.parentNode.removeChild(i),null!=n&&(ai=n,ci=0===n)}function Ai(){return null==ci&&Oi(),ci}function ji(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Gi(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var _i=Object.freeze({__proto__:null,getBrowserInfo:di,isBrowserEdge:vi,isBrowserSafari:pi,isBrowserChrome:gi,isBrowserFirefox:mi,isMacOsUserAgent:wi,isIOSUserAgent:bi,browserSupportsPreventScroll:yi,getTabIndex:Ci,getMaxDivHeight:Ri,getScrollbarWidth:Si,isInvisibleScrollbar:Ai,hasOverflowScrolling:function(){var t,i,n=["webkit","moz","o","ms"],e=document.createElement("div"),r=!1;document.getElementsByTagName("body")[0].appendChild(e),e.setAttribute("style",n.map((function(t){return"-"+t+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var o=window.getComputedStyle(e);if("touch"===o.overflowScrolling&&(r=!0),!r)try{for(var s=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=s.next();!u.done;u=s.next())if("touch"===o[u.value+"OverflowScrolling"]){r=!0;break}}catch(i){t={error:i}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return e.parentNode&&e.parentNode.removeChild(e),r},getBodyWidth:ji,getBodyHeight:Gi});
95
- /**
96
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
97
- * @version v28.2.0
98
- * @link https://www.ag-grid.com/
99
- * @license MIT
100
- */function xi(t,i,n){var e={},r=t.filter((function(t){return!i.some((function(i){return i===t}))}));return r.length>0&&r.forEach((function(t){return e[t]=Fi(t,n)})),e}function Fi(t,i,n,e){var r=e?Di:ki,o=i.map((function(i){return{value:i,relevance:r(t.toLowerCase(),i.toLocaleLowerCase())}}));return o.sort((function(t,i){return i.relevance-t.relevance})),n&&(o=o.filter((function(t){return 0!==t.relevance}))),o.map((function(t){return t.value}))}function Mi(t){var i,n,e,r=t.toLowerCase(),o=new Array(r.length-1);for(i=n=0,e=o.length;n<=e;i=n+=1)o[i]=r.slice(i,i+2);return o}function ki(t,i){if(0===t.length&&0===i.length)return 0;var n,e,r=Mi(t),o=Mi(i),s=r.length+o.length,u=0;for(n=0,e=r.length;n<e;n++){var h,c=r[n],a=void 0;for(a=0,h=o.length;a<h;a++)c===o[a]&&u++}return u>0?2*u/s:0}function Di(t,i){for(var n=t.replace(/\s/g,""),e=i.replace(/\s/g,""),r=0,o=0,s=0;s<n.length;s++){var u=e.indexOf(n[s],o);-1!==u&&(r+=100-100*(o=u)/1e4*100)}return r}var Pi=Object.freeze({__proto__:null,fuzzyCheckStrings:xi,fuzzySuggestions:Fi,get_bigrams:Mi,string_distances:ki,string_weighted_distances:Di});
101
- /**
102
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
103
- * @version v28.2.0
104
- * @link https://www.ag-grid.com/
105
- * @license MIT
106
- */function Ii(t,i){return t.toString().padStart(i,"0")}function Ti(t,i){for(var n=[],e=t;e<=i;e++)n.push(e);return n}function Ei(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Ni(t,i,n){return"number"!=typeof t?"":t.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i)}var Li=Object.freeze({__proto__:null,padStartWidthZeros:Ii,createArrayOfNumbers:Ti,isNumeric:Ei,cleanNumber:function(t){return"string"==typeof t&&(t=parseInt(t,10)),"number"==typeof t?Math.floor(t):null},decToHex:function(t,i){for(var n="",e=0;e<i;e++)n+=String.fromCharCode(255&t),t>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(t,i,n){return"number"!=typeof t?"":Ni(Math.round(100*t)/100,i,n)},formatNumberCommas:Ni,sum:function(t){return null==t?null:t.reduce((function(t,i){return t+i}),0)}}),Hi=function(){return(Hi=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},Bi=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wi=function(t,i){return function(n,e){i(n,e,t)}},Vi=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},zi=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Vi(arguments[i]));return t};
107
- /**
108
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
109
- * @version v28.2.0
110
- * @link https://www.ag-grid.com/
111
- * @license MIT
112
- */function Ui(t){return!0===t||"true"===t}function Ki(t){return"number"==typeof t?t:"string"==typeof t?parseInt(t,10):void 0}function qi(t,i){var n=parseInt(t,10);return Ei(n)&&n>0?n:i}var Yi,Ji=function(){function t(){this.propertyEventService=new $,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var e;return e=t,t.prototype.agWire=function(t,i){this.gridOptions.api=t,this.gridOptions.columnApi=i,this.checkForDeprecated(),this.checkForViolations()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},t.prototype.init=function(){var t=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=li.parse(this.gridOptions.sideBar));var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to use these together on our support forum either, you will get the same answer!"),this.isRowModelServerSide()){var e=function(t){return"AG Grid: '"+t+"' is not supported on the Server-Side Row Model"};i(this.gridOptions.groupDefaultExpanded)&&console.warn(e("groupDefaultExpanded")),i(this.gridOptions.groupDefaultExpanded)&&console.warn(e("groupIncludeFooter")),i(this.gridOptions.groupDefaultExpanded)&&console.warn(e("groupIncludeTotalFooter"))}Ui(this.gridOptions.enableRangeSelection)?X.assertRegistered(q.RangeSelectionModule,"enableRangeSelection"):(this.isEnableRangeHandle()||this.isEnableFillHandle())&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true"),this.isGroupRowsSticky()&&(this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one."),this.isMasterDetail()&&console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one."),this.isPagination()&&console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one."));var r=function(i){t.gridOptions.icons&&t.gridOptions.icons[i]&&console.warn("gridOptions.icons."+i+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};r("radioButtonOff"),r("radioButtonOn"),r("checkboxChecked"),r("checkboxUnchecked"),r("checkboxIndeterminate"),this.getScrollbarWidth()},t.prototype.checkColumnDefProperties=function(){var t=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(i){var n=Object.getOwnPropertyNames(i),e=zi(Jt.ALL_PROPERTIES,Jt.FRAMEWORK_PROPERTIES);t.checkProperties(n,e,e,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},t.prototype.checkGridOptionsProperties=function(){var t=Object.getOwnPropertyNames(this.gridOptions),i=zi($t.ALL_PROPERTIES,$t.FRAMEWORK_PROPERTIES,u(Tt).map((function(t){return ii.getCallbackForEvent(t)}))),n=zi(i,["api","columnApi"]);this.checkProperties(t,n,i,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},t.prototype.checkProperties=function(t,i,n,e,r){var o=xi(t,i,n);a(o,(function(t,i){console.warn("ag-grid: invalid "+e+" property '"+t+"' did you mean any of these: "+i.slice(0,8).join(", "))})),Object.keys(o).length>0&&console.warn("ag-grid: to see all the valid "+e+" properties please check: "+r)},t.prototype.mergeGridCommonParams=function(t){var i=this;return t?function(n){var e=Hi(Hi({},n),{api:i.getApi(),columnApi:i.getColumnApi(),context:i.getContext()});return t(e)}:t},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(t,i){var n=t[this.getDomDataKey()];return n?n[i]:void 0},t.prototype.setDomData=function(t,i,e){var r=this.getDomDataKey(),o=t[r];n(o)&&(t[r]=o={}),o[i]=e},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.isSuppressRowDeselection=function(){return Ui(this.gridOptions.suppressRowDeselection)},t.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},t.prototype.isRowMultiSelectWithClick=function(){return Ui(this.gridOptions.rowMultiSelectWithClick)},t.prototype.getContext=function(){return this.gridOptions.context},t.prototype.isPivotMode=function(){return Ui(this.gridOptions.pivotMode)},t.prototype.isSuppressExpandablePivotGroups=function(){return Ui(this.gridOptions.suppressExpandablePivotGroups)},t.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},t.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},t.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===Q.ROW_MODEL_TYPE_INFINITE},t.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===Q.ROW_MODEL_TYPE_VIEWPORT},t.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===Q.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.isRowModelDefault=function(){return n(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===Q.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},t.prototype.isSuppressFocusAfterRefresh=function(){return Ui(this.gridOptions.suppressFocusAfterRefresh)},t.prototype.isSuppressBrowserResizeObserver=function(){return Ui(this.gridOptions.suppressBrowserResizeObserver)},t.prototype.isSuppressMaintainUnsortedOrder=function(){return Ui(this.gridOptions.suppressMaintainUnsortedOrder)},t.prototype.isSuppressClearOnFillReduction=function(){return Ui(this.gridOptions.suppressClearOnFillReduction)},t.prototype.isShowToolPanel=function(){return Ui(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.isSuppressTouch=function(){return Ui(this.gridOptions.suppressTouch)},t.prototype.isMaintainColumnOrder=function(){return Ui(this.gridOptions.maintainColumnOrder)},t.prototype.isSuppressRowTransform=function(){return Ui(this.gridOptions.suppressRowTransform)},t.prototype.isSuppressColumnStateEvents=function(){return Ui(this.gridOptions.suppressColumnStateEvents)},t.prototype.isAllowDragFromColumnsToolPanel=function(){return Ui(this.gridOptions.allowDragFromColumnsToolPanel)},t.prototype.useAsyncEvents=function(){return!Ui(this.gridOptions.suppressAsyncEvents)},t.prototype.isEnableCellChangeFlash=function(){return Ui(this.gridOptions.enableCellChangeFlash)},t.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},t.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},t.prototype.isGroupSelectsChildren=function(){return Ui(this.gridOptions.groupSelectsChildren)},t.prototype.isSuppressRowHoverHighlight=function(){return Ui(this.gridOptions.suppressRowHoverHighlight)},t.prototype.isColumnHoverHighlight=function(){return Ui(this.gridOptions.columnHoverHighlight)},t.prototype.isGroupSelectsFiltered=function(){return Ui(this.gridOptions.groupSelectsFiltered)},t.prototype.isGroupHideOpenParents=function(){return Ui(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupMaintainOrder=function(){return Ui(this.gridOptions.groupMaintainOrder)},t.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},t.prototype.isColumnsSortingCoupledToGroup=function(){var t,i=this.getAutoGroupColumnDef();return this.isRowModelDefault()&&!(null===(t=i)||void 0===t?void 0:t.comparator)},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):Ui(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupUseEntireRow=function(t){return!t&&!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType)},t.prototype.isRowGroupPanelSuppressSort=function(){return Ui(this.gridOptions.rowGroupPanelSuppressSort)},t.prototype.isGroupRowsSticky=function(){return Ui(this.gridOptions.groupRowsSticky)},t.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},t.prototype.isGroupRemoveSingleChildren=function(){return Ui(this.gridOptions.groupRemoveSingleChildren)},t.prototype.isGroupRemoveLowestSingleChildren=function(){return Ui(this.gridOptions.groupRemoveLowestSingleChildren)},t.prototype.isGroupIncludeFooter=function(){return Ui(this.gridOptions.groupIncludeFooter)},t.prototype.isGroupIncludeTotalFooter=function(){return Ui(this.gridOptions.groupIncludeTotalFooter)},t.prototype.isGroupSuppressBlankHeader=function(){return Ui(this.gridOptions.groupSuppressBlankHeader)},t.prototype.isSuppressRowClickSelection=function(){return Ui(this.gridOptions.suppressRowClickSelection)},t.prototype.isSuppressCellFocus=function(){return Ui(this.gridOptions.suppressCellFocus)},t.prototype.isSuppressMultiSort=function(){return Ui(this.gridOptions.suppressMultiSort)},t.prototype.isAlwaysMultiSort=function(){return Ui(this.gridOptions.alwaysMultiSort)},t.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},t.prototype.isPivotSuppressAutoColumn=function(){return Ui(this.gridOptions.pivotSuppressAutoColumn)},t.prototype.isSuppressDragLeaveHidesColumns=function(){return Ui(this.gridOptions.suppressDragLeaveHidesColumns)},t.prototype.isSuppressRowGroupHidesColumns=function(){return Ui(this.gridOptions.suppressRowGroupHidesColumns)},t.prototype.isSuppressScrollOnNewData=function(){return Ui(this.gridOptions.suppressScrollOnNewData)},t.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return Ui(this.gridOptions.suppressScrollWhenPopupsAreOpen)},t.prototype.isRowDragEntireRow=function(){return Ui(this.gridOptions.rowDragEntireRow)},t.prototype.getRowDragText=function(t){if(t){var i=t.getColDef();if(i.rowDragText)return i.rowDragText}return this.gridOptions.rowDragText},t.prototype.isSuppressRowDrag=function(){return Ui(this.gridOptions.suppressRowDrag)},t.prototype.isRowDragManaged=function(){return Ui(this.gridOptions.rowDragManaged)},t.prototype.isSuppressMoveWhenRowDragging=function(){return Ui(this.gridOptions.suppressMoveWhenRowDragging)},t.prototype.isRowDragMultiRow=function(){return Ui(this.gridOptions.rowDragMultiRow)},t.prototype.getDomLayout=function(){var t=this.gridOptions.domLayout||Q.DOM_LAYOUT_NORMAL;return-1===[Q.DOM_LAYOUT_PRINT,Q.DOM_LAYOUT_AUTO_HEIGHT,Q.DOM_LAYOUT_NORMAL].indexOf(t)?(O((function(){return console.warn("AG Grid: "+t+" is not valid for DOM Layout, valid values are "+Q.DOM_LAYOUT_NORMAL+", "+Q.DOM_LAYOUT_AUTO_HEIGHT+" and "+Q.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),Q.DOM_LAYOUT_NORMAL):t},t.prototype.isSuppressHorizontalScroll=function(){return Ui(this.gridOptions.suppressHorizontalScroll)},t.prototype.isSuppressMaxRenderedRowRestriction=function(){return Ui(this.gridOptions.suppressMaxRenderedRowRestriction)},t.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Ui(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},t.prototype.isAlwaysShowHorizontalScroll=function(){return Ui(this.gridOptions.alwaysShowHorizontalScroll)},t.prototype.isAlwaysShowVerticalScroll=function(){return Ui(this.gridOptions.alwaysShowVerticalScroll)},t.prototype.isDebounceVerticalScrollbar=function(){return Ui(this.gridOptions.debounceVerticalScrollbar)},t.prototype.isSuppressLoadingOverlay=function(){return Ui(this.gridOptions.suppressLoadingOverlay)},t.prototype.isSuppressNoRowsOverlay=function(){return Ui(this.gridOptions.suppressNoRowsOverlay)},t.prototype.isSuppressFieldDotNotation=function(){return Ui(this.gridOptions.suppressFieldDotNotation)},t.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},t.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},t.prototype.isFunctionsPassive=function(){return Ui(this.gridOptions.functionsPassive)},t.prototype.isSuppressChangeDetection=function(){return Ui(this.gridOptions.suppressChangeDetection)},t.prototype.isSuppressAnimationFrame=function(){return Ui(this.gridOptions.suppressAnimationFrame)},t.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},t.prototype.isCacheQuickFilter=function(){return Ui(this.gridOptions.cacheQuickFilter)},t.prototype.isUnSortIcon=function(){return Ui(this.gridOptions.unSortIcon)},t.prototype.isSuppressMenuHide=function(){return Ui(this.gridOptions.suppressMenuHide)},t.prototype.isEnterMovesDownAfterEdit=function(){return Ui(this.gridOptions.enterMovesDownAfterEdit)},t.prototype.isEnterMovesDown=function(){return Ui(this.gridOptions.enterMovesDown)},t.prototype.isUndoRedoCellEditing=function(){return Ui(this.gridOptions.undoRedoCellEditing)},t.prototype.getUndoRedoCellEditingLimit=function(){return Ki(this.gridOptions.undoRedoCellEditingLimit)},t.prototype.isEnableCellEditingOnBackspace=function(){return Ui(this.gridOptions.enableCellEditingOnBackspace)},t.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},t.prototype.getRowClass=function(){return this.gridOptions.rowClass},t.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},t.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},t.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},t.prototype.isServerSideInfiniteScroll=function(){return Ui(this.gridOptions.serverSideInfiniteScroll)},t.prototype.getServerSideGroupLevelParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams)},t.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},t.prototype.getPopupParent=function(){return this.gridOptions.popupParent},t.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},t.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},t.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},t.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},t.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},t.prototype.getInitialGroupOrderComparator=function(){var t=this.gridOptions,i=t.initialGroupOrderComparator,n=t.defaultGroupOrderComparator;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.nodeA,t.nodeB)}:void 0},t.prototype.getIsFullWidthCellFunc=function(){var t=this.gridOptions,i=t.isFullWidthRow,n=t.isFullWidthCell;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.rowNode)}:void 0},t.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},t.prototype.isEmbedFullWidthRows=function(){return Ui(this.gridOptions.embedFullWidthRows)||Ui(this.gridOptions.deprecatedEmbedFullWidthRows)},t.prototype.isDetailRowAutoHeight=function(){return Ui(this.gridOptions.detailRowAutoHeight)},t.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},t.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},t.prototype.getApi=function(){return this.gridOptions.api},t.prototype.getColumnApi=function(){return this.gridOptions.columnApi},t.prototype.isReadOnlyEdit=function(){return Ui(this.gridOptions.readOnlyEdit)},t.prototype.isImmutableData=function(){var t=null!=this.gridOptions.getRowId,i=Ui(this.gridOptions.immutableData);return!Ui(this.gridOptions.resetRowDataOnUpdate)&&(t||i)},t.prototype.isEnsureDomOrder=function(){return Ui(this.gridOptions.ensureDomOrder)},t.prototype.isEnableCharts=function(){return!!Ui(this.gridOptions.enableCharts)&&X.assertRegistered(q.GridChartsModule,"enableCharts")},t.prototype.isEnableChartToolPanelsButton=function(){return Ui(this.gridOptions.enableChartToolPanelsButton)},t.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},t.prototype.isSingleClickEdit=function(){return Ui(this.gridOptions.singleClickEdit)},t.prototype.isSuppressClickEdit=function(){return Ui(this.gridOptions.suppressClickEdit)},t.prototype.isStopEditingWhenCellsLoseFocus=function(){return Ui(this.gridOptions.stopEditingWhenCellsLoseFocus)},t.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},t.prototype.getMaxConcurrentDatasourceRequests=function(){var t=Ki(this.gridOptions.maxConcurrentDatasourceRequests);return null==t?2:t<=0?void 0:t},t.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},t.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},t.prototype.getPaginationPageSize=function(){return Ki(this.gridOptions.paginationPageSize)},t.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||Ui(this.gridOptions.paginateChildRows)},t.prototype.getCacheBlockSize=function(){return qi(this.gridOptions.cacheBlockSize)},t.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},t.prototype.getServerSideInitialRowCount=function(){var t=this.gridOptions.serverSideInitialRowCount;return"number"==typeof t&&t>0?t:1},t.prototype.isPurgeClosedRowNodes=function(){return Ui(this.gridOptions.purgeClosedRowNodes)},t.prototype.isSuppressPaginationPanel=function(){return Ui(this.gridOptions.suppressPaginationPanel)},t.prototype.getRowData=function(){return this.gridOptions.rowData},t.prototype.isEnableRtl=function(){return Ui(this.gridOptions.enableRtl)},t.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},t.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},t.prototype.isAngularCompileRows=function(){return Ui(this.gridOptions.angularCompileRows)},t.prototype.isAngularCompileFilters=function(){return Ui(this.gridOptions.angularCompileFilters)},t.prototype.isDebug=function(){return Ui(this.gridOptions.debug)},t.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},t.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},t.prototype.getDatasource=function(){return this.gridOptions.datasource},t.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},t.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},t.prototype.isAccentedSort=function(){return Ui(this.gridOptions.accentedSort)},t.prototype.isEnableBrowserTooltips=function(){return Ui(this.gridOptions.enableBrowserTooltips)},t.prototype.isEnableCellExpressions=function(){return Ui(this.gridOptions.enableCellExpressions)},t.prototype.isEnableGroupEdit=function(){return Ui(this.gridOptions.enableGroupEdit)},t.prototype.isSuppressMiddleClickScrolls=function(){return Ui(this.gridOptions.suppressMiddleClickScrolls)},t.prototype.isPreventDefaultOnContextMenu=function(){return Ui(this.gridOptions.preventDefaultOnContextMenu)},t.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Ui(this.gridOptions.suppressPreventDefaultOnMouseWheel)},t.prototype.isSuppressColumnVirtualisation=function(){return Ui(this.gridOptions.suppressColumnVirtualisation)},t.prototype.isSuppressRowVirtualisation=function(){return Ui(this.gridOptions.suppressRowVirtualisation)},t.prototype.isSuppressContextMenu=function(){return Ui(this.gridOptions.suppressContextMenu)},t.prototype.isAllowContextMenuWithControlKey=function(){return Ui(this.gridOptions.allowContextMenuWithControlKey)},t.prototype.isSuppressCopyRowsToClipboard=function(){return Ui(this.gridOptions.suppressCopyRowsToClipboard)},t.prototype.isSuppressCopySingleCellRanges=function(){return Ui(this.gridOptions.suppressCopySingleCellRanges)},t.prototype.isCopyHeadersToClipboard=function(){return Ui(this.gridOptions.copyHeadersToClipboard)},t.prototype.isCopyGroupHeadersToClipboard=function(){return Ui(this.gridOptions.copyGroupHeadersToClipboard)},t.prototype.isSuppressClipboardPaste=function(){return Ui(this.gridOptions.suppressClipboardPaste)},t.prototype.isSuppressLastEmptyLineOnPaste=function(){return Ui(this.gridOptions.suppressLastEmptyLineOnPaste)},t.prototype.isPagination=function(){return Ui(this.gridOptions.pagination)},t.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Ui(this.gridOptions.suppressEnterpriseResetOnNewColumns)},t.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},t.prototype.getAsyncTransactionWaitMillis=function(){return i(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:Q.BATCH_WAIT_MILLIS},t.prototype.isSuppressMovableColumns=function(){return Ui(this.gridOptions.suppressMovableColumns)},t.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Ui(this.gridOptions.animateRows)},t.prototype.isSuppressColumnMoveAnimation=function(){return Ui(this.gridOptions.suppressColumnMoveAnimation)},t.prototype.isSuppressAggFuncInHeader=function(){return Ui(this.gridOptions.suppressAggFuncInHeader)},t.prototype.isSuppressAggAtRootLevel=function(){return Ui(this.gridOptions.suppressAggAtRootLevel)},t.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||Ui(this.gridOptions.suppressAggFilteredOnly)},t.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return Ui(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},t.prototype.isShowOpenedGroup=function(){return Ui(this.gridOptions.showOpenedGroup)},t.prototype.isReactUi=function(){return Ui(this.gridOptions.reactUi)},t.prototype.isSuppressReactUi=function(){return Ui(this.gridOptions.suppressReactUi)},t.prototype.isEnableRangeSelection=function(){return X.isRegistered(q.RangeSelectionModule)&&Ui(this.gridOptions.enableRangeSelection)},t.prototype.isEnableRangeHandle=function(){return Ui(this.gridOptions.enableRangeHandle)},t.prototype.isEnableFillHandle=function(){return Ui(this.gridOptions.enableFillHandle)},t.prototype.getFillHandleDirection=function(){var t=this.gridOptions.fillHandleDirection;return t?"x"!==t&&"y"!==t&&"xy"!==t?(O((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):t:"xy"},t.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},t.prototype.isSuppressMultiRangeSelection=function(){return Ui(this.gridOptions.suppressMultiRangeSelection)},t.prototype.isPaginationAutoPageSize=function(){return Ui(this.gridOptions.paginationAutoPageSize)},t.prototype.isRememberGroupStateWhenNewData=function(){return Ui(this.gridOptions.rememberGroupStateWhenNewData)},t.prototype.getIcons=function(){return this.gridOptions.icons},t.prototype.getGroupAggFiltering=function(){var t=this.gridOptions.groupAggFiltering;return"function"==typeof t?this.mergeGridCommonParams(t):Ui(t)?function(){return!0}:void 0},t.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},t.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},t.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},t.prototype.isMasterDetail=function(){return!!Ui(this.gridOptions.masterDetail)&&X.assertRegistered(q.MasterDetailModule,"masterDetail")},t.prototype.isKeepDetailRows=function(){return Ui(this.gridOptions.keepDetailRows)},t.prototype.getKeepDetailRowsCount=function(){var t=this.gridOptions.keepDetailRowsCount;return i(t)&&t>0?this.gridOptions.keepDetailRowsCount:10},t.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},t.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},t.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},t.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},t.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},t.prototype.isSuppressAutoSize=function(){return Ui(this.gridOptions.suppressAutoSize)},t.prototype.isEnableCellTextSelection=function(){return Ui(this.gridOptions.enableCellTextSelection)},t.prototype.isSuppressParentsInRowNodes=function(){return Ui(this.gridOptions.suppressParentsInRowNodes)},t.prototype.isSuppressClipboardApi=function(){return Ui(this.gridOptions.suppressClipboardApi)},t.prototype.isFunctionsReadOnly=function(){return Ui(this.gridOptions.functionsReadOnly)},t.prototype.isEnableCellTextSelect=function(){return Ui(this.gridOptions.enableCellTextSelection)},t.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},t.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},t.prototype.getDefaultExportParams=function(t){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+Wt(t)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===t&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===t&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},t.prototype.isSuppressCsvExport=function(){return Ui(this.gridOptions.suppressCsvExport)},t.prototype.isAllowShowChangeAfterFilter=function(){return Ui(this.gridOptions.allowShowChangeAfterFilter)},t.prototype.isSuppressExcelExport=function(){return Ui(this.gridOptions.suppressExcelExport)},t.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Ui(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},t.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},t.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},t.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},t.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},t.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},t.prototype.getGroupRowAggFunc=function(){var t=this.gridOptions,i=t.getGroupRowAgg,n=t.groupRowAggNodes;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.nodes)}:void 0},t.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},t.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},t.prototype.getRowIdFunc=function(){var t=this.gridOptions,i=t.getRowId,n=t.getRowNodeId;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.data)}:void 0},t.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},t.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},t.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},t.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},t.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},t.prototype.isTreeData=function(){return!!Ui(this.gridOptions.treeData)&&X.assertRegistered(q.RowGroupingModule,"Tree Data")},t.prototype.isValueCache=function(){return Ui(this.gridOptions.valueCache)},t.prototype.isValueCacheNeverExpires=function(){return Ui(this.gridOptions.valueCacheNeverExpires)},t.prototype.isDeltaSort=function(){return Ui(this.gridOptions.deltaSort)},t.prototype.isAggregateOnlyChangedColumns=function(){return Ui(this.gridOptions.aggregateOnlyChangedColumns)},t.prototype.getProcessPivotResultColDefFunc=function(){return this.gridOptions.processPivotResultColDef||this.gridOptions.processSecondaryColDef},t.prototype.getProcessPivotResultColGroupDefFunc=function(){return this.gridOptions.processPivotResultColGroupDef||this.gridOptions.processSecondaryColGroupDef},t.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},t.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},t.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},t.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},t.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},t.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},t.prototype.getViewportRowModelPageSize=function(){return qi(this.gridOptions.viewportRowModelPageSize,5)},t.prototype.getViewportRowModelBufferSize=function(){return 5,(t=this.gridOptions.viewportRowModelBufferSize)>=0?t:5;var t},t.prototype.isServerSideSortAllLevels=function(){var t=Ui(this.gridOptions.serverSideSortAllLevels);return!this.isRowModelServerSide()&&t?(O((function(){return console.warn("AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.")}),"serverSideSortAllLevels"),!1):t},t.prototype.isServerSideFilterAllLevels=function(){var t=Ui(this.gridOptions.serverSideFilterAllLevels);return!this.isRowModelServerSide()&&t?(O((function(){return console.warn("AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.")}),"serverSideFilterAllLevels"),!1):t},t.prototype.isServerSideSortOnServer=function(){var t=Ui(this.gridOptions.serverSideSortOnServer);return!this.isRowModelServerSide()&&t?(O((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.")}),"serverSideSortOnServerRowModel"),!1):this.isTreeData()&&t?(O((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.")}),"serverSideSortOnServerTreeData"),!1):t},t.prototype.isServerSideFilterOnServer=function(){var t=Ui(this.gridOptions.serverSideFilterOnServer);return!this.isRowModelServerSide()&&t?(O((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.")}),"serverSideFilterOnServerRowModel"),!1):this.isTreeData()&&t?(O((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.")}),"serverSideFilterOnServerTreeData"),!1):t},t.prototype.getPostSortFunc=function(){var t=this.gridOptions,i=t.postSortRows,n=t.postSort;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.nodes)}:void 0},t.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},t.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},t.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},t.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},t.prototype.getChartToolPanelsDef=function(){return this.gridOptions.chartToolPanelsDef},t.prototype.getClipboardDelimiter=function(){return i(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},t.prototype.setProperty=function(t,i,n){void 0===n&&(n=!1);var e=this.gridOptions[t];(n||e!==i)&&(this.gridOptions[t]=i,this.propertyEventService.dispatchEvent({type:t,currentValue:i,previousValue:e}))},t.prototype.addEventListener=function(t,i){this.propertyEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.propertyEventService.removeEventListener(t,i)},t.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},t.prototype.getAutoSizePadding=function(){var t=this.gridOptions.autoSizePadding;return null!=t&&t>=0?t:20},t.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},t.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},t.prototype.doesExternalFilterPass=function(t){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(t)},t.prototype.getTooltipDelay=function(t){var n=this.gridOptions,e="show"===t?n.tooltipShowDelay:n.tooltipHideDelay,r=Wt(t);return i(e)?(e<0&&O((function(){return console.warn("ag-grid: tooltip"+r+"Delay should not be lower than 0")}),"tooltip"+r+"DelayWarn"),Math.max(200,e)):null},t.prototype.isTooltipMouseTrack=function(){return Ui(this.gridOptions.tooltipMouseTrack)},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return Ui(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&i(this.gridOptions.getDocument)?t=this.gridOptions.getDocument():this.eGridDiv&&(t=this.eGridDiv.ownerDocument),t&&i(t)?t:document},t.prototype.getMinColWidth=function(){var t=this.gridOptions.minColWidth;if(i(t)&&t>e.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var n=this.getFromTheme(null,"headerCellMinWidth");return i(n)?Math.max(n,e.MIN_COL_WIDTH):e.MIN_COL_WIDTH},t.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>e.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},t.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<e.MIN_COL_WIDTH?200:this.gridOptions.colWidth},t.prototype.getRowBuffer=function(){var t=this.gridOptions.rowBuffer;return"number"==typeof t?t<0&&(O((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=t=0):t=Q.ROW_BUFFER_SIZE,t},t.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var t="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Si();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:Tt.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.checkForDeprecated=function(){var t=this.gridOptions;t.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),t.enableMultiRowDragging&&(t.rowDragMultiRow=!0,delete t.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var i=function(i,n,e){null!=t[i]&&(console.warn("AG Grid: since version "+e+", '"+i+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==t[n]&&(t[n]=t[i]))};if(i("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),i("deltaRowDataMode","immutableData","23.1.x"),i("serverSideFilteringAlwaysResets","serverSideFilterAllLevels","28.0.0"),i("serverSideSortingAlwaysResets","serverSideSortAllLevels","28.0.0"),(t.immutableColumns||t.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),i("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),t.groupRowInnerRenderer||t.groupRowInnerRendererParams||t.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),t.groupRowRendererParams||(t.groupRowRendererParams={});var n=t.groupRowRendererParams;t.groupRowInnerRenderer&&(n.innerRenderer=t.groupRowInnerRenderer),t.groupRowInnerRendererParams&&(n.innerRendererParams=t.groupRowInnerRendererParams),t.groupRowInnerRendererFramework&&(n.innerRendererFramework=t.groupRowInnerRendererFramework)}t.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),t.detailCellRendererParams&&t.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),t.detailRowAutoHeight=!0),t.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),t.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),t.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),t.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),t.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),t.stopEditingWhenCellsLoseFocus=!0),t.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),t.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),t.groupDisplayType="multipleColumns"),t.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),t.groupDisplayType="groupRows"),t.groupSuppressAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+(t.treeData?"treeDataDisplayType":"groupDisplayType")+" = 'custom'`"),t.groupDisplayType="custom"),t.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),t.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),t.defaultGroupOrderComparator=t.defaultGroupSortComparator),t.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),t.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),t.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),t.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),t.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),t.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),t.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),t.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),t.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),t.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),t.suppressCellFocus=t.suppressCellSelection),t.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),t.immutableData&&(t.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),t.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),t.clipboardDelimiter=t.clipboardDeliminator),i("processSecondaryColDef","processPivotResultColDef","28.0.x"),i("processSecondaryColGroupDef","processPivotResultColGroupDef","28.0.x"),t.serverSideStoreType&&(console.warn("AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store."),t.serverSideInfiniteScroll="partial"===t.serverSideStoreType),i("getServerSideStoreParams","getServerSideGroupLevelParams","28.0.x")},t.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.isRowModelDefault()&&n(this.getDataPathFunc())&&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.isRowModelServerSide()&&(n(this.getIsServerSideGroupFunc())&&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."),n(this.getServerSideGroupKeyFunc())&&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."))},t.prototype.getLocaleTextFunc=function(){var t=this,i=this.gridOptions,n=i.localeText,e=i.getLocaleText;return e?function(i,n,r){var o={key:i,defaultValue:n,variableValues:r,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()};return e(o)}:i.localeTextFunc||function(t,i,e){var r=n&&n[t];if(r&&e&&e.length)for(var o=0;!(o>=e.length)&&-1!==r.indexOf("${variable}");)r=r.replace("${variable}",e[o++]);return null!=r?r:i}},t.prototype.globalEventHandler=function(t,i){if(!this.destroyed){var n=ii.getCallbackForEvent(t);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](i)}},t.prototype.setRowHeightVariable=function(t){var i=t+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=i&&this.eGridDiv.style.setProperty("--ag-line-height",i)},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||n(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var t=this.gridOptions.rowHeight;return t&&this.isNumeric(t)?(this.setRowHeightVariable(t),t):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},t.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(t,i,n){if(void 0===i&&(i=!1),null==n&&(n=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(i)return{height:n,estimated:!0};var e={node:t,data:t.data},r=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(e);if(this.isNumeric(r))return 0===r&&O((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,r),estimated:!1}}return t.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},t.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},t.prototype.isNumeric=function(t){return!isNaN(t)&&"number"==typeof t&&isFinite(t)},t.prototype.getFromTheme=function(t,i){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,i):t},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},t.prototype.matchesGroupDisplayType=function(t,i){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):i===t},t.prototype.matchesTreeDataDisplayType=function(t,i){var n=["auto","custom"];return n.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):i===t},t.MIN_COL_WIDTH=10,t.PROP_HEADER_HEIGHT="headerHeight",t.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",t.PROP_GROUP_DISPLAY_TYPE="groupDisplayType",t.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",t.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",t.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",t.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",t.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",t.PROP_TAB_TO_NEXT_CELL="tabToNextCell",t.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",t.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",t.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",t.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",t.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",t.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",t.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",t.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",t.PROP_GET_ROW_CLASS="getRowClass",t.PROP_GET_ROW_STYLE="getRowStyle",t.PROP_GET_ROW_HEIGHT="getRowHeight",t.PROP_POPUP_PARENT="popupParent",t.PROP_DOM_LAYOUT="domLayout",t.PROP_ROW_CLASS="rowClass",t.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",t.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",t.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",t.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",t.PROP_GET_CHILD_COUNT="getChildCount",t.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",t.PROP_GET_ROW_NODE_ID="getRowNodeId",t.PROP_GET_ROW_ID="getRowId",t.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",t.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",t.PROP_IS_ROW_SELECTABLE="isRowSelectable",t.PROP_IS_ROW_MASTER="isRowMaster",t.PROP_POST_SORT="postSort",t.PROP_POST_SORT_ROWS="postSortRows",t.PROP_GET_DOCUMENT="getDocument",t.PROP_POST_PROCESS_POPUP="postProcessPopup",t.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",t.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",t.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",t.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",t.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",t.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",t.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",t.PROP_SEND_TO_CLIPBOARD="sendToClipboard",t.PROP_PROCESS_PIVOT_RESULT_COL_DEF="processPivotResultColDef",t.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF="processPivotResultColGroupDef",t.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",t.PROP_GET_SERVER_SIDE_GROUP_PARAMS="getServerSideGroupLevelParams",t.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",t.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",t.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",t.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",t.PROP_AUTO_GROUP_COLUMN_DEF="autoGroupColumnDef",t.PROP_DEFAULT_COL_DEF="defaultColDef",Bi([W("gridOptions")],t.prototype,"gridOptions",void 0),Bi([W("eventService")],t.prototype,"eventService",void 0),Bi([W("environment")],t.prototype,"environment",void 0),Bi([W("eGridDiv")],t.prototype,"eGridDiv",void 0),Bi([Wi(0,U("gridApi")),Wi(1,U("columnApi"))],t.prototype,"agWire",null),Bi([H],t.prototype,"destroy",null),Bi([L],t.prototype,"init",null),e=Bi([B("gridOptionsWrapper")],t)}(),Zi=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$i=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Qi=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Xi=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},tn=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Xi(arguments[i]));return t},nn=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.primaryHeaderRowCount=0,i.secondaryHeaderRowCount=0,i.gridHeaderRowCount=0,i.displayedColumnsLeft=[],i.displayedColumnsRight=[],i.displayedColumnsCenter=[],i.displayedColumns=[],i.displayedColumnsAndGroupsMap={},i.viewportColumns=[],i.viewportColumnsHash="",i.headerViewportColumns=[],i.viewportColumnsCenter=[],i.headerViewportColumnsCenter=[],i.autoHeightActiveAtLeastOnce=!1,i.rowGroupColumns=[],i.valueColumns=[],i.pivotColumns=[],i.ready=!1,i.autoGroupsNeedBuilding=!1,i.forceRecreateAutoGroups=!1,i.pivotMode=!1,i.bodyWidth=0,i.leftWidth=0,i.rightWidth=0,i.bodyWidthDirty=!0,i.flexColsCalculatedAtLestOnce=!1,i}var u;return Zi(r,t),r.prototype.init=function(){var t=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var i=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(i)&&(this.pivotMode=i),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_GROUP_DISPLAY_TYPE,(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_AUTO_GROUP_COLUMN_DEF,(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_DEFAULT_COL_DEF,(function(){return t.onDefaultColDefChanged()}))},r.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},r.prototype.onDefaultColDefChanged=function(){this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},r.prototype.setColumnDefs=function(t,i){void 0===i&&(i="api");var n=!!this.columnDefs;this.columnDefs=t,this.createColumnsFromColumnDefs(n,i)},r.prototype.createColumnsFromColumnDefs=function(t,i){var n=this;void 0===i&&(i="api");var e=t?this.compareColumnStatesAndRaiseEvents(i):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,o=this.columnFactory.createColumnTree(this.columnDefs,!0,this.primaryColumnTree);this.primaryColumnTree=o.columnTree,this.primaryHeaderRowCount=o.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(t){return n.primaryColumnsMap[t.getId()]=t})),this.extractRowGroupColumns(i,r),this.extractPivotColumns(i,r),this.extractValueColumns(i,r),this.ready=!0,(this.gridColsArePrimary||void 0===this.gridColsArePrimary)&&(this.updateGridColumns(),t&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(i),this.checkViewportColumns()),this.dispatchEverythingChanged(i),e&&e(),this.dispatchNewColumnsLoaded()},r.prototype.dispatchNewColumnsLoaded=function(){this.eventService.dispatchEvent({type:Tt.EVENT_NEW_COLUMNS_LOADED})},r.prototype.dispatchEverythingChanged=function(t){void 0===t&&(t="api"),this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_EVERYTHING_CHANGED,source:t})},r.prototype.orderGridColumnsLikePrimary=function(){var t=this,i=this.primaryColumns;i&&(this.gridColumns.sort((function(n,e){var r=i.indexOf(n),o=i.indexOf(e),s=r>=0,u=o>=0;return s&&u?r-o:s?1:u?-1:t.gridColumns.indexOf(n)-t.gridColumns.indexOf(e)})),this.gridColumns=this.placeLockedColumns(this.gridColumns))},r.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},r.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},r.prototype.getDisplayedColumnsStartingAt=function(t){for(var i=t,n=[];null!=i;)n.push(i),i=this.getDisplayedColAfter(i);return n},r.prototype.checkViewportColumns=function(){null!=this.displayedColumnsCenter&&this.extractViewport()&&this.eventService.dispatchEvent({type:Tt.EVENT_VIRTUAL_COLUMNS_CHANGED})},r.prototype.setViewportPosition=function(t,i){(t!==this.scrollWidth||i!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=i,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},r.prototype.isPivotMode=function(){return this.pivotMode},r.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},r.prototype.setPivotMode=function(t,i){void 0===i&&(i="api"),t!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=t,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(i),this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_PIVOT_MODE_CHANGED}))},r.prototype.getSecondaryPivotColumn=function(t,i){if(n(this.secondaryColumns))return null;var e=this.getPrimaryColumn(i),r=null;return this.secondaryColumns.forEach((function(i){var n=i.getColDef().pivotKeys,o=i.getColDef().pivotValueColumn;ot(n,t)&&o===e&&(r=i)})),r},r.prototype.setBeans=function(t){this.logger=t.create("columnModel")},r.prototype.setFirstRightAndLastLeftPinned=function(t){var i,n;this.gridOptionsWrapper.isEnableRtl()?(i=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?rt(this.displayedColumnsRight):null):(i=this.displayedColumnsLeft?rt(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(e){e.setLastLeftPinned(e===i,t),e.setFirstRightPinned(e===n,t)}))},r.prototype.autoSizeColumns=function(t){var i=this,n=t.columns,e=t.skipHeader,r=t.skipHeaderGroups,o=t.stopAtGroup,s=t.source,u=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var h=[],c=-1,a=null!=e?e:this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),f=null!=r?r:a;0!==c;)c=0,this.actionOnGridColumns(n,(function(t){if(h.indexOf(t)>=0)return!1;var n=i.autoWidthCalculator.getPreferredWidthForColumn(t,a);if(n>0){var e=i.normaliseColumnWidth(t,n);t.setActualWidth(e,u),h.push(t),c++}return!0}),u);f||this.autoSizeColumnGroupsByColumns(n,o),this.fireColumnResizedEvent(h,!0,"autosizeColumns")},r.prototype.fireColumnResizedEvent=function(t,i,n,e){void 0===e&&(e=null),t&&t.length&&this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:e,finished:i,source:n})},r.prototype.autoSizeColumn=function(t,i,n){void 0===n&&(n="api"),t&&this.autoSizeColumns({columns:[t],skipHeader:i,skipHeaderGroups:!0,source:n})},r.prototype.autoSizeColumnGroupsByColumns=function(t,i){var n,e,r,o,s,u=new Set;this.getGridColumns(t).forEach((function(t){for(var n=t.getParent();n&&n!=i;)n.isPadding()||u.add(n),n=n.getParent()}));try{for(var h=Qi(u),c=h.next();!c.done;c=h.next()){var a=c.value;try{for(var f=(r=void 0,Qi(this.ctrlsService.getHeaderRowContainerCtrls())),l=f.next();!l.done&&!(s=l.value.getHeaderCtrlForColumn(a));l=f.next());}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}s&&s.resizeLeafColumnsToFit()}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=h.return)&&e.call(h)}finally{if(n)throw n.error}}return[]},r.prototype.autoSizeAllColumns=function(t,i){void 0===i&&(i="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:t,source:i})},r.prototype.getColumnsFromTree=function(t){var i=[],n=function(t){for(var e=0;e<t.length;e++){var r=t[e];r instanceof nt?i.push(r):r instanceof gt&&n(r.getChildren())}};return n(t),i},r.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},r.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},r.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},r.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},r.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},r.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},r.prototype.isColumnDisplayed=function(t){return this.getAllDisplayedColumns().indexOf(t)>=0},r.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},r.prototype.getViewportColumns=function(){return this.viewportColumns},r.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsLeft):this.displayedColumnsLeft},r.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsRight):this.displayedColumnsRight},r.prototype.getDisplayedColumnsForRow=function(t,i,n,e){for(var r,o=[],s=null,u=function(u){var h,c=i[u],a=i.length-u,f=Math.min(c.getColSpan(t),a),l=[c];if(f>1){for(var d=f-1,v=1;v<=d;v++)l.push(i[u+v]);u+=d}n?(h=!1,l.forEach((function(t){n(t)&&(h=!0)}))):h=!0,h&&(0===o.length&&s&&e&&e(c)&&o.push(s),o.push(c)),s=c,r=u},h=0;h<i.length;h++)u(h),h=r;return o},r.prototype.getViewportCenterColumnsForRow=function(t){var n=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var e=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(t,this.displayedColumnsCenter,e,(function(t){var e=t.getLeft();return i(e)&&e>n.viewportLeft}))},r.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},r.prototype.isColumnInHeaderViewport=function(t){return!!t.isAutoHeaderHeight()||this.isColumnInRowViewport(t)},r.prototype.isColumnInRowViewport=function(t){if(t.isAutoHeight())return!0;var i=t.getLeft()||0,n=i+t.getActualWidth(),e=this.viewportLeft-200,r=this.viewportRight+200;return!(i<e&&n<e||i>r&&n>r)},r.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},r.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},r.prototype.updatePrimaryColumnList=function(t,i,n,r,o,s){var u=this;if(void 0===s&&(s="api"),t&&!e(t)){var h=!1;t.forEach((function(t){var e=u.getPrimaryColumn(t);if(e){if(n){if(i.indexOf(e)>=0)return;i.push(e)}else{if(i.indexOf(e)<0)return;ut(i,e)}r(e),h=!0}})),h&&(this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s),this.eventService.dispatchEvent({type:o,columns:i,column:1===i.length?i[0]:null,source:s}))}},r.prototype.setRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),i)},r.prototype.setRowGroupActive=function(t,i,n){t!==i.isRowGroupActive()&&(i.setRowGroupActive(t,n),t&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&this.setColumnVisible(i,!1,n),t||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||this.setColumnVisible(i,!0,n))},r.prototype.addRowGroupColumn=function(t,i){void 0===i&&(i="api"),t&&this.addRowGroupColumns([t],i)},r.prototype.addRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},r.prototype.removeRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},r.prototype.removeRowGroupColumn=function(t,i){void 0===i&&(i="api"),t&&this.removeRowGroupColumns([t],i)},r.prototype.addPivotColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,i)}),Tt.EVENT_COLUMN_PIVOT_CHANGED,i)},r.prototype.setPivotColumns=function(t,i){void 0===i&&(i="api"),this.setPrimaryColumnList(t,this.pivotColumns,Tt.EVENT_COLUMN_PIVOT_CHANGED,(function(t,n){n.setPivotActive(t,i)}),i)},r.prototype.addPivotColumn=function(t,i){void 0===i&&(i="api"),this.addPivotColumns([t],i)},r.prototype.removePivotColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,i)}),Tt.EVENT_COLUMN_PIVOT_CHANGED,i)},r.prototype.removePivotColumn=function(t,i){void 0===i&&(i="api"),this.removePivotColumns([t],i)},r.prototype.setPrimaryColumnList=function(t,n,e,r,o){var s=this;n.length=0,i(t)&&t.forEach((function(t){var i=s.getPrimaryColumn(t);i&&n.push(i)})),(this.primaryColumns||[]).forEach((function(t){var i=n.indexOf(t)>=0;r(i,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(o),this.fireColumnEvent(e,n,o)},r.prototype.setValueColumns=function(t,i){void 0===i&&(i="api"),this.setPrimaryColumnList(t,this.valueColumns,Tt.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),i)},r.prototype.setValueActive=function(t,i,n){if(t!==i.isValueActive()&&(i.setValueActive(t,n),t&&!i.getAggFunc())){var e=this.aggFuncService.getDefaultAggFunc(i);i.setAggFunc(e)}},r.prototype.addValueColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),Tt.EVENT_COLUMN_VALUE_CHANGED,i)},r.prototype.addValueColumn=function(t,i){void 0===i&&(i="api"),t&&this.addValueColumns([t],i)},r.prototype.removeValueColumn=function(t,i){void 0===i&&(i="api"),this.removeValueColumns([t],i)},r.prototype.removeValueColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),Tt.EVENT_COLUMN_VALUE_CHANGED,i)},r.prototype.normaliseColumnWidth=function(t,n){var e=t.getMinWidth();i(e)&&n<e&&(n=e);var r=t.getMaxWidth();return i(r)&&t.isGreaterThanMax(n)&&(n=r),n},r.prototype.getPrimaryOrGridColumn=function(t){return this.getPrimaryColumn(t)||this.getGridColumn(t)},r.prototype.setColumnWidths=function(t,i,n,e){var r=this;void 0===e&&(e="api");var o=[];t.forEach((function(t){var n=r.getPrimaryOrGridColumn(t.key);if(n&&(o.push({width:t.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(i=!i),i)){var e=r.getDisplayedColAfter(n);if(!e)return;var s=n.getActualWidth()-t.newWidth,u=e.getActualWidth()+s;o.push({width:u,ratios:[1],columns:[e]})}})),0!==o.length&&this.resizeColumnSets({resizeSets:o,finished:n,source:e})},r.prototype.checkMinAndMaxWidthsForSet=function(t){var n=t.width,e=0,r=0,o=!0;return t.columns.forEach((function(t){var n=t.getMinWidth();e+=n||0;var s=t.getMaxWidth();i(s)&&s>0?r+=s:o=!1})),n>=e&&(!o||n<=r)},r.prototype.resizeColumnSets=function(t){var n=this,e=t.resizeSets,r=t.finished,o=t.source;if(!e||e.every((function(t){return n.checkMinAndMaxWidthsForSet(t)}))){var s=[],u=[];e.forEach((function(t){var n=t.width,e=t.columns,r=t.ratios,h={},c={};e.forEach((function(t){return u.push(t)}));for(var a=!0,f=0,l=function(){if(++f>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";a=!1;var t=[],o=0,s=n;e.forEach((function(i,n){c[i.getId()]?s-=h[i.getId()]:(t.push(i),o+=r[n])}));var u=1/o;t.forEach((function(e,o){var f;o===t.length-1?f=s:(f=Math.round(r[o]*n*u),s-=f);var l=e.getMinWidth(),d=e.getMaxWidth();i(l)&&f<l?(f=l,c[e.getId()]=!0,a=!0):i(d)&&d>0&&f>d&&(f=d,c[e.getId()]=!0,a=!0),h[e.getId()]=f}))};a&&"break"!==l(););e.forEach((function(t){var i=h[t.getId()];t.getActualWidth()!==i&&(t.setActualWidth(i,o),s.push(t))}))}));var h=s.length>0,c=[];h&&(c=this.refreshFlexedColumns({resizingCols:u,skipSetLeft:!0}),this.setLeftValues(o),this.updateBodyWidths(),this.checkViewportColumns());var a=u.concat(c);(h||r)&&this.fireColumnResizedEvent(a,r,o,c)}else r&&this.fireColumnResizedEvent(e&&e.length>0?e[0].columns:null,r,o)},r.prototype.setColumnAggFunc=function(t,i,n){if(void 0===n&&(n="api"),t){var e=this.getPrimaryColumn(t);e&&(e.setAggFunc(i),this.fireColumnEvent(Tt.EVENT_COLUMN_VALUE_CHANGED,[e],n))}},r.prototype.fireColumnEvent=function(t,i,n){this.eventService.dispatchEvent({type:t,columns:i,column:i&&1==i.length?i[0]:null,source:n})},r.prototype.moveRowGroupColumn=function(t,i,n){void 0===n&&(n="api");var e=this.rowGroupColumns[t];this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(i,0,e),this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:n})},r.prototype.moveColumns=function(t,i,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),i>this.gridColumns.length-t.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+i),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var e=this.getGridColumns(t);!this.doesMovePassRules(e,i)||(at(this.gridColumns,e,i),this.updateDisplayedColumns(n),this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_MOVED,columns:e,column:1===e.length?e[0]:null,toIndex:i,source:n}),this.columnAnimationService.finish())},r.prototype.doesMovePassRules=function(t,i){var n=this.getProposedColumnOrder(t,i);return this.doesOrderPassRules(n)},r.prototype.doesOrderPassRules=function(t){return!!this.doesMovePassMarryChildren(t)&&!!this.doesMovePassLockedPositions(t)},r.prototype.getProposedColumnOrder=function(t,i){var n=this.gridColumns.slice();return at(n,t,i),n},r.prototype.sortColumnsLikeGridColumns=function(t){var i=this;!t||t.length<=1||t.filter((function(t){return i.gridColumns.indexOf(t)<0})).length>0||t.sort((function(t,n){return i.gridColumns.indexOf(t)-i.gridColumns.indexOf(n)}))},r.prototype.doesMovePassLockedPositions=function(t){var i=0,n=!0;return t.forEach((function(t){var e,r=(e=t.getColDef().lockPosition)?!0===e||"left"===e?0:2:1;r<i&&(n=!1),i=r})),n},r.prototype.doesMovePassMarryChildren=function(t){var i=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof gt){var e=n,r=e.getColGroupDef();if(r&&r.marryChildren){var o=[];e.getLeafColumns().forEach((function(i){var n=t.indexOf(i);o.push(n)})),Math.max.apply(Math,o)-Math.min.apply(Math,o)>e.getLeafColumns().length-1&&(i=!1)}}})),i},r.prototype.moveColumn=function(t,i,n){void 0===n&&(n="api"),this.moveColumns([t],i,n)},r.prototype.moveColumnByIndex=function(t,i,n){void 0===n&&(n="api"),this.moveColumn(this.gridColumns[t],i,n)},r.prototype.getColumnDefs=function(){var t=this;if(this.primaryColumns){var i=this.primaryColumns.slice();return this.gridColsArePrimary?i.sort((function(i,n){return t.gridColumns.indexOf(i)-t.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&i.sort((function(i,n){return t.lastPrimaryOrder.indexOf(i)-t.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(i,this.rowGroupColumns,this.pivotColumns)}},r.prototype.getBodyContainerWidth=function(){return this.bodyWidth},r.prototype.getContainerWidth=function(t){switch(t){case Q.PINNED_LEFT:return this.leftWidth;case Q.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},r.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedColumnsCenter),i=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==t,(this.bodyWidth!==t||this.leftWidth!==i||this.rightWidth!==n)&&(this.bodyWidth=t,this.leftWidth=i,this.rightWidth=n,this.eventService.dispatchEvent({type:Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED}))},r.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},r.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},r.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},r.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},r.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},r.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},r.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},r.prototype.getDisplayedColumns=function(t){switch(t){case Q.PINNED_LEFT:return this.getDisplayedLeftColumns();case Q.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},r.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},r.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},r.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},r.prototype.getAllGridColumns=function(){return this.gridColumns},r.prototype.isEmpty=function(){return e(this.gridColumns)},r.prototype.isRowGroupEmpty=function(){return e(this.rowGroupColumns)},r.prototype.setColumnVisible=function(t,i,n){void 0===n&&(n="api"),this.setColumnsVisible([t],i,n)},r.prototype.setColumnsVisible=function(t,i){void 0===i&&(i=!1),this.applyColumnState({state:t.map((function(t){return{colId:"string"==typeof t?t:t.getColId(),hide:!i}}))})},r.prototype.setColumnPinned=function(t,i,n){void 0===n&&(n="api"),t&&this.setColumnsPinned([t],i,n)},r.prototype.setColumnsPinned=function(t,i,n){var e;void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),e=!0===i||i===Q.PINNED_LEFT?Q.PINNED_LEFT:i===Q.PINNED_RIGHT?Q.PINNED_RIGHT:null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==e&&(t.setPinned(e),!0)}),n,(function(){return{type:Tt.EVENT_COLUMN_PINNED,pinned:e,column:null,columns:null,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},r.prototype.actionOnGridColumns=function(t,n,r,o){var s=this;if(!e(t)){var u=[];if(t.forEach((function(t){var i=s.getGridColumn(t);i&&!1!==n(i)&&u.push(i)})),u.length&&(this.updateDisplayedColumns(r),i(o)&&o)){var h=o();h.columns=u,h.column=1===u.length?u[0]:null,this.eventService.dispatchEvent(h)}}},r.prototype.getDisplayedColBefore=function(t){var i=this.getAllDisplayedColumns(),n=i.indexOf(t);return n>0?i[n-1]:null},r.prototype.getDisplayedColAfter=function(t){var i=this.getAllDisplayedColumns(),n=i.indexOf(t);return n<i.length-1?i[n+1]:null},r.prototype.getDisplayedGroupAfter=function(t){return this.getDisplayedGroupAtDirection(t,"After")},r.prototype.getDisplayedGroupBefore=function(t){return this.getDisplayedGroupAtDirection(t,"Before")},r.prototype.getDisplayedGroupAtDirection=function(t,i){for(var n=t.getProvidedColumnGroup().getLevel()+t.getPaddingLevel(),e=t.getDisplayedLeafColumns(),r="After"===i?rt(e):e[0],o="getDisplayedCol"+i;;){var s=this[o](r);if(!s)return null;var u=this.getColumnGroupAtLevel(s,n);if(u!==t)return u}},r.prototype.getColumnGroupAtLevel=function(t,i){for(var n=t.getParent();!(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=i);)n=n.getParent();return n},r.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},r.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},r.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t;return(t=[]).concat.apply(t,tn([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},r.prototype.getPrimaryAndAutoGroupCols=function(){var t;return(t=[]).concat.apply(t,tn([this.primaryColumns||[],this.groupAutoColumns||[]]))},r.prototype.getPrimaryAndSecondaryColumns=function(){var t;return(t=[]).concat.apply(t,tn([this.primaryColumns||[],this.secondaryColumns||[]]))},r.prototype.createStateItemFromColumn=function(t){var i=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,n=t.isPivotActive()?this.pivotColumns.indexOf(t):null,e=t.isValueActive()?t.getAggFunc():null,r=null!=t.getSort()?t.getSort():null,o=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:r,sortIndex:o,aggFunc:e,rowGroup:t.isRowGroupActive(),rowGroupIndex:i,pivot:t.isPivotActive(),pivotIndex:n,flex:s}},r.prototype.getColumnState=function(){if(n(this.primaryColumns)||!this.isAlive())return[];var t=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(t),t},r.prototype.orderColumnStateList=function(t){var i=Kt(this.gridColumns.map((function(t,i){return[t.getColId(),i]})));t.sort((function(t,n){return(i.has(t.colId)?i.get(t.colId):-1)-(i.has(n.colId)?i.get(n.colId):-1)}))},r.prototype.resetColumnState=function(t){void 0===t&&(t="api");var i=this.getColumnsFromTree(this.primaryColumnTree),e=[],r=1e3,o=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),i&&(s=s.concat(i)),s.forEach((function(t){var i=function(t,i){return null!=t?t:null!=i?i:null},s=t.getColDef(),u=i(s.sort,s.initialSort),h=i(s.sortIndex,s.initialSortIndex),c=i(s.hide,s.initialHide),a=i(s.pinned,s.initialPinned),f=i(s.width,s.initialWidth),l=i(s.flex,s.initialFlex),d=i(s.rowGroupIndex,s.initialRowGroupIndex),v=i(s.rowGroup,s.initialRowGroup);null!=d||null!=v&&0!=v||(d=null,v=null);var p=i(s.pivotIndex,s.initialPivotIndex),g=i(s.pivot,s.initialPivot);null!=p||null!=g&&0!=g||(p=null,g=null);var m=i(s.aggFunc,s.initialAggFunc),w={colId:t.getColId(),sort:u,sortIndex:h,hide:c,pinned:a,width:f,flex:l,rowGroup:v,rowGroupIndex:d,pivot:g,pivotIndex:p,aggFunc:m};n(d)&&v&&(w.rowGroupIndex=r++),n(p)&&g&&(w.pivotIndex=o++),e.push(w)})),this.applyColumnState({state:e,applyOrder:!0},t)},r.prototype.applyColumnState=function(t,n){var r=this;if(void 0===n&&(n="api"),e(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 o=function(i,e,o){var s=r.compareColumnStatesAndRaiseEvents(n);r.autoGroupsNeedBuilding=!0;var u=e.slice(),h={},c={},a=[],f=[],l=0,d=r.rowGroupColumns.slice(),v=r.pivotColumns.slice();i.forEach((function(i){var e=i.colId||"";if(e.startsWith(Q.GROUP_AUTO_COLUMN_ID))return a.push(i),void f.push(i);var s=o(e);s?(r.syncColumnWithStateItem(s,i,t.defaultState,h,c,!1,n),ut(u,s)):(f.push(i),l+=1)}));var p=function(i){return r.syncColumnWithStateItem(i,null,t.defaultState,h,c,!1,n)};u.forEach(p);var g=function(t,i,n,e){var r=t[n.getId()],o=t[e.getId()],s=null!=r,u=null!=o;if(s&&u)return r-o;if(s)return-1;if(u)return 1;var h=i.indexOf(n),c=i.indexOf(e),a=h>=0;return a&&c>=0?h-c:a?-1:1};r.rowGroupColumns.sort(g.bind(r,h,d)),r.pivotColumns.sort(g.bind(r,c,v)),r.updateGridColumns();var m=r.groupAutoColumns?r.groupAutoColumns.slice():[];return a.forEach((function(i){var e=r.getAutoColumn(i.colId);ut(m,e),r.syncColumnWithStateItem(e,i,t.defaultState,null,null,!0,n)})),m.forEach(p),r.applyOrderAfterApplyState(t),r.updateDisplayedColumns(n),r.dispatchEverythingChanged(n),s(),{unmatchedAndAutoStates:f,unmatchedCount:l}};this.columnAnimationService.start();var s=o(t.state||[],this.primaryColumns||[],(function(t){return r.getPrimaryColumn(t)})),u=s.unmatchedAndAutoStates,h=s.unmatchedCount;return(u.length>0||i(t.defaultState))&&(h=o(u,this.secondaryColumns||[],(function(t){return r.getSecondaryColumn(t)})).unmatchedCount),this.columnAnimationService.finish(),0===h},r.prototype.applyOrderAfterApplyState=function(t){var i=this;if(t.applyOrder&&t.state){var n=[],e={};t.state.forEach((function(t){if(t.colId&&!e[t.colId]){var r=i.gridColumnsMap[t.colId];r&&(n.push(r),e[t.colId]=!0)}}));var r=0;this.gridColumns.forEach((function(t){var i=t.getColId();null!=e[i]||(i.startsWith(Q.GROUP_AUTO_COLUMN_ID)?ct(n,t,r++):n.push(t))})),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},r.prototype.compareColumnStatesAndRaiseEvents=function(t){var i=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},e=this.getColumnState(),r={};return e.forEach((function(t){r[t.colId]=t})),function(){if(!i.gridOptionsWrapper.isSuppressColumnStateEvents()){var o=i.getPrimaryAndSecondaryAndAutoColumns(),s=function(n,e,r,o){ot(e.map(o),r.map(o))||i.eventService.dispatchEvent({type:n,columns:r,column:1===r.length?r[0]:null,source:t})},u=function(t){var i=[];return o.forEach((function(n){var e=r[n.getColId()];e&&t(e,n)&&i.push(n)})),i},h=function(t){return t.getColId()};s(Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,i.rowGroupColumns,h),s(Tt.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,i.pivotColumns,h),u((function(t,i){var n=null!=t.aggFunc,e=n!=i.isValueActive(),r=n&&t.aggFunc!=i.getAggFunc();return e||r})).length>0&&i.fireColumnEvent(Tt.EVENT_COLUMN_VALUE_CHANGED,i.valueColumns,t),i.fireColumnResizedEvent(u((function(t,i){return t.width!=i.getActualWidth()})),!0,t),i.raiseColumnPinnedEvent(u((function(t,i){return t.pinned!=i.getPinned()})),t),i.raiseColumnVisibleEvent(u((function(t,i){return t.hide==i.isVisible()})),t),u((function(t,i){return t.sort!=i.getSort()||t.sortIndex!=i.getSortIndex()})).length>0&&i.sortController.dispatchSortChangedEvents(t),i.raiseColumnMovedEvent(e,t)}}},r.prototype.raiseColumnPinnedEvent=function(t,i){if(t.length){var n=1===t.length?t[0]:null,e=this.getCommonValue(t,(function(t){return t.getPinned()}));this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_PINNED,pinned:null!=e?e:null,columns:t,column:n,source:i})}},r.prototype.getCommonValue=function(t,i){if(t&&0!=t.length){for(var n=i(t[0]),e=1;e<t.length;e++)if(n!==i(t[e]))return;return n}},r.prototype.raiseColumnVisibleEvent=function(t,i){if(t.length){var n=1===t.length?t[0]:null,e=this.getCommonValue(t,(function(t){return t.isVisible()}));this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_VISIBLE,visible:e,columns:t,column:n,source:i})}},r.prototype.raiseColumnMovedEvent=function(t,i){var n=this,e=this.getColumnState(),r={};e.forEach((function(t){return r[t.colId]=t}));var o={};t.forEach((function(t){r[t.colId]&&(o[t.colId]=!0)}));var s=t.filter((function(t){return o[t.colId]})),u=e.filter((function(t){return o[t.colId]})),h=[];u.forEach((function(t,i){var e=s&&s[i];if(e&&e.colId!==t.colId){var r=n.getGridColumn(e.colId);r&&h.push(r)}})),h.length&&this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_MOVED,columns:h,column:null,source:i})},r.prototype.syncColumnWithStateItem=function(t,n,e,r,o,s,u){if(t){var h=function(t,r){var o={value1:void 0,value2:void 0},s=!1;return n&&(void 0!==n[t]&&(o.value1=n[t],s=!0),i(r)&&void 0!==n[r]&&(o.value2=n[r],s=!0)),!s&&e&&(void 0!==e[t]&&(o.value1=e[t]),i(r)&&void 0!==e[r]&&(o.value2=e[r])),o},c=h("hide").value1;void 0!==c&&t.setVisible(!c,u);var a=h("pinned").value1;void 0!==a&&t.setPinned(a);var f=this.columnUtils.calculateColMinWidth(t.getColDef()),l=h("flex").value1;if(void 0!==l&&t.setFlex(l),t.getFlex()<=0){var d=h("width").value1;null!=d&&null!=f&&d>=f&&t.setActualWidth(d,u)}var v=h("sort").value1;void 0!==v&&t.setSort(v===Q.SORT_DESC||v===Q.SORT_ASC?v:void 0,u);var p=h("sortIndex").value1;if(void 0!==p&&t.setSortIndex(p),!s&&t.isPrimary()){var g=h("aggFunc").value1;void 0!==g&&("string"==typeof g?(t.setAggFunc(g),t.isValueActive()||(t.setValueActive(!0,u),this.valueColumns.push(t))):(i(g)&&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,u),ut(this.valueColumns,t))));var m=h("rowGroup","rowGroupIndex"),w=m.value1,b=m.value2;void 0===w&&void 0===b||("number"==typeof b||w?(t.isRowGroupActive()||(t.setRowGroupActive(!0,u),this.rowGroupColumns.push(t)),r&&"number"==typeof b&&(r[t.getId()]=b)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,u),ut(this.rowGroupColumns,t)));var y=h("pivot","pivotIndex"),C=y.value1,R=y.value2;void 0===C&&void 0===R||("number"==typeof R||C?(t.isPivotActive()||(t.setPivotActive(!0,u),this.pivotColumns.push(t)),o&&"number"==typeof R&&(o[t.getId()]=R)):t.isPivotActive()&&(t.setPivotActive(!1,u),ut(this.pivotColumns,t)))}}},r.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},r.prototype.getColumns=function(t,i){var n=[];return t&&t.forEach((function(t){var e=i(t);e&&n.push(e)})),n},r.prototype.getColumnWithValidation=function(t){if(null==t)return null;var i=this.getGridColumn(t);return i||console.warn("AG Grid: could not find column "+t),i},r.prototype.getPrimaryColumn=function(t){return this.primaryColumns?this.getColumn(t,this.primaryColumns,this.primaryColumnsMap):null},r.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns,this.gridColumnsMap)},r.prototype.getSecondaryColumn=function(t){return this.secondaryColumns?this.getColumn(t,this.secondaryColumns,this.secondaryColumnsMap):null},r.prototype.getColumn=function(t,i,n){if(!t)return null;if("string"==typeof t&&n[t])return n[t];for(var e=0;e<i.length;e++)if(this.columnsMatch(i[e],t))return i[e];return this.getAutoColumn(t)},r.prototype.getSourceColumnsForGroupColumn=function(t){var i=t.getColDef().showRowGroup;if(!i)return null;if(!0===i)return this.rowGroupColumns.slice(0);var n=this.getPrimaryColumn(i);return n?[n]:null},r.prototype.getAutoColumn=function(t){var e=this;return this.groupAutoColumns&&i(this.groupAutoColumns)&&!n(this.groupAutoColumns)&&this.groupAutoColumns.find((function(i){return e.columnsMatch(i,t)}))||null},r.prototype.columnsMatch=function(t,i){var n=t===i,e=t.getColDef()===i,r=t.getColId()==i;return n||e||r},r.prototype.getDisplayNameForColumn=function(t,i,n){if(void 0===n&&(n=!1),!t)return null;var e=this.getHeaderName(t.getColDef(),t,null,null,i);return n?this.wrapHeaderNameWithAggFunc(t,e):e},r.prototype.getDisplayNameForProvidedColumnGroup=function(t,i,n){var e=i?i.getColGroupDef():null;return e?this.getHeaderName(e,null,t,i,n):null},r.prototype.getDisplayNameForColumnGroup=function(t,i){return this.getDisplayNameForProvidedColumnGroup(t,t.getProvidedColumnGroup(),i)},r.prototype.getHeaderName=function(t,i,n,e,r){var o=t.headerValueGetter;if(o){var s={colDef:t,column:i,columnGroup:n,providedColumnGroup:e,location:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof o?o(s):"string"==typeof o?this.expressionService.evaluate(o,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=t.headerName?t.headerName:t.field?zt(t.field):""},r.prototype.wrapHeaderNameWithAggFunc=function(t,n){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return n;var e,r=t.getColDef().pivotValueColumn,o=null;if(i(r)){var s=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,u=void 0!==t.getColDef().pivotTotalColumnIds;if(s&&!u)return n;o=r?r.getAggFunc():null,e=!0}else{var h=t.isValueActive(),c=this.pivotMode||!this.isRowGroupEmpty();h&&c?(o=t.getAggFunc(),e=!0):e=!1}if(e){var a="string"==typeof o?o:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+n+")"}return n},r.prototype.getColumnGroup=function(t,i){if(!t)return null;if(t instanceof pt)return t;var n=this.getAllDisplayedTrees(),e="number"==typeof i,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof pt){var o=n;(e?t===o.getGroupId()&&i===o.getInstanceId():t===o.getGroupId())&&(r=o)}})),r},r.prototype.isReady=function(){return this.ready},r.prototype.extractValueColumns=function(t,i){this.valueColumns=this.extractColumns(i,this.valueColumns,(function(i,n){return i.setValueActive(n,t)}),(function(){}),(function(){}),(function(t){var i=t.aggFunc;return null===i||""===i?null:void 0!==i?!!i:void 0}),(function(t){return null!=t.initialAggFunc&&""!=t.initialAggFunc})),this.valueColumns.forEach((function(t){var i=t.getColDef();null!=i.aggFunc&&""!=i.aggFunc?t.setAggFunc(i.aggFunc):t.getAggFunc()||t.setAggFunc(i.initialAggFunc)}))},r.prototype.extractRowGroupColumns=function(t,i){this.rowGroupColumns=this.extractColumns(i,this.rowGroupColumns,(function(i,n){return i.setRowGroupActive(n,t)}),(function(t){return t.rowGroupIndex}),(function(t){return t.initialRowGroupIndex}),(function(t){return t.rowGroup}),(function(t){return t.initialRowGroup}))},r.prototype.extractColumns=function(t,i,n,e,r,u,h){void 0===t&&(t=[]),void 0===i&&(i=[]);var c=[],a=[];(this.primaryColumns||[]).forEach((function(n){var f=t.indexOf(n)<0,l=n.getColDef(),d=s(u(l)),v=s(h(l)),p=o(e(l)),g=o(r(l));(void 0!==d?d:void 0!==p?null!==p&&p>=0:f?void 0!==v?v:void 0!==g&&null!=g&&g>=0:i.indexOf(n)>=0)&&((f?null!=p||null!=g:null!=p)?c.push(n):a.push(n))}));var f=function(t){var i=e(t.getColDef()),n=r(t.getColDef());return null!=i?i:n};c.sort((function(t,i){var n=f(t),e=f(i);return n===e?0:n<e?-1:1}));var l=[].concat(c);return i.forEach((function(t){a.indexOf(t)>=0&&l.push(t)})),a.forEach((function(t){l.indexOf(t)<0&&l.push(t)})),i.forEach((function(t){l.indexOf(t)<0&&n(t,!1)})),l.forEach((function(t){i.indexOf(t)<0&&n(t,!0)})),l},r.prototype.extractPivotColumns=function(t,i){this.pivotColumns=this.extractColumns(i,this.pivotColumns,(function(i,n){return i.setPivotActive(n,t)}),(function(t){return t.pivotIndex}),(function(t){return t.initialPivotIndex}),(function(t){return t.pivot}),(function(t){return t.initialPivot}))},r.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var i=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof gt){var n=t.getColGroupDef(),e={groupId:t.getGroupId(),open:n?n.openByDefault:void 0};i.push(e)}})),this.setColumnGroupState(i,t)},r.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(i){i instanceof gt&&t.push({groupId:i.getGroupId(),open:i.isExpanded()})})),t},r.prototype.setColumnGroupState=function(t,i){var n=this;void 0===i&&(i="api"),this.columnAnimationService.start();var e=[];t.forEach((function(t){var i=t.open,r=n.getProvidedColumnGroup(t.groupId);r&&r.isExpanded()!==i&&(n.logger.log("columnGroupOpened("+r.getGroupId()+","+i+")"),r.setExpanded(i),e.push(r))})),this.updateGroupsAndDisplayedColumns(i),this.setFirstRightAndLastLeftPinned(i),e.forEach((function(t){n.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_GROUP_OPENED,columnGroup:t})})),this.columnAnimationService.finish()},r.prototype.setColumnGroupOpened=function(t,i,n){var e;void 0===n&&(n="api"),e=t instanceof gt?t.getId():t||"",this.setColumnGroupState([{groupId:e,open:i}],n)},r.prototype.getProvidedColumnGroup=function(t){"string"!=typeof t&&console.error("AG Grid: group key must be a string");var i=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){n instanceof gt&&n.getId()===t&&(i=n)})),i},r.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&n(this.secondaryColumns)?this.gridColumns.filter((function(i){var n=t.groupAutoColumns&&ft(t.groupAutoColumns,i),e=t.valueColumns&&ft(t.valueColumns,i);return n||e})):this.gridColumns.filter((function(i){return t.groupAutoColumns&&ft(t.groupAutoColumns,i)||i.isVisible()}))},r.prototype.checkColSpanActiveInCols=function(t){var n=!1;return t.forEach((function(t){i(t.getColDef().colSpan)&&(n=!0)})),n},r.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var n=function(n){var e=n.getColDef(),r=e.showRowGroup;e&&i(r)&&(t.groupDisplayColumns.push(n),"string"==typeof r?t.groupDisplayColumnsMap[r]=n:!0===r&&t.getRowGroupColumns().forEach((function(i){t.groupDisplayColumnsMap[i.getId()]=n})))};this.gridColumns.forEach(n),this.groupAutoColumns&&this.groupAutoColumns.forEach(n)},r.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},r.prototype.getGroupDisplayColumnForGroup=function(t){return this.groupDisplayColumnsMap[t]},r.prototype.updateDisplayedColumns=function(t){var i=this.calculateColumnsForDisplay();this.buildDisplayedTrees(i),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},r.prototype.isSecondaryColumnsPresent=function(){return i(this.secondaryColumns)},r.prototype.setSecondaryColumns=function(t,i){var e=this;void 0===i&&(i="api");var r=t&&t.length>0;if(r||!n(this.secondaryColumns)){if(r){this.processSecondaryColumnDefinitions(t);var o=this.columnFactory.createColumnTree(t,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=o.columnTree,this.secondaryHeaderRowCount=o.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(t){return e.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(i)}},r.prototype.processSecondaryColumnDefinitions=function(t){var n=this.gridOptionsWrapper.getProcessPivotResultColDefFunc(),e=this.gridOptionsWrapper.getProcessPivotResultColGroupDefFunc();if(n||e){var r=function(t){t.forEach((function(t){if(i(t.children)){var o=t;e&&e(o),r(o.children)}else n&&n(t)}))};t&&r(t)}},r.prototype.updateGridColumns=function(){var t=this,i=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var n=void 0;if(this.secondaryColumns&&this.secondaryBalancedTree){var e=this.secondaryColumns.every((function(i){return void 0!==t.gridColumnsMap[i.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,e&&(n=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,n=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&n){var r=Kt(this.groupAutoColumns.map((function(t){return[t,!0]})));n=n.filter((function(t){return r.has(t)})),n=tn(this.groupAutoColumns,n)}this.addAutoGroupToGridColumns(),this.orderGridColsLike(n),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(i){return t.gridColumnsMap[i.getId()]=i})),this.setAutoHeightActive(),ot(i,this.gridBalancedTree)||this.eventService.dispatchEvent({type:Tt.EVENT_GRID_COLUMNS_CHANGED})},r.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(t){return t.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var t=this.rowModel.getType();t!==Q.ROW_MODEL_TYPE_CLIENT_SIDE&&t!==Q.ROW_MODEL_TYPE_SERVER_SIDE&&O((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}},r.prototype.orderGridColsLike=function(t){if(!n(t)){var i=Kt(t.map((function(t,i){return[t,i]}))),e=!0;if(this.gridColumns.forEach((function(t){i.has(t)&&(e=!1)})),!e){var r=Kt(this.gridColumns.map((function(t){return[t,!0]}))),o=t.filter((function(t){return r.has(t)})),s=Kt(o.map((function(t){return[t,!0]}))),u=this.gridColumns.filter((function(t){return!s.has(t)})),h=o.slice();u.forEach((function(t){var i=t.getOriginalParent();if(i){for(var n=[];!n.length&&i;)i.getLeafColumns().forEach((function(t){var i=h.indexOf(t)>=0,e=n.indexOf(t)<0;i&&e&&n.push(t)})),i=i.getOriginalParent();if(n.length){var e=n.map((function(t){return h.indexOf(t)})),r=Math.max.apply(Math,tn(e));ct(h,t,r+1)}else h.push(t)}else h.push(t)})),this.gridColumns=h}}},r.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},r.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},r.prototype.placeLockedColumns=function(t){var i=[],n=[],e=[];return t.forEach((function(t){var r=t.getColDef().lockPosition;"right"===r?e.push(t):"left"===r||!0===r?i.push(t):n.push(t)})),tn(i,n,e)},r.prototype.addAutoGroupToGridColumns=function(){if(!n(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=t.concat(this.gridBalancedTree)}},r.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},r.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(t),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths(),this.eventService.dispatchEvent({type:Tt.EVENT_DISPLAYED_COLUMNS_CHANGED})},r.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()}))},r.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},r.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},r.prototype.joinDisplayedColumns=function(){this.displayedColumns=this.gridOptionsWrapper.isEnableRtl()?this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},r.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},r.prototype.setLeftValuesOfColumns=function(t){var i=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),e=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(r){if(e){var o=i.getWidthOfColsInList(r);r.forEach((function(i){o-=i.getActualWidth(),i.setLeft(o,t)}))}else{var s=0;r.forEach((function(i){i.setLeft(s,t),s+=i.getActualWidth()}))}ht(n,r)})),n.forEach((function(i){i.setLeft(null,t)}))}},r.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(t){t.forEach((function(t){t instanceof pt&&t.checkLeft()}))}))},r.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,i){i.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof nt&&i.push(t)}))},r.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)},r.prototype.getVirtualHeaderGroupRow=function(t,i){var e;switch(t){case Q.PINNED_LEFT:e=this.viewportRowLeft[i];break;case Q.PINNED_RIGHT:e=this.viewportRowRight[i];break;default:e=this.viewportRowCenter[i]}return n(e)&&(e=[]),e},r.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var t={};this.headerViewportColumns.forEach((function(i){return t[i.getId()]=!0}));var i=function(n,e,r){for(var o=!1,s=0;s<n.length;s++){var u=n[s],h=!1;if(u instanceof nt)h=!0===t[u.getId()];else{var c=u.getDisplayedChildren();c&&(h=i(c,e,r+1))}h&&(o=!0,e[r]||(e[r]=[]),e[r].push(u))}return o};i(this.displayedTreeLeft,this.viewportRowLeft,0),i(this.displayedTreeRight,this.viewportRowRight,0),i(this.displayedTreeCentre,this.viewportRowCenter,0)},r.prototype.extractViewport=function(){this.extractViewportColumns();var t=this.viewportColumns.map((function(t){return t.getId()+"-"+(t.getPinned()||"normal")})).join("#"),i=this.viewportColumnsHash!==t;return i&&(this.viewportColumnsHash=t,this.calculateHeaderRows()),i},r.prototype.refreshFlexedColumns=function(t){var n=this;void 0===t&&(t={});var e=t.source?t.source:"flex";if(null!=t.viewportWidth&&(this.flexViewportWidth=t.viewportWidth),!this.flexViewportWidth)return[];var r=-1;t.resizingCols&&t.resizingCols.forEach((function(t){var i=n.displayedColumnsCenter.indexOf(t);r<i&&(r=i)}));var o=function(t){var i=n.displayedColumnsCenter.indexOf(t)>r;return t.getFlex()&&i},s=this.displayedColumnsCenter.filter((function(t){return!o(t)})),u=this.displayedColumnsCenter.filter((function(t){return o(t)})),h=[];if(!u.length)return[];var c,a=[];t:for(;;){var f=u.reduce((function(t,i){return t+i.getFlex()}),0);c=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var l=0;l<u.length;l++){var d=u[l],v=c*d.getFlex()/f,p=0,g=d.getMinWidth(),m=d.getMaxWidth();if(i(g)&&v<g?p=g:i(m)&&v>m&&(p=m),p){d.setActualWidth(p,e),ut(u,d),h.push(d),s.push(d);continue t}a[l]=Math.round(v)}break}var w=c;return u.forEach((function(t,i){t.setActualWidth(Math.min(a[i],w),e),h.push(t),w-=a[i]})),t.skipSetLeft||this.setLeftValues(e),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.fireColumnResizedEvent(h,!0,e,u),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),u},r.prototype.sizeColumnsToFit=function(t,n,e,r){var o,s,u,h,c,a,f,l,d,v,p;void 0===n&&(n="sizeColumnsToFit");var g={};r&&(null===(s=null===(o=r)||void 0===o?void 0:o.columnLimits)||void 0===s||s.forEach((function(t){var i=t.key,n=function(t,i){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)i.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(n[e[r]]=t[e[r]])}return n}(t,["key"]);g["string"==typeof i?i:i.getColId()]=n})));var m=this.getAllDisplayedColumns(),w=t===this.getWidthOfColsInList(m);if(!(t<=0||!m.length||w)){var b=[],y=[];m.forEach((function(t){!0===t.getColDef().suppressSizeToFit?y.push(t):b.push(t)}));var C=b.slice(0),R=!1,S=function(t){ut(b,t),y.push(t)};for(b.forEach((function(t){return t.resetActualWidth(n)}));!R;){R=!0;var O=t-this.getWidthOfColsInList(y);if(O<=0)b.forEach((function(t){var i,e,o,s,u=null!=(o=null===(e=null===(i=g)||void 0===i?void 0:i[t.getId()])||void 0===e?void 0:e.minWidth)?o:null===(s=r)||void 0===s?void 0:s.defaultMinWidth;"number"!=typeof u?t.setMinimum(n):t.setActualWidth(u)}));else for(var A=O/this.getWidthOfColsInList(b),j=O,G=b.length-1;G>=0;G--){var _=b[G],x=null===(u=g)||void 0===u?void 0:u[_.getId()],F=null!=(c=null===(h=x)||void 0===h?void 0:h.minWidth)?c:null===(a=r)||void 0===a?void 0:a.defaultMinWidth,M=null!=(l=null===(f=x)||void 0===f?void 0:f.maxWidth)?l:null===(d=r)||void 0===d?void 0:d.defaultMaxWidth,k=null!=(v=_.getMinWidth())?v:0,D=null!=(p=_.getMaxWidth())?p:Number.MAX_VALUE,P="number"==typeof F&&F>k?F:_.getMinWidth(),I="number"==typeof M&&M<D?M:_.getMaxWidth(),T=Math.round(_.getActualWidth()*A);i(P)&&T<P?(T=P,S(_),R=!1):i(I)&&T>I?(T=I,S(_),R=!1):0===G&&(T=j),_.setActualWidth(T,n,!0),j-=T}}C.forEach((function(t){t.fireColumnWidthChangedEvent(n)})),this.setLeftValues(n),this.updateBodyWidths(),e||this.fireColumnResizedEvent(C,!0,n)}},r.prototype.buildDisplayedTrees=function(t){var i=[],n=[],e=[];t.forEach((function(t){switch(t.getPinned()){case"left":i.push(t);break;case"right":n.push(t);break;default:e.push(t)}}));var r=new Et;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,r,Q.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,Q.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(e,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},r.prototype.updateDisplayedMap=function(){var t=this;this.displayedColumnsAndGroupsMap={};var i=function(i){t.displayedColumnsAndGroupsMap[i.getUniqueId()]=i};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,i)},r.prototype.isDisplayed=function(t){return this.displayedColumnsAndGroupsMap[t.getUniqueId()]===t},r.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var t=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(t,(function(t){t instanceof pt&&t.calculateDisplayedColumns()}))},r.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},r.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),i=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||i||t)this.groupAutoColumns=null;else{var n=this.autoGroupColService.createAutoGroupColumns(this.groupAutoColumns||[],this.rowGroupColumns);if(!this.autoColsEqual(n,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=n,!0}return!1},r.prototype.autoColsEqual=function(t,i){return ot(t,i,(function(t,i){return t.getColId()===i.getColId()}))},r.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,i){return t+i.getActualWidth()}),0)},r.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},r.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(t){return t.getColDef().floatingFilter}))},r.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsWrapper.isEnableRtl(),i=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&i.reverse();for(var n=0;n<i.length;n++){var e=this[i[n]]();if(e.length)return t?rt(e):e[0]}return null},r.prototype.setColumnHeaderHeight=function(t,i){t.setAutoHeaderHeight(i)&&this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:t,columns:[t],source:"autosizeColumnHeaderHeight"})},r.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.gridOptionsWrapper.getPivotGroupHeaderHeight():this.gridOptionsWrapper.getGroupHeaderHeight()},r.prototype.getColumnHeaderRowHeight=function(){var t=this.isPivotMode()?this.gridOptionsWrapper.getPivotHeaderHeight():this.gridOptionsWrapper.getHeaderHeight(),i=this.getAllDisplayedColumns().filter((function(t){return t.isAutoHeaderHeight()})).map((function(t){return t.getAutoHeaderHeight()||0}));return Math.max.apply(Math,tn([t],i))},$i([W("expressionService")],r.prototype,"expressionService",void 0),$i([W("columnFactory")],r.prototype,"columnFactory",void 0),$i([W("displayedGroupCreator")],r.prototype,"displayedGroupCreator",void 0),$i([W("ctrlsService")],r.prototype,"ctrlsService",void 0),$i([W("autoWidthCalculator")],r.prototype,"autoWidthCalculator",void 0),$i([W("columnUtils")],r.prototype,"columnUtils",void 0),$i([W("columnAnimationService")],r.prototype,"columnAnimationService",void 0),$i([W("autoGroupColService")],r.prototype,"autoGroupColService",void 0),$i([V("aggFuncService")],r.prototype,"aggFuncService",void 0),$i([V("valueCache")],r.prototype,"valueCache",void 0),$i([V("animationFrameService")],r.prototype,"animationFrameService",void 0),$i([W("rowModel")],r.prototype,"rowModel",void 0),$i([W("sortController")],r.prototype,"sortController",void 0),$i([W("columnDefFactory")],r.prototype,"columnDefFactory",void 0),$i([L],r.prototype,"init",null),$i([(0,u=U("loggerFactory"),function(t,i){u(t,i,0)})],r.prototype,"setBeans",null),$i([B("columnModel")],r)}(kt),en=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rn=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return en(i,t),i.prototype.calculateColMinWidth=function(t){return null!=t.minWidth?t.minWidth:this.gridOptionsWrapper.getMinColWidth()},i.prototype.calculateColMaxWidth=function(t){return null!=t.maxWidth?t.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},i.prototype.calculateColInitialWidth=function(t){var i,n=this.calculateColMinWidth(t),e=this.calculateColMaxWidth(t),r=o(t.width),s=o(t.initialWidth);return i=null!=r?r:null!=s?s:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(i,e),n)},i.prototype.getOriginalPathForColumn=function(t,i){var n=[],e=!1,r=function(i,o){for(var s=0;s<i.length;s++){if(e)return;var u=i[s];u instanceof gt?(r(u.getChildren(),o+1),n[o]=u):u===t&&(e=!0)}};return r(i,0),e?n:null},i.prototype.depthFirstOriginalTreeSearch=function(t,i,n){var e=this;i&&i.forEach((function(i){i instanceof gt&&e.depthFirstOriginalTreeSearch(i,i.getChildren(),n),n(i,t)}))},i.prototype.depthFirstAllColumnTreeSearch=function(t,i){var n=this;t&&t.forEach((function(t){t instanceof pt&&n.depthFirstAllColumnTreeSearch(t.getChildren(),i),i(t)}))},i.prototype.depthFirstDisplayedColumnTreeSearch=function(t,i){var n=this;t&&t.forEach((function(t){t instanceof pt&&n.depthFirstDisplayedColumnTreeSearch(t.getDisplayedChildren(),i),i(t)}))},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("columnUtils")],i)}(kt),on=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return on(n,t),n.prototype.createDisplayedGroups=function(t,i,n,e,r){var o,s,u=this,h=[],c=this.mapOldGroupsById(r);return t.forEach((function(t){for(var r=u.getOriginalPathForColumn(i,t),a=[],f=!s,l=0;l<r.length;l++)if(f||r[l]!==s[l]){var d=u.createColumnGroup(r[l],n,c,e);a[l]=d,0==l?h.push(d):a[l-1].addChild(d)}else a[l]=o[l];0===a.length?h.push(t):rt(a).addChild(t),o=a,s=r})),this.setupParentsIntoColumns(h,null),h},n.prototype.createColumnGroup=function(t,n,e,r){var o=t.getGroupId(),s=n.getInstanceIdForKey(o),u=e[pt.createUniqueId(o,s)];return u&&u.getProvidedColumnGroup()!==t&&(u=null),i(u)?u.reset():(u=new pt(t,o,s,r),this.context.createBean(u)),u},n.prototype.mapOldGroupsById=function(t){var i={},n=function(t){t.forEach((function(t){if(t instanceof pt){var e=t;i[t.getUniqueId()]=e,n(e.getChildren())}}))};return t&&n(t),i},n.prototype.setupParentsIntoColumns=function(t,i){var n=this;t.forEach((function(t){if(t.setParent(i),t instanceof pt){var e=t;n.setupParentsIntoColumns(e.getChildren(),e)}}))},n.prototype.getOriginalPathForColumn=function(t,i){var n=[],e=!1,r=function(t,o){for(var s=0;s<t.length;s++){if(e)return;var u=t[s];u instanceof gt?(r(u.getChildren(),o+1),n[o]=u):u===i&&(e=!0)}};return r(t,0),e?n:(console.warn("AG Grid: could not get path"),null)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("displayedGroupCreator")],n)}(kt),un=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),hn=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.componentsMappedByName={},i}return un(i,t),i.prototype.setupComponents=function(t){var i=this;t&&t.forEach((function(t){return i.addComponent(t)}))},i.prototype.addComponent=function(t){var i=t.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[i]=t.componentClass},i.prototype.getComponentClass=function(t){return this.componentsMappedByName[t]},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("agStackComponentsRegistry")],i)}(kt),cn=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},an=function(){function t(t,i,n,e){void 0===e&&(e=1),this.r=Math.min(1,Math.max(0,t||0)),this.g=Math.min(1,Math.max(0,i||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,e||0))}return t.fromString=function(i){if(i.indexOf("#")>=0)return t.fromHexString(i);var n=t.nameToHex[i];if(n)return t.fromHexString(n);if(i.indexOf("rgb")>=0)return t.fromRgbaString(i);throw new Error("Invalid color string: '"+i+"'")},t.parseHex=function(t){var i;switch((t=t.replace(/ /g,"").slice(1)).length){case 6:case 8:i=[];for(var n=0;n<t.length;n+=2)i.push(parseInt(""+t[n]+t[n+1],16));break;case 3:case 4:i=t.split("").map((function(t){return parseInt(t,16)})).map((function(t){return t+16*t}))}if(i.length>=3&&i.every((function(t){return t>=0})))return 3===i.length&&i.push(255),i},t.fromHexString=function(i){var n=t.parseHex(i);if(n){var e=cn(n,4);return new t(e[0]/255,e[1]/255,e[2]/255,e[3]/255)}throw new Error("Malformed hexadecimal color string: '"+i+"'")},t.stringToRgba=function(t){for(var i=cn([NaN,NaN],2),n=i[0],e=i[1],r=0;r<t.length;r++){var o=t[r];if(n||"("!==o){if(")"===o){e=r;break}}else n=r}var s=n&&e&&t.substring(n+1,e);if(s){var u=s.split(","),h=[];for(r=0;r<u.length;r++){var c=u[r],a=parseFloat(c);if(isNaN(a))return;c.indexOf("%")>=0?(a=Math.max(0,Math.min(100,a)),a/=100):3===r?a=Math.max(0,Math.min(1,a)):(a=Math.max(0,Math.min(255,a)),a/=255),h.push(a)}return h}},t.fromRgbaString=function(i){var n=t.stringToRgba(i);if(n){if(3===n.length)return new t(n[0],n[1],n[2]);if(4===n.length)return new t(n[0],n[1],n[2],n[3])}throw new Error("Malformed rgb/rgba color string: '"+i+"'")},t.fromArray=function(i){if(4===i.length)return new t(i[0],i[1],i[2],i[3]);if(3===i.length)return new t(i[0],i[1],i[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},t.fromHSB=function(i,n,e,r){void 0===r&&(r=1);var o=t.HSBtoRGB(i,n,e);return new t(o[0],o[1],o[2],r)},t.padHex=function(t){return 1===t.length?"0"+t:t},t.prototype.toHexString=function(){var i="#"+t.padHex(Math.round(255*this.r).toString(16))+t.padHex(Math.round(255*this.g).toString(16))+t.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(i+=t.padHex(Math.round(255*this.a).toString(16))),i},t.prototype.toRgbaString=function(t){void 0===t&&(t=3);var i=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,t);return 1!==this.a?(i.push(Math.round(this.a*n)/n),"rgba("+i.join(", ")+")"):"rgb("+i.join(", ")+")"},t.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},t.prototype.toHSB=function(){return t.RGBtoHSB(this.r,this.g,this.b)},t.RGBtoHSB=function(t,i,n){var e=Math.min(t,i,n),r=Math.max(t,i,n),o=NaN;if(e!==r){var s=r-e,u=(r-t)/s,h=(r-i)/s,c=(r-n)/s;o=t===r?c-h:i===r?2+u-c:4+h-u,(o/=6)<0&&(o+=1)}return[360*o,0!==r?(r-e)/r:0,r]},t.HSBtoRGB=function(t,i,n){isNaN(t)&&(t=0),t=(t%360+360)%360/360;var e=0,r=0,o=0;if(0===i)e=r=o=n;else{var s=6*(t-Math.floor(t)),u=s-Math.floor(s),h=n*(1-i),c=n*(1-i*u),a=n*(1-i*(1-u));switch(s>>0){case 0:e=n,r=a,o=h;break;case 1:e=c,r=n,o=h;break;case 2:e=h,r=n,o=a;break;case 3:e=h,r=c,o=n;break;case 4:e=a,r=h,o=n;break;case 5:e=n,r=h,o=c}}return[e,r,o]},t.prototype.derive=function(i,n,e,r){var o=t.RGBtoHSB(this.r,this.g,this.b),s=o[2];0==s&&e>1&&(s=.05);var u=((o[0]+i)%360+360)%360,h=Math.max(Math.min(o[1]*n,1),0);s=Math.max(Math.min(s*e,1),0);var c=Math.max(Math.min(this.a*r,1),0),a=t.HSBtoRGB(u,h,s);return a.push(c),t.fromArray(a)},t.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},t.prototype.darker=function(){return this.derive(0,1,.7,1)},t.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),t}(),fn=Object.freeze({__proto__:null,stringToArray:
113
- /**
114
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
115
- * @version v28.2.0
116
- * @link https://www.ag-grid.com/
117
- * @license MIT
118
- */
119
- function(t,i){void 0===i&&(i=",");var n=[],e=function(t){return"\r"===t||"\n"===t},r=!1;if(""===t)return[[""]];for(var o,s,u,h=function(h,c,a){var f=t[a-1],l=t[a],d=t[a+1],v=function(){n[h]||(n[h]=[]),n[h][c]||(n[h][c]="")};if(v(),'"'===l){if(r)return'"'===d?(n[h][c]+='"',a++):r=!1,o=h,s=c,u=a,"continue";if(void 0===f||f===i||e(f))return r=!0,o=h,s=c,u=a,"continue"}if(!r){if(l===i)return c++,v(),o=h,s=c,u=a,"continue";if(e(l))return c=0,h++,v(),"\r"===l&&"\n"===d&&a++,o=h,s=c,u=a,"continue"}n[h][c]+=l,o=h,s=c,u=a},c=0,a=0,f=0;f<t.length;f++)h(c,a,f),c=o,a=s,f=u;return n}});
120
- /**
121
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
122
- * @version v28.2.0
123
- * @link https://www.ag-grid.com/
124
- * @license MIT
125
- */function ln(t){var i=Element.prototype.matches||Element.prototype.msMatchesSelector,n=i.call(t,Q.INPUT_SELECTOR),e=i.call(t,Q.FOCUSABLE_EXCLUDE),r=Gn(t);return n&&!e&&r}function dn(t,i){t.classList.toggle("ag-hidden",!i)}function vn(t,i){t.classList.toggle("ag-invisible",!i)}function pn(t,i){var n="disabled",e=i?function(t){return t.setAttribute(n,"")}:function(t){return t.removeAttribute(n)};e(t),qn(t.querySelectorAll("input"),(function(t){return e(t)}))}function gn(t,i,n){for(var e=0;t;){if(t.classList.contains(i))return!0;if(t=t.parentElement,"number"==typeof n){if(++e>n)break}else if(t===n)break}return!1}function mn(t){var i=window.getComputedStyle(t),n=i.width,e=i.paddingTop,r=i.paddingRight,o=i.paddingBottom,s=i.paddingLeft,u=i.marginTop,h=i.marginRight,c=i.marginBottom,a=i.marginLeft,f=i.boxSizing;return{height:parseFloat(i.height),width:parseFloat(n),paddingTop:parseFloat(e),paddingRight:parseFloat(r),paddingBottom:parseFloat(o),paddingLeft:parseFloat(s),marginTop:parseFloat(u),marginRight:parseFloat(h),marginBottom:parseFloat(c),marginLeft:parseFloat(a),boxSizing:f}}function wn(t){var i=mn(t);return"border-box"===i.boxSizing?i.height-i.paddingTop-i.paddingBottom:i.height}function bn(t){var i=mn(t);return"border-box"===i.boxSizing?i.width-i.paddingLeft-i.paddingRight:i.width}function yn(t){var i=mn(t);return Math.ceil(t.offsetHeight+(i.marginBottom+i.marginTop))}function Cn(t){var i=mn(t);return Math.ceil(t.offsetWidth+(i.marginLeft+i.marginRight))}function Rn(){if("boolean"==typeof Yi)return Yi;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,Yi=0===Math.floor(t.scrollLeft),document.body.removeChild(t),Yi}function Sn(t,i){var n=t.scrollLeft;return i&&(n=Math.abs(n),gi()&&!Rn()&&(n=t.scrollWidth-t.clientWidth-n)),n}function On(t,i,n){n&&(Rn()?i*=-1:(pi()||gi())&&(i=t.scrollWidth-t.clientWidth-i)),t.scrollLeft=i}function An(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function jn(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Gn(t){return null!==t.offsetParent}function _n(t){var i=document.createElement("div");return i.innerHTML=(t||"").trim(),i.firstChild}function xn(t){return t&&t.clientHeight?t.clientHeight:0}function Fn(t){return t&&t.clientWidth?t.clientWidth:0}function Mn(t,i,n){if(!n||n.nextSibling!==i){var e=document.activeElement,r=i.contains(e);n?n.nextSibling?t.insertBefore(i,n.nextSibling):t.appendChild(i):t.firstChild&&t.firstChild!==i&&t.insertAdjacentElement("afterbegin",i),r&&e&&yi()&&e.focus({preventScroll:!0})}}function kn(t,i){for(var n=0;n<i.length;n++){var e=i[n],r=t.children[n];r!==e&&t.insertBefore(e,r)}}function Dn(t,i,n){n?n.insertAdjacentElement("afterend",i):t.firstChild?t.insertAdjacentElement("afterbegin",i):t.appendChild(i)}function Pn(t,i){i&&Object.keys(i).forEach((function(n){var e=Bt(n);e&&(t.style[e]=i[n])}))}function In(t){return t.clientWidth<t.scrollWidth}function Tn(t){return t.clientHeight<t.scrollHeight}function En(t,i){"flex"===i?(t.style.removeProperty("width"),t.style.removeProperty("minWidth"),t.style.removeProperty("maxWidth"),t.style.flex="1 1 auto"):Nn(t,i)}function Nn(t,i){i=Hn(i),t.style.width=i.toString(),t.style.maxWidth=i.toString(),t.style.minWidth=i.toString()}function Ln(t,i){i=Hn(i),t.style.height=i.toString(),t.style.maxHeight=i.toString(),t.style.minHeight=i.toString()}function Hn(t){return"number"==typeof t?t+"px":t}function Bn(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function Wn(t){return"function"==typeof HTMLElement?t instanceof HTMLElement:t&&C(t)&&1===t.nodeType&&"string"==typeof t.nodeName}function Vn(t){return Bn(t)||Wn(t)}function zn(t){if(null==t)return[];var i=[];return qn(t,(function(t){return i.push(t)})),i}function Un(t,i){if(t)for(var n=0;n<t.length;n++){var e=t[n];i(e.name,e.value)}}function Kn(t,i,n){null==n?t.removeAttribute(i):t.setAttribute(i,n.toString())}function qn(t,i){if(null!=t)for(var n=0;n<t.length;n++)i(t[n])}var Yn=Object.freeze({__proto__:null,radioCssClass:function(t,i,n){for(var e=t.parentElement,r=e&&e.firstChild;r;)i&&r.classList.toggle(i,r===t),n&&r.classList.toggle(n,r!==t),r=r.nextSibling},isFocusableFormField:ln,setDisplayed:dn,setVisible:vn,setDisabled:pn,isElementChildOfClass:gn,getElementSize:mn,getInnerHeight:wn,getInnerWidth:bn,getAbsoluteHeight:yn,getAbsoluteWidth:Cn,isRtlNegativeScroll:Rn,getScrollLeft:Sn,setScrollLeft:On,clearElement:An,removeElement:function(t,i){jn(t.querySelector(i))},removeFromParent:jn,isVisible:Gn,loadTemplate:_n,appendHtml:function(t,i){t.lastChild?t.insertAdjacentHTML("afterbegin",i):t.innerHTML=i},getElementAttribute:function(t,i){return t.attributes&&t.attributes[i]?t.attributes[i].value:null},offsetHeight:xn,offsetWidth:Fn,ensureDomOrder:Mn,setDomChildOrder:kn,insertWithDomOrder:Dn,prependDC:function(t,n){i(t.firstChild)?t.insertBefore(n,t.firstChild):t.appendChild(n)},addStylesToElement:Pn,isHorizontalScrollShowing:In,isVerticalScrollShowing:Tn,setElementWidth:En,setFixedWidth:Nn,setElementHeight:function(t,i){"flex"===i?(t.style.removeProperty("height"),t.style.removeProperty("minHeight"),t.style.removeProperty("maxHeight"),t.style.flex="1 1 auto"):Ln(t,i)},setFixedHeight:Ln,formatSize:Hn,isNode:Bn,isElement:Wn,isNodeOrElement:Vn,copyNodeList:zn,iterateNamedNodeMap:Un,setCheckboxState:function(t,i){"boolean"==typeof i?(t.checked=i,t.indeterminate=!1):t.indeterminate=!0},addOrRemoveAttribute:Kn,nodeListForEach:qn}),Jn=Object.freeze({__proto__:null,getNameOfClass:
126
- /**
127
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
128
- * @version v28.2.0
129
- * @link https://www.ag-grid.com/
130
- * @license MIT
131
- */
132
- function(t){var i=t.toString(),n=/function (.{1,})\(/.exec(i);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(t){var i=t.length,n=0;if(i<=1)return t;for(var e=0;e<t.length;e++){var r=t[e],o=r.toString().split("e-");o.length>1?n=Math.max(n,parseInt(o[1],10)):Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var s=0,u=0,h=0,c=0,a=0,f=0;f<i;f++)s+=f,u+=a=t[f],c+=f*f,h+=f*a;var l=(i*h-s*u)/(i*c-s*s),d=u/i-l*s/i,v=[];for(f=0;f<=i;f++)v.push(parseFloat((f*l+d).toFixed(n)));return v},cssStyleObjectToMarkup:function(t){if(!t)return"";var i=[];return a(t,(function(t,n){var e=Ht(t);i.push(e+": "+n+";")})),i.join(" ")},message:function(t){var i=document.createElement("div"),n=document.querySelector("#__ag__message");i.innerHTML=t,n||(n=_n('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(n)),n.insertBefore(i,n.children[0])},bindCellRendererToHtmlElement:function(t,i){t.then((function(t){var n=t.getGui();null!=n&&("object"==typeof n?i.appendChild(n):i.innerHTML=n)}))}});
133
- /**
134
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
135
- * @version v28.2.0
136
- * @link https://www.ag-grid.com/
137
- * @license MIT
138
- */
139
- function Zn(t,i,n){t.setAttribute(Qn(i),n.toString())}function $n(t,i){t.removeAttribute(Qn(i))}function Qn(t){return"aria-"+t}function Xn(t,i){i?t.setAttribute("role",i):t.removeAttribute("role")}function te(t){return t.isSortAscending()?"ascending":t.isSortDescending()?"descending":"none"}function ie(t){return parseInt(t.getAttribute("aria-level"),10)}function ne(t){return parseInt(t.getAttribute("aria-posinset"),10)}function ee(t,i){var n="label";i?Zn(t,n,i):$n(t,n)}function re(t,i){var n="labelledby";i?Zn(t,n,i):$n(t,n)}function oe(t,i){var n="description";i?Zn(t,n,i):$n(t,n)}function se(t,i){var n="describedby";i?Zn(t,n,i):$n(t,n)}function ue(t,i){Zn(t,"level",i)}function he(t,i){Zn(t,"disabled",i)}function ce(t,i){Zn(t,"expanded",i)}function ae(t){$n(t,"expanded")}function fe(t,i){Zn(t,"setsize",i)}function le(t,i){Zn(t,"posinset",i)}function de(t,i){Zn(t,"multiselectable",i)}function ve(t,i){Zn(t,"rowcount",i)}function pe(t,i){Zn(t,"rowindex",i)}function ge(t,i){Zn(t,"colcount",i)}function me(t,i){Zn(t,"colindex",i)}function we(t,i){Zn(t,"colspan",i)}function be(t,i){Zn(t,"sort",i)}function ye(t){$n(t,"sort")}function Ce(t,i){var n="selected";i?Zn(t,n,i):$n(t,n)}function Re(t,i){Zn(t,"checked",void 0===i?"mixed":i)}var Se=Object.freeze({__proto__:null,setAriaRole:Xn,getAriaSortState:te,getAriaLevel:ie,getAriaPosInSet:ne,getAriaDescribedBy:function(t){return t.getAttribute("aria-describedby")||""},setAriaLabel:ee,setAriaLabelledBy:re,setAriaDescription:oe,setAriaDescribedBy:se,setAriaLevel:ue,setAriaDisabled:he,setAriaExpanded:ce,removeAriaExpanded:ae,setAriaSetSize:fe,setAriaPosInSet:le,setAriaMultiSelectable:de,setAriaRowCount:ve,setAriaRowIndex:pe,setAriaColCount:ge,setAriaColIndex:me,setAriaColSpan:we,setAriaSort:be,removeAriaSort:ye,setAriaSelected:Ce,setAriaChecked:Re}),Oe=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};
140
- /**
141
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
142
- * @version v28.2.0
143
- * @link https://www.ag-grid.com/
144
- * @license MIT
145
- */function Ae(t,i,n){if(void 0===i&&(i=!0),void 0===n&&(n="-"),!t)return null;var e=[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return Ii(t,2)})).join(n);return i&&(e+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return Ii(t,2)})).join(":")),e}var je=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 Ge(t,i){void 0===i&&(i="YYYY-MM-DD");var n=Ii(t.getFullYear(),4),e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={YYYY:function(){return n.slice(n.length-4,n.length)},YY:function(){return n.slice(n.length-2,n.length)},Y:function(){return""+t.getFullYear()},MMMM:function(){return e[t.getMonth()]},MMM:function(){return e[t.getMonth()].slice(0,3)},MM:function(){return Ii(t.getMonth()+1,2)},Mo:function(){return""+(t.getMonth()+1)+je(t.getMonth()+1)},M:function(){return""+(t.getMonth()+1)},Do:function(){return""+t.getDate()+je(t.getDate())},DD:function(){return Ii(t.getDate(),2)},D:function(){return""+t.getDate()},dddd:function(){return r[t.getDay()]},ddd:function(){return r[t.getDay()].slice(0,3)},dd:function(){return r[t.getDay()].slice(0,2)},do:function(){return""+t.getDay()+je(t.getDay())},d:function(){return""+t.getDay()}},s=new RegExp(Object.keys(o).join("|"),"g");return i.replace(s,(function(t){return t in o?o[t]():t}))}function _e(t){if(!t)return null;var i=Oe(t.split(" "),2),n=i[0],e=i[1];if(!n)return null;var r=n.split("-").map((function(t){return parseInt(t,10)}));if(3!==r.filter((function(t){return!isNaN(t)})).length)return null;var o=Oe(r,3),s=o[0],u=o[1],h=o[2],c=new Date(s,u-1,h);if(c.getFullYear()!==s||c.getMonth()!==u-1||c.getDate()!==h)return null;if(!e||"00:00:00"===e)return c;var a=Oe(e.split(":").map((function(t){return parseInt(t,10)})),3),f=a[0],l=a[1],d=a[2];return f>=0&&f<24&&c.setHours(f),l>=0&&l<60&&c.setMinutes(l),d>=0&&d<60&&c.setSeconds(d),c}var xe=Object.freeze({__proto__:null,serialiseDate:Ae,dateToFormattedString:Ge,parseDateTimeFromString:_e}),Fe={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",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",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"};
146
- /**
147
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
148
- * @version v28.2.0
149
- * @link https://www.ag-grid.com/
150
- * @license MIT
151
- */function Me(t,i,n){var e=ke(t,i,n);if(e&&e.className.indexOf("ag-icon")>-1)return e;var r=document.createElement("span");return r.appendChild(e),r}function ke(t,i,n,e){var r=null,o=n&&n.getColDef().icons;if(o&&(r=o[t]),i&&!r){var s=i.getIcons();s&&(r=s[t])}if(!r){var u=document.createElement("span"),h=Fe[t];return h||(e?h=t:(console.warn("AG Grid: Did not find icon "+t),h="")),u.setAttribute("class","ag-icon ag-icon-"+h),u.setAttribute("unselectable","on"),Xn(u,"presentation"),u}var c=void 0;if("function"==typeof r)c=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");c=r}return"string"==typeof c?_n(c):Vn(c)?c:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var De=Object.freeze({__proto__:null,iconNameClassMap:Fe,createIcon:Me,createIconNoSpan:ke}),Pe=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.V="KeyV",t.D="KeyD",t.Z="KeyZ",t.Y="KeyY",t}();
152
- /**
153
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
154
- * @version v28.2.0
155
- * @link https://www.ag-grid.com/
156
- * @license MIT
157
- */function Ie(t){if(t.altKey||t.ctrlKey||t.metaKey)return!1;var i=1===t.key.length,n=function(t){return vi()&&"Del"===t.key&&46===t.charCode}(t);return i||n}function Te(t,i,n,e,r){var o=t.getSuppressKeyboardEventFunc(),s=e?e.getColDef().suppressKeyboardEvent:void 0;if(!o&&!s)return!1;var u={event:i,editing:r,column:e,api:t.getApi(),node:n,data:n.data,colDef:e.getColDef(),context:t.getContext(),columnApi:t.getColumnApi()};return!(!s||!s(u))||!!o&&o(u)}function Ee(t,n,e,r){var o=r.getDefinition(),s=o&&o.suppressHeaderKeyboardEvent;return!!i(s)&&!!s({api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext(),colDef:o,column:r,headerRowIndex:e,event:n})}function Ne(t){var i;switch(t.keyCode){case 65:i=Pe.A;break;case 67:i=Pe.C;break;case 86:i=Pe.V;break;case 68:i=Pe.D;break;case 90:i=Pe.Z;break;case 89:i=Pe.Y;break;default:i=t.code}return i}function Le(t,i){return void 0===i&&(i=!1),t===Pe.DELETE||!i&&t===Pe.BACKSPACE&&wi()}var He=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Ie,isUserSuppressingKeyboardEvent:Te,isUserSuppressingHeaderKeyboardEvent:Ee,normaliseQwertyAzerty:Ne,isDeleteKey:Le});
158
- /**
159
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
160
- * @version v28.2.0
161
- * @link https://www.ag-grid.com/
162
- * @license MIT
163
- */function Be(t,i,n){if(0===n)return!1;var e=Math.abs(t.clientX-i.clientX),r=Math.abs(t.clientY-i.clientY);return Math.max(e,r)<=n}var We=Object.freeze({__proto__:null,areEventsNear:Be}),Ve=Object.freeze({__proto__:null,sortRowNodesByOrder:
164
- /**
165
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
166
- * @version v28.2.0
167
- * @link https://www.ag-grid.com/
168
- * @license MIT
169
- */
170
- function(t,i){if(!t)return!1;for(var n=function(t,n){var e=i[t.id],r=i[n.id],o=void 0!==e,s=void 0!==r;return o&&s?e-r:o||s?o?1:-1:t.__objectId-n.__objectId},e=!1,r=0;r<t.length-1;r++)if(n(t[r],t[r+1])>0){e=!0;break}return!!e&&(t.sort(n),!0)},traverseNodesWithKey:function(t,i){var n=[];!function t(e){e&&e.forEach((function(e){if(e.group||e.hasChildren()){n.push(e.key);var r=n.join("|");i(e,r),t(e.childrenAfterGroup),n.pop()}}))}(t)}});
171
- /**
172
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
173
- * @version v28.2.0
174
- * @link https://www.ag-grid.com/
175
- * @license MIT
176
- */
177
- function ze(t){var i=new Set;return t.forEach((function(t){return i.add(t)})),i}var Ue,Ke=Object.freeze({__proto__:null,convertToSet:ze}),qe=function(){return(qe=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},Ye=qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe({},Jn),Se),vt),_i),fn),xe),Yn),Ft),T),Pi),h),De),He),qt),We),Li),R),Ve),Ke),Ut),Je=function(){function t(t,i){void 0===t&&(t=0),void 0===i&&(i=1),this.nextValue=t,this.step=i}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}();
178
- /**
179
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
180
- * @version v28.2.0
181
- * @link https://www.ag-grid.com/
182
- * @license MIT
183
- */!function(t){t[t.IN_PROGRESS=0]="IN_PROGRESS",t[t.RESOLVED=1]="RESOLVED"}(Ue||(Ue={}));var Ze,$e=function(){function t(t){var i=this;this.status=Ue.IN_PROGRESS,this.resolution=null,this.waiters=[],t((function(t){return i.onDone(t)}),(function(t){return i.onReject(t)}))}return t.all=function(i){return new t((function(t){var n=i.length,e=new Array(n);i.forEach((function(i,r){i.then((function(i){e[r]=i,0==--n&&t(e)}))}))}))},t.resolve=function(i){return void 0===i&&(i=null),new t((function(t){return t(i)}))},t.prototype.then=function(i){var n=this;return new t((function(t){n.status===Ue.RESOLVED?t(i(n.resolution)):n.waiters.push((function(n){return t(i(n))}))}))},t.prototype.resolveNow=function(t,i){return this.status===Ue.RESOLVED?i(this.resolution):t},t.prototype.onDone=function(t){this.status=Ue.RESOLVED,this.resolution=t,this.waiters.forEach((function(i){return i(t)}))},t.prototype.onReject=function(){console.warn("TBI")},t}(),Qe=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xe=function(){return(Xe=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},tr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
184
- /**
185
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
186
- * @version v28.2.0
187
- * @link https://www.ag-grid.com/
188
- * @license MIT
189
- */!function(t){t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING"}(Ze||(Ze={}));var ir=function(t){function n(i){var n=t.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Ze.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=i,n}return Qe(n,t),n.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var t=this.parentComp.getGui();this.addManagedListener(t,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(t,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(t,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(t,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this))},n.prototype.destroy=function(){this.setToDoNothing(),t.prototype.destroy.call(this)},n.prototype.onMouseEnter=function(t){if(!bi()&&this.state==Ze.NOTHING){var i=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),i),this.lastMouseEvent=t,this.state=Ze.WAITING_TO_SHOW}},n.prototype.onMouseLeave=function(){this.setToDoNothing()},n.prototype.onKeyDown=function(){this.setToDoNothing()},n.prototype.setToDoNothing=function(){this.state===Ze.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Ze.NOTHING},n.prototype.onMouseMove=function(t){this.lastMouseEvent=t,this.tooltipMouseTrack&&this.state===Ze.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},n.prototype.onMouseDown=function(){this.setToDoNothing()},n.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),n.lastTooltipHideTime=(new Date).getTime()),this.state=Ze.NOTHING},n.prototype.destroyTooltipComp=function(){var t=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var i=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){i(),t.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},n.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-n.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},n.prototype.showTooltip=function(){var t=Xe({},this.parentComp.getTooltipParams());if(i(t.value)){this.state=Ze.SHOWING,this.tooltipInstanceCount++;var n=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(t).newAgStackInstance().then(n)}else this.setToDoNothing()},n.prototype.newTooltipComponentCallback=function(t,i){if(this.state!==Ze.SHOWING||this.tooltipInstanceCount!==t)this.getContext().destroyBean(i);else{var n=i.getGui();this.tooltipComp=i,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var e=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.popupService.addPopup({eChild:n,ariaLabel:e("ariaLabelTooltip","Tooltip")});r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},n.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},n.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},tr([W("popupService")],n.prototype,"popupService",void 0),tr([W("userComponentFactory")],n.prototype,"userComponentFactory",void 0),tr([W("columnApi")],n.prototype,"columnApi",void 0),tr([W("gridApi")],n.prototype,"gridApi",void 0),tr([L],n.prototype,"postConstruct",null),n}(kt),nr=function(){function t(t){this.cssClassStates={},this.getGui=t}return t.prototype.addCssClass=function(t){var i=this,n=(t||"").split(" ");n.length>1?n.forEach((function(t){return i.addCssClass(t)})):!0!==this.cssClassStates[t]&&t.length&&(this.getGui().classList.add(t),this.cssClassStates[t]=!0)},t.prototype.removeCssClass=function(t){var i=this,n=(t||"").split(" ");n.length>1?n.forEach((function(t){return i.removeCssClass(t)})):!1!==this.cssClassStates[t]&&t.length&&(this.getGui().classList.remove(t),this.cssClassStates[t]=!1)},t.prototype.containsCssClass=function(t){return this.getGui().classList.contains(t)},t.prototype.addOrRemoveCssClass=function(t,i){var n=this;if(t){if(t.indexOf(" ")>=0){var e=(t||"").split(" ");if(e.length>1)return void e.forEach((function(t){return n.addOrRemoveCssClass(t,i)}))}this.cssClassStates[t]!==i&&t.length&&(this.getGui().classList.toggle(t,i),this.cssClassStates[t]=i)}},t}(),er=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},or=new Je,sr=function(t){function i(i){var n=t.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=or.next(),n.cssClassManager=new nr((function(){return n.eGui})),i&&n.setTemplate(i),n}return er(i,t),i.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},i.prototype.getCompId=function(){return this.compId},i.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},i.prototype.setTooltip=function(t){var i=this;this.tooltipText!=t&&(this.tooltipText&&(i.usingBrowserTooltips?i.getGui().removeAttribute("title"):i.tooltipFeature=i.destroyBean(i.tooltipFeature)),null!=t&&(this.tooltipText=t,this.tooltipText&&(i.usingBrowserTooltips?i.getGui().setAttribute("title",i.tooltipText):i.tooltipFeature=i.createBean(new ir(i)))))},i.prototype.createChildComponentsFromTags=function(t,i){var n=this;zn(t.childNodes).forEach((function(e){if(e instanceof HTMLElement){var r=n.createComponentFromElement(e,(function(t){t.getGui()&&n.copyAttributesFromNode(e,t.getGui())}),i);if(r){if(r.addItems&&e.children.length){n.createChildComponentsFromTags(e,i);var o=Array.prototype.slice.call(e.children);r.addItems(o)}n.swapComponentForNode(r,t,e)}else e.childNodes&&n.createChildComponentsFromTags(e,i)}}))},i.prototype.createComponentFromElement=function(t,n,e){var r=t.nodeName,o=e?e[t.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(r);if(s){i.elementGettingCreated=t;var u=new s(o);return u.setParentComponent(this),this.createBean(u,null,n),u}return null},i.prototype.copyAttributesFromNode=function(t,i){Un(t.attributes,(function(t,n){return i.setAttribute(t,n)}))},i.prototype.swapComponentForNode=function(t,i,n){var e=t.getGui();i.replaceChild(e,n),i.insertBefore(document.createComment(n.nodeName),e),this.addDestroyFunc(this.destroyBean.bind(this,t)),this.swapInComponentForQuerySelectors(t,n)},i.prototype.swapInComponentForQuerySelectors=function(t,i){var n=this;this.iterateOverQuerySelectors((function(e){n[e.attributeName]===i&&(n[e.attributeName]=t)}))},i.prototype.iterateOverQuerySelectors=function(t){for(var i=Object.getPrototypeOf(this);null!=i;){var n=i.__agComponentMetaData,e=A(i.constructor);n&&n[e]&&n[e].querySelectors&&n[e].querySelectors.forEach((function(i){return t(i)})),i=Object.getPrototypeOf(i)}},i.prototype.setTemplate=function(t,i){var n=_n(t);this.setTemplateFromElement(n,i)},i.prototype.setTemplateFromElement=function(t,i){this.eGui=t,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),i)},i.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},i.prototype.wireQuerySelectors=function(){var t=this;if(this.eGui){var i=this;this.iterateOverQuerySelectors((function(n){var e=function(t){return i[n.attributeName]=t};if(n.refSelector&&t.eGui.getAttribute("ref")===n.refSelector)e(t.eGui);else{var r=t.eGui.querySelector(n.querySelector);r&&e(r.__agComponent||r)}}))}},i.prototype.getGui=function(){return this.eGui},i.prototype.getFocusableElement=function(){return this.eGui},i.prototype.setParentComponent=function(t){this.parentComponent=t},i.prototype.getParentComponent=function(){return this.parentComponent},i.prototype.setGui=function(t){this.eGui=t},i.prototype.queryForHtmlElement=function(t){return this.eGui.querySelector(t)},i.prototype.queryForHtmlInputElement=function(t){return this.eGui.querySelector(t)},i.prototype.appendChild=function(t,i){null!=t&&(i||(i=this.eGui),Vn(t)?i.appendChild(t):i.appendChild(t.getGui()))},i.prototype.isDisplayed=function(){return this.displayed},i.prototype.setVisible=function(t){t!==this.visible&&(this.visible=t,vn(this.eGui,t))},i.prototype.setDisplayed=function(t){t!==this.displayed&&(this.displayed=t,dn(this.eGui,t),this.dispatchEvent({type:i.EVENT_DISPLAYED_CHANGED,visible:this.displayed}))},i.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),t.prototype.destroy.call(this)},i.prototype.addGuiEventListener=function(t,i){var n=this;this.eGui.addEventListener(t,i),this.addDestroyFunc((function(){return n.eGui.removeEventListener(t,i)}))},i.prototype.addCssClass=function(t){this.cssClassManager.addCssClass(t)},i.prototype.removeCssClass=function(t){this.cssClassManager.removeCssClass(t)},i.prototype.containsCssClass=function(t){return this.cssClassManager.containsCssClass(t)},i.prototype.addOrRemoveCssClass=function(t,i){this.cssClassManager.addOrRemoveCssClass(t,i)},i.prototype.getAttribute=function(t){var i=this.eGui;return i?i.getAttribute(t):null},i.prototype.getRefElement=function(t){return this.queryForHtmlElement('[ref="'+t+'"]')},i.EVENT_DISPLAYED_CHANGED="displayedChanged",rr([W("agStackComponentsRegistry")],i.prototype,"agStackComponentsRegistry",void 0),rr([N],i.prototype,"preConstructOnComponent",null),rr([N],i.prototype,"createChildComponentsPreConstruct",null),i}(kt);
190
- /**
191
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
192
- * @version v28.2.0
193
- * @link https://www.ag-grid.com/
194
- * @license MIT
195
- */function ur(t){return hr.bind(this,"[ref="+t+"]",t)}function hr(t,i,n,e,r){var o,s,u,h;null!==t?"number"!=typeof r?(s="querySelectors",u={attributeName:e,querySelector:t,refSelector:i},(h=function(t,i){return t.__agComponentMetaData||(t.__agComponentMetaData={}),t.__agComponentMetaData[i]||(t.__agComponentMetaData[i]={}),t.__agComponentMetaData[i]}
196
- /**
197
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
198
- * @version v28.2.0
199
- * @link https://www.ag-grid.com/
200
- * @license MIT
201
- */(o=n,A(o.constructor)))[s]||(h[s]=[]),h[s].push(u)):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var cr,ar=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},lr=function(t){function i(){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 ar(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(t){this.params=t;var i=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(i+" "+n("ariaFilterInput","Filter Input"))},i.prototype.onParentModelChanged=function(t){var i=this;t?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var e=n.getModelAsString(t);i.eFloatingFilterText.setValue(e)}})):this.eFloatingFilterText.setValue("")},fr([ur("eFloatingFilterText")],i.prototype,"eFloatingFilterText",void 0),fr([W("columnModel")],i.prototype,"columnModel",void 0),i}(sr),dr=function(){function t(t,i,n,e){var r=this;this.alive=!0,this.context=t,this.eParent=e,i.getDateCompDetails(n).newAgStackInstance().then((function(i){r.alive?(r.dateComp=i,i&&(e.appendChild(i.getGui()),i.afterGuiAttached&&i.afterGuiAttached(),r.tempValue&&i.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):t.destroyBean(i)}))}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.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},t}(),vr=function(){return(vr=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},pr=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(t,i){this.filterOptions=t.filterOptions||i,this.mapCustomOptions(),this.selectDefaultItem(t),this.checkForDeprecatedParams()},t.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},t.prototype.getFilterOptions=function(){return this.filterOptions},t.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach((function(i){if("string"!=typeof i)if([["displayKey"],["displayName"],["predicate","test"]].every((function(t){return!!t.some((function(t){return null!=i[t]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+t+"'"),!1)}))){var n=i.test,e=vr({},i);null!=n&&null==i.predicate&&(e.predicate=function(t,i){return n(t[0],i)},delete e.test),e.hideFilterInput&&null==e.numberOfInputs&&(e.numberOfInputs=0,delete e.hideFilterInput),t.customFilterOptions[i.displayKey]=e}else t.filterOptions=t.filterOptions.filter((function(t){return t===i}))||[]}))},t.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var i=this.filterOptions[0];"string"==typeof i?this.defaultOption=i:i.displayKey?this.defaultOption=i.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}(),gr={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"},mr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),wr=function(){return(wr=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},br=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},yr=function(t){function i(i,n){void 0===n&&(n={});var e=t.call(this)||this;return e.eFocusableElement=i,e.callbacks=n,e.callbacks=wr({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(t){if(!t.defaultPrevented){var i=e.focusService.findNextFocusableElement(e.eFocusableElement,!1,t.shiftKey);i&&(i.focus(),t.preventDefault())}}},n),e}return mr(i,t),i.prototype.postConstruct=function(){this.eFocusableElement.classList.add(i.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)},i.prototype.addKeyDownListeners=function(t){var i=this;this.addManagedListener(t,"keydown",(function(t){t.defaultPrevented||Ct(t)||(i.callbacks.shouldStopEventPropagation(t)?yt(t):t.key===Pe.TAB?i.callbacks.onTabKeyDown(t):i.callbacks.handleKeyDown&&i.callbacks.handleKeyDown(t))}))},i.FOCUS_MANAGED_CLASS="ag-focus-managed",br([W("focusService")],i.prototype,"focusService",void 0),br([L],i.prototype,"postConstruct",null),i}(kt),Cr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Sr=function(t){function i(i){var n=t.call(this)||this;return n.filterNameKey=i,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return Cr(i,t),i.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new yr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},i.prototype.handleKeyDown=function(){},i.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},i.prototype.isFilterActive=function(){return!!this.appliedModel},i.prototype.resetTemplate=function(t){var i='\n <div class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n '+this.createBodyTemplate()+"\n </div>\n </div>";this.setTemplate(i,t)},i.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},i.prototype.init=function(t){var i=this;this.setParams(t),this.resetUiToDefaults(!0).then((function(){i.updateUiVisibility(),i.setupOnBtApplyDebounce()}))},i.prototype.setParams=function(t){this.providedFilterParams=t,this.applyActive=i.isUseApplyButton(t),this.createButtonPanel()},i.prototype.createButtonPanel=function(){var t=this,i=this.providedFilterParams.buttons;if(!(!i||i.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel"),ze(i).forEach((function(i){return function(i){var e,r;switch(i){case"apply":e=t.translate("applyFilter"),r=function(i){return t.onBtApply(!1,!1,i)};break;case"clear":e=t.translate("clearFilter"),r=function(){return t.onBtClear()};break;case"reset":e=t.translate("resetFilter"),r=function(){return t.onBtReset()};break;case"cancel":e=t.translate("cancelFilter"),r=function(i){t.onBtCancel(i)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var o=_n('<button\n type="button"\n ref="'+i+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+e+"\n </button>");n.appendChild(o),t.addManagedListener(o,"click",r)}(i)})),this.getGui().appendChild(n)}},i.prototype.getDefaultDebounceMs=function(){return 0},i.prototype.setupOnBtApplyDebounce=function(){var t=i.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=k(this.onBtApply.bind(this),t)},i.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},i.prototype.setModel=function(t){var i=this;return(null!=t?this.setModelIntoUi(t):this.resetUiToDefaults()).then((function(){i.updateUiVisibility(),i.applyModel()}))},i.prototype.onBtCancel=function(t){var i=this,n=this.getModel(),e=function(){i.onUiChanged(!1,"prevent"),i.providedFilterParams.closeOnApply&&i.close(t)};null!=n?this.setModelIntoUi(n).then(e):this.resetUiToDefaults().then(e)},i.prototype.onBtClear=function(){var t=this;this.resetUiToDefaults().then((function(){return t.onUiChanged()}))},i.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},i.prototype.applyModel=function(){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var i=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(i,t)},i.prototype.isModelValid=function(){return!0},i.prototype.onBtApply=function(t,i,n){void 0===t&&(t=!1),void 0===i&&(i=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:t,afterDataChange:i}),this.providedFilterParams.closeOnApply&&this.applyActive&&!t&&!i&&this.close(n)},i.prototype.onNewRowsLoaded=function(){},i.prototype.close=function(t){if(this.hidePopup){var i,n=t&&t.key;"Enter"!==n&&"Space"!==n||(i={keyboardEvent:t}),this.hidePopup(i),this.hidePopup=null}},i.prototype.onUiChanged=function(t,i){if(void 0===t&&(t=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());pn(this.getRefElement("applyFilterButton"),!n)}t&&!i||"immediately"===i?this.onBtApply(t):(this.applyActive||i)&&"debounce"!==i||this.onBtApplyDebounce()},i.prototype.afterGuiAttached=function(t){null!=t&&(this.hidePopup=t.hidePopup)},i.getDebounceMs=function(t,n){return i.isUseApplyButton(t)?(null!=t.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=t.debounceMs?t.debounceMs:n},i.isUseApplyButton=function(t){return!!t.buttons&&t.buttons.indexOf("apply")>=0},i.prototype.destroy=function(){this.hidePopup=null,t.prototype.destroy.call(this)},i.prototype.translate=function(t){return this.gridOptionsWrapper.getLocaleTextFunc()(t,gr[t])},i.prototype.getCellValue=function(t){var i=this.providedFilterParams;return this.providedFilterParams.valueGetter({api:i.api,colDef:i.colDef,column:i.column,columnApi:i.columnApi,context:i.context,data:t.data,getValue:function(i){return t.data[i]},node:t})},Rr([W("rowModel")],i.prototype,"rowModel",void 0),Rr([W("valueService")],i.prototype,"valueService",void 0),Rr([L],i.prototype,"postConstruct",null),i}(sr),Or=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ar=function(t){function i(i,n){var e=t.call(this,n)||this;return e.labelSeparator="",e.labelAlignment="left",e.disabled=!1,e.label="",e.config=i||{},e}return Or(i,t),i.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var t=this.config,i=t.labelSeparator,n=t.label,e=t.labelWidth,r=t.labelAlignment;null!=i&&this.setLabelSeparator(i),null!=n&&this.setLabel(n),null!=e&&this.setLabelWidth(e),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},i.prototype.refreshLabel=function(){An(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),Xn(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),Xn(this.eLabel,null))},i.prototype.setLabelSeparator=function(t){return this.labelSeparator===t||(this.labelSeparator=t,null!=this.label&&this.refreshLabel()),this},i.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},i.prototype.getLabel=function(){return this.label},i.prototype.setLabel=function(t){return this.label===t||(this.label=t,this.refreshLabel()),this},i.prototype.setLabelAlignment=function(t){var i=this.getGui().classList;return i.toggle("ag-label-align-left","left"===t),i.toggle("ag-label-align-right","right"===t),i.toggle("ag-label-align-top","top"===t),this},i.prototype.setLabelWidth=function(t){return null==this.label||En(this.eLabel,t),this},i.prototype.setDisabled=function(t){t=!!t;var i=this.getGui();return pn(i,t),i.classList.toggle("ag-disabled",t),this.disabled=t,this},i.prototype.isDisabled=function(){return!!this.disabled},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(sr),jr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Gr=function(t){function i(i,n,e){var r=t.call(this,i,n)||this;return r.className=e,r}return jr(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},i.prototype.onValueChange=function(t){var n=this;return this.addManagedListener(this,i.EVENT_CHANGED,(function(){return t(n.getValue())})),this},i.prototype.getWidth=function(){return this.getGui().clientWidth},i.prototype.setWidth=function(t){return Nn(this.getGui(),t),this},i.prototype.getPreviousValue=function(){return this.previousValue},i.prototype.getValue=function(){return this.value},i.prototype.setValue=function(t,n){return this.value===t||(this.previousValue=this.value,this.value=t,n||this.dispatchEvent({type:i.EVENT_CHANGED})),this},i.EVENT_CHANGED="valueChange",i}(Ar),_r=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),xr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Fr=function(t){function n(i,n,e,r){var o=t.call(this,i,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(r?'role="'+r+'"':"")+'\n >\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>',n)||this;return o.pickerIcon=e,o.isPickerDisplayed=!1,o.isDestroyingPicker=!1,o.skipClick=!1,o}return _r(n,t),n.prototype.postConstruct=function(){var i=this;t.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),se(this.eWrapper,n);var e=function(){i.skipClick?i.skipClick=!1:i.isDisabled()||(i.pickerComponent=i.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",(function(t){!i.skipClick&&i.pickerComponent&&i.pickerComponent.isAlive()&&Gn(i.pickerComponent.getGui())&&r.contains(t.target)&&(i.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(t){switch(t.key){case Pe.UP:case Pe.DOWN:case Pe.ENTER:case Pe.SPACE:e();case Pe.ESCAPE:i.isPickerDisplayed&&t.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",e),this.addManagedListener(this.eLabel,"click",e),this.pickerIcon){var o=ke(this.pickerIcon,this.gridOptionsWrapper);o&&this.eIcon.appendChild(o)}},n.prototype.refreshLabel=function(){i(this.getLabel())?re(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},n.prototype.setAriaLabel=function(t){return ee(this.eWrapper,t),this},n.prototype.setInputWidth=function(t){return En(this.eWrapper,t),this},n.prototype.getFocusableElement=function(){return this.eWrapper},xr([ur("eLabel")],n.prototype,"eLabel",void 0),xr([ur("eWrapper")],n.prototype,"eWrapper",void 0),xr([ur("eDisplayField")],n.prototype,"eDisplayField",void 0),xr([ur("eIcon")],n.prototype,"eIcon",void 0),n}(Gr),Mr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),kr=function(t){function i(i){void 0===i&&(i="default");var n=t.call(this,'<div class="ag-list ag-'+i+'-list" role="listbox"></div>')||this;return n.cssIdentifier=i,n.options=[],n.itemEls=[],n}return Mr(i,t),i.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},i.prototype.handleKeyDown=function(t){var i=t.key;switch(i){case Pe.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case Pe.DOWN:case Pe.UP:var e=i===Pe.DOWN,r=void 0;if(t.preventDefault(),this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl)+(e?1:-1);o=Math.min(Math.max(o,0),this.itemEls.length-1),r=this.itemEls[o]}else r=this.itemEls[e?0:this.itemEls.length-1];this.highlightItem(r)}},i.prototype.addOptions=function(t){var i=this;return t.forEach((function(t){return i.addOption(t)})),this},i.prototype.addOption=function(t){var i=t.value,n=Vt(t.text||i);return this.options.push({value:i,text:n}),this.renderOption(i,n),this.updateIndices(),this},i.prototype.updateIndices=function(){var t=this.getGui().querySelectorAll(".ag-list-item");t.forEach((function(i,n){le(i,n+1),fe(i,t.length)}))},i.prototype.renderOption=function(t,i){var n=this,e=document.createElement("div");Xn(e,"option"),e.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),e.innerHTML="<span>"+i+"</span>",e.tabIndex=-1,this.itemEls.push(e),this.addManagedListener(e,"mouseover",(function(){return n.highlightItem(e)})),this.addManagedListener(e,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(e,"click",(function(){return n.setValue(t)})),this.getGui().appendChild(e)},i.prototype.setValue=function(t,i){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var n=this.options.findIndex((function(i){return i.value===t}));if(-1!==n){var e=this.options[n];this.value=e.value,this.displayValue=null!=e.text?e.text:e.value,this.highlightItem(this.itemEls[n]),i||this.fireChangeEvent()}return this},i.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},i.prototype.getValue=function(){return this.value},i.prototype.getDisplayValue=function(){return this.displayValue},i.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var i=this.options.findIndex((function(i){return i.value===t.value}));-1!==i&&this.highlightItem(this.itemEls[i])},i.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},i.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,this.highlightedEl.classList.add(i.ACTIVE_CLASS),Ce(this.highlightedEl,!0),this.highlightedEl.focus())},i.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(i.ACTIVE_CLASS),Ce(this.highlightedEl,!1),this.highlightedEl=null)},i.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Gr.EVENT_CHANGED}),this.fireItemSelected()},i.prototype.fireItemSelected=function(){this.dispatchEvent({type:i.EVENT_ITEM_SELECTED})},i.EVENT_ITEM_SELECTED="selectedItem",i.ACTIVE_CLASS="ag-active-item",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"init",null),i}(sr),Dr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ir=function(t){function i(i){return t.call(this,i,"ag-select","smallDown","listbox")||this}return Dr(i,t),i.prototype.init=function(){var t=this;this.listComponent=this.createBean(new kr("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,kr.EVENT_ITEM_SELECTED,(function(){t.hideList&&t.hideList()})),this.listComponent.addManagedListener(this.listComponent,Gr.EVENT_CHANGED,(function(){t.setValue(t.listComponent.getValue(),!1,!0),t.hideList&&t.hideList()}))},i.prototype.showPicker=function(){var t=this,i=this.listComponent.getGui(),n=this.gridOptionsWrapper.getDocument(),e=this.addManagedListener(n.body,"wheel",(function(n){!i.contains(n.target)&&t.hideList&&t.hideList()})),r=this.addManagedListener(i,"focusout",(function(n){!i.contains(n.relatedTarget)&&t.hideList&&t.hideList()})),o=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:function(){t.hideList=null,t.isPickerDisplayed=!1,r(),e(),t.isAlive()&&(ce(t.eWrapper,!1),t.getFocusableElement().focus())},ariaLabel:o("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,En(i,Cn(this.eWrapper)),ce(this.eWrapper,!0),i.style.maxHeight=wn(this.popupService.getPopupParent())+"px",i.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:i,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},i.prototype.addOptions=function(t){var i=this;return t.forEach((function(t){return i.addOption(t)})),this},i.prototype.addOption=function(t){return this.listComponent.addOption(t),this},i.prototype.setValue=function(i,n,e){return this.value===i?this:(e||this.listComponent.setValue(i,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,i,n)))},i.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),t.prototype.destroy.call(this)},Pr([W("popupService")],i.prototype,"popupService",void 0),Pr([L],i.prototype,"init",null),i}(Fr),Tr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Er=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Nr=function(t){function n(i,n,e,r){void 0===e&&(e="text"),void 0===r&&(r="input");var o=t.call(this,i,'\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 <'+r+' ref="eInput" class="ag-input-field-input"></'+r+">\n </div>\n </div>",n)||this;return o.inputType=e,o.displayFieldTag=r,o}return Tr(n,t),n.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 i=this.config,n=i.width,e=i.value;null!=n&&this.setWidth(n),null!=e&&this.setValue(e),this.addInputListeners()},n.prototype.refreshLabel=function(){i(this.getLabel())?re(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},n.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(i){return t.setValue(i.target.value)}))},n.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},n.prototype.getInputElement=function(){return this.eInput},n.prototype.setInputWidth=function(t){return En(this.eWrapper,t),this},n.prototype.setInputName=function(t){return this.getInputElement().setAttribute("name",t),this},n.prototype.getFocusableElement=function(){return this.eInput},n.prototype.setMaxLength=function(t){return this.eInput.maxLength=t,this},n.prototype.setInputPlaceholder=function(t){return Kn(this.eInput,"placeholder",t),this},n.prototype.setInputAriaLabel=function(t){return ee(this.eInput,t),this},n.prototype.setDisabled=function(i){return pn(this.eInput,i),t.prototype.setDisabled.call(this,i)},Er([ur("eLabel")],n.prototype,"eLabel",void 0),Er([ur("eWrapper")],n.prototype,"eWrapper",void 0),Er([ur("eInput")],n.prototype,"eInput",void 0),n}(Gr),Lr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.One=0]="One",t[t.Two=1]="Two"}(cr||(cr={}));var Br,Wr=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Lr(i,t),i.prototype.getNumberOfInputs=function(t){var n=this.optionsFactory.getCustomOption(t);if(n){var e=n.numberOfInputs;return null!=e?e:1}return t&&[i.EMPTY,i.NOT_BLANK,i.BLANK].indexOf(t)>=0?0:t===i.IN_RANGE?2:1},i.prototype.onFloatingFilterChanged=function(t,i){this.setTypeFromFloatingFilter(t),this.setValueFromFloatingFilter(i),this.onUiChanged(!0)},i.prototype.setTypeFromFloatingFilter=function(t){this.eType1.setValue(t),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},i.prototype.getModelFromUi=function(){return this.isConditionUiComplete(cr.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(cr.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(cr.One),condition2:this.createCondition(cr.Two)}:this.createCondition(cr.One):null},i.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},i.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},i.prototype.areModelsEqual=function(t,i){if(!t&&!i)return!0;if(!t&&i||t&&!i)return!1;var n,e=!t.operator,r=!i.operator;if(!e&&r||e&&!r)return!1;if(e)n=this.areSimpleModelsEqual(t,i);else{var o=t,s=i;n=o.operator===s.operator&&this.areSimpleModelsEqual(o.condition1,s.condition1)&&this.areSimpleModelsEqual(o.condition2,s.condition2)}return n},i.prototype.setModelIntoUi=function(t){if(t.operator){var i=t,n="OR"===i.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(i.condition1.type),this.eType2.setValue(i.condition2.type),this.setConditionIntoUi(i.condition1,cr.One),this.setConditionIntoUi(i.condition2,cr.Two)}else{var e=t;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(e.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(e,cr.One),this.setConditionIntoUi(null,cr.Two)}return $e.resolve()},i.prototype.doesFilterPass=function(t){var i=this,n=this.getModel();if(null==n)return!0;var e=n.operator,r=[];return e?r.push(n.condition1,n.condition2):r.push(n),r[e&&"OR"===e?"some":"every"]((function(n){return i.individualConditionPasses(t,n)}))},i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.optionsFactory=new pr,this.optionsFactory.init(i,this.getDefaultFilterOptions()),this.allowTwoConditions=!i.suppressAndOrCondition,this.alwaysShowBothConditions=!!i.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(i.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},i.prototype.getDefaultJoinOperator=function(t){return ft(["AND","OR"],t)?t:"AND"},i.prototype.putOptionsIntoDropdown=function(){var t=this,i=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];i.forEach((function(i){var e="string"==typeof i?t.createBoilerplateListOption(i):t.createCustomListOption(i);n.forEach((function(t){return t.addOption(e)}))})),n.forEach((function(t){return t.setDisabled(i.length<=1)}))},i.prototype.createBoilerplateListOption=function(t){return{value:t,text:this.translate(t)}},i.prototype.createCustomListOption=function(t){var i=t.displayKey,n=this.optionsFactory.getCustomOption(t.displayKey);return{value:i,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(i)}},i.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},i.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(cr.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(cr.Two)},i.prototype.getCssIdentifier=function(){return"simple-filter"},i.prototype.updateUiVisibility=function(){var t=this,i=[this.eCondition1Body,this.eCondition2Body];[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]].forEach((function(i,n){var e=t.isConditionVisible(n),r=t.isConditionDisabled(n);i.forEach((function(t){t instanceof Nr||t instanceof Ir?(t.setDisabled(r),t.setDisplayed(e)):(pn(t,r),dn(t,e))}))})),i.forEach((function(i,n){dn(i,t.isConditionBodyVisible(n))})),this.forEachInput((function(i,n,e,r){t.setElementDisplayed(i,n<r),t.setElementDisabled(i,t.isConditionDisabled(e))})),this.resetPlaceholder()},i.prototype.afterGuiAttached=function(i){if(t.prototype.afterGuiAttached.call(this,i),this.resetPlaceholder(),!i||!i.suppressFocus&&!this.isReadOnly()){var n=this.getInputs()[0][0];if(!n)return;n instanceof Nr&&n.getInputElement().focus()}},i.prototype.resetPlaceholder=function(){var t=this,i=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput((function(n,e,r,o){if(n instanceof Nr){var s=0===e&&o>1?"inRangeStart":0===e?"filterOoo":"inRangeEnd",u=0===e&&o>1?i("ariaFilterFromValue","Filter from value"):0===e?i("ariaFilterValue","Filter Value"):i("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(t.translate(s)),n.setInputAriaLabel(u)}}))},i.prototype.setElementValue=function(t,i,n){t instanceof Nr&&t.setValue(null!=i?String(i):null,n)},i.prototype.setElementDisplayed=function(t,i){t instanceof sr&&dn(t.getGui(),i)},i.prototype.setElementDisabled=function(t,i){t instanceof sr&&pn(t.getGui(),i)},i.prototype.attachElementOnChange=function(t,i){t instanceof Nr&&t.onValueChange(i)},i.prototype.forEachInput=function(t){var i=this,n=this.getInputs();this.getConditionTypes().forEach((function(e,r){for(var o=i.getNumberOfInputs(e),s=0;s<n[r].length;s++){var u=n[r][s];null!=u&&t(u,s,r,o)}}))},i.prototype.isConditionVisible=function(t){return 0===t||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(t):!!this.alwaysShowBothConditions||this.isConditionUiComplete(t-1))},i.prototype.isConditionDisabled=function(t){return!!this.isReadOnly()||!this.isConditionVisible(t)||0!==t&&!this.isConditionUiComplete(t-1)},i.prototype.isConditionBodyVisible=function(t){if(!this.isConditionVisible(t))return!1;var i=this.getConditionTypes()[t];return this.getNumberOfInputs(i)>0},i.prototype.isConditionUiComplete=function(t){return this.getConditionTypes()[t]!==i.EMPTY&&!this.getValues(t).some((function(t){return null==t}))},i.prototype.resetUiToDefaults=function(t){var i=this,n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),e="ag-simple-filter-and-or-"+this.getCompId(),r=this.optionsFactory.getDefaultOption();return this.eType1.setValue(r,t).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),t).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),t).setName(e).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),t).setName(e).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){i.setElementValue(n,null,t),i.setElementDisabled(n,i.isReadOnly())})),this.resetPlaceholder(),$e.resolve()},i.prototype.setConditionIntoUi=function(t,i){var n=this,e=this.mapValuesFromModel(t);this.forEachInput((function(t,r,o){o===i&&n.setElementValue(t,null!=e[r]?e[r]:null)}))},i.prototype.setValueFromFloatingFilter=function(t){var i=this;this.forEachInput((function(n,e,r){i.setElementValue(n,0===e&&0===r?t:null)}))},i.prototype.isDefaultOperator=function(t){return t===this.defaultJoinOperator},i.prototype.addChangedListeners=function(){var t=this;if(!this.isReadOnly()){var i=function(){return t.onUiChanged()};this.eType1.onValueChange(i),this.eType2.onValueChange(i),this.eJoinOperatorOr.onValueChange(i),this.eJoinOperatorAnd.onValueChange(i),this.forEachInput((function(n){t.attachElementOnChange(n,i)}))}},i.prototype.individualConditionPasses=function(t,i){var n=this.getCellValue(t.node),e=this.mapValuesFromModel(i),r=this.optionsFactory.getCustomOption(i.type),o=this.evaluateCustomFilter(r,e,n);return null!=o?o:null==n?this.evaluateNullValue(i.type):this.evaluateNonNullValue(e,n,i,t)},i.prototype.evaluateCustomFilter=function(t,i,n){if(null!=t){var e=t.predicate;return null==e||i.some((function(t){return null==t}))?void 0:e(i,n)}},i.prototype.isBlank=function(t){return null==t||"string"==typeof t&&0===t.trim().length},i.EMPTY="empty",i.BLANK="blank",i.NOT_BLANK="notBlank",i.EQUALS="equals",i.NOT_EQUAL="notEqual",i.LESS_THAN="lessThan",i.LESS_THAN_OR_EQUAL="lessThanOrEqual",i.GREATER_THAN="greaterThan",i.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",i.IN_RANGE="inRange",i.CONTAINS="contains",i.NOT_CONTAINS="notContains",i.STARTS_WITH="startsWith",i.ENDS_WITH="endsWith",Hr([ur("eOptions1")],i.prototype,"eType1",void 0),Hr([ur("eOptions2")],i.prototype,"eType2",void 0),Hr([ur("eJoinOperatorPanel")],i.prototype,"eJoinOperatorPanel",void 0),Hr([ur("eJoinOperatorAnd")],i.prototype,"eJoinOperatorAnd",void 0),Hr([ur("eJoinOperatorOr")],i.prototype,"eJoinOperatorOr",void 0),Hr([ur("eCondition1Body")],i.prototype,"eCondition1Body",void 0),Hr([ur("eCondition2Body")],i.prototype,"eCondition2Body",void 0),i}(Sr),Vr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zr=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Vr(i,t),i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.scalarFilterParams=i},i.prototype.evaluateNullValue=function(t){switch(t){case i.EQUALS:case i.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case i.GREATER_THAN:case i.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case i.LESS_THAN:case i.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case i.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case i.BLANK:return!0;case i.NOT_BLANK:return!1}return!1},i.prototype.evaluateNonNullValue=function(t,n,e){var r=this.comparator(),o=null!=t[0]?r(t[0],n):0;switch(e.type){case i.EQUALS:return 0===o;case i.NOT_EQUAL:return 0!==o;case i.GREATER_THAN:return o>0;case i.GREATER_THAN_OR_EQUAL:return o>=0;case i.LESS_THAN:return o<0;case i.LESS_THAN_OR_EQUAL:return o<=0;case i.IN_RANGE:var s=r(t[1],n);return this.scalarFilterParams.inRangeInclusive?o>=0&&s<=0:o>0&&s<0;case i.BLANK:return this.isBlank(n);case i.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter "'+e.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},i}(Wr),Ur=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Kr=function(){return(Kr=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},qr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Yr=function(t){function i(){var i=t.call(this,"dateFilter")||this;return i.minValidYear=1e3,i.maxValidYear=1/0,i}return Ur(i,t),i.prototype.afterGuiAttached=function(i){t.prototype.afterGuiAttached.call(this,i),this.dateCondition1FromComp.afterGuiAttached(i)},i.prototype.mapValuesFromModel=function(t){var i=t||{},n=i.dateFrom,e=i.dateTo,r=i.type;return[n&&_e(n)||null,e&&_e(e)||null].slice(0,this.getNumberOfInputs(r))},i.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},i.prototype.defaultComparator=function(t,i){return null==i||i<t?-1:i>t?1:0},i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.dateFilterParams=i;var n=function(t,n){if(null!=i[t]){if(!isNaN(i[t]))return null==i[t]?n:Number(i[t]);console.warn("AG Grid: DateFilter "+t+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",1/0),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},i.prototype.createDateComponents=function(){var t=this,i=function(i){return new dr(t.getContext(),t.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:t.dateFilterParams},i)};this.dateCondition1FromComp=i(this.eCondition1PanelFrom),this.dateCondition1ToComp=i(this.eCondition1PanelTo),this.dateCondition2FromComp=i(this.eCondition2PanelFrom),this.dateCondition2ToComp=i(this.eCondition2PanelTo),this.addDestroyFunc((function(){t.forEachInput((function(t){return t.destroy()}))}))},i.prototype.setElementValue=function(t,i){t.setDate(i)},i.prototype.setElementDisplayed=function(t,i){t.setDisplayed(i)},i.prototype.setElementDisabled=function(t,i){t.setDisabled(i)},i.prototype.getDefaultFilterOptions=function(){return i.DEFAULT_FILTER_OPTIONS},i.prototype.createValueTemplate=function(t){var i=t===cr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+i+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+i+'PanelTo"></div>\n </div>'},i.prototype.isConditionUiComplete=function(i){var n=this;if(!t.prototype.isConditionUiComplete.call(this,i))return!1;var e=!0;return this.forEachInput((function(t,r,o,s){var u;o!==i||!e||r>=s||(e=e&&null!=(u=t.getDate())&&u.getUTCFullYear()>=n.minValidYear&&u.getUTCFullYear()<=n.maxValidYear)})),e},i.prototype.areSimpleModelsEqual=function(t,i){return t.dateFrom===i.dateFrom&&t.dateTo===i.dateTo&&t.type===i.type},i.prototype.getFilterType=function(){return"date"},i.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={},e=this.getValues(t);return e.length>0&&(n.dateFrom=Ae(e[0])),e.length>1&&(n.dateTo=Ae(e[1])),Kr({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:i},n)},i.prototype.resetPlaceholder=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.translate("dateFormatOoo"),n=t("ariaFilterValue","Filter Value");this.forEachInput((function(t){t.setInputPlaceholder(i),t.setInputAriaLabel(n)}))},i.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},i.prototype.getValues=function(t){var i=[];return this.forEachInput((function(n,e,r,o){t===r&&e<o&&i.push(n.getDate())})),i},i.DEFAULT_FILTER_OPTIONS=[zr.EQUALS,zr.GREATER_THAN,zr.LESS_THAN,zr.NOT_EQUAL,zr.IN_RANGE,zr.BLANK,zr.NOT_BLANK],qr([ur("eCondition1PanelFrom")],i.prototype,"eCondition1PanelFrom",void 0),qr([ur("eCondition1PanelTo")],i.prototype,"eCondition1PanelTo",void 0),qr([ur("eCondition2PanelFrom")],i.prototype,"eCondition2PanelFrom",void 0),qr([ur("eCondition2PanelTo")],i.prototype,"eCondition2PanelTo",void 0),qr([W("userComponentFactory")],i.prototype,"userComponentFactory",void 0),i}(zr),Jr=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Zr=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Jr(i,t),i.prototype.getDefaultDebounceMs=function(){return 0},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.getTextFromModel=function(t){if(!t)return null;if(null!=t.operator){var i=t,n=i||{},e=n.condition2,r=this.getTextFromModel(n.condition1),o=this.getTextFromModel(e);return[r,i.operator,o].join(" ")}var s=t,u=this.optionsFactory.getCustomOption(s.type),h=u||{},c=h.displayKey,a=h.displayName;return c&&a&&0===h.numberOfInputs?(this.gridOptionsWrapper.getLocaleTextFunc()(c,a),a):this.conditionToString(s,u)},i.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},i.prototype.getLastType=function(){return this.lastType},i.prototype.isReadOnly=function(){return this.readOnly},i.prototype.setLastTypeFromModel=function(t){t?this.lastType=(t.operator?t.condition1:t).type:this.lastType=this.optionsFactory.getDefaultOption()},i.prototype.canWeEditAfterModelFromParentFilter=function(t){return t?!t.operator&&this.isTypeEditable(t.type):this.isTypeEditable(this.lastType)},i.prototype.init=function(t){this.optionsFactory=new pr,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!t.filterParams.readOnly;var i=this.isTypeEditable(this.lastType);this.setEditable(i)},i.prototype.doesFilterHaveSingleInput=function(t){var i=(this.optionsFactory.getCustomOption(t)||{}).numberOfInputs;return null==i||1==i},i.prototype.isTypeEditable=function(t){var i=[Wr.IN_RANGE,Wr.EMPTY,Wr.BLANK,Wr.NOT_BLANK];return!!t&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(t)&&i.indexOf(t)<0},i}(sr),$r=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xr=function(t){function i(){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 $r(i,t),i.prototype.getDefaultFilterOptions=function(){return Yr.DEFAULT_FILTER_OPTIONS},i.prototype.conditionToString=function(t,i){var n=t.type,e=n==Wr.IN_RANGE||2===(i||{}).numberOfInputs,r=_e(t.dateFrom),o=_e(t.dateTo),s=this.filterParams.inRangeFloatingFilterDateFormat;return e?(null!==r?Ge(r,s):"null")+"-"+(null!==o?Ge(o,s):"null"):null!=r?Ge(r,s):""+n},i.prototype.init=function(i){t.prototype.init.call(this,i),this.params=i,this.filterParams=i.filterParams,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},i.prototype.setEditable=function(t){dn(this.eDateWrapper,t),dn(this.eReadOnlyText.getGui(),!t)},i.prototype.onParentModelChanged=function(i,n){if(!this.isEventFromFloatingFilter(n)){t.prototype.setLastTypeFromModel.call(this,i);var e=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(i);this.setEditable(e),e?(this.dateComp.setDate(i?_e(i.dateFrom):null),this.eReadOnlyText.setValue("")):(this.eReadOnlyText.setValue(this.getTextFromModel(i)),this.dateComp.setDate(null))}},i.prototype.onDateChanged=function(){var t=this,i=Ae(this.dateComp.getDate());this.params.parentFilterInstance((function(n){if(n){var e=_e(i);n.onFloatingFilterChanged(t.getLastType()||null,e)}}))},i.prototype.createDateComponent=function(){var t=this,i=Sr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:k(this.onDateChanged.bind(this),i),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new dr(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return t.dateComp.destroy()}))},Qr([W("userComponentFactory")],i.prototype,"userComponentFactory",void 0),Qr([ur("eReadOnlyText")],i.prototype,"eReadOnlyText",void 0),Qr([ur("eDateWrapper")],i.prototype,"eDateWrapper",void 0),i}(Zr),to=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),io=function(t){function i(){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 to(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(t){var i=this,n=this.gridOptionsWrapper.getDocument(),e=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(t)&&(e.type="date"),this.addManagedListener(e,"mousedown",(function(){i.eDateInput.isDisabled()||e.focus()})),this.addManagedListener(e,"input",(function(e){e.target===n.activeElement&&(i.eDateInput.isDisabled()||t.onDateChanged())}));var r=t.filterParams||{},o=r.minValidYear,s=r.maxValidYear;o&&(e.min=o+"-01-01"),s&&(e.max=s+"-12-31")},i.prototype.getDate=function(){return _e(this.eDateInput.getValue())},i.prototype.setDate=function(t){this.eDateInput.setValue(Ae(t,!1))},i.prototype.setInputPlaceholder=function(t){this.eDateInput.setInputPlaceholder(t)},i.prototype.setDisabled=function(t){this.eDateInput.setDisabled(t)},i.prototype.afterGuiAttached=function(t){t&&t.suppressFocus||this.eDateInput.getInputElement().focus()},i.prototype.shouldUseBrowserDatePicker=function(t){return t.filterParams&&null!=t.filterParams.browserDatePicker?t.filterParams.browserDatePicker:gi()||mi()},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([ur("eDateInput")],i.prototype,"eDateInput",void 0),i}(sr),no=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),eo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ro=function(i){function n(){return i.call(this,"numberFilter")||this}return no(n,i),n.prototype.mapValuesFromModel=function(t){var i=t||{},n=i.filter,e=i.filterTo;return[null==n?null:n,null==e?null:e].slice(0,this.getNumberOfInputs(i.type))},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.comparator=function(){return function(t,i){return t===i?0:t<i?1:-1}},n.prototype.setParams=function(t){this.numberFilterParams=t;var n=this.getAllowedCharPattern();if(n){var e={allowedCharPattern:n};this.resetTemplate({"eValue-index0-1":e,"eValue-index1-1":e,"eValue-index0-2":e,"eValue-index1-2":e})}i.prototype.setParams.call(this,t)},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.createValueTemplate=function(t){var i=t===cr.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body" role="presentation">\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'"></'+n+">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'"></'+n+">\n </div>"},n.prototype.getValues=function(t){var i=this,n=[];return this.forEachInput((function(e,r,o,s){t===o&&r<s&&n.push(i.stringToFloat(e.getValue()))})),n},n.prototype.areSimpleModelsEqual=function(t,i){return t.filter===i.filter&&t.filterTo===i.filterTo&&t.type===i.type},n.prototype.getFilterType=function(){return"number"},n.prototype.stringToFloat=function(i){if("number"==typeof i)return i;var n=t(i);return null!=n&&""===n.trim()&&(n=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(n):null==n||"-"===n.trim()?null:parseFloat(n)},n.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={filterType:this.getFilterType(),type:i},e=this.getValues(t);return e.length>0&&(n.filter=e[0]),e.length>1&&(n.filterTo=e[1]),n},n.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},n.prototype.getAllowedCharPattern=function(){return(this.numberFilterParams||{}).allowedCharPattern||(gi()||vi()?null:"\\d\\-\\.")},n.DEFAULT_FILTER_OPTIONS=[zr.EQUALS,zr.NOT_EQUAL,zr.LESS_THAN,zr.LESS_THAN_OR_EQUAL,zr.GREATER_THAN,zr.GREATER_THAN_OR_EQUAL,zr.IN_RANGE,zr.BLANK,zr.NOT_BLANK],eo([ur("eValue-index0-1")],n.prototype,"eValueFrom1",void 0),eo([ur("eValue-index1-1")],n.prototype,"eValueTo1",void 0),eo([ur("eValue-index0-2")],n.prototype,"eValueFrom2",void 0),eo([ur("eValue-index1-2")],n.prototype,"eValueTo2",void 0),n}(zr),oo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),so=function(){return(so=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},uo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ho=function(i){function n(){return i.call(this,"textFilter")||this}return oo(n,i),n.trimInput=function(t){var i=t&&t.trim();return""===i?t:i},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.setParams=function(t){i.prototype.setParams.call(this,t),this.textFilterParams=t,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?n.DEFAULT_FORMATTER:n.DEFAULT_LOWERCASE_FORMATTER)},n.prototype.getTextMatcher=function(){var t=this.textFilterParams.textCustomComparator;return t?(Ye.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(i){return t(i.filterOption,i.value,i.filterText)}):this.textFilterParams.textMatcher||n.DEFAULT_MATCHER},n.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={filterType:this.getFilterType(),type:i},e=this.getValues(t);return e.length>0&&(n.filter=e[0]),e.length>1&&(n.filterTo=e[1]),n},n.prototype.getFilterType=function(){return"text"},n.prototype.areSimpleModelsEqual=function(t,i){return t.filter===i.filter&&t.filterTo===i.filterTo&&t.type===i.type},n.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},n.prototype.getValues=function(i){var e=this,r=[];return this.forEachInput((function(o,s,u,h){if(i===u&&s<h){var c=t(o.getValue()),a=(e.textFilterParams.trimInput?n.trimInput(c):c)||null;r.push(a),o.setValue(a,!0)}})),r},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.createValueTemplate=function(t){var i=t===cr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body" role="presentation">\n <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'"></ag-input-text-field>\n <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'"></ag-input-text-field>\n </div>'},n.prototype.mapValuesFromModel=function(t){var i=t||{};return[i.filter||null,i.filterTo||null].slice(0,this.getNumberOfInputs(i.type))},n.prototype.evaluateNullValue=function(t){return!!t&&[Wr.NOT_EQUAL,Wr.NOT_CONTAINS,Wr.BLANK].indexOf(t)>=0},n.prototype.evaluateNonNullValue=function(t,i,n,e){var r=this,o=t.map((function(t){return r.formatter(t)}))||[],s=this.formatter(i),u=this.textFilterParams,h=u.api,c=u.colDef,a=u.column,f=u.columnApi,l=u.context,d=u.textFormatter;if(n.type===Wr.BLANK)return this.isBlank(i);if(n.type===Wr.NOT_BLANK)return!this.isBlank(i);var v={api:h,colDef:c,column:a,columnApi:f,context:l,node:e.node,data:e.data,filterOption:n.type,value:s,textFormatter:d};return o.some((function(t){return r.matcher(so(so({},v),{filterText:t}))}))},n.DEFAULT_FILTER_OPTIONS=[Wr.CONTAINS,Wr.NOT_CONTAINS,Wr.EQUALS,Wr.NOT_EQUAL,Wr.STARTS_WITH,Wr.ENDS_WITH,Wr.BLANK,Wr.NOT_BLANK],n.DEFAULT_FORMATTER=function(t){return t},n.DEFAULT_LOWERCASE_FORMATTER=function(t){return null==t?null:t.toString().toLowerCase()},n.DEFAULT_MATCHER=function(t){var i=t.value,e=t.filterText;if(null==e)return!1;switch(t.filterOption){case n.CONTAINS:return i.indexOf(e)>=0;case n.NOT_CONTAINS:return i.indexOf(e)<0;case n.EQUALS:return i===e;case n.NOT_EQUAL:return i!=e;case n.STARTS_WITH:return 0===i.indexOf(e);case n.ENDS_WITH:var r=i.lastIndexOf(e);return r>=0&&r===i.length-e.length;default:return!1}},uo([ur("eValue-index0-1")],n.prototype,"eValueFrom1",void 0),uo([ur("eValue-index1-1")],n.prototype,"eValueTo1",void 0),uo([ur("eValue-index0-2")],n.prototype,"eValueFrom2",void 0),uo([ur("eValue-index1-2")],n.prototype,"eValueTo2",void 0),n}(Wr),co=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ao=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},fo=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return co(i,t),i.prototype.postConstruct=function(){this.resetTemplate()},i.prototype.resetTemplate=function(t){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>\n ',t)},i.prototype.getDefaultDebounceMs=function(){return 500},i.prototype.onParentModelChanged=function(t,i){this.isEventFromFloatingFilter(i)||(this.setLastTypeFromModel(t),this.eFloatingFilterInput.setValue(this.getTextFromModel(t)),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)))},i.prototype.init=function(i){t.prototype.init.call(this,i),this.params=i,this.applyActive=Sr.isUseApplyButton(this.params.filterParams);var n=this.params.filterParams.allowedCharPattern;if(null!=n&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:n}}),!this.isReadOnly()){var e=Sr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=k(this.syncUpWithParentFilter.bind(this),e),o=this.eFloatingFilterInput.getGui();this.addManagedListener(o,"input",r),this.addManagedListener(o,"keypress",r),this.addManagedListener(o,"keydown",r)}var s=i.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var u=this.columnModel.getDisplayNameForColumn(i.column,"header",!0),h=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(u+" "+h("ariaFilterInput","Filter Input"))},i.prototype.syncUpWithParentFilter=function(t){var i=this;if(!this.applyActive||t.key===Pe.ENTER){var n=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(n=ho.trimInput(n),this.eFloatingFilterInput.setValue(n,!0)),this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(i.getLastType()||null,n||null)}))}},i.prototype.conditionToString=function(t,i){return t.type==Wr.IN_RANGE||2===(i||{}).numberOfInputs?t.filter+"-"+t.filterTo:null!=t.filter?""+t.filter:""+t.type},i.prototype.setEditable=function(t){this.eFloatingFilterInput.setDisabled(!t)},ao([W("columnModel")],i.prototype,"columnModel",void 0),ao([ur("eFloatingFilterInput")],i.prototype,"eFloatingFilterInput",void 0),ao([L],i.prototype,"postConstruct",null),i}(Zr),lo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vo=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return lo(i,t),i.prototype.getDefaultFilterOptions=function(){return ro.DEFAULT_FILTER_OPTIONS},i}(fo),po=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),go=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return po(i,t),i.prototype.getDefaultFilterOptions=function(){return ho.DEFAULT_FILTER_OPTIONS},i}(fo),mo=function(){function t(t,i){var n=this;void 0===i&&(i=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new $,this.eElement=t,this.preventMouseClick=i;var e=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),o=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",e,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",o,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",e,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",o,{passive:!1})}))}return t.prototype.getActiveTouch=function(t){for(var i=0;i<t.length;i++)if(t[i].identifier===this.touchStart.identifier)return t[i];return null},t.prototype.addEventListener=function(t,i){this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService.removeEventListener(t,i)},t.prototype.onTouchStart=function(i){var n=this;if(!this.touching){this.touchStart=i.touches[0],this.touching=!0,this.moved=!1;var e=this.touchStart;window.setTimeout((function(){n.touching&&n.touchStart===e&&!n.moved&&(n.moved=!0,n.eventService.dispatchEvent({type:t.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:i}))}),500)}},t.prototype.onTouchMove=function(t){if(this.touching){var i=this.getActiveTouch(t.touches);i&&!Be(i,this.touchStart,4)&&(this.moved=!0)}},t.prototype.onTouchEnd=function(i){this.touching&&(this.moved||(this.eventService.dispatchEvent({type:t.EVENT_TAP,touchStart:this.touchStart}),this.checkForDoubleTap()),this.preventMouseClick&&i.cancelable&&i.preventDefault(),this.touching=!1)},t.prototype.checkForDoubleTap=function(){var i=(new Date).getTime();this.lastTapTime&&this.lastTapTime>0&&i-this.lastTapTime>t.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:t.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=i},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}(),wo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},yo=function(t){function i(n){var e=t.call(this)||this;return n||e.setTemplate(i.TEMPLATE),e}return wo(i,t),i.prototype.attachCustomElements=function(t,i,n,e,r){this.eSortOrder=t,this.eSortAsc=i,this.eSortDesc=n,this.eSortMixed=e,this.eSortNone=r},i.prototype.setupSort=function(t,i){var n=this;void 0===i&&(i=!1),this.column=t,this.suppressOrder=i,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,Tt.EVENT_SORT_CHANGED,(function(){return n.onSortChanged()})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return n.onSortChanged()})),this.onSortChanged())},i.prototype.addInIcon=function(t,i,n){if(null!=i){var e=ke(t,this.gridOptionsWrapper,n);e&&i.appendChild(e)}},i.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},i.prototype.updateIcons=function(){var t=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!("asc"===t)),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!("desc"===t)),this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",i||!(null==t))}},i.prototype.setupMultiSortIndicator=function(){var t=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var i=this.column.getColDef().showRowGroup;this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&i&&(this.addManagedListener(this.eventService,Tt.EVENT_SORT_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},i.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var t="mixed"===this.sortController.getDisplaySortForColumn(this.column);this.eSortMixed.classList.toggle("ag-hidden",!t)}},i.prototype.updateSortOrder=function(){var t,i=this;if(this.eSortOrder){var n=this.sortController.getColumnsWithSortingOrdered(),e=null!=(t=this.sortController.getDisplaySortIndexForColumn(this.column))?t:-1,r=n.some((function(t){var n;return null!=(n=i.sortController.getDisplaySortIndexForColumn(t))&&n}));dn(this.eSortOrder,e>=0&&r),e>=0?this.eSortOrder.innerHTML=(e+1).toString():An(this.eSortOrder)}},i.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>',bo([ur("eSortOrder")],i.prototype,"eSortOrder",void 0),bo([ur("eSortAsc")],i.prototype,"eSortAsc",void 0),bo([ur("eSortDesc")],i.prototype,"eSortDesc",void 0),bo([ur("eSortMixed")],i.prototype,"eSortMixed",void 0),bo([ur("eSortNone")],i.prototype,"eSortNone",void 0),bo([W("columnModel")],i.prototype,"columnModel",void 0),bo([W("sortController")],i.prototype,"sortController",void 0),i}(sr),Co=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ro=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},So=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.lastMovingChanged=0,i}return Co(n,t),n.prototype.destroy=function(){t.prototype.destroy.call(this)},n.prototype.refresh=function(t){return this.params=t,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(t),!0)},n.prototype.workOutTemplate=function(){var t=et(this.params.template,n.TEMPLATE);return t&&t.trim?t.trim():t},n.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)},n.prototype.setDisplayName=function(t){if(this.currentDisplayName!=t.displayName){this.currentDisplayName=t.displayName;var i=Vt(this.currentDisplayName);this.eText&&(this.eText.innerHTML=i)}},n.prototype.setupIcons=function(t){this.addInIcon("menu",this.eMenu,t),this.addInIcon("filter",this.eFilter,t)},n.prototype.addInIcon=function(t,i,n){if(null!=i){var e=ke(t,this.gridOptionsWrapper,n);e&&i.appendChild(e)}},n.prototype.setupTap=function(){var t=this,n=this.gridOptionsWrapper;if(!n.isSuppressTouch()){var e=new mo(this.getGui(),!0),r=n.isSuppressMenuHide(),o=r&&i(this.eMenu),s=o?new mo(this.eMenu,!0):e;this.params.enableMenu&&this.addManagedListener(s,mo[o?"EVENT_TAP":"EVENT_LONG_TAP"],(function(i){n.getApi().showColumnMenuAfterMouseClick(t.params.column,i.touchStart)})),this.params.enableSorting&&this.addManagedListener(e,mo.EVENT_TAP,(function(i){r&&t.eMenu.contains(i.touchStart.target)||t.sortController.progressSort(t.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return e.destroy()})),o&&this.addDestroyFunc((function(){return s.destroy()}))}},n.prototype.workOutShowMenu=function(){var t=!this.gridOptionsWrapper.isSuppressMenuHide(),i=bi()&&t;return this.params.enableMenu&&!i},n.prototype.setMenu=function(){var t=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var i=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return t.showMenu(t.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",i)}else jn(this.eMenu)},n.prototype.showMenu=function(t){t||(t=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,t,"columnMenu")},n.prototype.workOutSort=function(){return this.params.enableSorting},n.prototype.setupSort=function(){var t=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new yo(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var i=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,nt.EVENT_MOVING_CHANGED,(function(){t.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var e=t.params.column.isMoving(),r=(new Date).getTime();e||r-t.lastMovingChanged<50||t.params.progressSort(i?n.ctrlKey||n.metaKey:n.shiftKey)}));var n=function(){var i;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 n=null===(i=t.columnModel.getSourceColumnsForGroupColumn(t.params.column))||void 0===i?void 0:i.every((function(i){return t.params.column.getSort()==i.getSort()}));t.addOrRemoveCssClass("ag-header-cell-sorted-mixed",!n)}};this.addManagedListener(this.eventService,Tt.EVENT_SORT_CHANGED,n),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,n)}},n.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,nt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},n.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!t)},n.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>',Ro([W("sortController")],n.prototype,"sortController",void 0),Ro([W("menuFactory")],n.prototype,"menuFactory",void 0),Ro([W("columnModel")],n.prototype,"columnModel",void 0),Ro([ur("eFilter")],n.prototype,"eFilter",void 0),Ro([ur("eSortIndicator")],n.prototype,"eSortIndicator",void 0),Ro([ur("eMenu")],n.prototype,"eMenu",void 0),Ro([ur("eLabel")],n.prototype,"eLabel",void 0),Ro([ur("eText")],n.prototype,"eText",void 0),Ro([ur("eSortOrder")],n.prototype,"eSortOrder",void 0),Ro([ur("eSortAsc")],n.prototype,"eSortAsc",void 0),Ro([ur("eSortDesc")],n.prototype,"eSortDesc",void 0),Ro([ur("eSortMixed")],n.prototype,"eSortMixed",void 0),Ro([ur("eSortNone")],n.prototype,"eSortNone",void 0),n}(sr),Oo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ao=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jo=function(t){function n(){return t.call(this,n.TEMPLATE)||this}return Oo(n,t),n.prototype.destroy=function(){t.prototype.destroy.call(this)},n.prototype.init=function(t){this.params=t,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},n.prototype.checkWarnings=function(){this.params.template&&O((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")},n.prototype.setupExpandIcons=function(){var t=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var i=function(i){if(!Ct(i)){var n=!t.params.columnGroup.isExpanded();t.columnModel.setColumnGroupOpened(t.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,i),this.addTouchAndClickListeners(this.eOpenIcon,i);var n=function(t){yt(t)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",i),this.updateIconVisibility();var e=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(e,gt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(e,gt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},n.prototype.addTouchAndClickListeners=function(t,i){var n=new mo(t,!0);this.addManagedListener(n,mo.EVENT_TAP,i),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(t,"click",i)},n.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)},n.prototype.addInIcon=function(t,i){var n=ke(t,this.gridOptionsWrapper,null);n&&this.getRefElement(i).appendChild(n)},n.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return dn(this.eOpenIcon,!1),void dn(this.eCloseIcon,!1)},n.prototype.setupLabel=function(){var t=this.params.displayName;if(i(t)){var n=Vt(t);this.getRefElement("agLabel").innerHTML=n}},n.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>',Ao([W("columnModel")],n.prototype,"columnModel",void 0),Ao([ur("agOpened")],n.prototype,"eOpenIcon",void 0),Ao([ur("agClosed")],n.prototype,"eCloseIcon",void 0),n}(sr),Go=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_o=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Go(i,t),i.prototype.isPopup=function(){return!0},i.prototype.setParentComponent=function(i){i.addCssClass("ag-has-popup"),t.prototype.setParentComponent.call(this,i)},i.prototype.destroy=function(){var i=this.parentComponent;i&&i.isAlive()&&i.getGui().classList.remove("ag-has-popup"),t.prototype.destroy.call(this)},i}(sr),xo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fo=function(t){function n(){return t.call(this,n.TEMPLATE)||this}return xo(n,t),n.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),i(t.value)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},n.prototype.onKeyDown=function(t){var i=t.key;(i===Pe.LEFT||i===Pe.UP||i===Pe.RIGHT||i===Pe.DOWN||t.shiftKey&&i===Pe.ENTER)&&t.stopPropagation()},n.prototype.afterGuiAttached=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},n.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},n.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([ur("eTextArea")],n.prototype,"eTextArea",void 0),n}(_o),Mo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ko=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Do=function(t){function i(){var i=t.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return i.startedByEnter=!1,i}return Mo(i,t),i.prototype.init=function(t){var i=this;if(this.focusAfterAttached=t.cellStartedEdit,n(t.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=t.eventKey&&t.eventKey===Pe.ENTER;var e=!1;t.values.forEach((function(n){var r={value:n},o=i.valueFormatterService.formatValue(t.column,null,n);r.text=null!=o?o:n,i.eSelect.addOption(r),e=e||t.value===n})),e?this.eSelect.setValue(t.value,!0):t.values.length&&this.eSelect.setValue(t.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return t.stopEditing()}))}},i.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},i.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},i.prototype.getValue=function(){return this.eSelect.getValue()},i.prototype.isPopup=function(){return!1},ko([W("valueFormatterService")],i.prototype,"valueFormatterService",void 0),ko([ur("eSelect")],i.prototype,"eSelect",void 0),i}(_o),Po=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Io=function(t){function i(){var i=t.call(this)||this;return O((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),i}return Po(i,t),i.prototype.isPopup=function(){return!0},i}(Do),To=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Eo=function(t){function n(){return t.call(this,n.TEMPLATE)||this}return To(n,t),n.prototype.init=function(t){this.params=t;var i,n=this.eInput;t.cellStartedEdit?(this.focusAfterAttached=!0,t.eventKey===Pe.BACKSPACE||t.eventKey===Pe.DELETE?i="":t.charPress?i=t.charPress:(i=this.getStartValue(t),t.eventKey!==Pe.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,i=this.getStartValue(t)),null!=i&&n.setValue(i,!0),this.addManagedListener(n.getGui(),"keydown",(function(t){var i=t.key;i!==Pe.PAGE_UP&&i!==Pe.PAGE_DOWN||t.preventDefault()}))},n.prototype.afterGuiAttached=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),n=this.eInput;if(n.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached){pi()||n.getFocusableElement().focus();var e=n.getInputElement();if(this.highlightAllOnFocus)e.select();else{var r=n.getValue(),o=i(r)&&r.length||0;o&&e.setSelectionRange(o,o)}}},n.prototype.focusIn=function(){var t=this.eInput,i=t.getFocusableElement(),n=t.getInputElement();i.focus(),n.select()},n.prototype.getValue=function(){return this.params.parseValue(this.eInput.getValue())},n.prototype.getStartValue=function(t){return t.useFormatter||t.column.getColDef().refData?t.formatValue(t.value):t.value},n.prototype.isPopup=function(){return!1},n.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([ur("eInput")],n.prototype,"eInput",void 0),n}(_o),No=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Lo=function(t){function i(){var i=t.call(this)||this;return O((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),i}return No(i,t),i.prototype.isPopup=function(){return!0},i}(Eo),Ho=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bo=function(t){function n(){var i=t.call(this,n.TEMPLATE)||this;return i.refreshCount=0,i}return Ho(n,t),n.prototype.init=function(t){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(t)},n.prototype.showDelta=function(t,n){var e=Math.abs(n),r=t.formatValue(e),o=i(r)?r:e,s=n>=0;this.eDelta.innerHTML=s?"↑"+o:"↓"+o,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},n.prototype.setTimerToRemoveDelta=function(){var t=this;this.refreshCount++;var i=this.refreshCount;window.setTimeout((function(){i===t.refreshCount&&t.hideDeltaValue()}),2e3)},n.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),An(this.eDelta)},n.prototype.refresh=function(t){var n=t.value;return n!==this.lastValue&&(i(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:i(t.value)?this.eValue.innerHTML=n:An(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&("number"==typeof n&&"number"==typeof this.lastValue&&this.showDelta(t,n-this.lastValue),this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=n,!0))},n.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([W("filterManager")],n.prototype,"filterManager",void 0),n}(sr),Wo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vo=function(t){function e(){var i=t.call(this,e.TEMPLATE)||this;return i.refreshCount=0,i.eCurrent=i.queryForHtmlElement(".ag-value-slide-current"),i}return Wo(e,t),e.prototype.init=function(t){this.refresh(t)},e.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=_n('<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(){i===t.refreshCount&&t.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){i===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},e.prototype.refresh=function(t){var e=t.value;return n(e)&&(e=""),e!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=e,i(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:i(t.value)?this.eCurrent.innerHTML=e:An(this.eCurrent),!0)},e.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([W("filterManager")],e.prototype,"filterManager",void 0),e}(sr);
202
- /**
203
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
204
- * @version v28.2.0
205
- * @link https://www.ag-grid.com/
206
- * @license MIT
207
- */!function(t){t[t.Above=0]="Above",t[t.Below=1]="Below"}(Br||(Br={}));var zo,Uo,Ko,qo=function(){function t(i){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.selected=!1,this.beans=i}return t.prototype.setData=function(t){this.setDataCommon(t,!1)},t.prototype.updateData=function(t){this.setDataCommon(t,!0)},t.prototype.setDataCommon=function(t,i){var n=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var e=this.createDataChangedEvent(t,n,i);this.dispatchLocalEvent(e)},t.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},t.prototype.createDataChangedEvent=function(i,n,e){return{type:t.EVENT_DATA_CHANGED,node:this,oldData:n,newData:i,update:e}},t.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},t.prototype.getRowIndexString=function(){return this.rowPinned===Q.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===Q.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},t.prototype.createDaemonNode=function(){var i=new t(this.beans);return i.id=this.id,i.data=this.data,i.daemon=!0,i.selected=this.selected,i.level=this.level,i},t.prototype.setDataAndId=function(t,n){var e=i(this.id)?this.createDaemonNode():null,r=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(n),this.beans.selectionService.syncInRowNode(this,e),this.checkRowSelectable();var o=this.createDataChangedEvent(t,r,!1);this.dispatchLocalEvent(o)},t.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!t||t(this))},t.prototype.setRowSelectable=function(i){if(this.selectable!==i&&(this.selectable=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsWrapper.isGroupSelectsChildren())){var n=this.calculateSelectedFromChildren();this.setSelected(null!=n&&n)}},t.prototype.setId=function(i){var n=this.beans.gridOptionsWrapper.getRowIdFunc();if(n)if(this.data){var e=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:e.length>0?e: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=i},t.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var i=[],n=this;for(t&&(n=n.parent);n&&n.level>=0;)i.push(n.key),n=n.parent;return i.reverse(),i},t.prototype.isPixelInRange=function(t){return!(!i(this.rowTop)||!i(this.rowHeight))&&t>=this.rowTop&&t<this.rowTop+this.rowHeight},t.prototype.setFirstChild=function(i){this.firstChild!==i&&(this.firstChild=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_FIRST_CHILD_CHANGED)))},t.prototype.setLastChild=function(i){this.lastChild!==i&&(this.lastChild=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_LAST_CHILD_CHANGED)))},t.prototype.setChildIndex=function(i){this.childIndex!==i&&(this.childIndex=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_CHILD_INDEX_CHANGED)))},t.prototype.setRowTop=function(i){this.oldRowTop=this.rowTop,this.rowTop!==i&&(this.rowTop=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_TOP_CHANGED)),this.setDisplayed(null!==i))},t.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},t.prototype.setDisplayed=function(i){this.displayed!==i&&(this.displayed=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DISPLAYED_CHANGED)))},t.prototype.setDragging=function(i){this.dragging!==i&&(this.dragging=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DRAGGING_CHANGED)))},t.prototype.setHighlighted=function(i){i!==this.highlighted&&(this.highlighted=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HIGHLIGHT_CHANGED)))},t.prototype.setAllChildrenCount=function(i){this.allChildrenCount!==i&&(this.allChildrenCount=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},t.prototype.setMaster=function(i){this.master!==i&&(this.master&&!i&&(this.expanded=!1),this.master=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_MASTER_CHANGED)))},t.prototype.setGroup=function(i){this.group!==i&&(this.group&&!i&&(this.expanded=!1),this.group=i,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_GROUP_CHANGED)))},t.prototype.setRowHeight=function(i,n){void 0===n&&(n=!1),this.rowHeight=i,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HEIGHT_CHANGED))},t.prototype.setRowAutoHeight=function(t,i){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[i.getId()]=t,null!=t&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=k(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},t.prototype.checkAutoHeights=function(){var t=!1,i=!0,n=0,e=this.__autoHeights;if(null!=e&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(r){var o=e[r.getId()];null!=o?(i=!1,o>n&&(n=o)):t=!0})),!t&&((i||n<10)&&(n=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),n!=this.rowHeight))){this.setRowHeight(n);var r=this.beans.rowModel;r.onRowHeightChangedDebounced&&r.onRowHeightChangedDebounced()}},t.prototype.setRowIndex=function(i){this.rowIndex!==i&&(this.rowIndex=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ROW_INDEX_CHANGED)))},t.prototype.setUiLevel=function(i){this.uiLevel!==i&&(this.uiLevel=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_UI_LEVEL_CHANGED)))},t.prototype.setExpanded=function(i,n){if(this.expanded!==i){this.expanded=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var e=Object.assign({},this.createGlobalRowEvent(Tt.EVENT_ROW_GROUP_OPENED),{expanded:i,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(e),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&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.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},t.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},t.prototype.setDataValue=function(t,i,n){var e=this.beans.columnModel.getPrimaryColumn(t),r=this.beans.valueService.getValue(e,this),o=this.beans.valueService.setValue(this,e,i,n);return this.dispatchCellChangedEvent(e,i,r),this.checkRowSelectable(),o},t.prototype.setGroupValue=function(t,i){var e=this.beans.columnModel.getGridColumn(t);n(this.groupData)&&(this.groupData={});var r=e.getColId(),o=this.groupData[r];o!==i&&(this.groupData[r]=i,this.dispatchCellChangedEvent(e,i,o))},t.prototype.setAggData=function(t){var i=this,n=g([this.aggData,t]),e=this.aggData;this.aggData=t,this.eventService&&n.forEach((function(t){var n=i.beans.columnModel.getGridColumn(t);i.dispatchCellChangedEvent(n,i.aggData?i.aggData[t]:void 0,e?e[t]:void 0)}))},t.prototype.updateHasChildren=function(){var i=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;i!==this.__hasChildren&&(this.__hasChildren=!!i,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&&e(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(i,n,e){this.dispatchLocalEvent({type:t.EVENT_CELL_CHANGED,node:this,column:i,newValue:n,oldValue:e})},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(i){return i.depthFirstSearch(t)})),t(this)},t.prototype.calculateSelectedFromChildren=function(){var t,i=!1,n=!1,e=!1;if(!(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length))return this.selectable?this.selected:null;for(var r=0;r<this.childrenAfterGroup.length;r++){var o=this.childrenAfterGroup[r],s=o.isSelected();if(!o.selectable){var u=o.calculateSelectedFromChildren();if(null===u)continue;s=u}switch(s){case!0:i=!0;break;case!1:n=!0;break;default:e=!0}}return e||i&&n?void 0:!!i||!n&&(this.selectable?this.selected:null)},t.prototype.setSelectedInitialValue=function(t){this.selected=t},t.prototype.setSelected=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:t,clearSelection:i,suppressFinishActions:n,rangeSelect:!1})},t.prototype.isRowPinned=function(){return this.rowPinned===Q.PINNED_TOP||this.rowPinned===Q.PINNED_BOTTOM},t.prototype.setSelectedParams=function(t){var i,n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),e=!0===t.newValue,r=!0===t.clearSelection,o=!0===t.suppressFinishActions,s=!0===t.rangeSelect,u=n&&!0===t.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(t);if(s&&this.beans.selectionService.getLastSelectedNode()){var h=this.beans.selectionService.getLastSelectedNode()!==this,c=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(h&&c){var a=this.doRowRangeSelection(t.newValue);return this.beans.selectionService.setLastSelectedNode(this),a}}var f=0;return u&&this.group||this.selectThisNode(e,t.event)&&f++,n&&(null===(i=this.childrenAfterGroup)||void 0===i?void 0:i.length)&&(f+=this.selectChildNodes(e,u)),o||(e&&(r||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(f+=this.beans.selectionService.clearOtherNodes(this)),f>0&&(this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:Tt.EVENT_SELECTION_CHANGED})),e&&this.beans.selectionService.setLastSelectedNode(this)),f},t.prototype.doRowRangeSelection=function(t){var i=this;void 0===t&&(t=!0);var n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),e=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,e),o=0;return r.forEach((function(e){e.group&&n||!1===t&&i===e||e.selectThisNode(t)&&o++})),this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:Tt.EVENT_SELECTION_CHANGED}),o},t.prototype.isParentOfNode=function(t){for(var i=this.parent;i;){if(i===t)return!0;i=i.parent}return!1},t.prototype.selectThisNode=function(i,n){if(!this.selectable&&i||this.selected===i)return!1;this.selected=i,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_ROW_SELECTED));var e=Object.assign({},this.createGlobalRowEvent(Tt.EVENT_ROW_SELECTED),{event:n||null});return this.beans.eventService.dispatchEvent(e),!0},t.prototype.selectChildNodes=function(t,i){var e=i?this.childrenAfterAggFilter:this.childrenAfterGroup;if(n(e))return 0;for(var r=0,o=0;o<e.length;o++)r+=e[o].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:i});return r},t.prototype.addEventListener=function(t,i){this.eventService||(this.eventService=new $),this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService&&(this.eventService.removeEventListener(t,i),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 n=this,e=!0,r=!1,o=null;e&&!r;){var s=n.parent;i(s)&&n.firstChild?s.rowGroupColumn===t&&(r=!0,o=s):e=!1,n=s}return r?o:null},t.prototype.isFullWidthCell=function(){var t=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!t&&t({rowNode:this})},t.prototype.getRoute=function(){if(null!=this.key){for(var t=[],i=this;null!=i.key;)t.push(i.key),i=i.parent;return t.reverse()}},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}(),Yo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Jo=function(){return(Jo=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},Zo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$o=function(t){function i(){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 Yo(i,t),i.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},i.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},i.prototype.onDataChanged=function(){this.onSelectionChanged()},i.prototype.onSelectableChanged=function(){this.showOrHideSelect()},i.prototype.onSelectionChanged=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.rowNode.isSelected(),n=void 0===i?t("ariaIndeterminate","indeterminate"):!0===i?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),e=t("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(i,!0),this.eCheckbox.setInputAriaLabel(e+" ("+n+")")},i.prototype.onCheckedClicked=function(t){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:i})},i.prototype.onUncheckedClicked=function(t){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:t.shiftKey,groupSelectsFiltered:i})},i.prototype.init=function(t){var i=this;if(this.rowNode=t.rowNode,this.column=t.column,this.overrides=t.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){yt(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){yt(t);var n=i.eCheckbox.getValue();void 0===i.eCheckbox.getPreviousValue()||void 0===n?0===i.onUncheckedClicked(t||{})&&i.onCheckedClicked(t):n?i.onCheckedClicked(t):i.onUncheckedClicked(t||{})})),this.addManagedListener(this.rowNode,qo.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||"function"==typeof this.getIsVisible()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,qo.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,qo.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},i.prototype.showOrHideSelect=function(){var t,i,n,e,r=this.rowNode.selectable,o=this.getIsVisible();if(r)if("function"==typeof o){var s=null===(t=this.overrides)||void 0===t?void 0:t.callbackParams,u=null===(i=this.column)||void 0===i?void 0:i.createColumnFunctionCallbackParams(this.rowNode);r=!!u&&o(Jo(Jo({},s),u))}else r=null!=o&&o;if(null===(n=this.column)||void 0===n?void 0:n.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!r),this.setVisible(!0),void this.setDisplayed(!0);(null===(e=this.overrides)||void 0===e?void 0:e.removeHidden)?this.setDisplayed(r):this.setVisible(r)},i.prototype.getIsVisible=function(){var t,i;return this.overrides?this.overrides.isVisible:null===(i=null===(t=this.column)||void 0===t?void 0:t.getColDef())||void 0===i?void 0:i.checkboxSelection},Zo([ur("eCheckbox")],i.prototype,"eCheckbox",void 0),Zo([L],i.prototype,"postConstruct",null),i}(sr),Qo=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ts=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};
208
- /**
209
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
210
- * @version v28.2.0
211
- * @link https://www.ag-grid.com/
212
- * @license MIT
213
- */!function(t){t[t.ToolPanel=0]="ToolPanel",t[t.HeaderCell=1]="HeaderCell",t[t.RowDrag=2]="RowDrag",t[t.ChartPanel=3]="ChartPanel"}(zo||(zo={})),function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"}(Uo||(Uo={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(Ko||(Ko={}));var is,ns=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.dragSourceAndParamsList=[],i.dropTargets=[],i}var n;return Qo(i,t),n=i,i.prototype.init=function(){this.ePinnedIcon=Me("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Me("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Me("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Me("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Me("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Me("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Me("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Me("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Me("dropNotAllowed",this.gridOptionsWrapper,null)},i.prototype.addDragSource=function(t,i){void 0===i&&(i=!1);var n={eElement:t.eElement,dragStartPixels:t.dragStartPixels,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:t}),this.dragService.addDragSource(n,i)},i.prototype.removeDragSource=function(t){var i=this.dragSourceAndParamsList.find((function(i){return i.dragSource===t}));i&&(this.dragService.removeDragSource(i.params),ut(this.dragSourceAndParamsList,i))},i.prototype.clearDragSourceParamsList=function(){var t=this;this.dragSourceAndParamsList.forEach((function(i){return t.dragService.removeDragSource(i.params)})),this.dragSourceAndParamsList.length=0},i.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},i.prototype.onDragStart=function(t,i){this.dragging=!0,this.dragSource=t,this.eventLastTime=i,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},i.prototype.onDragStop=function(t){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var i=this.createDropTargetEvent(this.lastDropTarget,t,null,null,!1);this.lastDropTarget.onDragStop(i)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},i.prototype.onDragging=function(t,i){var n,e,r,o,s=this,u=this.getHorizontalDirection(t),h=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var c=this.dropTargets.filter((function(i){return s.isMouseOnDropTarget(t,i)})),a=this.findCurrentDropTarget(t,c);if(a!==this.lastDropTarget)this.leaveLastTargetIfExists(t,u,h,i),null!==this.lastDropTarget&&null===a&&(null===(e=(n=this.dragSource).onGridExit)||void 0===e||e.call(n,this.dragItem)),null===this.lastDropTarget&&null!==a&&(null===(o=(r=this.dragSource).onGridEnter)||void 0===o||o.call(r,this.dragItem)),this.enterDragTargetIfExists(a,t,u,h,i),this.lastDropTarget=a;else if(a&&a.onDragging){var f=this.createDropTargetEvent(a,t,u,h,i);a.onDragging(f)}},i.prototype.getAllContainersFromDropTarget=function(t){var i=t.getSecondaryContainers?t.getSecondaryContainers():null,n=[[t.getContainer()]];return i?n.concat(i):n},i.prototype.allContainersIntersect=function(t,i){var n,e;try{for(var r=ts(i),o=r.next();!o.done;o=r.next()){var s=o.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;if(!(t.clientX>=s.left&&t.clientX<s.right&&t.clientY>=s.top&&t.clientY<s.bottom))return!1}}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(n)throw n.error}}return!0},i.prototype.isMouseOnDropTarget=function(t,i){var n,e,r=this.getAllContainersFromDropTarget(i),o=!1;try{for(var s=ts(r),u=s.next();!u.done;u=s.next())if(this.allContainersIntersect(t,u.value)){o=!0;break}}catch(t){n={error:t}}finally{try{u&&!u.done&&(e=s.return)&&e.call(s)}finally{if(n)throw n.error}}return!(i.targetContainsSource&&!i.getContainer().contains(this.dragSource.eElement))&&o&&i.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},i.prototype.findCurrentDropTarget=function(t,i){var n,e,r,o,s=i.length;if(0===s)return null;if(1===s)return i[0];var u=this.gridOptionsWrapper.getDocument().elementsFromPoint(t.clientX,t.clientY);try{for(var h=ts(u),c=h.next();!c.done;c=h.next()){var a=c.value;try{for(var f=(r=void 0,ts(i)),l=f.next();!l.done;l=f.next()){var d=l.value;if(-1!==lt(this.getAllContainersFromDropTarget(d)).indexOf(a))return d}}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=h.return)&&e.call(h)}finally{if(n)throw n.error}}return null},i.prototype.enterDragTargetIfExists=function(t,i,n,e,r){if(t){if(t.onDragEnter){var o=this.createDropTargetEvent(t,i,n,e,r);t.onDragEnter(o)}this.setGhostIcon(t.getIconName?t.getIconName():null)}},i.prototype.leaveLastTargetIfExists=function(t,i,n,e){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,t,i,n,e);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},i.prototype.addDropTarget=function(t){this.dropTargets.push(t)},i.prototype.removeDropTarget=function(t){this.dropTargets=this.dropTargets.filter((function(i){return i.getContainer()!==t.getContainer()}))},i.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(t){return t.external}))},i.prototype.findExternalZone=function(t){return this.dropTargets.filter((function(t){return t.external})).find((function(i){return i.getContainer()===t.getContainer()}))||null},i.prototype.getHorizontalDirection=function(t){var i=this.eventLastTime&&this.eventLastTime.clientX,n=t.clientX;return i===n?null:i>n?Ko.Left:Ko.Right},i.prototype.getVerticalDirection=function(t){var i=this.eventLastTime&&this.eventLastTime.clientY,n=t.clientY;return i===n?null:i>n?Uo.Up:Uo.Down},i.prototype.createDropTargetEvent=function(t,i,n,e,r){var o=t.getContainer(),s=o.getBoundingClientRect(),u=this;return{event:i,x:i.clientX-s.left,y:i.clientY-s.top,vDirection:e,hDirection:n,dragSource:u.dragSource,fromNudge:r,dragItem:u.dragItem,api:u.gridApi,columnApi:u.columnApi,dropZoneTarget:o}},i.prototype.positionGhost=function(t){var i=this.eGhost;if(i){var n=i.getBoundingClientRect().height,e=ji()-2,r=Gi()-2,o=t.pageY-n/2,s=t.pageX-10,u=this.gridOptionsWrapper.getDocument(),h=u.defaultView||window,c=h.pageYOffset||u.documentElement.scrollTop,a=h.pageXOffset||u.documentElement.scrollLeft;e>0&&s+i.clientWidth>e+a&&(s=e+a-i.clientWidth),s<0&&(s=0),r>0&&o+i.clientHeight>r+c&&(o=r+c-i.clientHeight),o<0&&(o=0),i.style.left=s+"px",i.style.top=o+"px"}},i.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},i.prototype.createGhost=function(){this.eGhost=_n(n.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 i=this.eGhost.querySelector(".ag-dnd-ghost-label"),e=this.dragSource.dragItemName;j(e)&&(e=e()),i.innerHTML=Vt(e)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument(),o=null;try{o=r.fullscreenElement}catch(t){}finally{o||(o=r.querySelector("body"))}this.eGhostParent=o,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},i.prototype.setGhostIcon=function(t,i){void 0===i&&(i=!1),An(this.eGhostIcon);var e=null;switch(t||(t=this.dragSource.defaultIconName||n.ICON_NOT_ALLOWED),t){case n.ICON_PINNED:e=this.ePinnedIcon;break;case n.ICON_MOVE:e=this.eMoveIcon;break;case n.ICON_LEFT:e=this.eLeftIcon;break;case n.ICON_RIGHT:e=this.eRightIcon;break;case n.ICON_GROUP:e=this.eGroupIcon;break;case n.ICON_AGGREGATE:e=this.eAggregateIcon;break;case n.ICON_PIVOT:e=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:e=this.eDropNotAllowedIcon;break;case n.ICON_HIDE:e=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",i),e===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||e&&this.eGhostIcon.appendChild(e)},i.ICON_PINNED="pinned",i.ICON_MOVE="move",i.ICON_LEFT="left",i.ICON_RIGHT="right",i.ICON_GROUP="group",i.ICON_AGGREGATE="aggregate",i.ICON_PIVOT="pivot",i.ICON_NOT_ALLOWED="notAllowed",i.ICON_HIDE="hide",i.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>',Xo([W("dragService")],i.prototype,"dragService",void 0),Xo([W("mouseEventService")],i.prototype,"mouseEventService",void 0),Xo([W("environment")],i.prototype,"environment",void 0),Xo([W("columnApi")],i.prototype,"columnApi",void 0),Xo([W("gridApi")],i.prototype,"gridApi",void 0),Xo([L],i.prototype,"init",null),Xo([H],i.prototype,"clearDragSourceParamsList",null),n=Xo([B("dragAndDropService")],i)}(kt),es=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},os=function(t){function i(i,n,e,r,o,s){var u=t.call(this)||this;return u.cellValueFn=i,u.rowNode=n,u.column=e,u.customGui=r,u.dragStartPixels=o,u.suppressVisibilityChange=s,u.dragSource=null,u}return es(i,t),i.prototype.isCustomGui=function(){return null!=this.customGui},i.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(ke("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var t=this.beans.gridOptionsWrapper.isRowDragManaged()?new hs(this,this.beans,this.rowNode,this.column):new us(this,this.beans,this.rowNode,this.column);this.createManagedBean(t,this.beans.context)}},i.prototype.setDragElement=function(t,i){this.setTemplateFromElement(t),this.addDragSource(i)},i.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return[this.rowNode];var t=this.beans.selectionService.getSelectedNodes();return-1!==t.indexOf(this.rowNode)?t:[this.rowNode]},i.prototype.checkCompatibility=function(){var t=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&t&&O((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},i.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},i.prototype.addDragSource=function(t){var i=this;void 0===t&&(t=4),this.dragSource&&this.removeDragSource();var n=this.gridOptionsWrapper.getRowDragText(this.column),e=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:zo.RowDrag,eElement:this.getGui(),dragItemName:function(){var t,r=i.getDragItem(),o=(null===(t=r.rowNodes)||void 0===t?void 0:t.length)||1;return n?n(r,o):1===o?i.cellValueFn():o+" "+e("rowDragRows","rows")},getDragItem:function(){return i.getDragItem()},dragStartPixels:t,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},i.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},rs([W("beans")],i.prototype,"beans",void 0),rs([L],i.prototype,"postConstruct",null),rs([H],i.prototype,"removeDragSource",null),i}(sr),ss=function(t){function i(i,n,e){var r=t.call(this)||this;return r.parent=i,r.rowNode=n,r.column=e,r}return es(i,t),i.prototype.setDisplayedOrVisible=function(t){if(t)this.parent.setDisplayed(!1);else{var i=!0,n=!1;this.column&&(i=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=j(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(i)):(this.parent.setDisplayed(i),this.parent.setVisible(!0))}},i}(kt),us=function(t){function i(i,n,e,r){var o=t.call(this,i,e,r)||this;return o.beans=n,o}return es(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Tt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},i.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},i.prototype.workOutVisibility=function(){var t=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(t)},rs([L],i.prototype,"postConstruct",null),i}(ss),hs=function(t){function i(i,n,e,r){var o=t.call(this,i,e,r)||this;return o.beans=n,o}return es(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Tt.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Tt.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Tt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},i.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},i.prototype.workOutVisibility=function(){var t=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),i=t&&t.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),e=this.beans.dragAndDropService.hasExternalDropZones();this.setDisplayedOrVisible(i&&!e||n)},rs([L],i.prototype,"postConstruct",null),i}(ss),cs=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),as=function(){return(as=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},fs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ls=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return cs(i,t),i.prototype.init=function(t,i,n,e,r,o,s){this.params=s,this.eGui=i,this.eCheckbox=n,this.eExpanded=e,this.eContracted=r,this.comp=t,this.compClass=o;var u=this.isTopLevelFooter(),h=this.isEmbeddedRowMismatch(),c=null==s.value,a=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var f=s.node;f.footer&&(a=(s.colDef&&s.colDef.showRowGroup)!==(f.rowGroupColumn&&f.rowGroupColumn.getColId()))}this.cellIsBlank=!u&&(h||c||a),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.expandListener=null},i.prototype.refreshAriaExpanded=function(){var t=this.params,i=t.node,n=t.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var e=function(){ce(n,!!i.expanded)};this.expandListener=this.addManagedListener(i,qo.EVENT_EXPANDED_CHANGED,e)||null,e()}else ae(n)},i.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())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 i=this.columnModel.getRowGroupColumns();return!i||0===i.length||i[0].getId()===t.showRowGroup},i.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var t=this.params.pinned===Q.PINNED_LEFT,i=this.params.pinned===Q.PINNED_RIGHT,n=!t&&!i;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!i:!n:this.columnModel.isPinningLeft()?!t:!n},i.prototype.findDisplayedGroupNode=function(){var t=this.params.column,i=this.params.node;if(this.showingValueForOpenedParent)for(var e=i.parent;null!=e;){if(e.rowGroupColumn&&t.isRowGroupDisplayed(e.rowGroupColumn.getId())){this.displayedGroupNode=e;break}e=e.parent}n(this.displayedGroupNode)&&(this.displayedGroupNode=i)},i.prototype.setupShowingValueForOpenedParent=function(){var t=this.params.node,i=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.groupData){if(null!=t.rowGroupColumn){var n=t.rowGroupColumn.getId();if(i.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var e=null!=t.groupData[i.getId()];this.showingValueForOpenedParent=e}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},i.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},i.prototype.addGroupValue=function(){var t=this.adjustParamsWithDetailsFromRelatedColumn(),i=this.getInnerCompDetails(t),n=t.valueFormatted;this.comp.setInnerRenderer(i,null!=n?n:t.value)},i.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var t=this.displayedGroupNode.rowGroupColumn,i=this.params.column;if(!t)return this.params;if(null!=i&&!i.isRowGroupDisplayed(t.getId()))return this.params;var n=this.params,e=this.params,r=this.valueFormatterService.formatValue(t,e.node,e.value);return as(as({},n),{valueFormatted:r})},i.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,i="";if(t){var n=f(this.params);n.value=this.params.value,"function"==typeof t?i=t(n):"string"==typeof t?i=this.expressionService.evaluate(t,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else i="Total "+(null!=this.params.value?this.params.value:"");var e=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(e,i)},i.prototype.getInnerCompDetails=function(t){var i=this;if(t.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,t);var n=this.userComponentFactory.getInnerRendererDetails(t,t),e=function(t){return t&&t.componentClass==i.compClass};if(n&&!e(n))return n;var r=this.displayedGroupNode.rowGroupColumn,o=r?r.getColDef():void 0;if(o){var s=this.userComponentFactory.getCellRendererDetails(o,t);if(s&&!e(s))return s;if(e(s)&&o.cellRendererParams&&o.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(o.cellRendererParams,t)}},i.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,qo.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},i.prototype.updateChildCount=function(){var t=this.displayedGroupNode.allChildrenCount,i=this.isShowRowGroupForThisRow();this.comp.setChildCount(i&&null!=t&&t>=0?"("+t+")":"")},i.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var t=this.displayedGroupNode.rowGroupColumn;if(!t)return!1;var i=this.params.column;return null==i||i.isRowGroupDisplayed(t.getId())},i.prototype.addExpandAndContract=function(){var t=this.params,i=ke("groupExpanded",this.gridOptionsWrapper,null),n=ke("groupContracted",this.gridOptionsWrapper,null);i&&this.eExpanded.appendChild(i),n&&this.eContracted.appendChild(n);var e=t.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(e,"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(e,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,qo.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,qo.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qo.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qo.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qo.EVENT_HAS_CHILDREN_CHANGED,r)},i.prototype.onExpandClicked=function(t){Ct(t)||(yt(t),this.onExpandOrContract(t))},i.prototype.onExpandOrContract=function(t){var i=this.displayedGroupNode,n=!i.expanded;!n&&i.sticky&&this.scrollToStickyNode(i),i.setExpanded(n,t)},i.prototype.scrollToStickyNode=function(t){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(t.rowTop-t.stickyRowTop)},i.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var t=this.displayedGroupNode,i=this.columnModel.isPivotMode()&&t.leafGroup;if(!t.isExpandable()||t.footer||i)return!1;var n=this.params.column;return null==n||"string"!=typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},i.prototype.showExpandAndContractIcons=function(){var t=this,i=t.displayedGroupNode,n=t.columnModel,e=t.params.node,r=this.isExpandable();if(r){var o=!!this.showingValueForOpenedParent||e.expanded;this.comp.setExpandedDisplayed(o),this.comp.setContractedDisplayed(!o)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=n.isPivotMode(),u=s&&i.leafGroup,h=r&&!u,c=e.footer&&-1===e.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",h),this.comp.addOrRemoveCssClass("ag-row-group",h),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",u):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!h)},i.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},i.prototype.setupIndent=function(){this.params.suppressPadding||(this.addManagedListener(this.params.node,qo.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},i.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var t=this.params,i=t.node,n=!!t.colDef,e=this.gridOptionsWrapper.isTreeData(),r=!n||e||!0===t.colDef.showRowGroup?i.uiLevel:0;t.padding>=0&&O((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},i.prototype.addFullWidthRowDraggerIfNeeded=function(){var t=this;if(this.params.fullWidth&&this.params.rowDrag){var i=new os((function(){return t.params.value}),this.params.node);this.createManagedBean(i,this.context),this.eGui.insertAdjacentElement("afterbegin",i.getGui())}},i.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"==typeof t||!0===t},i.prototype.addCheckboxIfNeeded=function(){var t=this,i=this.displayedGroupNode,n=this.isUserWantsSelected()&&!i.footer&&!i.rowPinned&&!i.detail;if(n){var e=new $o;this.getContext().createBean(e),e.init({rowNode:i,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(e.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(e)}))}this.comp.setCheckboxVisible(n)},i.prototype.onKeyDown=function(t){t.key!==Pe.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(t)},i.prototype.onCellDblClicked=function(t){Ct(t)||At(this.eExpanded,t)||At(this.eContracted,t)||this.onExpandOrContract(t)},fs([W("expressionService")],i.prototype,"expressionService",void 0),fs([W("valueFormatterService")],i.prototype,"valueFormatterService",void 0),fs([W("columnModel")],i.prototype,"columnModel",void 0),fs([W("userComponentFactory")],i.prototype,"userComponentFactory",void 0),fs([W("gridOptions")],i.prototype,"gridOptions",void 0),fs([W("ctrlsService")],i.prototype,"ctrlsService",void 0),i}(kt),ds=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ps=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return ds(i,t),i.prototype.init=function(t){var i=this,n={setInnerRenderer:function(t,n){return i.setRenderDetails(t,n)},setChildCount:function(t){return i.eChildCount.innerHTML=t},addOrRemoveCssClass:function(t,n){return i.addOrRemoveCssClass(t,n)},setContractedDisplayed:function(t){return dn(i.eContracted,t)},setExpandedDisplayed:function(t){return dn(i.eExpanded,t)},setCheckboxVisible:function(t){return i.eCheckbox.classList.toggle("ag-invisible",!t)}},e=this.createManagedBean(new ls),r=!t.colDef,o=this.getGui();e.init(n,o,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),r&&Xn(o,"gridcell")},i.prototype.setRenderDetails=function(t,i){var n=this;if(t){var e=t.newAgStackInstance();if(!e)return;e.then((function(t){if(t){var i=function(){return n.context.destroyBean(t)};n.isAlive()?(n.eValue.appendChild(t.getGui()),n.addDestroyFunc(i)):i()}}))}else this.eValue.innerText=i},i.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},i.prototype.refresh=function(){return!1},i.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>',vs([ur("eExpanded")],i.prototype,"eExpanded",void 0),vs([ur("eContracted")],i.prototype,"eContracted",void 0),vs([ur("eCheckbox")],i.prototype,"eCheckbox",void 0),vs([ur("eValue")],i.prototype,"eValue",void 0),vs([ur("eChildCount")],i.prototype,"eChildCount",void 0),i}(sr),gs=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ms=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ws=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return gs(i,t),i.prototype.init=function(t){t.node.failedLoad?this.setupFailed():this.setupLoading()},i.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},i.prototype.setupLoading=function(){var t=ke("groupLoading",this.gridOptionsWrapper,null);t&&this.eLoadingIcon.appendChild(t);var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=i("loadingOoo","Loading")},i.prototype.refresh=function(){return!1},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.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>',ms([ur("eLoadingIcon")],i.prototype,"eLoadingIcon",void 0),ms([ur("eLoadingText")],i.prototype,"eLoadingText",void 0),i}(sr),bs=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ys=function(t){function i(){return t.call(this)||this}return bs(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(){var t=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():i.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),e=t.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(e)},i.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',i}(sr),Cs=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rs=function(t){function i(){return t.call(this)||this}return Cs(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(){var t=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():i.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),e=t.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(e)},i.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',i}(sr),Ss=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Os=function(t){function i(){return t.call(this,'<div class="ag-tooltip"></div>')||this}return Ss(i,t),i.prototype.init=function(t){var i=t.value;this.getGui().innerHTML=Vt(i)},i}(_o),As=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),js=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gs=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.agGridDefaults={agDateInput:io,agColumnHeader:So,agColumnGroupHeader:jo,agSortIndicator:yo,agTextColumnFloatingFilter:go,agNumberColumnFloatingFilter:vo,agDateColumnFloatingFilter:Xr,agReadOnlyFloatingFilter:lr,agAnimateShowChangeCellRenderer:Bo,agAnimateSlideCellRenderer:Vo,agGroupCellRenderer:ps,agGroupRowRenderer:ps,agLoadingCellRenderer:ws,agCellEditor:Eo,agTextCellEditor:Eo,agSelectCellEditor:Do,agPopupTextCellEditor:Lo,agPopupSelectCellEditor:Io,agLargeTextCellEditor:Fo,agTextColumnFilter:ho,agNumberColumnFilter:ro,agDateColumnFilter:Yr,agLoadingOverlay:ys,agNoRowsOverlay:Rs,agTooltipComponent:Os},i.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},i.jsComps={},i.fwComps={},i}return As(i,t),i.prototype.init=function(){var t=this;null!=this.gridOptions.components&&a(this.gridOptions.components,(function(i,n){return t.registerJsComponent(i,n)})),null!=this.gridOptions.frameworkComponents&&a(this.gridOptions.frameworkComponents,(function(i,n){return t.registerFwComponent(i,n)}))},i.prototype.registerDefaultComponent=function(t,i){var n=this.translateIfDeprecated(t);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=i},i.prototype.registerJsComponent=function(t,i){var n=this.translateIfDeprecated(t);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=i},i.prototype.registerFwComponent=function(t,i){O((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated");var n=this.translateIfDeprecated(t);this.fwComps[n]=i},i.prototype.retrieve=function(t){var i=this.translateIfDeprecated(t),n=function(t,i){return{componentFromFramework:i,component:t}},e=this.getFrameworkOverrides().frameworkComponent(i,this.gridOptions.components);if(null!=e)return n(e,!0);var r=this.fwComps[i];if(r)return n(r,!0);var o=this.jsComps[i];if(o)return n(o,this.getFrameworkOverrides().isFrameworkComponent(o));var s=this.agGridDefaults[i];return s?n(s,!1):(Object.keys(this.agGridDefaults).indexOf(i)<0&&console.warn("AG Grid: Looking for component ["+i+"] but it wasn't found."),null)},i.prototype.translateIfDeprecated=function(t){var i=this.agDeprecatedNames[t];return null!=i?(O((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+i.propertyHolder+":"+t+" to "+i.propertyHolder+":"+i.newComponentName)}),"DEPRECATE_COMPONENT_"+t),i.newComponentName):t},js([W("gridOptions")],i.prototype,"gridOptions",void 0),js([W("agComponentUtils")],i.prototype,"agComponentUtils",void 0),js([L],i.prototype,"init",null),js([B("userComponentRegistry")],i)}(kt),_s={propertyName:"dateComponent",cellRenderer:!1},xs={propertyName:"headerComponent",cellRenderer:!1},Fs={propertyName:"headerGroupComponent",cellRenderer:!1},Ms={propertyName:"cellRenderer",cellRenderer:!0},ks={propertyName:"cellEditor",cellRenderer:!1},Ds={propertyName:"innerRenderer",cellRenderer:!0},Ps={propertyName:"loadingOverlayComponent",cellRenderer:!1},Is={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ts={propertyName:"tooltipComponent",cellRenderer:!1},Es={propertyName:"filter",cellRenderer:!1},Ns={propertyName:"floatingFilterComponent",cellRenderer:!1},Ls={propertyName:"toolPanel",cellRenderer:!1},Hs={propertyName:"statusPanel",cellRenderer:!1},Bs={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Ws={propertyName:"loadingCellRenderer",cellRenderer:!0},Vs={propertyName:"groupRowRenderer",cellRenderer:!0},zs={propertyName:"detailCellRenderer",cellRenderer:!0},Us=function(){function t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}(),Ks=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ys=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ks(i,t),i.prototype.getHeaderCompDetails=function(t,i){return this.getCompDetails(t,xs,"agColumnHeader",i)},i.prototype.getHeaderGroupCompDetails=function(t){var i=t.columnGroup.getColGroupDef();return this.getCompDetails(i,Fs,"agColumnGroupHeader",t)},i.prototype.getFullWidthCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Bs,null,t,!0)},i.prototype.getFullWidthLoadingCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Ws,"agLoadingCellRenderer",t,!0)},i.prototype.getFullWidthGroupCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Vs,"agGroupRowRenderer",t,!0)},i.prototype.getFullWidthDetailCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,zs,"agDetailCellRenderer",t,!0)},i.prototype.getInnerRendererDetails=function(t,i){return this.getCompDetails(t,Ds,null,i)},i.prototype.getFullWidthGroupRowInnerCellRenderer=function(t,i){return this.getCompDetails(t,Ds,null,i)},i.prototype.getCellRendererDetails=function(t,i){return this.getCompDetails(t,Ms,null,i)},i.prototype.getCellEditorDetails=function(t,i){return this.getCompDetails(t,ks,"agCellEditor",i,!0)},i.prototype.getFilterDetails=function(t,i,n){return this.getCompDetails(t,Es,n,i,!0)},i.prototype.getDateCompDetails=function(t){return this.getCompDetails(this.gridOptions,_s,"agDateInput",t,!0)},i.prototype.getLoadingOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,Ps,"agLoadingOverlay",t,!0)},i.prototype.getNoRowsOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,Is,"agNoRowsOverlay",t,!0)},i.prototype.getTooltipCompDetails=function(t){return this.getCompDetails(t.colDef,Ts,"agTooltipComponent",t,!0)},i.prototype.getSetFilterCellRendererDetails=function(t,i){return this.getCompDetails(t,Ms,null,i)},i.prototype.getFloatingFilterCompDetails=function(t,i,n){return this.getCompDetails(t,Ns,n,i)},i.prototype.getToolPanelCompDetails=function(t,i){return this.getCompDetails(t,Ls,null,i,!0)},i.prototype.getStatusPanelCompDetails=function(t,i){return this.getCompDetails(t,Hs,null,i,!0)},i.prototype.getCompDetails=function(t,i,n,e,r){var o=this;void 0===r&&(r=!1);var s=i.propertyName,u=i.cellRenderer,h=this.getCompKeys(t,i,e),c=h.compName,a=h.jsComp,f=h.fwComp,l=h.paramsFromSelector,d=h.popupFromSelector,v=h.popupPositionFromSelector,p=function(t){var i=o.userComponentRegistry.retrieve(t);i&&(a=i.componentFromFramework?void 0:i.component,f=i.componentFromFramework?i.component:void 0)};if(null!=c&&p(c),null==a&&null==f&&null!=n&&p(n),a&&u&&!this.agComponentUtils.doesImplementIComponent(a)&&(a=this.agComponentUtils.adaptFunction(s,a)),a||f){var g=this.mergeParamsWithApplicationProvidedParams(t,i,e,l),m=null==a,w=a||f;return{componentFromFramework:m,componentClass:w,params:g,type:i,popupFromSelector:d,popupPositionFromSelector:v,newAgStackInstance:function(){return o.newAgStackInstance(w,m,g,i)}}}r&&console.error("Could not find component "+c+", did you forget to configure this component?")},i.prototype.getCompKeys=function(t,i,n){var e,r,o,s,u,h,c=this,a=i.propertyName;if(t){var f=t,l=f[a+"Selector"],d=l?l(n):null,v=function(t,i){var n=function(){var t="AG Grid: As of v27, the property "+a+"Framework is deprecated. The property "+a+" can now be used for JavaScript AND Framework Components.";O((function(){return console.warn(t)}),"UserComponentFactory."+a+"FrameworkDeprecated")};"string"==typeof t?e=t:"string"==typeof i?(n(),e=i):null!=t&&!0!==t?c.getFrameworkOverrides().isFrameworkComponent(t)?o=t:r=t:null!=i&&(n(),o=i)};if(d){if(null!=d.frameworkComponent){var p="AG Grid: As of v27, the return for "+a+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";O((function(){return console.warn(p)}),"UserComponentFactory."+a+"FrameworkSelectorDeprecated"),v(d.frameworkComponent,void 0)}else v(d.component,void 0);s=d.params,u=d.popup,h=d.popupPosition}else v(f[a],f[a+"Framework"])}return{compName:e,jsComp:r,fwComp:o,paramsFromSelector:s,popupFromSelector:u,popupPositionFromSelector:h}},i.prototype.newAgStackInstance=function(t,i,n,e){var r;if(i){var o=this.componentMetadataProvider.retrieve(e.propertyName);r=this.frameworkComponentWrapper.wrap(t,o.mandatoryMethodList,o.optionalMethodList,e)}else r=new t;var s=this.initComponent(r,n);return null==s?$e.resolve(r):s.then((function(){return r}))},i.prototype.mergeParamsWithApplicationProvidedParams=function(t,i,n,e){void 0===e&&(e=null);var r={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};w(r,n);var o=t&&t[i.propertyName+"Params"];return"function"==typeof o?w(r,o(n)):"object"==typeof o&&w(r,o),w(r,e),r},i.prototype.initComponent=function(t,i){if(this.context.createBean(t),null!=t.init)return t.init(i)},i.prototype.getDefaultFloatingFilterType=function(t){if(null==t)return null;var i=null,n=this.getCompKeys(t,Es),e=n.compName,r=n.jsComp,o=n.fwComp;return e?i=Us.getFloatingFilterType(e):null==r&&null==o&&!0===t.filter&&(i=X.isRegistered(q.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),i},qs([W("gridOptions")],i.prototype,"gridOptions",void 0),qs([W("agComponentUtils")],i.prototype,"agComponentUtils",void 0),qs([W("componentMetadataProvider")],i.prototype,"componentMetadataProvider",void 0),qs([W("userComponentRegistry")],i.prototype,"userComponentRegistry",void 0),qs([V("frameworkComponentWrapper")],i.prototype,"frameworkComponentWrapper",void 0),qs([B("userComponentFactory")],i)}(kt);
214
- /**
215
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
216
- * @version v28.2.0
217
- * @link https://www.ag-grid.com/
218
- * @license MIT
219
- */!function(t){t[t.SINGLE_SHEET=0]="SINGLE_SHEET",t[t.MULTI_SHEET=1]="MULTI_SHEET"}(is||(is={}));
220
- /**
221
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
222
- * @version v28.2.0
223
- * @link https://www.ag-grid.com/
224
- * @license MIT
225
- */
226
- var Js,Zs=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$s=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Qs=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.dragEndFunctions=[],i.dragSources=[],i}return Zs(n,t),n.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},n.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},n.prototype.removeListener=function(t){var i=t.dragSource.eElement;i.removeEventListener("mousedown",t.mouseDownListener),t.touchEnabled&&i.removeEventListener("touchstart",t.touchStartListener,{passive:!0})},n.prototype.removeDragSource=function(t){var i=this.dragSources.find((function(i){return i.dragSource===t}));i&&(this.removeListener(i),ut(this.dragSources,i))},n.prototype.isDragging=function(){return this.dragging},n.prototype.addDragSource=function(t,i){var n=this;void 0===i&&(i=!1);var e=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",e);var r=null,o=this.gridOptionsWrapper.isSuppressTouch();i&&!o&&t.eElement.addEventListener("touchstart",r=function(i){ln(i.target)||(i.cancelable&&i.preventDefault(),n.onTouchStart(t,i))},{passive:!1}),this.dragSources.push({dragSource:t,mouseDownListener:e,touchStartListener:r,touchEnabled:i})},n.prototype.onTouchStart=function(t,i){var n=this;this.currentDragParams=t,this.dragging=!1;var e=i.touches[0];this.touchLastTime=e,this.touchStart=e;var r=function(i){return n.onTouchUp(i,t.eElement)},o=i.target,s=[{target:document,type:"touchmove",listener:function(t){t.cancelable&&t.preventDefault()},options:{passive:!1}},{target:o,type:"touchmove",listener:function(i){return n.onTouchMove(i,t.eElement)},options:{passive:!0}},{target:o,type:"touchend",listener:r,options:{passive:!0}},{target:o,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===t.dragStartPixels&&this.onCommonMove(e,this.touchStart,t.eElement)},n.prototype.onMouseDown=function(t,i){var n=this,e=i;if(!(t.skipMouseEvent&&t.skipMouseEvent(i)||e._alreadyProcessedByDragService||(e._alreadyProcessedByDragService=!0,0!==i.button))){this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=i;var r=this.gridOptionsWrapper.getDocument();this.addTemporaryEvents([{target:r,type:"mousemove",listener:function(i){return n.onMouseMove(i,t.eElement)}},{target:r,type:"mouseup",listener:function(i){return n.onMouseUp(i,t.eElement)}},{target:r,type:"contextmenu",listener:function(t){return t.preventDefault()}}]),0===t.dragStartPixels&&this.onMouseMove(i,t.eElement)}},n.prototype.addTemporaryEvents=function(t){t.forEach((function(t){t.target.addEventListener(t.type,t.listener,t.options)})),this.dragEndFunctions.push((function(){t.forEach((function(t){t.target.removeEventListener(t.type,t.listener,t.options)}))}))},n.prototype.isEventNearStartEvent=function(t,n){var e=this.currentDragParams.dragStartPixels;return Be(t,n,i(e)?e:4)},n.prototype.getFirstActiveTouch=function(t){for(var i=0;i<t.length;i++)if(t[i].identifier===this.touchStart.identifier)return t[i];return null},n.prototype.onCommonMove=function(t,i,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(t,i))return;this.dragging=!0,this.eventService.dispatchEvent({type:Tt.EVENT_DRAG_STARTED,target:n}),this.currentDragParams.onDragStart(i),this.currentDragParams.onDragging(i)}this.currentDragParams.onDragging(t)},n.prototype.onTouchMove=function(t,i){var n=this.getFirstActiveTouch(t.touches);n&&this.onCommonMove(n,this.touchStart,i)},n.prototype.onMouseMove=function(t,i){(this.gridOptionsWrapper.isEnableCellTextSelect()||pi())&&"mousemove"===t.type&&t.cancelable&&this.mouseEventService.isEventFromThisGrid(t)&&!this.isOverFormFieldElement(t)&&t.preventDefault(),this.onCommonMove(t,this.mouseStartEvent,i)},n.prototype.isOverFormFieldElement=function(t){var i,n;return!!(null===(n=null===(i=t.target)||void 0===i?void 0:i.tagName.toLocaleLowerCase())||void 0===n?void 0:n.match("^a$|textarea|input|select|button"))},n.prototype.onTouchUp=function(t,i){var n=this.getFirstActiveTouch(t.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,i)},n.prototype.onMouseUp=function(t,i){this.onUpCommon(t,i)},n.prototype.onUpCommon=function(t,i){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(t),this.eventService.dispatchEvent({type:Tt.EVENT_DRAG_STOPPED,target:i})),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(t){return t()})),this.dragEndFunctions.length=0},$s([W("loggerFactory")],n.prototype,"loggerFactory",void 0),$s([W("mouseEventService")],n.prototype,"mouseEventService",void 0),$s([L],n.prototype,"init",null),$s([H],n.prototype,"removeAllListeners",null),$s([B("dragService")],n)}(kt),Xs=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),tu=function(){return(tu=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},iu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},nu=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.allColumnFilters=new Map,i.activeAggregateFilters=[],i.activeColumnFilters=[],i.quickFilter=null,i.quickFilterParts=null,i.processingFilterChange=!1,i}var e;return Xs(n,t),e=n,n.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_VALUE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(t){var i=this,n=[],e=this.getFilterModel();if(t){var r=ze(Object.keys(t));this.allColumnFilters.forEach((function(e,o){n.push(i.setModelOnFilterWrapper(e.filterPromise,t[o])),r.delete(o)})),r.forEach((function(e){var r=i.columnModel.getPrimaryColumn(e)||i.columnModel.getGridColumn(e);if(r)if(r.isFilterAllowed()){var o=i.getOrCreateFilterWrapper(r,"NO_UI");o?n.push(i.setModelOnFilterWrapper(o.filterPromise,t[e])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+e)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+e);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+e)}))}else this.allColumnFilters.forEach((function(t){n.push(i.setModelOnFilterWrapper(t.filterPromise,null))}));$e.all(n).then((function(){var t=i.getFilterModel(),n=[];i.allColumnFilters.forEach((function(i,r){Ye.jsonEquals(e?e[r]:null,t?t[r]:null)||n.push(i.column)})),n.length>0&&i.onFilterChanged({columns:n})}))},n.prototype.setModelOnFilterWrapper=function(t,i){return new $e((function(n){t.then((function(t){"function"!=typeof t.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(t.setModel(i)||$e.resolve()).then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var t={};return this.allColumnFilters.forEach((function(n,e){var r=n.filterPromise.resolveNow(null,(function(t){return t}));if(null==r)return null;if("function"==typeof r.getModel){var o=r.getModel();i(o)&&(t[e]=o)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),t},n.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},n.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},n.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},n.prototype.doAggregateFiltersPass=function(t,i){return this.doColumnFiltersPass(t,i,!0)},n.prototype.updateActiveFilters=function(){var t=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var i=function(t){return!!t&&(t.isFilterActive?t.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},n=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach((function(e){if(e.filterPromise.resolveNow(!1,i)){var r=e.filterPromise.resolveNow(null,(function(t){return t}));!function(i){if(!i.isPrimary())return!0;var e=!t.columnModel.isPivotActive();return!(!i.isValueActive()||!e)&&(!!t.columnModel.isPivotMode()||n)}(e.column)?t.activeColumnFilters.push(r):t.activeAggregateFilters.push(r)}}))},n.prototype.updateFilterFlagInColumns=function(t,i){this.allColumnFilters.forEach((function(n){var e=n.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));n.column.setFilterActive(e,t,i)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},n.prototype.doColumnFiltersPass=function(t,i,n){for(var e=n?this.activeAggregateFilters:this.activeColumnFilters,r=n?t.aggData:t.data,o=0;o<e.length;o++){var s=e[o];if(null!=s&&s!==i){if("function"!=typeof s.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!s.doesFilterPass({node:t,data:r}))return!1}}return!0},n.prototype.parseQuickFilter=function(t){return i(t)?this.gridOptionsWrapper.isRowModelDefault()?t.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(t){if(null==t||"string"==typeof t){var i=this.parseQuickFilter(t);this.quickFilter!==i&&(this.quickFilter=i,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof t)},n.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},n.prototype.callOnFilterChangedOutsideRenderCycle=function(t){var i=this;void 0===t&&(t={});var n=function(){return i.onFilterChanged(t)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},n.prototype.onFilterChanged=function(t){void 0===t&&(t={});var i=t.filterInstance,n=t.additionalEventAttributes,e=t.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent(),this.allColumnFilters.forEach((function(t){t.filterPromise&&t.filterPromise.then((function(t){t&&t!==i&&t.onAnyFilterChanged&&t.onAnyFilterChanged()}))}));var r={type:Tt.EVENT_FILTER_CHANGED,columns:e||[]};n&&w(r,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},n.prototype.doesRowPassOtherFilters=function(t,i){return this.doesRowPassFilter({rowNode:i,filterInstanceToSkip:t})},n.prototype.doesRowPassQuickFilterNoCache=function(t,n){var e=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(r){var o=e.getQuickFilterTextForColumn(r,t);return i(o)&&o.indexOf(n)>=0}))},n.prototype.doesRowPassQuickFilterCache=function(t,i){return t.quickFilterAggregateText||this.aggregateRowForQuickFilter(t),t.quickFilterAggregateText.indexOf(i)>=0},n.prototype.doesRowPassQuickFilter=function(t){var i=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(e){return n?i.doesRowPassQuickFilterCache(t,e):i.doesRowPassQuickFilterNoCache(t,e)}))},n.prototype.doesRowPassAggregateFilters=function(t){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(t.rowNode,t.filterInstanceToSkip))},n.prototype.doesRowPassFilter=function(t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(t.rowNode)||this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(t.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(t.rowNode,t.filterInstanceToSkip))},n.prototype.getQuickFilterTextForColumn=function(t,n){var e=this.valueService.getValue(t,n,!0),r=t.getColDef();if(r.getQuickFilterText){var o={value:e,node:n,data:n.data,column:t,colDef:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};e=r.getQuickFilterText(o)}return i(e)?e.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(t){var n=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(e){var o=n.getQuickFilterTextForColumn(e,t);i(o)&&r.push(o)})),t.quickFilterAggregateText=r.join(e.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(t){this.allColumnFilters.forEach((function(t){t.filterPromise.then((function(t){t.onNewRowsLoaded&&t.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(t),this.updateActiveFilters()},n.prototype.createValueGetter=function(t){var i=this;return function(n){return i.valueService.getValue(t,n.node,!0)}},n.prototype.getFilterComponent=function(t,i,n){var e;if(void 0===n&&(n=!0),n)return(null===(e=this.getOrCreateFilterWrapper(t,i))||void 0===e?void 0:e.filterPromise)||null;var r=this.cachedFilter(t);return r?r.filterPromise:null},n.prototype.isFilterActive=function(t){var i=this.cachedFilter(t);return!!i&&i.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))},n.prototype.getOrCreateFilterWrapper=function(t,i){if(!t.isFilterAllowed())return null;var n=this.cachedFilter(t);return n?"NO_UI"!==i&&this.putIntoGui(n,i):(n=this.createFilterWrapper(t,i),this.allColumnFilters.set(t.getColId(),n)),n},n.prototype.cachedFilter=function(t){return this.allColumnFilters.get(t.getColId())},n.prototype.createFilterInstance=function(t){var i,n=this,e=X.isRegistered(q.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",r=t.getColDef(),o=tu(tu({},this.createFilterParams(t,r)),{filterModifiedCallback:function(){n.eventService.dispatchEvent({type:Tt.EVENT_FILTER_MODIFIED,column:t,filterInstance:i})},filterChangedCallback:function(e){n.callOnFilterChangedOutsideRenderCycle({filterInstance:i,additionalEventAttributes:e,columns:[t]})},doesRowPassOtherFilter:function(t){return n.doesRowPassOtherFilters(i,t)}}),s=this.userComponentFactory.getFilterDetails(r,o,e);if(!s)return null;var u=s.newAgStackInstance();return u&&u.then((function(t){return i=t})),u},n.prototype.createFilterParams=function(t,i){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:t,colDef:f(i),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(t),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},n.prototype.createFilterWrapper=function(t,i){var n={column:t,filterPromise:null,compiledElement:null,guiPromise:$e.resolve(null)};return n.filterPromise=this.createFilterInstance(t),n.filterPromise&&this.putIntoGui(n,i),n},n.prototype.putIntoGui=function(t,n){var e=this,r=document.createElement("div");r.className="ag-filter",t.guiPromise=new $e((function(o){t.filterPromise.then((function(s){var u=s.getGui();i(u)||console.warn("AG Grid: getGui method from filter returned "+u+", it should be a DOM element or an HTML template string."),"string"==typeof u&&(u=_n(u)),r.appendChild(u),o(r),e.eventService.dispatchEvent({type:Tt.EVENT_FILTER_OPENED,column:t.column,source:n,eGui:r})}))}))},n.prototype.onColumnsChanged=function(){var t=this,i=[];this.allColumnFilters.forEach((function(n,e){(n.column.isPrimary()?t.columnModel.getPrimaryColumn(e):t.columnModel.getGridColumn(e))||(i.push(n.column),t.disposeFilterWrapper(n,"filterDestroyed"))})),i.length>0&&this.onFilterChanged({columns:i})},n.prototype.destroyFilter=function(t,i){void 0===i&&(i="api");var n=this.allColumnFilters.get(t.getColId());n&&(this.disposeFilterWrapper(n,i),this.onFilterChanged({columns:[t]}))},n.prototype.disposeFilterWrapper=function(t,i){var n=this;t.filterPromise.then((function(e){(e.setModel(null)||$e.resolve()).then((function(){n.getContext().destroyBean(e),t.column.setFilterActive(!1,i),n.allColumnFilters.delete(t.column.getColId())}))}))},n.prototype.destroy=function(){var i=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach((function(t){return i.disposeFilterWrapper(t,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",iu([W("valueService")],n.prototype,"valueService",void 0),iu([W("columnModel")],n.prototype,"columnModel",void 0),iu([W("rowModel")],n.prototype,"rowModel",void 0),iu([W("userComponentFactory")],n.prototype,"userComponentFactory",void 0),iu([W("rowRenderer")],n.prototype,"rowRenderer",void 0),iu([L],n.prototype,"init",null),iu([H],n.prototype,"destroy",null),e=iu([B("filterManager")],n)}(kt),eu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ru=function(t){function i(i,n){var e=t.call(this,i)||this;return e.ctrl=n,e}return eu(i,t),i.prototype.getCtrl=function(){return this.ctrl},i}(sr),ou=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),su=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},uu=function(t){function i(n){return t.call(this,i.TEMPLATE,n)||this}return ou(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui();this.ctrl.setComp({addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},addOrRemoveBodyCssClass:function(i,n){return t.eFloatingFilterBody.classList.toggle(i,n)},addOrRemoveButtonWrapperCssClass:function(i,n){return t.eButtonWrapper.classList.toggle(i,n)},setCompDetails:function(i){return t.setCompDetails(i)},getFloatingFilterComp:function(){return t.compPromise},setWidth:function(t){return i.style.width=t},setMenuIcon:function(i){return t.eButtonShowMainFilter.appendChild(i)}},i,this.eButtonShowMainFilter,this.eFloatingFilterBody)},i.prototype.setCompDetails=function(t){var i=this;this.compPromise=t.newAgStackInstance(),this.compPromise.then((function(t){return i.afterCompCreated(t)}))},i.prototype.afterCompCreated=function(t){var i=this;t&&(this.addDestroyFunc((function(){return i.context.destroyBean(t)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()))},i.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" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',su([ur("eFloatingFilterBody")],i.prototype,"eFloatingFilterBody",void 0),su([ur("eButtonWrapper")],i.prototype,"eButtonWrapper",void 0),su([ur("eButtonShowMainFilter")],i.prototype,"eButtonShowMainFilter",void 0),su([L],i.prototype,"postConstruct",null),i}(ru),hu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),cu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t.AUTO_HEIGHT="ag-layout-auto-height",t.NORMAL="ag-layout-normal",t.PRINT="ag-layout-print"}(Js||(Js={}));var au,fu=function(t){function i(i){var n=t.call(this)||this;return n.view=i,n}return hu(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},i.prototype.updateLayoutClasses=function(){var t=this.gridOptionsWrapper.getDomLayout(),i={autoHeight:t===Q.DOM_LAYOUT_AUTO_HEIGHT,normal:t===Q.DOM_LAYOUT_NORMAL,print:t===Q.DOM_LAYOUT_PRINT};this.view.updateLayoutClasses(i.autoHeight?Js.AUTO_HEIGHT:i.print?Js.PRINT:Js.NORMAL,i)},cu([W("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),cu([L],i.prototype,"postConstruct",null),i}(kt),lu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),du=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},vu=function(t){function i(i){var n=t.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=i,n.resetLastHorizontalScrollElementDebounced=k(n.resetLastHorizontalScrollElement.bind(n),500),n}return lu(i,t),i.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(i){t.centerRowContainerCtrl=i.centerRowContainerCtrl,t.onDisplayedColumnsWidthChanged(),t.addScrollListener()}))},i.prototype.addScrollListener=function(){var t=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(t.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var i=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?k(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i)},i.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},i.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){if(null!=this.centerRowContainerCtrl){void 0===t&&(t=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var i=this.enableRtl?t:-t,n=this.ctrlsService.getTopCenterRowContainerCtrl(),e=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),r=this.ctrlsService.getBottomCenterRowContainerCtrl(),o=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(i),r.setContainerTranslateX(i),n.setContainerTranslateX(i),e.setContainerTranslateX(i);var s=this.centerRowContainerCtrl.getViewportElement();On(this.lastHorizontalScrollElement===s?o.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl)}},i.prototype.isControllingScroll=function(t){return this.lastHorizontalScrollElement?t===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=t,!0)},i.prototype.onFakeHorizontalScroll=function(){var t=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(t)&&this.onBodyHorizontalScroll(t)},i.prototype.onCenterViewportScroll=function(){var t=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(t)&&this.onBodyHorizontalScroll(t)},i.prototype.onBodyHorizontalScroll=function(t){var i=this.centerRowContainerCtrl.getViewportElement();this.shouldBlockScrollUpdate("horizontal",i.scrollLeft,!0)||(this.doHorizontalScroll(Math.round(Sn(t,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},i.prototype.onVerticalScroll=function(){var t=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",t,!0)||(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},i.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},i.prototype.doHorizontalScroll=function(t){var i=Sn(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===t&&t===i||(this.scrollLeft=t,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.onHorizontalViewportChanged())},i.prototype.fireScrollEvent=function(t){var i=this,n={type:Tt.EVENT_BODY_SCROLL,direction:t,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var t=Object.assign({},n,{type:Tt.EVENT_BODY_SCROLL_END});i.eventService.dispatchEvent(t)}),100)},i.prototype.shouldBlockScrollUpdate=function(t,i,n){if(void 0===n&&(n=!1),n&&!bi())return!1;if("vertical"===t){var e=wn(this.eBodyViewport);if(i<0||i+e>this.eBodyViewport.scrollHeight)return!0}if("horizontal"===t){var r=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Rn()){if(i>0)return!0}else if(i<0)return!0;if(Math.abs(i)+r>o)return!0}return!1},i.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},i.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},i.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},i.prototype.executeAnimationFrameScroll=function(){var t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),t},i.prototype.setHorizontalScrollPosition=function(t){var i=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",t)&&(t=this.enableRtl&&Rn()?t>0?0:i:Math.min(Math.max(t,0),i)),On(this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl),this.doHorizontalScroll(t)},i.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},i.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},i.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},i.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},i.prototype.scrollHorizontally=function(t){var i=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(i+t),this.centerRowContainerCtrl.getViewportElement().scrollLeft-i},i.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},i.prototype.ensureNodeVisible=function(t,i){void 0===i&&(i=null);for(var n=this.rowModel.getRowCount(),e=-1,r=0;r<n;r++){var o=this.rowModel.getRow(r);if("function"==typeof t){if(o&&t(o)){e=r;break}}else if(t===o||t===o.data){e=r;break}}e>=0&&this.ensureIndexVisible(e,i)},i.prototype.ensureIndexVisible=function(t,i){if(this.gridOptionsWrapper.getDomLayout()!==Q.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=n)console.warn("invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(t);var e,r=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),o=this.paginationProxy.getRow(t);do{var s=o.rowTop,u=o.rowHeight,h=this.paginationProxy.getPixelOffset(),c=o.rowTop-h,a=c+o.rowHeight,f=this.getVScrollPosition(),l=this.heightScaler.getDivStretchOffset(),d=f.top+l,v=f.bottom+l,p=v-d,g=this.heightScaler.getScrollPositionForPixel(c),m=this.heightScaler.getScrollPositionForPixel(a-p),w=Math.min((g+m)/2,c),b=null;"top"===i?b=g:"bottom"===i?b=m:"middle"===i?b=w:d+r>c?b=g-r:v<a&&(b=m),null!==b&&(this.eBodyViewport.scrollTop=b,this.rowRenderer.redrawAfterScroll()),e=s!==o.rowTop||u!==o.rowHeight}while(e);this.animationFrameService.flushAllFrames()}}},i.prototype.ensureColumnVisible=function(t,i){void 0===i&&(i="auto");var n=this.columnModel.getGridColumn(t);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var e=this.getPositionedHorizontalScroll(n,i);null!==e&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},i.prototype.getPositionedHorizontalScroll=function(t,i){var n=this.isColumnOutsideViewport(t),e=n.columnBeforeStart,r=n.columnAfterEnd,o=this.centerRowContainerCtrl.getCenterWidth()<t.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),u=this.enableRtl,h=(u?e:r)||o,c=u?r:e;"auto"!==i&&(h="start"===i,c="end"===i);var a="middle"===i;if(h||c||a){var f=this.getColumnBounds(t),l=f.colLeft,d=f.colRight;return a?f.colMiddle-s/2:h?u?d:l:u?l-s:d-s}return null},i.prototype.isColumnOutsideViewport=function(t){var i=this.getViewportBounds(),n=i.start,e=i.end,r=this.getColumnBounds(t),o=r.colLeft,s=r.colRight,u=this.enableRtl;return{columnBeforeStart:u?n>s:e<s,columnAfterEnd:u?e<o:n>o}},i.prototype.getColumnBounds=function(t){var i=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),e=t.getActualWidth(),r=t.getLeft(),o=i?-1:1,s=i?n-r:r;return{colLeft:s,colMiddle:s+e/2*o,colRight:s+e*o}},i.prototype.getViewportBounds=function(){var t=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:i,end:t+i,width:t}},du([W("ctrlsService")],i.prototype,"ctrlsService",void 0),du([W("animationFrameService")],i.prototype,"animationFrameService",void 0),du([W("paginationProxy")],i.prototype,"paginationProxy",void 0),du([W("rowModel")],i.prototype,"rowModel",void 0),du([W("rowContainerHeightService")],i.prototype,"heightScaler",void 0),du([W("rowRenderer")],i.prototype,"rowRenderer",void 0),du([W("columnModel")],i.prototype,"columnModel",void 0),du([L],i.prototype,"postConstruct",null),i}(kt),pu=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,i){void 0===i&&(i=!1);var n=i||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var e=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=t.clientX<e.left+r,this.tickRight=t.clientX>e.right-r,this.tickUp=t.clientY<e.top+r&&!n,this.tickDown=t.clientY>e.bottom-r&&!n,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 i=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(i-t),this.tickDown&&this.setVerticalPosition(i+t)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-t),this.tickRight&&this.setHorizontalPosition(n+t)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}(),gu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mu=function(){return(mu=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},wu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},bu=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},yu=function(t){function i(i){var n=t.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=i,n}return gu(i,t),i.prototype.postConstruct=function(){var t=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var i=function(){t.onSortChanged(),t.onFilterChanged(),t.onRowGroupChanged()};this.addManagedListener(this.eventService,Tt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_MODEL_UPDATED,(function(){i()})),i(),this.ctrlsService.whenReady((function(){var i=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new pu({scrollContainer:i.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return i.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(t){return i.getScrollFeature().setVerticalScrollPosition(t)},onScrollCallback:function(){t.onDragging(t.lastDraggingEvent)}})}))},i.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},i.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},i.prototype.onRowGroupChanged=function(){var t=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!e(t)},i.prototype.getContainer=function(){return this.eContainer},i.prototype.isInterestedIn=function(t){return t===zo.RowDrag},i.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?ns.ICON_NOT_ALLOWED:ns.ICON_MOVE},i.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},i.prototype.getRowNodes=function(t){var i=this;if(!this.isFromThisGrid(t))return t.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),e=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(bu(arguments[i]));return t}(this.selectionService.getSelectedNodes()).sort((function(t,n){return null==t.rowIndex||null==n.rowIndex?0:i.getRowIndexNumber(t)-i.getRowIndexNumber(n)})),r=t.dragItem.rowNode;return n&&-1!==e.indexOf(r)?(this.isMultiRowDrag=!0,e):(this.isMultiRowDrag=!1,[r])},i.prototype.onDragEnter=function(t){t.dragItem.rowNodes=this.getRowNodes(t),this.dispatchGridEvent(Tt.EVENT_ROW_DRAG_ENTER,t),this.getRowNodes(t).forEach((function(t){t.setDragging(!0)})),this.onEnterOrDragging(t)},i.prototype.onDragging=function(t){this.onEnterOrDragging(t)},i.prototype.isFromThisGrid=function(t){return t.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},i.prototype.isDropZoneWithinThisGrid=function(t){return!this.ctrlsService.getGridBodyCtrl().getGui().contains(t.dropZoneTarget)},i.prototype.onEnterOrDragging=function(t){this.dispatchGridEvent(Tt.EVENT_ROW_DRAG_MOVE,t),this.lastDraggingEvent=t;var i=this.mouseEventService.getNormalisedPosition(t).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(t,i),this.autoScrollService.check(t.event)},i.prototype.doManagedDrag=function(t,i){var n=this.isFromThisGrid(t),e=this.gridOptionsWrapper.isRowDragManaged(),r=t.dragItem.rowNodes;e&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!n?this.isDropZoneWithinThisGrid(t)||this.clientSideRowModel.highlightRowAtPixel(r[0],i):this.moveRows(r,i))},i.prototype.getRowIndexNumber=function(t){return parseInt(rt(t.getRowIndexString().split("-")),10)},i.prototype.moveRowAndClearHighlight=function(t){var i=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),e=n&&n.highlighted===Br.Below,r=this.mouseEventService.getNormalisedPosition(t).y,o=t.dragItem.rowNodes,s=e?1:0;if(this.isFromThisGrid(t))o.forEach((function(t){t.rowTop<r&&(s-=1)})),this.moveRows(o,r,s);else{var u=this.gridOptionsWrapper.getRowIdFunc(),h=this.clientSideRowModel.getRowIndexAtPixel(r)+1;this.clientSideRowModel.getHighlightPosition(r)===Br.Above&&h--,this.clientSideRowModel.updateRowData({add:o.map((function(t){return t.data})).filter((function(t){return!i.clientSideRowModel.getRowNode(u?u({data:t,level:0}):t.id)})),addIndex:h})}this.clearRowHighlight()},i.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},i.prototype.moveRows=function(t,i,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(t,i,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},i.prototype.addRowDropZone=function(t){var i=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 n={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,n=t):(t.onDragEnter&&(n.onDragEnter=function(n){t.onDragEnter(i.draggingToRowDragEvent(Tt.EVENT_ROW_DRAG_ENTER,n))}),t.onDragLeave&&(n.onDragLeave=function(n){t.onDragLeave(i.draggingToRowDragEvent(Tt.EVENT_ROW_DRAG_LEAVE,n))}),t.onDragging&&(n.onDragging=function(n){t.onDragging(i.draggingToRowDragEvent(Tt.EVENT_ROW_DRAG_MOVE,n))}),t.onDragStop&&(n.onDragStop=function(n){t.onDragStop(i.draggingToRowDragEvent(Tt.EVENT_ROW_DRAG_END,n))})),this.dragAndDropService.addDropTarget(mu({isInterestedIn:function(t){return t===zo.RowDrag},getIconName:function(){return ns.ICON_MOVE},external:!0},n))}else O((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},i.prototype.getRowDropZone=function(t){var i=this,n=this.getContainer.bind(this),e=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),o=this.onDragging.bind(this),s=this.onDragStop.bind(this);return t?{getContainer:n,onDragEnter:t.onDragEnter?function(n){e(n),t.onDragEnter(i.draggingToRowDragEvent(Tt.EVENT_ROW_DRAG_ENTER,n))}:e,onDragLeave:t.onDragLeave?function(n){r(n),t.onDragLeave(i.draggingToRowDragEvent(Tt.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:t.onDragging?function(n){o(n),t.onDragging(i.draggingToRowDragEvent(Tt.EVENT_ROW_DRAG_MOVE,n))}:o,onDragStop:t.onDragStop?function(n){s(n),t.onDragStop(i.draggingToRowDragEvent(Tt.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:e,onDragLeave:r,onDragging:o,onDragStop:s,fromGrid:!0}},i.prototype.draggingToRowDragEvent=function(t,i){var n,e,r=this.mouseEventService.getNormalisedPosition(i).y,o=-1;switch(r>this.paginationProxy.getCurrentPageHeight()||(o=this.rowModel.getRowIndexAtPixel(r),n=this.rowModel.getRow(o)),i.vDirection){case Uo.Down:e="down";break;case Uo.Up:e="up";break;default:e=null}return{type:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:i.event,node:i.dragItem.rowNode,nodes:i.dragItem.rowNodes,overIndex:o,overNode:n,y:r,vDirection:e}},i.prototype.dispatchGridEvent=function(t,i){var n=this.draggingToRowDragEvent(t,i);this.eventService.dispatchEvent(n)},i.prototype.onDragLeave=function(t){this.dispatchGridEvent(Tt.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},i.prototype.onDragStop=function(t){this.dispatchGridEvent(Tt.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},i.prototype.stopDragging=function(t){this.autoScrollService.ensureCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},wu([W("dragAndDropService")],i.prototype,"dragAndDropService",void 0),wu([W("rowModel")],i.prototype,"rowModel",void 0),wu([W("paginationProxy")],i.prototype,"paginationProxy",void 0),wu([W("columnModel")],i.prototype,"columnModel",void 0),wu([W("focusService")],i.prototype,"focusService",void 0),wu([W("sortController")],i.prototype,"sortController",void 0),wu([W("filterManager")],i.prototype,"filterManager",void 0),wu([W("selectionService")],i.prototype,"selectionService",void 0),wu([W("mouseEventService")],i.prototype,"mouseEventService",void 0),wu([W("ctrlsService")],i.prototype,"ctrlsService",void 0),wu([V("rangeService")],i.prototype,"rangeService",void 0),wu([L],i.prototype,"postConstruct",null),i}(kt),Cu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ru=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
227
- /**
228
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
229
- * @version v28.2.0
230
- * @link https://www.ag-grid.com/
231
- * @license MIT
232
- */!function(t){t.ANIMATION_ON="ag-row-animation",t.ANIMATION_OFF="ag-row-no-animation"}(au||(au={}));var Su,Ou,Au=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.stickyTopHeight=0,i}return Cu(i,t),i.prototype.getScrollFeature=function(){return this.bodyScrollFeature},i.prototype.getBodyViewportElement=function(){return this.eBodyViewport},i.prototype.setComp=function(t,i,n,e,r,o){this.comp=t,this.eGridBody=i,this.eBodyViewport=n,this.eTop=e,this.eBottom=r,this.eStickyTop=o,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new fu(this.comp)),this.bodyScrollFeature=this.createManagedBean(new vu(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([e,n,r,o]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},i.prototype.getComp=function(){return this.comp},i.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Tt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},i.prototype.addFocusListeners=function(t){var i=this;t.forEach((function(t){i.addManagedListener(t,"focusin",(function(i){var n=gn(i.target,"ag-root",t);t.classList.toggle("ag-has-focus",!n)})),i.addManagedListener(t,"focusout",(function(i){var n=i.target,e=i.relatedTarget,r=t.contains(e),o=gn(e,"ag-root",t);gn(n,"ag-root",t)||r&&!o||t.classList.remove("ag-has-focus")}))}))},i.prototype.setColumnMovingCss=function(t){this.comp.setColumnMovingCss(t?"ag-column-moving":null,t)},i.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1),this.comp.setCellSelectableCss(t?"ag-selectable":null,t)},i.prototype.onScrollVisibilityChanged=function(){var t=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(t),this.setStickyTopWidth(t)},i.prototype.onGridColumnsChanged=function(){var t=this.columnModel.getAllGridColumns();this.comp.setColumnCount(t?t.length:0)},i.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},i.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var i=function(i){var e=i.relatedTarget;if(null!==Ci(e)){var r=n.some((function(t){return t.contains(e)}))&&t.mouseEventService.isElementInThisGrid(e);if(!r){var o=t.popupService;r=o.getActivePopups().some((function(t){return t.contains(e)}))||o.isElementWithinCustomPopup(e)}r||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];n.forEach((function(n){return t.addManagedListener(n,"focusout",i)}))}},i.prototype.updateRowCount=function(){var t=this.headerNavigationService.getHeaderRowCount(),i=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1;this.comp.setRowCount(-1===i?-1:t+i)},i.prototype.registerBodyViewportResizeListener=function(t){this.comp.registerBodyViewportResizeListener(t)},i.prototype.setVerticalScrollPaddingVisible=function(t){this.comp.setPinnedTopBottomOverflowY(t?"scroll":"hidden")},i.prototype.isVerticalScrollShowing=function(){var t=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),i=t?"ag-force-vertical-scroll":null,n=this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(i,t),t||n&&Tn(this.eBodyViewport)},i.prototype.setupRowAnimationCssClass=function(){var t=this,i=function(){var i=t.gridOptionsWrapper.isAnimateRows()&&!t.rowContainerHeightService.isStretching();t.comp.setRowAnimationCssOnBodyViewport(i?au.ANIMATION_ON:au.ANIMATION_OFF,i)};i(),this.addManagedListener(this.eventService,Tt.EVENT_HEIGHT_SCALE_CHANGED,i)},i.prototype.getGridBodyElement=function(){return this.eGridBody},i.prototype.addBodyViewportListener=function(){var t=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(i){t.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&i.preventDefault();var n=i.target;n!==t.eBodyViewport&&n!==t.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||t.contextMenuFactory&&t.contextMenuFactory.onContextMenu(i,null,null,null,null,t.eGridBody)})),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},i.prototype.onBodyViewportWheel=function(t){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&t.preventDefault()},i.prototype.onStickyTopWheel=function(t){t.preventDefault(),t.offsetY&&this.scrollVertically(t.deltaY)},i.prototype.getGui=function(){return this.eGridBody},i.prototype.scrollVertically=function(t){var i=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(i+t),this.eBodyViewport.scrollTop-i},i.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new yu(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},i.prototype.getRowDragFeature=function(){return this.rowDragFeature},i.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},i.prototype.setFloatingHeights=function(){var t=this.pinnedRowModel,i=t.getPinnedTopTotalHeight();i&&(i+=1);var n=t.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(i),this.comp.setBottomHeight(n),this.comp.setTopDisplay(i?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none"),this.setStickyTopOffsetTop()},i.prototype.setStickyTopHeight=function(t){void 0===t&&(t=0),this.comp.setStickyTopHeight(t+"px"),this.stickyTopHeight=t},i.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},i.prototype.setStickyTopWidth=function(t){if(t){var i=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+i+"px)")}else this.comp.setStickyTopWidth("100%")},i.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},i.prototype.setStickyTopOffsetTop=function(){var t=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),i=this.pinnedRowModel.getPinnedTopTotalHeight(),n=0;t>0&&(n+=t+1),i>0&&(n+=i+1),this.comp.setStickyTopTop(n+"px")},i.prototype.sizeColumnsToFit=function(t,i){var n=this,e=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,r=bn(this.eBodyViewport)-e;r>0?this.columnModel.sizeColumnsToFit(r,"sizeColumnsToFit",!1,t):void 0===i?window.setTimeout((function(){n.sizeColumnsToFit(t,100)}),0):100===i?window.setTimeout((function(){n.sizeColumnsToFit(t,500)}),100):500===i?window.setTimeout((function(){n.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?")},i.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t)},i.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},Ru([W("rowContainerHeightService")],i.prototype,"rowContainerHeightService",void 0),Ru([W("ctrlsService")],i.prototype,"ctrlsService",void 0),Ru([W("columnModel")],i.prototype,"columnModel",void 0),Ru([W("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),Ru([V("contextMenuFactory")],i.prototype,"contextMenuFactory",void 0),Ru([W("headerNavigationService")],i.prototype,"headerNavigationService",void 0),Ru([W("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Ru([W("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Ru([W("rowRenderer")],i.prototype,"rowRenderer",void 0),Ru([W("popupService")],i.prototype,"popupService",void 0),Ru([W("mouseEventService")],i.prototype,"mouseEventService",void 0),Ru([W("rowModel")],i.prototype,"rowModel",void 0),i}(kt);!function(t){t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE"}(Su||(Su={})),function(t){t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION"}(Ou||(Ou={}));
233
- /**
234
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
235
- * @version v28.2.0
236
- * @link https://www.ag-grid.com/
237
- * @license MIT
238
- */
239
- var ju,Gu=function(){function t(t,i){this.beans=t,this.cellCtrl=i}return t.prototype.setComp=function(t,i){this.cellComp=t,this.eGui=i,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),Ce(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(),i=this.isSingleCell(),n=!i&&t.right,e=!i&&t.bottom,r=!i&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",!i&&t.top),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",e),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 i=t.getCellRanges();return i.length>0&&i.every((function(t){return ft([Ou.DIMENSION,Ou.VALUE],t.type)}))},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var t,i,n=this,e=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,o=!1,s=!1,u=!1,h=this.cellCtrl.getCellPosition().column,c=this.beans,a=c.rangeService,f=c.columnModel;e?(t=f.getDisplayedColAfter(h),i=f.getDisplayedColBefore(h)):(t=f.getDisplayedColBefore(h),i=f.getDisplayedColAfter(h));var l=a.getCellRanges().filter((function(t){return a.isCellInSpecificRange(n.cellCtrl.getCellPosition(),t)}));t||(u=!0),i||(o=!0);for(var d=0;d<l.length&&!(r&&o&&s&&u);d++){var v=l[d],p=a.getRangeStartRow(v),g=a.getRangeEndRow(v);!r&&this.beans.rowPositionUtils.sameRow(p,this.cellCtrl.getCellPosition())&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(s=!0),!u&&t&&v.columns.indexOf(t)<0&&(u=!0),!o&&i&&v.columns.indexOf(i)<0&&(o=!0)}return{top:r,right:o,bottom:s,left:u}},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,i=t.gridOptionsWrapper,n=t.rangeService,e=n.getCellRanges(),r=e.length;if(this.rangeCount<1||r<1)return!1;var o=rt(e),s=this.cellCtrl.getCellPosition(),u=i.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),h=i.isEnableRangeHandle(),c=1===r&&!this.cellCtrl.isEditing()&&(u||h);if(this.hasChartRange){var a=e[0].type===Ou.DIMENSION&&n.isCellInSpecificRange(s,e[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",a),c=o.type===Ou.VALUE}return c&&null!=o.endRow&&n.isContiguousRange(o)&&n.isBottomRightCell(o,s)},t.prototype.addSelectionHandle=function(){var t=this.beans,i=t.gridOptionsWrapper,e=rt(t.rangeService.getCellRanges()).type,r=i.isEnableFillHandle()&&n(e)?Su.FILL:Su.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this.cellCtrl)},t.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},t}(),_u=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),xu=function(t){function i(i,n){var e=t.call(this)||this;return e.cellCtrl=i,e.beans=n,e.column=i.getColumn(),e.rowNode=i.getRowNode(),e.setupColSpan(),e.setupRowSpan(),e}return _u(i,t),i.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},i.prototype.setComp=function(t){this.eGui=t,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},i.prototype.onDisplayColumnsChanged=function(){var t=this.getColSpanningList();ot(this.colsSpanning,t)||(this.colsSpanning=t,this.onWidthChanged(),this.onLeftChanged())},i.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},i.prototype.onWidthChanged=function(){if(this.eGui){var t=this.getCellWidth();this.eGui.style.width=t+"px"}},i.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(t,i){return t+i.getActualWidth()}),0):this.column.getActualWidth()},i.prototype.getColSpanningList=function(){var t=this.column.getColSpan(this.rowNode),i=[];if(1===t)i.push(this.column);else for(var e=this.column,r=this.column.getPinned(),o=0;e&&o<t&&(i.push(e),(e=this.beans.columnModel.getDisplayedColAfter(e))&&!n(e))&&r===e.getPinned();o++);return i},i.prototype.onLeftChanged=function(){if(this.eGui){var t=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=t+"px"}},i.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?rt(this.colsSpanning):this.column).getLeft()},i.prototype.modifyLeftForPrintLayout=function(t){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===Q.PINNED_LEFT)return t;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===Q.PINNED_RIGHT?i+this.beans.columnModel.getBodyContainerWidth()+(t||0):i+(t||0)},i.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var t=this.beans.gridOptionsWrapper.getRowHeightAsNumber();this.eGui.style.height=t*this.rowSpan+"px",this.eGui.style.zIndex="1"}},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(kt),Fu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Mu=function(t){function i(i,n){var e=t.call(this)||this;return e.staticClasses=[],e.cellCtrl=i,e.beans=n,e.column=i.getColumn(),e.rowNode=i.getRowNode(),e}return Fu(i,t),i.prototype.setComp=function(t){this.cellComp=t,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},i.prototype.applyCellClassRules=function(){var t=this,i=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:i,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(i.cellClassRules,n,(function(i){return t.cellComp.addOrRemoveCssClass(i,!0)}),(function(i){return t.cellComp.addOrRemoveCssClass(i,!1)}))},i.prototype.applyUserStyles=function(){var t=this.column.getColDef();if(t.cellStyle){var i;if("function"==typeof t.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:t,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};i=(0,t.cellStyle)(n)}else i=t.cellStyle;this.cellComp.setUserStyles(i)}},i.prototype.applyClassesFromColDef=function(){var t=this,i=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:i,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach((function(i){return t.cellComp.addOrRemoveCssClass(i,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(i,n),this.staticClasses.length&&this.staticClasses.forEach((function(i){return t.cellComp.addOrRemoveCssClass(i,!0)}))},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(kt),ku=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Du=function(t){function i(i,n){var e=t.call(this)||this;return e.ctrl=i,e.beans=n,e}return ku(i,t),i.prototype.setComp=function(t){this.comp=t,this.setupTooltip()},i.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},i.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},i.prototype.createTooltipFeatureIfNeeded=function(){var t=this;null==this.genericTooltipFeature&&(this.genericTooltipFeature=this.createManagedBean(new ir({getTooltipParams:function(){return t.getTooltipParams()},getGui:function(){return t.ctrl.getGui()}}),this.beans.context))},i.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},i.prototype.getTooltipParams=function(){var t=this.ctrl,i=t.getColumn?t.getColumn():void 0,n=t.getColDef?t.getColDef():void 0,e=t.getRowNode?t.getRowNode():void 0;return{location:t.getLocation(),colDef:n,column:i,rowIndex:t.getRowIndex?t.getRowIndex():void 0,node:e,data:e?e.data:void 0,value:this.getTooltipText(),valueFormatted:t.getValueFormatted?t.getValueFormatted():void 0}},i.prototype.getTooltipText=function(){return this.tooltip},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(kt),Pu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Iu=function(){function t(){}return t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Pu([W("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Pu([W("paginationProxy")],t.prototype,"paginationProxy",void 0),Pu([W("context")],t.prototype,"context",void 0),Pu([W("columnApi")],t.prototype,"columnApi",void 0),Pu([W("gridApi")],t.prototype,"gridApi",void 0),Pu([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pu([W("expressionService")],t.prototype,"expressionService",void 0),Pu([W("rowRenderer")],t.prototype,"rowRenderer",void 0),Pu([W("templateService")],t.prototype,"templateService",void 0),Pu([W("valueService")],t.prototype,"valueService",void 0),Pu([W("eventService")],t.prototype,"eventService",void 0),Pu([W("columnModel")],t.prototype,"columnModel",void 0),Pu([W("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Pu([W("navigationService")],t.prototype,"navigationService",void 0),Pu([W("columnAnimationService")],t.prototype,"columnAnimationService",void 0),Pu([V("rangeService")],t.prototype,"rangeService",void 0),Pu([W("focusService")],t.prototype,"focusService",void 0),Pu([V("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Pu([W("popupService")],t.prototype,"popupService",void 0),Pu([W("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Pu([W("stylingService")],t.prototype,"stylingService",void 0),Pu([W("columnHoverService")],t.prototype,"columnHoverService",void 0),Pu([W("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Pu([W("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Pu([W("animationFrameService")],t.prototype,"animationFrameService",void 0),Pu([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Pu([W("sortController")],t.prototype,"sortController",void 0),Pu([W("filterManager")],t.prototype,"filterManager",void 0),Pu([W("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Pu([W("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Pu([W("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Pu([W("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Pu([W("selectionService")],t.prototype,"selectionService",void 0),Pu([V("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),Pu([W("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Pu([W("rowModel")],t.prototype,"rowModel",void 0),Pu([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Pu([W("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),Pu([W("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Pu([W("valueCache")],t.prototype,"valueCache",void 0),Pu([W("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),Pu([L],t.prototype,"postConstruct",null),Pu([B("beans")],t)}(),Tu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Eu=function(t){function i(i,n,e){var r=t.call(this)||this;return r.cellCtrl=i,r.beans=n,r.column=e,r}return Tu(i,t),i.prototype.onMouseEvent=function(t,i){if(!Ct(i))switch(t){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i)}},i.prototype.onCellClicked=function(t){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(t),void t.preventDefault();var i=this.beans,n=i.eventService,e=i.rangeService,r=i.gridOptionsWrapper;e&&(t.ctrlKey||t.metaKey)&&e.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&e.intersectLastRange(!0);var o=this.cellCtrl.createEvent(t,Tt.EVENT_CELL_CLICKED);n.dispatchEvent(o);var s=this.column.getColDef();s.onCellClicked&&window.setTimeout((function(){return s.onCellClicked(o)}),0),(r.isSingleClickEdit()||s.singleClickEdit)&&!r.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},i.prototype.isDoubleClickOnIPad=function(){if(!bi()||St("dblclick"))return!1;var t=(new Date).getTime(),i=t-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=t,i},i.prototype.onCellDoubleClicked=function(t){var i=this.column.getColDef(),n=this.cellCtrl.createEvent(t,Tt.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof i.onCellDoubleClicked&&window.setTimeout((function(){return i.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,t)},i.prototype.onMouseDown=function(t){var i=t.ctrlKey,n=t.metaKey,e=t.shiftKey,r=t.target,o=this.beans,s=o.eventService,u=o.rangeService;if(!this.isRightClickInExistingRange(t)){var h=u&&0!=u.getCellRanges().length;if(!e||!h){var c=vi()&&!this.cellCtrl.isEditing()&&!ln(r);this.cellCtrl.focusCell(c)}if(e&&h&&t.preventDefault(),!this.containsWidget(r)){if(u){var a=this.cellCtrl.getCellPosition();e?u.extendLatestRangeToCell(a):u.setRangeToCell(a,i||n)}s.dispatchEvent(this.cellCtrl.createEvent(t,Tt.EVENT_CELL_MOUSE_DOWN))}}},i.prototype.isRightClickInExistingRange=function(t){var i=this.beans.rangeService;return!(!i||!i.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==t.button)},i.prototype.containsWidget=function(t){return gn(t,"ag-selection-checkbox",3)},i.prototype.onMouseOut=function(t){if(!this.mouseStayingInsideCell(t)){var i=this.cellCtrl.createEvent(t,Tt.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.clearMouseOver()}},i.prototype.onMouseOver=function(t){if(!this.mouseStayingInsideCell(t)){var i=this.cellCtrl.createEvent(t,Tt.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.setMouseOver([this.column])}},i.prototype.mouseStayingInsideCell=function(t){if(!t.target||!t.relatedTarget)return!1;var i=this.cellCtrl.getGui(),n=i.contains(t.target),e=i.contains(t.relatedTarget);return n&&e},i.prototype.destroy=function(){},i}(Iu),Nu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Lu=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.cellCtrl=i,s.beans=n,s.rowNode=r,s.rowCtrl=o,s}return Nu(i,t),i.prototype.setComp=function(t){this.eGui=t},i.prototype.onKeyDown=function(t){var i=t.key;switch(i){case Pe.ENTER:this.onEnterKeyDown(t);break;case Pe.F2:this.onF2KeyDown(t);break;case Pe.ESCAPE:this.onEscapeKeyDown(t);break;case Pe.TAB:this.onTabKeyDown(t);break;case Pe.BACKSPACE:case Pe.DELETE:this.onBackspaceOrDeleteKeyPressed(i,t);break;case Pe.DOWN:case Pe.UP:case Pe.RIGHT:case Pe.LEFT:this.onNavigationKeyPressed(t,i)}},i.prototype.onNavigationKeyPressed=function(t,i){this.cellCtrl.isEditing()||(t.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(t,i,this.cellCtrl.getCellPosition(),!0),t.preventDefault())},i.prototype.onShiftRangeSelect=function(t){if(this.beans.rangeService){var i=this.beans.rangeService.extendLatestRangeInDirection(t);i&&this.beans.navigationService.ensureCellVisible(i)}},i.prototype.onTabKeyDown=function(t){this.beans.navigationService.onTabKeyDown(this.cellCtrl,t)},i.prototype.onBackspaceOrDeleteKeyPressed=function(t,i){var n=this,e=n.cellCtrl,r=n.beans,o=n.rowNode,s=r.gridOptionsWrapper,u=r.rangeService,h=r.eventService;e.isEditing()||(h.dispatchEvent({type:Tt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Le(t,s.isEnableCellEditingOnBackspace())?u&&s.isEnableRangeSelection()?u.clearCellRangeCellValues():e.isCellEditable()&&o.setDataValue(e.getColumn(),null,"cellKeyboardListenerFeature"):e.startRowOrCellEdit(t,void 0,i),h.dispatchEvent({type:Tt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},i.prototype.onEnterKeyDown=function(t){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,Pe.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(Pe.ENTER,void 0,t),this.cellCtrl.isEditing()&&t.preventDefault())},i.prototype.onF2KeyDown=function(t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Pe.F2,void 0,t)},i.prototype.onEscapeKeyDown=function(){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},i.prototype.onKeyPress=function(t){if(t.target===this.eGui&&!this.cellCtrl.isEditing()){var i=String.fromCharCode(t.charCode);" "===i?this.onSpaceKeyPressed(t):Ie(t)&&(this.cellCtrl.startRowOrCellEdit(null,i,t),t.preventDefault())}},i.prototype.onSpaceKeyPressed=function(t){var i=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&i.isRowSelection()){var n=this.rowNode.isSelected(),e=!n;if(e||!i.isSuppressRowDeselection()){var r=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),o=this.rowNode.setSelectedParams({newValue:e,rangeSelect:t.shiftKey,groupSelectsFiltered:r});void 0===n&&0===o&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:r})}}t.preventDefault()},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(kt),Hu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bu=function(t){function i(i,n,e,r){var o=t.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return o.rowNode=i,o.column=n,o.beans=e,o.eCell=r,o}return Hu(i,t),i.prototype.postConstruct=function(){this.getGui().appendChild(ke("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation()})),this.addDragSource(),this.checkVisibility()},i.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},i.prototype.onDragStart=function(t){var i=this,n=this.column.getColDef().dndSourceOnRowDrag;t.dataTransfer.setDragImage(this.eCell,0,0),n?n({rowNode:this.rowNode,dragEvent:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var n=JSON.stringify(i.rowNode.data);t.dataTransfer.setData("application/json",n),t.dataTransfer.setData("text/plain",n)}catch(t){}}()},i.prototype.checkVisibility=function(){var t=this.column.isDndSource(this.rowNode);this.setDisplayed(t)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(sr),Wu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vu=function(){return(Vu=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},zu=0,Uu=function(n){function e(t,i,e,r){var o=n.call(this)||this;return o.suppressRefreshCell=!1,o.onCellCompAttachedFuncs=[],o.removeAutoHeightListeners=null,o.column=t,o.rowNode=i,o.beans=e,o.rowCtrl=r,o.instanceId=t.getId()+"-"+zu++,o.createCellPosition(),o.addFeatures(),o}return Wu(e,n),e.prototype.addFeatures=function(){var t=this;this.cellPositionFeature=new xu(this,this.beans),this.addDestroyFunc((function(){return t.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new Mu(this,this.beans),this.addDestroyFunc((function(){return t.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new Eu(this,this.beans,this.column),this.addDestroyFunc((function(){return t.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new Lu(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return t.cellKeyboardListenerFeature.destroy()})),this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRangeFeature=new Gu(this.beans,this),this.addDestroyFunc((function(){return t.cellRangeFeature.destroy()}))),this.addTooltipFeature()},e.prototype.addTooltipFeature=function(){var t=this;this.tooltipFeature=new Du({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 n=t.column.getColDef(),e=t.rowNode.data;if(n.tooltipField&&i(e))return b(e,n.tooltipField,t.column.isTooltipFieldContainsDots());var r=n.tooltipValueGetter;return r?r({location:"cell",api:t.beans.gridOptionsWrapper.getApi(),columnApi:t.beans.gridOptionsWrapper.getColumnApi(),context:t.beans.gridOptionsWrapper.getContext(),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.beans),this.addDestroyFunc((function(){return t.tooltipFeature.destroy()}))},e.prototype.setComp=function(t,i,n,e,r){this.cellComp=t,this.gow=this.beans.gridOptionsWrapper,this.eGui=i,this.printLayout=e,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),n&&this.refreshAutoHeight(n),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var o=Vt(this.column.getId());this.cellComp.setColId(o),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(i),this.cellCustomStyleFeature.setComp(t),this.tooltipFeature.setComp(t),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(t,i),r&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((function(t){return t()})),this.onCellCompAttachedFuncs=[])},e.prototype.refreshAutoHeight=function(t){var i=this;if(this.column.isAutoHeight()){var n=t.parentElement,e=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,r=function(o){if(!i.editing&&i.isAlive()){var s=mn(n),u=t.offsetHeight+s.paddingTop+s.paddingBottom;if(o<5){var h=i.beans.gridOptionsWrapper.getDocument();if(!h||!h.contains(t)||0==u)return void i.beans.frameworkOverrides.setTimeout((function(){return r(o+1)}),0)}var c=Math.max(u,e);i.rowNode.setRowAutoHeight(c,i.column)}},o=function(){return r(0)};o();var s=this.beans.resizeObserverService.observeResize(t,o);this.removeAutoHeightListeners&&(this.removeAutoHeightListeners(),this.removeAutoHeightListeners=null),this.removeAutoHeightListeners=function(){s(),i.rowNode.setRowAutoHeight(void 0,i.column)}}},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.showValue=function(t){void 0===t&&(t=!1);var i=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),e=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(e,i,t),this.refreshHandle()},e.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)},e.prototype.isForceWrapper=function(){return this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight()},e.prototype.isIncludeControl=function(t){return!(null!=this.rowNode.rowPinned||"function"!=typeof t&&!0!==t)},e.prototype.refreshShouldDestroy=function(){var t=this.column.getColDef(),i=this.includeSelection!=this.isIncludeControl(t.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(t.rowDrag),e=this.includeDndSource!=this.isIncludeControl(t.dndSource);return i||n||e},e.prototype.startEditing=function(t,i,n,e){var r,o,s=this;if(void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n=!1),void 0===e&&(e=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var u=this.createCellEditorParams(t,i,n),h=this.column.getColDef(),c=this.beans.userComponentFactory.getCellEditorDetails(h,u),a=null!=(null===(r=c)||void 0===r?void 0:r.popupFromSelector)?c.popupFromSelector:!!h.cellEditorPopup,f=null!=(null===(o=c)||void 0===o?void 0:o.popupPositionFromSelector)?c.popupPositionFromSelector:h.cellEditorPopupPosition;this.setEditing(!0,a),this.cellComp.setEditDetails(c,a,f);var l=this.createEvent(e,Tt.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(l)}else this.onCellCompAttachedFuncs.push((function(){s.startEditing(t,i,n,e)}))},e.prototype.setEditing=function(t,i){void 0===i&&(i=!1),this.editing!==t&&(this.editing=t,this.editingInPopup=i,this.setInlineEditingClass(),this.refreshHandle())},e.prototype.stopRowOrCellEdit=function(t){void 0===t&&(t=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(t):this.stopEditing(t)},e.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},e.prototype.takeValueFromCellEditor=function(t){var i={newValueExists:!1};if(t)return i;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?i:{newValue:n.getValue(),newValueExists:!0}:i},e.prototype.saveNewValue=function(t,i){if(i===t)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(t,i),!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,i);return this.suppressRefreshCell=!1,n},e.prototype.dispatchEventForSaveValueReadOnly=function(t,i){var n=this.rowNode,e={type:Tt.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:n.data,node:n,oldValue:t,newValue:i,value:i,source:void 0};this.beans.eventService.dispatchEvent(e)},e.prototype.stopEditing=function(t){if(void 0===t&&(t=!1),!this.editing)return!1;var i=this.takeValueFromCellEditor(t),n=i.newValue,e=i.newValueExists,r=this.getValueFromValueService(),o=!1;return e&&(o=this.saveNewValue(r,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,n,!t&&!!o),o},e.prototype.dispatchEditingStoppedEvent=function(t,i,n){var e=Vu(Vu({},this.createEvent(null,Tt.EVENT_CELL_EDITING_STOPPED)),{oldValue:t,newValue:i,valueChanged:n});this.beans.eventService.dispatchEvent(e)},e.prototype.setInlineEditingClass=function(){var t=this;if(this.isAlive())if(this.cellComp){var i=this.editing&&!this.editingInPopup,n=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",i),this.cellComp.addOrRemoveCssClass("ag-cell-not-inline-editing",!i),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",n),this.rowCtrl.setInlineEditingCss(this.editing)}else this.onCellCompAttachedFuncs.push((function(){t.setInlineEditingClass()}))},e.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},e.prototype.createCellEditorParams=function(t,i,n){return{value:this.getValueFromValueService(),key:t,eventKey:t,charPress:i,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},e.prototype.createCellRendererParams=function(){var t=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(i){return t.beans.valueService.setValue(t.rowNode,t.column,i)},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.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(i,n,e,r){return t.registerRowDragger(i,n,r)},addRowCompListener:function(i,n){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),t.rowCtrl.addEventListener(i,n)}}},e.prototype.parseValue=function(t){var n=this.column.getColDef(),e={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:t,colDef:n,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},r=n.valueParser;return i(r)?this.beans.expressionService.evaluate(r,e):t},e.prototype.setFocusOutOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusOut&&t.focusOut()}},e.prototype.setFocusInOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusIn?t.focusIn():this.focusCell(!0)}},e.prototype.onCellChanged=function(t){this.cellComp&&t.column===this.column&&this.refreshCell({})},e.prototype.refreshCell=function(t){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var i=this.column.getColDef(),n=null!=t&&!!t.newData,e=null!=t&&!!t.suppressFlash||!!i.suppressCellFlash,r=t&&t.forceRefresh||null==i.field&&null==i.valueGetter&&null==i.showRowGroup||n,o=this.updateAndFormatValue();if(r||o){this.showValue(n);var s=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!e&&!s&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||i.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},e.prototype.stopEditingAndFocus=function(t){void 0===t&&(t=!1),this.stopRowOrCellEdit(),this.focusCell(!0),t||this.navigateAfterEdit()},e.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.navigationService.navigateToNextCell(null,Pe.DOWN,this.getCellPosition(),!1)},e.prototype.flashCell=function(t){this.animateCell("data-changed",t&&t.flashDelay,t&&t.fadeDelay)},e.prototype.animateCell=function(t,n,e){var r=this,o="ag-cell-"+t,s="ag-cell-"+t+"-animation",u=this.beans.gridOptionsWrapper;n||(n=u.getCellFlashDelay()),i(e)||(e=u.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(o,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout((function(){r.isAlive()&&(r.cellComp.addOrRemoveCssClass(o,!1),r.cellComp.addOrRemoveCssClass(s,!0),r.eGui.style.transition="background-color "+e+"ms",window.setTimeout((function(){r.isAlive()&&(r.cellComp.addOrRemoveCssClass(s,!1),r.eGui.style.transition="")}),e))}),n)},e.prototype.onFlashCells=function(t){if(this.cellComp){var i=this.beans.cellPositionUtils.createId(this.getCellPosition());t.cells[i]&&this.animateCell("highlight")}},e.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},e.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},e.prototype.formatValue=function(t){var i=this.callValueFormatter(t);return null!=i?i:t},e.prototype.callValueFormatter=function(t){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,t)},e.prototype.updateAndFormatValue=function(t){void 0===t&&(t=!1);var i=this.value,n=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!t||!this.valuesAreEqual(i,this.value)||this.valueFormatted!=n},e.prototype.valuesAreEqual=function(t,i){var n,e,r=this.column.getColDef();return r.equals?r.equals(t,i):typeof t==typeof i&&(null===(n=t)||void 0===n?void 0:n.toString())===(null===(e=i)||void 0===e?void 0:e.toString())},e.prototype.getComp=function(){return this.cellComp},e.prototype.getValueFromValueService=function(){var t=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),i=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!t,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),e=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader();return this.beans.valueService.getValue(this.column,this.rowNode,!1,i&&n&&!e)},e.prototype.getValue=function(){return this.value},e.prototype.getValueFormatted=function(){return this.valueFormatted},e.prototype.addDomData=function(){var t=this,i=this.getGui();this.beans.gridOptionsWrapper.setDomData(i,e.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return t.beans.gridOptionsWrapper.setDomData(i,e.DOM_DATA_KEY_CELL_CTRL,null)}))},e.prototype.createEvent=function(t,i){return{type:i,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:t,rowIndex:this.rowNode.rowIndex}},e.prototype.onKeyPress=function(t){this.cellKeyboardListenerFeature.onKeyPress(t)},e.prototype.onKeyDown=function(t){this.cellKeyboardListenerFeature.onKeyDown(t)},e.prototype.onMouseEvent=function(t,i){this.cellMouseListenerFeature.onMouseEvent(t,i)},e.prototype.getGui=function(){return this.eGui},e.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},e.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},e.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},e.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},e.prototype.setAriaColIndex=function(){var t=this.beans.columnModel.getAriaColumnIndex(this.column);me(this.getGui(),t)},e.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},e.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},e.prototype.getColumn=function(){return this.column},e.prototype.getRowNode=function(){return this.rowNode},e.prototype.getBeans=function(){return this.beans},e.prototype.isPrintLayout=function(){return this.printLayout},e.prototype.appendChild=function(t){this.eGui.appendChild(t)},e.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},e.prototype.getCellPosition=function(){return this.cellPosition},e.prototype.isEditing=function(){return this.editing},e.prototype.startRowOrCellEdit=function(t,i,n){void 0===n&&(n=null),this.cellComp&&(this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(t,i,this):this.startEditing(t,i,!0,n))},e.prototype.getRowCtrl=function(){return this.rowCtrl},e.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},e.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},e.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},e.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})},e.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},e.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var t=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",t)}},e.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var t=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",t)}},e.prototype.onCellFocused=function(t){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var i=this.beans.focusService.isCellFocused(this.cellPosition);this.cellComp.addOrRemoveCssClass("ag-cell-focus",i),i&&t&&t.forceBrowserFocus&&this.cellComp.getFocusableElement().focus({preventScroll:!!t.preventScrollOnBrowserFocus});var n=this.beans.gridOptionsWrapper.isFullRowEdit();i||n||!this.editing||this.stopRowOrCellEdit()}},e.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:t(this.rowNode.rowPinned),column:this.column}},e.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)},e.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var t=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",t)}},e.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},e.prototype.setWrapText=function(){var t=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",t)},e.prototype.dispatchCellContextMenuEvent=function(t){var i=this.column.getColDef(),n=this.createEvent(t,Tt.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),i.onCellContextMenu&&window.setTimeout((function(){return i.onCellContextMenu(n)}),0)},e.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},e.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},e.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],this.removeAutoHeightListeners&&(this.removeAutoHeightListeners(),this.removeAutoHeightListeners=null),n.prototype.destroy.call(this)},e.prototype.createSelectionCheckbox=function(){var t=new $o;return this.beans.context.createBean(t),t.init({rowNode:this.rowNode,column:this.column}),t},e.prototype.createDndSource=function(){var t=new Bu(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(t),t},e.prototype.registerRowDragger=function(t,i,n){var e=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(t,i);else{var r=this.createRowDragComp(t,i,n);r&&(this.customRowDragComp=r,this.addDestroyFunc((function(){return e.beans.context.destroyBean(r)})))}},e.prototype.createRowDragComp=function(t,i,n){var e=this,r=this.beans.gridOptionsWrapper.isPagination(),o=this.beans.gridOptionsWrapper.isRowDragManaged(),s=this.beans.gridOptionsWrapper.isRowModelDefault();if(o){if(!s)return void O((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(r)return void O((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var u=new os((function(){return e.value}),this.rowNode,this.column,t,i,n);return this.beans.context.createBean(u),u},e.DOM_DATA_KEY_CELL_CTRL="cellCtrl",e}(kt),Ku=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qu=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};!function(t){t.Normal="Normal",t.FullWidth="FullWidth",t.FullWidthLoading="FullWidthLoading",t.FullWidthGroup="FullWidthGroup",t.FullWidthDetail="FullWidthDetail"}(ju||(ju={}));var Yu,Ju,Zu=0,$u=function(n){function e(t,i,e,r,o){var s=n.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.beans=i,s.rowNode=t,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=r,s.printLayout=o,s.instanceId=t.id+"-"+Zu++,s.setAnimateFlags(e),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s}return Ku(e,n),e.prototype.isSticky=function(){return this.rowNode.sticky},e.prototype.getBeans=function(){return this.beans},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setComp=function(t,i,n){var e={rowComp:t,element:i,containerType:n};this.allRowGuis.push(e),n===Ju.LEFT?this.leftGui=e:n===Ju.RIGHT?this.rightGui=e:n===Ju.FULL_WIDTH?this.fullWidthGui=e:this.centerGui=e,(null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui||null!=this.fullWidthGui)&&this.initialiseRowComps(),"FullWidthLoading"!==this.rowType&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},e.prototype.isCacheable=function(){return this.rowType===ju.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},e.prototype.setCached=function(t){var i=t?"none":"";this.allRowGuis.forEach((function(t){return t.element.style.display=i}))},e.prototype.initialiseRowComps=function(){var t=this,i=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),i.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&F(this.onTopChanged.bind(this)),this.fadeRowIn&&F((function(){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var n=this.getRowBusinessKey(),r=Vt(this.rowNode.id),o=Vt(n);this.allRowGuis.forEach((function(n){var s=n.rowComp;s.setRole("row"),t.getInitialRowClasses(n.containerType).forEach((function(t){return s.addOrRemoveCssClass(t,!0)})),t.rowNode.group&&ce(n.element,1==t.rowNode.expanded),null!=r&&s.setRowId(r),null!=o&&s.setRowBusinessKey(o),t.isFullWidth()&&!t.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),i.setDomData(n.element,e.DOM_DATA_KEY_ROW_CTRL,t),t.addDestroyFunc((function(){return i.setDomData(n.element,e.DOM_DATA_KEY_ROW_CTRL,null)})),t.useAnimationFrameForCreate?t.beans.animationFrameService.createTask(t.addHoverFunctionality.bind(t,n.element),t.rowNode.rowIndex,"createTasksP2"):t.addHoverFunctionality(n.element),t.isFullWidth()&&t.setupFullWidth(n),i.isRowDragEntireRow()&&t.addRowDraggerToRow(n),t.useAnimationFrameForCreate&&t.beans.animationFrameService.addDestroyTask((function(){t.isAlive()&&n.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},e.prototype.addRowDraggerToRow=function(t){var i=this.beans.gridOptionsWrapper;if(i.isEnableRangeSelection())O((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var n=i.getLocaleTextFunc(),e=new os((function(){return"1 "+n("rowDragRow","row")}),this.rowNode,void 0,t.element,void 0,!0);this.createManagedBean(e,this.beans.context)}},e.prototype.setupFullWidth=function(t){var i=this.getPinnedForContainer(t.containerType),n=this.createFullWidthParams(t.element,i),e=X.isRegistered(q.MasterDetailModule);if(this.rowType!=ju.FullWidthDetail||e){var r;switch(this.rowType){case ju.FullWidthDetail:r=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);break;case ju.FullWidthGroup:r=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);break;case ju.FullWidthLoading:r=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);break;default:r=this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}t.rowComp.showFullWidth(r)}else X.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+q.MasterDetailModule)},e.prototype.isPrintLayout=function(){return this.printLayout},e.prototype.getCellElement=function(t){var i=this.getCellCtrl(t);return i?i.getGui():null},e.prototype.executeProcessRowPostCreateFunc=function(){var t=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();t&&t({eRow:this.centerGui?this.centerGui.element:void 0,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)})},e.prototype.setRowType=function(){var t=this.rowNode.stub,i=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,e=this.beans.columnModel.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(e);this.rowType=t?ju.FullWidthLoading:n?ju.FullWidthDetail:i?ju.FullWidth:r?ju.FullWidthGroup:ju.Normal},e.prototype.updateColumnLists=function(t){var i=this;void 0===t&&(t=!1),this.isFullWidth()||(t||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){i.active&&i.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},e.prototype.createCellCtrls=function(t,i,n){var e=this;void 0===n&&(n=null);var r={list:[],map:{}},o=function(t,i){r.list.push(i),r.map[t]=i};return i.forEach((function(i){var n=i.getInstanceId(),r=t.map[n];r||(r=new Uu(i,e.rowNode,e.beans,e)),o(n,r)})),t.list.forEach((function(t){null!=r.map[t.getColumn().getInstanceId()]||(e.isCellEligibleToBeRemoved(t,n)?t.destroy():o(t.getColumn().getInstanceId(),t))})),r},e.prototype.updateColumnListsImpl=function(){var t=this;this.updateColumnListsPending=!1;var i=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var n=i.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);var e=i.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,e,Q.PINNED_LEFT);var r=i.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,r,Q.PINNED_RIGHT)}this.allRowGuis.forEach((function(i){i.rowComp.setCellCtrls((i.containerType===Ju.LEFT?t.leftCellCtrls:i.containerType===Ju.RIGHT?t.rightCellCtrls:t.centerCellCtrls).list)}))},e.prototype.isCellEligibleToBeRemoved=function(t,i){var n=!0;if(t.getColumn().getPinned()!=i)return n;var e=t.isEditing(),r=this.beans.focusService.isCellFocused(t.getCellPosition());if(e||r){var o=t.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(o)>=0)&&n}return n},e.prototype.setAnimateFlags=function(t){if(!this.isSticky()&&t){var n=i(this.rowNode.oldRowTop);this.slideRowIn=n,this.fadeRowIn=!n}else this.slideRowIn=!1,this.fadeRowIn=!1},e.prototype.isEditing=function(){return this.editingRow},e.prototype.stopRowEditing=function(t){this.stopEditing(t)},e.prototype.isFullWidth=function(){return this.rowType!==ju.Normal},e.prototype.getRowType=function(){return this.rowType},e.prototype.refreshFullWidth=function(){var t=this,i=function(i,n){if(!i)return!0;var e=i.rowComp.getFullWidthCellRenderer();if(!e)return!1;if(!e.refresh)return!1;var r=t.createFullWidthParams(i.element,n);return e.refresh(r)},n=i(this.fullWidthGui,null),e=i(this.centerGui,null),r=i(this.leftGui,Q.PINNED_LEFT),o=i(this.rightGui,Q.PINNED_RIGHT);return n&&e&&r&&o},e.prototype.addListeners=function(){this.addManagedListener(this.rowNode,qo.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,qo.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,Tt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,Tt.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,Tt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,Tt.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(t,Tt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,Tt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,Tt.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},e.prototype.onColumnMoved=function(){this.updateColumnLists()},e.prototype.addListenersForCellComps=function(){var t=this;this.addManagedListener(this.rowNode,qo.EVENT_ROW_INDEX_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,qo.EVENT_CELL_CHANGED,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onCellChanged(i)}))}))},e.prototype.onRowNodeDataChanged=function(t){this.getAllCellCtrls().forEach((function(i){return i.refreshCell({suppressFlash:!t.update,newData:!t.update})})),this.onRowSelected(),this.postProcessCss()},e.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},e.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},e.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.allRowGuis.forEach((function(i){var n=t===Br.Below;i.rowComp.addOrRemoveCssClass("ag-row-highlight-above",t===Br.Above),i.rowComp.addOrRemoveCssClass("ag-row-highlight-below",n)}))},e.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},e.prototype.postProcessRowDragging=function(){var t=this.rowNode.dragging;this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-dragging",t)}))},e.prototype.updateExpandedCss=function(){var t=this.rowNode.isExpandable(),i=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",t),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",t&&i),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",t&&!i),ce(n.element,t&&i)}))},e.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},e.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},e.prototype.getRowPosition=function(){return{rowPinned:t(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},e.prototype.onKeyboardNavigate=function(t){var i=this.allRowGuis.find((function(i){return i.element.contains(t.target)}));if((i?i.element:null)===t.target){var n=this.rowNode,e=this.beans.focusService.getFocusedCell();this.beans.navigationService.navigateToNextCell(t,t.key,{rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:e&&e.column},!0),t.preventDefault()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented&&!Ct(t)){var i=this.allRowGuis.find((function(i){return i.element.contains(t.target)})),n=i?i.element:null,e=n===t.target,r=null;e||(r=this.beans.focusService.findNextFocusableElement(n,!1,t.shiftKey)),(this.isFullWidth()&&e||!r)&&this.beans.navigationService.onTabKeyDown(this,t)}},e.prototype.onFullWidthRowFocused=function(t){var i,n=this.rowNode,e=this.isFullWidth()&&t.rowIndex===n.rowIndex&&t.rowPinned==n.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:null===(i=this.centerGui)||void 0===i?void 0:i.element;r&&(r.classList.toggle("ag-full-width-focus",e),e&&r.focus({preventScroll:!0}))},e.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()},e.prototype.removeCellCtrl=function(t,i){var n={list:[],map:{}};return t.list.forEach((function(t){t!==i&&(n.list.push(t),n.map[t.getInstanceId()]=t)})),n},e.prototype.onMouseEvent=function(t,i){switch(t){case"dblclick":this.onRowDblClick(i);break;case"click":this.onRowClick(i);break;case"touchstart":case"mousedown":this.onRowMouseDown(i)}},e.prototype.createRowEvent=function(t,i){return{type:t,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:i}},e.prototype.createRowEventWithSource=function(t,i){var n=this.createRowEvent(t,i);return n.source=this,n},e.prototype.onRowDblClick=function(t){if(!Ct(t)){var i=this.createRowEventWithSource(Tt.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(i)}},e.prototype.onRowMouseDown=function(t){if(this.lastMouseDownOnDragger=gn(t.target,"ag-row-drag",3),this.isFullWidth()){var i=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:i.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:i.rowPinned,forceBrowserFocus:!0})}},e.prototype.onRowClick=function(t){if(!Ct(t)&&!this.lastMouseDownOnDragger){var i=this.createRowEventWithSource(Tt.EVENT_ROW_CLICKED,t);this.beans.eventService.dispatchEvent(i);var n=t.ctrlKey||t.metaKey,e=t.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),o=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();this.rowNode.isSelected()?r?this.rowNode.setSelectedParams({newValue:!1,event:t}):n?o&&this.rowNode.setSelectedParams({newValue:!1,event:t}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!e,rangeSelect:e,event:t}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!r&&!n,rangeSelect:e,event:t})}}},e.prototype.setupDetailRowAutoHeight=function(t){var i=this;if(this.rowType===ju.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=t.clientHeight;null!=n&&n>0&&i.beans.frameworkOverrides.setTimeout((function(){i.rowNode.setRowHeight(n),i.beans.clientSideRowModel?i.beans.clientSideRowModel.onRowHeightChanged():i.beans.serverSideRowModel&&i.beans.serverSideRowModel.onRowHeightChanged()}),0)},e=this.beans.resizeObserverService.observeResize(t,n);this.addDestroyFunc(e),n()}},e.prototype.createFullWidthParams=function(t,i){var n=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.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:t,eParentOfValue:t,pinned:i,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(t,i,e,r){return n.addFullWidthRowDragging(t,i,e,r)}}},e.prototype.addFullWidthRowDragging=function(t,i,n,e){if(void 0===n&&(n=""),this.isFullWidth()){var r=new os((function(){return n}),this.rowNode,void 0,t,i,e);this.createManagedBean(r,this.beans.context)}},e.prototype.onUiLevelChanged=function(){var t=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=t){var i="ag-row-level-"+t,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass(i,!0),t.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=t},e.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},e.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},e.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},e.prototype.refreshFirstAndLastRowStyles=function(){var t=this.isFirstRowOnPage(),i=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-first",t)}))),this.lastRowOnPage!==i&&(this.lastRowOnPage=i,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-last",i)})))},e.prototype.stopEditing=function(t){var i,n;if(void 0===t&&(t=!1),!this.stoppingRowEdit){var e=this.getAllCellCtrls(),r=this.editingRow;this.stoppingRowEdit=!0;var o=!1;try{for(var s=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),u=s.next();!u.done;u=s.next()){var h=u.value.stopEditing(t);r&&!t&&!o&&h&&(o=!0)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}if(o){var c=this.createRowEvent(Tt.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(c)}r&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},e.prototype.setInlineEditingCss=function(t){this.allRowGuis.forEach((function(i){i.rowComp.addOrRemoveCssClass("ag-row-inline-editing",t),i.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!t)}))},e.prototype.setEditingRow=function(t){this.editingRow=t,this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-editing",t)}));var i=this.createRowEvent(t?Tt.EVENT_ROW_EDITING_STARTED:Tt.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)},e.prototype.startRowEditing=function(t,i,n,e){void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n=null),void 0===e&&(e=null),this.editingRow||this.getAllCellCtrls().reduce((function(r,o){var s=o===n;return s?o.startEditing(t,i,s,e):o.startEditing(null,null,s,e),!!r||o.isEditing()}),!1)&&this.setEditingRow(!0)},e.prototype.getAllCellCtrls=function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(qu(arguments[i]));return t}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},e.prototype.postProcessClassesFromGridOptions=function(){var t=this,i=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);i&&i.length&&i.forEach((function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!0)}))}))},e.prototype.postProcessRowClassRules=function(){var t=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!0)}))}),(function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!1)}))}))},e.prototype.setStylesFromGridOptions=function(){var t=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(i){return i.rowComp.setUserStyles(t)}))},e.prototype.getRowBusinessKey=function(){var t=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof t)return t(this.rowNode)},e.prototype.getPinnedForContainer=function(t){return t===Ju.LEFT?Q.PINNED_LEFT:t===Ju.RIGHT?Q.PINNED_RIGHT:null},e.prototype.getInitialRowClasses=function(t){var i=this.getPinnedForContainer(t),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,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:i};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},e.prototype.processStylesFromGridOptions=function(){var t=this.beans.gridOptionsWrapper.getRowStyle();if(!t||"function"!=typeof t){var i,n=this.beans.gridOptionsWrapper.getRowStyleFunc();return n&&(i=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),Object.assign({},t,i)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},e.prototype.onRowSelected=function(){var t=this,i=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-selected",i),Ce(n.element,!!i||void 0);var e=t.createAriaLabel();ee(n.element,null==e?"":e)}))},e.prototype.createAriaLabel=function(){var t=this.rowNode.isSelected();if(!t||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(t?"deselect":"select")+" this row.")},e.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},e.prototype.addHoverFunctionality=function(t){var i=this;this.active&&(this.addManagedListener(t,"mouseenter",(function(){return i.rowNode.onMouseEnter()})),this.addManagedListener(t,"mouseleave",(function(){return i.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,qo.EVENT_MOUSE_ENTER,(function(){i.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||t.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,qo.EVENT_MOUSE_LEAVE,(function(){t.classList.remove("ag-row-hover")})))},e.prototype.roundRowTopToBounds=function(t){var i=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(i.top,!0)-100,e=this.applyPaginationOffset(i.bottom,!0)+100;return Math.min(Math.max(n,t),e)},e.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},e.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,i=this.beans.gridOptionsWrapper.getDefaultRowHeight(),n=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,e=n?Math.min(i,n)-2+"px":void 0;this.allRowGuis.forEach((function(i){i.element.style.height=t+"px",e&&i.element.style.setProperty("--ag-line-height",e)}))}},e.prototype.addEventListener=function(t,i){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Tt.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+Tt.EVENT_VIRTUAL_ROW_REMOVED)),n.prototype.addEventListener.call(this,t,i)},e.prototype.removeEventListener=function(t,i){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Tt.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Tt.EVENT_VIRTUAL_ROW_REMOVED)),n.prototype.removeEventListener.call(this,t,i)},e.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(Tt.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),n.prototype.destroy.call(this)},e.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)}))},e.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)},e.prototype.setFocusedClasses=function(){var t=this;this.allRowGuis.forEach((function(i){i.rowComp.addOrRemoveCssClass("ag-row-focus",t.rowFocused),i.rowComp.addOrRemoveCssClass("ag-row-no-focus",!t.rowFocused)}))},e.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)},e.prototype.onPaginationChanged=function(){var t=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},e.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},e.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},e.prototype.applyPaginationOffset=function(t,i){return void 0===i&&(i=!1),this.rowNode.isRowPinned()?t:t+this.beans.paginationProxy.getPixelOffset()*(i?1:-1)},e.prototype.setRowTop=function(t){if(!this.printLayout&&i(t)){var n=this.applyPaginationOffset(t),e=this.rowNode.isRowPinned()?n:this.beans.rowContainerHeightService.getRealPixelPosition(n);this.setRowTopStyle(e+"px")}},e.prototype.getInitialRowTop=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.getInitialRowTopShared():void 0},e.prototype.getInitialTransform=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?void 0:"translateY("+this.getInitialRowTopShared()+")"},e.prototype.getInitialRowTopShared=function(){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var i=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,n=this.applyPaginationOffset(i);t=this.rowNode.isRowPinned()?n:this.beans.rowContainerHeightService.getRealPixelPosition(n)}return t+"px"},e.prototype.setRowTopStyle=function(t){var i=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(n){return i?n.rowComp.setTop(t):n.rowComp.setTransform("translateY("+t+")")}))},e.prototype.getRowNode=function(){return this.rowNode},e.prototype.getCellCtrl=function(t){var i=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==t&&(i=n)})),null!=i||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(t)>=0&&(i=n)})),i},e.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},e.prototype.updateRowIndexes=function(){var t=this.rowNode.getRowIndexString(),i=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2==0,e=i+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(i){i.rowComp.setRowIndex(t),i.rowComp.addOrRemoveCssClass("ag-row-even",n),i.rowComp.addOrRemoveCssClass("ag-row-odd",!n),pe(i.element,e)}))},e.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},e.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},e.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},e.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},e.DOM_DATA_KEY_ROW_CTRL="renderedRow",e}(kt),Qu=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},th=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return Qu(i,t),i.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},i.prototype.addKeyboardEvents=function(){var t=this;["keydown","keypress"].forEach((function(i){var n=t.processKeyboardEvent.bind(t,i);t.addManagedListener(t.element,i,n)}))},i.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click",St("touchstart")?"touchstart":"mousedown"].forEach((function(i){var n=t.processMouseEvent.bind(t,i);t.addManagedListener(t.element,i,n)}))},i.prototype.processMouseEvent=function(t,i){if(this.mouseEventService.isEventFromThisGrid(i)&&!Ct(i)){var n=this.getRowForEvent(i),e=this.mouseEventService.getRenderedCellForEvent(i);"contextmenu"===t?this.handleContextMenuMouseEvent(i,null,n,e):(e&&e.onMouseEvent(t,i),n&&n.onMouseEvent(t,i))}},i.prototype.mockContextMenuForIPad=function(){var t=this;if(bi()){var i=new mo(this.element);this.addManagedListener(i,mo.EVENT_LONG_TAP,(function(i){var n=t.getRowForEvent(i.touchEvent),e=t.mouseEventService.getRenderedCellForEvent(i.touchEvent);t.handleContextMenuMouseEvent(null,i.touchEvent,n,e)})),this.addDestroyFunc((function(){return i.destroy()}))}},i.prototype.getRowForEvent=function(t){for(var i=t.target;i;){var n=this.gridOptionsWrapper.getDomData(i,$u.DOM_DATA_KEY_ROW_CTRL);if(n)return n;i=i.parentElement}return null},i.prototype.handleContextMenuMouseEvent=function(t,i,n,e){var r=n?n.getRowNode():null,o=e?e.getColumn():null,s=null;o&&(e.dispatchCellContextMenuEvent(t||i),s=this.valueService.getValue(o,r));var u=this.ctrlsService.getGridBodyCtrl(),h=e?e.getGui():u.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(t,i,r,o,s,h)},i.prototype.processKeyboardEvent=function(t,i){var n=Ot(this.gridOptionsWrapper,i,Uu.DOM_DATA_KEY_CELL_CTRL),e=Ot(this.gridOptionsWrapper,i,$u.DOM_DATA_KEY_ROW_CTRL);i.defaultPrevented||(n?this.processCellKeyboardEvent(n,t,i):e&&e.isFullWidth()&&this.processFullWidthRowKeyboardEvent(e,t,i))},i.prototype.processCellKeyboardEvent=function(t,i,n){var e=t.getRowNode(),r=t.getColumn(),o=t.isEditing();if(!Te(this.gridOptionsWrapper,n,e,r,o))switch(i){case"keydown":!o&&this.navigationService.handlePageScrollingKey(n)||t.onKeyDown(n),this.doGridOperations(n,t.isEditing());break;case"keypress":t.onKeyPress(n)}if("keydown"===i){var s=t.createEvent(n,Tt.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===i){var u=t.createEvent(n,Tt.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(u)}},i.prototype.processFullWidthRowKeyboardEvent=function(t,i,n){var e=t.getRowNode(),r=this.focusService.getFocusedCell();if(!Te(this.gridOptionsWrapper,n,e,r&&r.column,!1)&&"keydown"===i)switch(n.key){case Pe.UP:case Pe.DOWN:t.onKeyboardNavigate(n);break;case Pe.TAB:t.onTabKeyDown(n)}if("keydown"===i){var o=t.createRowEvent(Tt.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(o)}if("keypress"===i){var s=t.createRowEvent(Tt.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(s)}},i.prototype.doGridOperations=function(t,i){if((t.ctrlKey||t.metaKey)&&!i&&this.mouseEventService.isEventFromThisGrid(t)){var n=Ne(t);return n===Pe.A?this.onCtrlAndA(t):n===Pe.C?this.onCtrlAndC(t):n===Pe.V?this.onCtrlAndV():n===Pe.D?this.onCtrlAndD(t):n===Pe.Z?this.onCtrlAndZ(t):n===Pe.Y?this.onCtrlAndY():void 0}},i.prototype.onCtrlAndA=function(t){var i=this,n=i.pinnedRowModel,r=i.rangeService,o=Q.PINNED_BOTTOM,s=Q.PINNED_TOP;if(r&&i.paginationProxy.isRowsToRender()){var u=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}([n.isEmpty(s),n.isEmpty(o)],2),h=u[0]?null:s,c=void 0,a=void 0;u[1]?(c=null,a=this.paginationProxy.getRowCount()-1):(c=o,a=n.getPinnedBottomRowData().length-1);var f=this.columnModel.getAllDisplayedColumns();if(e(f))return;r.setCellRange({rowStartIndex:0,rowStartPinned:h,rowEndIndex:a,rowEndPinned:c,columnStart:f[0],columnEnd:rt(f)})}t.preventDefault()},i.prototype.onCtrlAndC=function(t){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),t.preventDefault())},i.prototype.onCtrlAndV=function(){X.isRegistered(q.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},i.prototype.onCtrlAndD=function(t){X.isRegistered(q.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),t.preventDefault()},i.prototype.onCtrlAndZ=function(t){this.gridOptionsWrapper.isUndoRedoCellEditing()&&(t.preventDefault(),t.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},i.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},Xu([W("mouseEventService")],i.prototype,"mouseEventService",void 0),Xu([W("valueService")],i.prototype,"valueService",void 0),Xu([V("contextMenuFactory")],i.prototype,"contextMenuFactory",void 0),Xu([W("ctrlsService")],i.prototype,"ctrlsService",void 0),Xu([W("navigationService")],i.prototype,"navigationService",void 0),Xu([W("focusService")],i.prototype,"focusService",void 0),Xu([W("undoRedoService")],i.prototype,"undoRedoService",void 0),Xu([W("columnModel")],i.prototype,"columnModel",void 0),Xu([W("paginationProxy")],i.prototype,"paginationProxy",void 0),Xu([W("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Xu([V("rangeService")],i.prototype,"rangeService",void 0),Xu([V("clipboardService")],i.prototype,"clipboardService",void 0),Xu([L],i.prototype,"postConstruct",null),i}(kt),ih=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},eh=function(t){function i(i){var n=t.call(this)||this;return n.centerContainerCtrl=i,n}return ih(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.listenForResize()})),this.addManagedListener(this.eventService,Tt.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},i.prototype.listenForResize=function(){var t=this,i=function(){return t.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(i),this.gridBodyCtrl.registerBodyViewportResizeListener(i)},i.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},i.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},i.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},i.prototype.getBodyHeight=function(){return this.bodyHeight},i.prototype.checkBodyHeight=function(){var t=wn(this.gridBodyCtrl.getBodyViewportElement());this.bodyHeight!==t&&(this.bodyHeight=t,this.eventService.dispatchEvent({type:Tt.EVENT_BODY_HEIGHT_CHANGED}))},i.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},i.prototype.updateScrollVisibleServiceImpl=function(){var t={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(t),this.gridBodyCtrl.setVerticalScrollPaddingVisible(t.verticalScrollShowing)},i.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},i.prototype.onHorizontalViewportChanged=function(){var t=this.centerContainerCtrl.getCenterWidth(),i=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(t,i)},nh([W("ctrlsService")],i.prototype,"ctrlsService",void 0),nh([W("columnModel")],i.prototype,"columnModel",void 0),nh([W("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),nh([L],i.prototype,"postConstruct",null),i}(kt),rh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),oh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},sh=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return rh(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Tt.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},i.prototype.onPinnedLeftWidthChanged=function(){var t=this.pinnedWidthService.getPinnedLeftWidth(),i=t>0;dn(this.element,i),i&&Nn(this.element,t)},oh([W("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),oh([L],i.prototype,"postConstruct",null),i}(kt),uh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),hh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ch=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return uh(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Tt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},i.prototype.onPinnedRightWidthChanged=function(){var t=this.pinnedWidthService.getPinnedRightWidth(),i=t>0;dn(this.element,i),i&&Nn(this.element,t)},hh([W("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),hh([L],i.prototype,"postConstruct",null),i}(kt),ah=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},lh=function(t){function i(i,n){var e=t.call(this)||this;return e.eContainer=i,e.eWrapper=n,e}return ah(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Tt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},i.prototype.onHeightChanged=function(){var t=this.maxDivHeightScaler.getUiContainerHeight(),i=null!=t?t+"px":"";this.eContainer.style.height=i,this.eWrapper&&(this.eWrapper.style.height=i)},fh([W("rowContainerHeightService")],i.prototype,"maxDivHeightScaler",void 0),fh([L],i.prototype,"postConstruct",null),i}(kt),dh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ph=function(t){function i(i){var n=t.call(this)||this;return n.eContainer=i,n}return dh(i,t),i.prototype.postConstruct=function(){var t=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!n(this.rangeService)){var i={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(i),this.addDestroyFunc((function(){return t.dragService.removeDragSource(i)}))}},vh([V("rangeService")],i.prototype,"rangeService",void 0),vh([W("dragService")],i.prototype,"dragService",void 0),vh([L],i.prototype,"postConstruct",null),i}(kt),gh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wh=function(t){function i(i){var n=t.call(this)||this;return n.callback=i,n}return gh(i,t),i.prototype.postConstruct=function(){var t=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_DOM_LAYOUT,t),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.setWidth()},i.prototype.setWidth=function(){var t=this.columnModel,i=this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_PRINT,n=t.getBodyContainerWidth(),e=t.getDisplayedColumnsLeftWidth(),r=t.getDisplayedColumnsRightWidth();this.callback(i?n+e+r:n)},mh([W("columnModel")],i.prototype,"columnModel",void 0),mh([L],i.prototype,"postConstruct",null),i}(kt),bh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),yh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ch=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};!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"}(Yu||(Yu={})),function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth"}(Ju||(Ju={}));var Rh,Sh=Kt([[Yu.CENTER,"ag-center-cols-container"],[Yu.LEFT,"ag-pinned-left-cols-container"],[Yu.RIGHT,"ag-pinned-right-cols-container"],[Yu.FULL_WIDTH,"ag-full-width-container"],[Yu.TOP_CENTER,"ag-floating-top-container"],[Yu.TOP_LEFT,"ag-pinned-left-floating-top"],[Yu.TOP_RIGHT,"ag-pinned-right-floating-top"],[Yu.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[Yu.STICKY_TOP_CENTER,"ag-sticky-top-container"],[Yu.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[Yu.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[Yu.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[Yu.BOTTOM_CENTER,"ag-floating-bottom-container"],[Yu.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[Yu.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[Yu.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Oh=Kt([[Yu.CENTER,"ag-center-cols-viewport"],[Yu.TOP_CENTER,"ag-floating-top-viewport"],[Yu.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[Yu.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Ah=Kt([[Yu.CENTER,"ag-center-cols-clipper"]]),jh=function(t){function i(i){var n=t.call(this)||this;return n.name=i,n}return bh(i,t),i.getRowContainerCssClasses=function(t){return{container:Sh.get(t),viewport:Oh.get(t),wrapper:Ah.get(t)}},i.getPinned=function(t){switch(t){case Yu.BOTTOM_LEFT:case Yu.TOP_LEFT:case Yu.STICKY_TOP_LEFT:case Yu.LEFT:return Q.PINNED_LEFT;case Yu.BOTTOM_RIGHT:case Yu.TOP_RIGHT:case Yu.STICKY_TOP_RIGHT:case Yu.RIGHT:return Q.PINNED_RIGHT;default:return null}},i.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([Yu.CENTER],(function(){return t.viewportSizeFeature=t.createManagedBean(new eh(t))}))},i.prototype.registerWithCtrlsService=function(){switch(this.name){case Yu.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case Yu.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case Yu.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case Yu.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case Yu.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case Yu.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case Yu.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case Yu.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case Yu.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case Yu.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case Yu.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case Yu.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},i.prototype.forContainers=function(t,i){t.indexOf(this.name)>=0&&i()},i.prototype.getContainerElement=function(){return this.eContainer},i.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},i.prototype.setComp=function(t,i,n,e){var r=this;this.comp=t,this.eContainer=i,this.eViewport=n,this.eWrapper=e,this.createManagedBean(new th(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var o=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Ch(arguments[i]));return t}([Yu.TOP_CENTER,Yu.TOP_LEFT,Yu.TOP_RIGHT],[Yu.BOTTOM_CENTER,Yu.BOTTOM_LEFT,Yu.BOTTOM_RIGHT],[Yu.CENTER,Yu.LEFT,Yu.RIGHT],[Yu.STICKY_TOP_CENTER,Yu.STICKY_TOP_LEFT,Yu.STICKY_TOP_RIGHT]),s=[Yu.CENTER,Yu.LEFT,Yu.RIGHT,Yu.FULL_WIDTH],u=[Yu.CENTER,Yu.TOP_CENTER,Yu.STICKY_TOP_CENTER,Yu.BOTTOM_CENTER],h=[Yu.RIGHT,Yu.BOTTOM_RIGHT,Yu.TOP_RIGHT,Yu.STICKY_TOP_RIGHT];this.forContainers([Yu.LEFT,Yu.BOTTOM_LEFT,Yu.TOP_LEFT,Yu.STICKY_TOP_LEFT],(function(){return r.createManagedBean(new sh(r.eContainer))})),this.forContainers(h,(function(){return r.createManagedBean(new ch(r.eContainer))})),this.forContainers(s,(function(){return r.createManagedBean(new lh(r.eContainer,r.eWrapper))})),this.forContainers(o,(function(){return r.createManagedBean(new ph(r.eContainer))})),this.forContainers(u,(function(){return r.createManagedBean(new wh((function(t){return r.comp.setContainerWidth(t+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},i.prototype.addListeners=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return t.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return t.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return t.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return t.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},i.prototype.listenOnDomOrder=function(){var t=this;if([Yu.STICKY_TOP_CENTER,Yu.STICKY_TOP_LEFT,Yu.STICKY_TOP_RIGHT,Yu.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var i=function(){return t.comp.setDomOrder(t.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_DOM_LAYOUT,i),i()}},i.prototype.stopHScrollOnPinnedRows=function(){var t=this;this.forContainers([Yu.TOP_CENTER,Yu.STICKY_TOP_CENTER,Yu.BOTTOM_CENTER],(function(){t.addManagedListener(t.eViewport,"scroll",(function(){return t.eViewport.scrollLeft=0}))}))},i.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([Yu.CENTER],(function(){return t.onHorizontalViewportChanged()}))},i.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([Yu.CENTER],(function(){return t.onHorizontalViewportChanged()}))},i.prototype.onScrollVisibilityChanged=function(){if(this.name===Yu.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0;this.comp.setViewportHeight(0==t?"100%":"calc(100% + "+t+"px)")}},i.prototype.addPreventScrollWhileDragging=function(){var t=this,i=function(i){t.dragService.isDragging()&&i.cancelable&&i.preventDefault()};this.eContainer.addEventListener("touchmove",i,{passive:!1}),this.addDestroyFunc((function(){return t.eContainer.removeEventListener("touchmove",i)}))},i.prototype.onHorizontalViewportChanged=function(){var t=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,i)},i.prototype.getCenterWidth=function(){return bn(this.eViewport)},i.prototype.getCenterViewportScrollLeft=function(){return Sn(this.eViewport,this.enableRtl)},i.prototype.registerViewportResizeListener=function(t){var i=this.resizeObserverService.observeResize(this.eViewport,t);this.addDestroyFunc((function(){return i()}))},i.prototype.isViewportVisible=function(){return Gn(this.eViewport)},i.prototype.isViewportHScrollShowing=function(){return In(this.eViewport)},i.prototype.getViewportScrollLeft=function(){return Sn(this.eViewport,this.enableRtl)},i.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||In(this.eViewport)},i.prototype.getViewportElement=function(){return this.eViewport},i.prototype.setContainerTranslateX=function(t){this.eContainer.style.transform="translateX("+t+"px)"},i.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},i.prototype.setCenterViewportScrollLeft=function(t){On(this.eViewport,t,this.enableRtl)},i.prototype.onDisplayedRowsChanged=function(){var t=this,i=this.name===Yu.TOP_FULL_WIDTH||this.name===Yu.STICKY_TOP_FULL_WIDTH||this.name===Yu.BOTTOM_FULL_WIDTH||this.name===Yu.FULL_WIDTH,n=this.getRowCtrls().filter((function(n){var e=n.isFullWidth(),r=t.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_PRINT,o=t.embedFullWidthRows||r;return i?!o&&e:o||!e}));this.comp.setRowCtrls(n)},i.prototype.getRowCtrls=function(){switch(this.name){case Yu.TOP_CENTER:case Yu.TOP_LEFT:case Yu.TOP_RIGHT:case Yu.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case Yu.STICKY_TOP_CENTER:case Yu.STICKY_TOP_LEFT:case Yu.STICKY_TOP_RIGHT:case Yu.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case Yu.BOTTOM_CENTER:case Yu.BOTTOM_LEFT:case Yu.BOTTOM_RIGHT:case Yu.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},yh([W("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),yh([W("dragService")],i.prototype,"dragService",void 0),yh([W("ctrlsService")],i.prototype,"ctrlsService",void 0),yh([W("columnModel")],i.prototype,"columnModel",void 0),yh([W("resizeObserverService")],i.prototype,"resizeObserverService",void 0),yh([W("rowRenderer")],i.prototype,"rowRenderer",void 0),yh([L],i.prototype,"postConstruct",null),i}(kt),Gh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_h=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},xh='<div class="ag-root ag-unselectable" role="grid">\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="'+Yu.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+Yu.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+Yu.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+Yu.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+Yu.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+Yu.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+Yu.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+Yu.FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n <ag-row-container ref="stickyTopLeftContainer" name="'+Yu.STICKY_TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="stickyTopCenterContainer" name="'+Yu.STICKY_TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="stickyTopRightContainer" name="'+Yu.STICKY_TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="stickyTopFullWidthContainer" name="'+Yu.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="'+Yu.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+Yu.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+Yu.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+Yu.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>',Fh=function(t){function i(){return t.call(this,xh)||this}return Gh(i,t),i.prototype.init=function(){var t=this,i=function(t,i){var n=t+"px";i.style.minHeight=n,i.style.height=n},n={setRowAnimationCssOnBodyViewport:function(i,n){return t.setRowAnimationCssOnBodyViewport(i,n)},setColumnCount:function(i){return ge(t.getGui(),i)},setRowCount:function(i){return ve(t.getGui(),i)},setTopHeight:function(n){return i(n,t.eTop)},setBottomHeight:function(n){return i(n,t.eBottom)},setTopDisplay:function(i){return t.eTop.style.display=i},setBottomDisplay:function(i){return t.eBottom.style.display=i},setStickyTopHeight:function(i){return t.eStickyTop.style.height=i},setStickyTopTop:function(i){return t.eStickyTop.style.top=i},setStickyTopWidth:function(i){return t.eStickyTop.style.width=i},setColumnMovingCss:function(i,n){return t.addOrRemoveCssClass("ag-column-moving",n)},updateLayoutClasses:function(i,n){var e=t.eBodyViewport.classList;e.toggle(Js.AUTO_HEIGHT,n.autoHeight),e.toggle(Js.NORMAL,n.normal),e.toggle(Js.PRINT,n.print),t.addOrRemoveCssClass(Js.AUTO_HEIGHT,n.autoHeight),t.addOrRemoveCssClass(Js.NORMAL,n.normal),t.addOrRemoveCssClass(Js.PRINT,n.print)},setAlwaysVerticalScrollClass:function(i,n){return t.eBodyViewport.classList.toggle("ag-force-vertical-scroll",n)},registerBodyViewportResizeListener:function(i){var n=t.resizeObserverService.observeResize(t.eBodyViewport,i);t.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(i){return t.eTop.style.overflowY=t.eBottom.style.overflowY=i},setCellSelectableCss:function(i,n){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(t){return t.classList.toggle("ag-selectable",n)}))}};this.ctrl=this.createManagedBean(new Au),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&de(this.getGui(),!0)},i.prototype.setRowAnimationCssOnBodyViewport=function(t,i){var n=this.eBodyViewport.classList;n.toggle(au.ANIMATION_ON,i),n.toggle(au.ANIMATION_OFF,!i)},i.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},_h([W("resizeObserverService")],i.prototype,"resizeObserverService",void 0),_h([V("rangeService")],i.prototype,"rangeService",void 0),_h([ur("eBodyViewport")],i.prototype,"eBodyViewport",void 0),_h([ur("eStickyTop")],i.prototype,"eStickyTop",void 0),_h([ur("eTop")],i.prototype,"eTop",void 0),_h([ur("eBottom")],i.prototype,"eBottom",void 0),_h([ur("gridHeader")],i.prototype,"headerRootComp",void 0),_h([L],i.prototype,"init",null),i}(sr),Mh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),kh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Dh=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Mh(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},i.prototype.onDisplayedColumnsChanged=function(){this.update()},i.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},i.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},i.prototype.updateImpl=function(){var t=this.ctrlsService.getCenterRowContainerCtrl();if(t){var i={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(i)}},i.prototype.setScrollsVisible=function(t){this.horizontalScrollShowing===t.horizontalScrollShowing&&this.verticalScrollShowing===t.verticalScrollShowing||(this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing,this.eventService.dispatchEvent({type:Tt.EVENT_SCROLL_VISIBILITY_CHANGED}))},i.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},i.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},kh([W("ctrlsService")],i.prototype,"ctrlsService",void 0),kh([L],i.prototype,"postConstruct",null),kh([B("scrollVisibleService")],i)}(kt),Ph=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ih=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Th=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.gridInstanceId=e.gridInstanceSequence.next(),i}var e;return Ph(n,t),e=n,n.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[e.GRID_DOM_KEY]=this.gridInstanceId},n.prototype.getRenderedCellForEvent=function(t){return Ot(this.gridOptionsWrapper,t,Uu.DOM_DATA_KEY_CELL_CTRL)},n.prototype.isEventFromThisGrid=function(t){return this.isElementInThisGrid(t.target)},n.prototype.isElementInThisGrid=function(t){for(var n=t;n;){var r=n[e.GRID_DOM_KEY];if(i(r))return r===this.gridInstanceId;n=n.parentElement}return!1},n.prototype.getCellPositionForEvent=function(t){var i=this.getRenderedCellForEvent(t);return i?i.getCellPosition():null},n.prototype.getNormalisedPosition=function(t){var i,n,e=this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_NORMAL;if(null!=t.clientX||null!=t.clientY?(i=t.clientX,n=t.clientY):(i=t.x,n=t.y),e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition();i+=r.getScrollFeature().getHScrollPosition().left,n+=o.top}return{x:i,y:n}},n.gridInstanceSequence=new Je,n.GRID_DOM_KEY="__ag_grid_instance",Ih([W("ctrlsService")],n.prototype,"ctrlsService",void 0),e=Ih([B("mouseEventService")],n)}(kt),Eh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Nh=function(){return(Nh=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},Lh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Hh=function(t){function e(){var i=t.call(this)||this;return i.onPageDown=D(i.onPageDown,100),i.onPageUp=D(i.onPageUp,100),i}return Eh(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCon=i.gridBodyCtrl}))},e.prototype.handlePageScrollingKey=function(t){var i=t.key,n=t.altKey,e=t.ctrlKey||t.metaKey,r=!!this.rangeService&&t.shiftKey,o=this.mouseEventService.getCellPositionForEvent(t);if(!o)return!1;var s=!1;switch(i){case Pe.PAGE_HOME:case Pe.PAGE_END:e||n||(this.onHomeOrEndKey(i),s=!0);break;case Pe.LEFT:case Pe.RIGHT:case Pe.UP:case Pe.DOWN:!e||n||r||(this.onCtrlUpDownLeftRight(i,o),s=!0);break;case Pe.PAGE_DOWN:e||n||(this.onPageDown(o),s=!0);break;case Pe.PAGE_UP:e||n||(this.onPageUp(o),s=!0)}return s&&t.preventDefault(),s},e.prototype.navigateTo=function(t){var n=t.scrollIndex,e=t.scrollType,r=t.scrollColumn,o=t.focusIndex,s=t.focusColumn;i(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),i(n)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(n,e),t.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(o),this.focusService.setFocusedCell({rowIndex:o,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:o,rowPinned:null,column:s})},e.prototype.onPageDown=function(t){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),e=this.paginationProxy.getPixelOffset(),r=this.paginationProxy.getRowIndexAtPixel(i.top+n+e);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,r):this.navigateToNextPage(t,r)},e.prototype.onPageUp=function(t){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),e=this.paginationProxy.getRowIndexAtPixel(i.top+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,e,!0):this.navigateToNextPage(t,e,!0)},e.prototype.navigateToNextPage=function(t,i,n){var e,r;void 0===n&&(n=!1);var o,s=this.getViewportHeight(),u=this.paginationProxy.getPageFirstRow(),h=this.paginationProxy.getPageLastRow(),c=this.paginationProxy.getPixelOffset(),a=this.paginationProxy.getRow(t.rowIndex),f=n?(null===(e=a)||void 0===e?void 0:e.rowHeight)-s-c:s-c,l=(null===(r=a)||void 0===r?void 0:r.rowTop)+f,d=this.paginationProxy.getRowIndexAtPixel(l+c);d===t.rowIndex&&(i=d=t.rowIndex+(n?-1:1)),n?(o="bottom",d<u&&(d=u),i<u&&(i=u)):(o="top",d>h&&(d=h),i>h&&(i=h)),this.isRowTallerThanView(d)&&(i=d,o="top"),this.navigateTo({scrollIndex:i,scrollType:o,scrollColumn:null,focusIndex:d,focusColumn:t.column})},e.prototype.navigateToNextPageWithAutoHeight=function(t,i,n){var e=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:t.column}),setTimeout((function(){var r=e.getNextFocusIndexForAutoHeight(t,n);e.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:t.column,isAsync:!0})}),50)},e.prototype.getNextFocusIndexForAutoHeight=function(t,i){var n;void 0===i&&(i=!1);for(var e=i?-1:1,r=this.getViewportHeight(),o=this.paginationProxy.getPageLastRow(),s=0,u=t.rowIndex;u>=0&&u<=o;){var h=this.paginationProxy.getRow(u);if(h){var c=null!=(n=h.rowHeight)?n:0;if(s+c>r)break;s+=c}u+=e}return Math.max(0,Math.min(u,o))},e.prototype.getViewportHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),i=this.gridOptionsWrapper.getScrollbarWidth(),n=t.bottom-t.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=i),n},e.prototype.isRowTallerThanView=function(t){var i=this.paginationProxy.getRow(t);if(!i)return!1;var n=i.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()},e.prototype.onCtrlUpDownLeftRight=function(t,i){var n=this.cellNavigationService.getNextCellToFocus(t,i,!0),e=n.rowIndex,r=n.column;this.navigateTo({scrollIndex:e,scrollType:null,scrollColumn:r,focusIndex:e,focusColumn:r})},e.prototype.onHomeOrEndKey=function(t){var i=t===Pe.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),e=i?n[0]:rt(n),r=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:e,focusIndex:r,focusColumn:e})},e.prototype.onTabKeyDown=function(t,i){var n=i.shiftKey;if(this.tabToNextCellCommon(t,n,i))i.preventDefault();else if(n){var e=t.getRowPosition(),r=e.rowIndex;(e.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow())&&(i.preventDefault(),this.focusService.focusLastHeader(i))}else t instanceof Uu&&t.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&i.preventDefault()},e.prototype.tabToNextCell=function(t,i){var n=this.focusService.getFocusedCell();if(!n)return!1;var e=this.getCellByPosition(n);return!!(e||(e=this.rowRenderer.getRowByPosition(n))&&e.isFullWidth())&&this.tabToNextCellCommon(e,t,i)},e.prototype.tabToNextCellCommon=function(t,i,n){var e=t.isEditing();if(!e&&t instanceof Uu){var r=t.getRowCtrl();r&&(e=r.isEditing())}return(e?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(t,i,n):this.moveToNextEditingCell(t,i,n):this.moveToNextCellNotEditing(t,i))||!!this.focusService.getFocusedHeader()},e.prototype.moveToNextEditingCell=function(t,i,n){void 0===n&&(n=null);var e=t.getCellPosition();t.getGui().focus(),t.stopEditing();var r=this.findNextCellToFocusOn(e,i,!0);return null!=r&&(r.startEditing(null,null,!0,n),r.focusCell(!1),!0)},e.prototype.moveToNextEditingRow=function(t,i,n){void 0===n&&(n=null);var e=t.getCellPosition(),r=this.findNextCellToFocusOn(e,i,!0);if(null==r)return!1;var o=r.getCellPosition(),s=this.isCellEditable(e),u=this.isCellEditable(o),h=o&&e.rowIndex===o.rowIndex&&e.rowPinned===o.rowPinned;return s&&t.setFocusOutOnEditor(),h||(t.getRowCtrl().stopEditing(),r.getRowCtrl().startRowEditing(void 0,void 0,void 0,n)),u?(r.setFocusInOnEditor(),r.focusCell()):r.focusCell(!0),!0},e.prototype.moveToNextCellNotEditing=function(t,n){var e,r=this.columnModel.getAllDisplayedColumns();e=t instanceof $u?Nh(Nh({},t.getRowPosition()),{column:n?r[0]:rt(r)}):t.getCellPosition();var o=this.findNextCellToFocusOn(e,n,!1);if(o instanceof Uu)o.focusCell(!0);else if(o)return this.tryToFocusFullWidthRow(o.getRowPosition(),n);return i(o)},e.prototype.findNextCellToFocusOn=function(t,n,e){for(var r=t;;){t!==r&&(t=r),n||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,n);var o=this.gridOptionsWrapper.getTabToNextCellFunc();if(i(o)){var s=o({backwards:n,editing:e,previousCellPosition:t,nextCellPosition:r||null});i(s)?(s.floating&&(O((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),r={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+r.rowIndex,column:r.column}}),null}var h=this.gridOptionsWrapper.isFullRowEdit();if(!e||h||this.isCellEditable(r)){this.ensureCellVisible(r);var c=this.getCellByPosition(r);if(c){if(!c.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),c}else{var a=this.rowRenderer.getRowByPosition(r);if(a&&a.isFullWidth())return a}}}},e.prototype.isCellEditable=function(t){var i=this.lookupRowNodeForCell(t);return!!i&&t.column.isCellEditable(i)},e.prototype.getCellByPosition=function(t){var i=this.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null},e.prototype.lookupRowNodeForCell=function(t){return t.rowPinned===Q.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):t.rowPinned===Q.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},e.prototype.navigateToNextCell=function(t,e,r,o){for(var s=r,u=!1;s&&(s===r||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?e===Pe.LEFT&&(s=this.getLastCellOfColSpan(s)):e===Pe.RIGHT&&(s=this.getLastCellOfColSpan(s)),u=n(s=this.cellNavigationService.getNextCellToFocus(e,s));if(u&&t&&t.key===Pe.UP&&(s={rowIndex:-1,rowPinned:null,column:r.column}),o){var h=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(i(h)){var c=h({key:e,previousCellPosition:r,nextCellPosition:s||null,event:t});i(c)?(c.floating&&(O((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"),c.rowPinned=c.floating),s={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}):s=null}}if(s)if(s.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+s.rowIndex,column:r.column},event:t||void 0})}else{var f=this.getNormalisedPosition(s);f?this.focusPosition(f):this.tryToFocusFullWidthRow(s)}},e.prototype.getNormalisedPosition=function(t){this.ensureCellVisible(t);var i=this.getCellByPosition(t);return i?(t=i.getCellPosition(),this.ensureCellVisible(t),t):null},e.prototype.tryToFocusFullWidthRow=function(t,i){void 0===i&&(i=!1);var n=this.columnModel.getAllDisplayedColumns(),e=this.rowRenderer.getRowByPosition(t);if(!e||!e.isFullWidth())return!1;var r=this.focusService.getFocusedCell(),o={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column||(i?rt(n):n[0])};this.focusPosition(o);var s=null!=r&&this.rowPositionUtils.before(o,r);return this.eventService.dispatchEvent({type:Tt.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:o.column,isFullWidthCell:!0,floating:o.rowPinned,fromBelow:s}),!0},e.prototype.focusPosition=function(t){this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(t)},e.prototype.isValidNavigateCell=function(t){return!!this.rowPositionUtils.getRowNode(t)},e.prototype.getLastCellOfColSpan=function(t){var i=this.getCellByPosition(t);if(!i)return t;var n=i.getColSpanningList();return 1===n.length?t:{rowIndex:t.rowIndex,column:rt(n),rowPinned:t.rowPinned}},e.prototype.ensureCellVisible=function(t){var i,e=this.gridOptionsWrapper.isGroupRowsSticky(),r=this.rowModel.getRow(t.rowIndex);!(e&&(null===(i=r)||void 0===i?void 0:i.sticky))&&n(t.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(t.column)},Lh([W("mouseEventService")],e.prototype,"mouseEventService",void 0),Lh([W("paginationProxy")],e.prototype,"paginationProxy",void 0),Lh([W("focusService")],e.prototype,"focusService",void 0),Lh([V("rangeService")],e.prototype,"rangeService",void 0),Lh([W("columnModel")],e.prototype,"columnModel",void 0),Lh([W("rowModel")],e.prototype,"rowModel",void 0),Lh([W("ctrlsService")],e.prototype,"ctrlsService",void 0),Lh([W("rowRenderer")],e.prototype,"rowRenderer",void 0),Lh([W("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Lh([W("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Lh([W("cellNavigationService")],e.prototype,"cellNavigationService",void 0),Lh([W("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Lh([L],e.prototype,"postConstruct",null),Lh([B("navigationService")],e)}(kt),Bh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Wh=function(t){function i(i){var n=t.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=i,n}return Bh(i,t),i.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),i.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},i.prototype.addKeyDownListener=function(){var t=this,i=this.getGui(),n=this.params;this.addManagedListener(i,"keydown",(function(i){Te(t.gridOptionsWrapper,i,n.node,n.column,!0)||n.onKeyDown(i)}))},i.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(_o),Vh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zh=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=i,s.column=n.getColumn(),s.rowNode=n.getRowNode(),s.rowCtrl=n.getRowCtrl(),s.eRow=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var u=s.getGui();s.forceWrapper=n.isForceWrapper(),s.refreshWrapper(!1);var h=function(t,i,n){var e=n||u;null!=i&&""!=i?e.setAttribute(t,i):e.removeAttribute(t)},c={addOrRemoveCssClass:function(t,i){return s.addOrRemoveCssClass(t,i)},setUserStyles:function(t){return Pn(u,t)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(t){return h("tabindex",t.toString())},setRole:function(t){return Xn(u,t)},setColId:function(t){return h("col-id",t)},setTitle:function(t){return h("title",t)},setIncludeSelection:function(t){return s.includeSelection=t},setIncludeRowDrag:function(t){return s.includeRowDrag=t},setIncludeDndSource:function(t){return s.includeDndSource=t},setRenderDetails:function(t,i,n){return s.setRenderDetails(t,i,n)},setEditDetails:function(t,i,n){return s.setEditDetails(t,i,n)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=n,n.setComp(c,s.getGui(),s.eCellWrapper,e,o),s}return Vh(i,t),i.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},i.prototype.setRenderDetails=function(t,i,n){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var e=this.refreshWrapper(!1);t?!n&&!e&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(i))}},i.prototype.setEditDetails=function(t,i,n){t?this.createCellEditorInstance(t,i,n):this.destroyEditor()},i.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)},i.prototype.refreshWrapper=function(t){var i=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=i||this.forceWrapper,e=n&&null==this.eCellWrapper;e&&(this.eCellWrapper=_n('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var r=!n&&null!=this.eCellWrapper;r&&(jn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var o=!t&&n,s=o&&null==this.eCellValue;s&&(this.eCellValue=_n('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var u=!o&&null!=this.eCellValue;u&&(jn(this.eCellValue),this.eCellValue=void 0);var h=e||r||s||u;return h&&this.removeControls(),!t&&i&&this.addControls(),h},i.prototype.addControls=function(){var t=this.eCellValue.id="cell-"+this.getCompId(),i=[];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)),i.push(this.checkboxSelectionComp.getCheckboxId())),i.push(t),se(this.getGui(),i.join(" "))},i.prototype.createCellEditorInstance=function(t,i,e){var r=this,o=this.editorVersion,s=t.newAgStackInstance();if(s){var u=t.params;s.then((function(t){return r.afterCellEditorCreated(o,t,u,i,e)})),n(this.cellEditor)&&u.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},i.prototype.insertValueWithoutCellRenderer=function(t){var i=this.getParentOfValue();An(i);var n=null!=t?Vt(t):null;null!=n&&(i.innerHTML=n)},i.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},i.prototype.destroyRenderer=function(){this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),jn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},i.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),jn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},i.prototype.refreshCellRenderer=function(t){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==t.componentClass)return!1;var i=this.cellRenderer.refresh(t.params);return!0===i||void 0===i},i.prototype.createCellRendererInstance=function(t){var i=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),e=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),r=this.rendererVersion,o=t.componentClass,s=function(){if(i.rendererVersion===r&&i.isAlive()){var n=t.newAgStackInstance(),e=i.afterCellRendererCreated.bind(i,r,o);n&&n.then(e)}};n||e||!this.firstRender?s():this.beans.animationFrameService.createTask(s,this.rowNode.rowIndex,"createTasksP2")},i.prototype.getCtrl=function(){return this.cellCtrl},i.prototype.getRowCtrl=function(){return this.rowCtrl},i.prototype.getCellRenderer=function(){return this.cellRenderer},i.prototype.getCellEditor=function(){return this.cellEditor},i.prototype.afterCellRendererCreated=function(t,i,n){if(this.isAlive()&&t===this.rendererVersion){if(this.cellRenderer=n,this.cellRendererClass=i,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var e=this.getParentOfValue();An(e),e.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)},i.prototype.afterCellEditorCreated=function(t,i,n,e,r){if(t!==this.editorVersion)this.beans.context.destroyBean(i);else{if(i.isCancelBeforeStart&&i.isCancelBeforeStart())return this.beans.context.destroyBean(i),void this.cellCtrl.stopEditing();if(!i.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(i);this.cellEditor=i,this.cellEditorGui=i.getGui(),e||void 0!==i.isPopup&&i.isPopup()?(e||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,r)):this.addInCellEditor(),i.afterGuiAttached&&i.afterGuiAttached()}},i.prototype.addInCellEditor=function(){var t=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();t.contains(i.activeElement)&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},i.prototype.addPopupCellEditor=function(t,i){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&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 e=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Wh(t));var r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);var o=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),u=null!=i?i:e.getPopupPosition?e.getPopupPosition():"over",h={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:r,keepWithinBounds:!0},c="under"===u?o.positionPopupUnderComponent.bind(o,h):o.positionPopupOverComponent.bind(o,h),a=this.beans.gridOptionsWrapper.getLocaleTextFunc(),f=o.addPopup({modal:s,eChild:r,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:a("ariaLabelCellEditor","Cell Editor")});f&&(this.hideEditorPopup=f.hideFunc)},i.prototype.detach=function(){this.eRow.removeChild(this.getGui())},i.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),t.prototype.destroy.call(this)},i.prototype.clearParentOfValue=function(){var t=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();t.contains(i.activeElement)&&yi()&&t.focus({preventScroll:!0}),An(this.getParentOfValue())},i}(sr),Uh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Kh=function(t){function i(i,n,e){var r=t.call(this)||this;r.cellComps={},r.beans=n,r.rowCtrl=i,r.setTemplate('<div comp-id="'+r.getCompId()+'" style="'+r.getInitialStyle()+'"/>');var o=r.getGui(),s=o.style;return i.setComp({setDomOrder:function(t){return r.domOrder=t},setCellCtrls:function(t){return r.setCellCtrls(t)},showFullWidth:function(t){return r.showFullWidth(t)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(t,i){return r.addOrRemoveCssClass(t,i)},setUserStyles:function(t){return Pn(o,t)},setTop:function(t){return s.top=t},setTransform:function(t){return s.transform=t},setRowIndex:function(t){return o.setAttribute("row-index",t)},setRole:function(t){return Xn(o,t)},setRowId:function(t){return o.setAttribute("row-id",t)},setRowBusinessKey:function(t){return o.setAttribute("row-business-key",t)},setTabIndex:function(t){return o.setAttribute("tabindex",t.toString())}},r.getGui(),e),r}return Uh(i,t),i.prototype.getInitialStyle=function(){var t=this.rowCtrl.getInitialTransform(),i=this.rowCtrl.getInitialRowTop();return t?"transform: "+t:"top: "+i},i.prototype.showFullWidth=function(t){var i=this,n=t.newAgStackInstance();n&&n.then((function(t){if(i.isAlive()){var n=t.getGui();i.getGui().appendChild(n),i.rowCtrl.setupDetailRowAutoHeight(n),i.setFullWidthRowComp(t)}else i.beans.context.destroyBean(t)}))},i.prototype.setCellCtrls=function(t){var i=this,n=Object.assign({},this.cellComps);t.forEach((function(t){var e=t.getInstanceId();null==i.cellComps[e]?i.newCellComp(t):n[e]=null}));var e=m(n).filter((function(t){return null!=t}));this.destroyCells(e),this.ensureDomOrder(t)},i.prototype.ensureDomOrder=function(t){var i=this;if(this.domOrder){var n=[];t.forEach((function(t){var e=i.cellComps[t.getInstanceId()];e&&n.push(e.getGui())})),kn(this.getGui(),n)}},i.prototype.newCellComp=function(t){var i=new zh(this.beans,t,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[t.getInstanceId()]=i,this.getGui().appendChild(i.getGui())},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.destroyAllCells()},i.prototype.destroyAllCells=function(){var t=m(this.cellComps).filter((function(t){return null!=t}));this.destroyCells(t)},i.prototype.setFullWidthRowComp=function(t){var i=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=t,this.addDestroyFunc((function(){i.fullWidthCellRenderer=i.beans.context.destroyBean(i.fullWidthCellRenderer)}))},i.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},i.prototype.destroyCells=function(t){var i=this;t.forEach((function(t){if(t){var n=t.getCtrl().getInstanceId();i.cellComps[n]===t&&(t.detach(),t.destroy(),i.cellComps[n]=null)}}))},i}(sr),qh=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yh=function(){return(Yh=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},Jh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zh=function(t){function i(){var i,n,e=t.call(this,(i=sr.elementGettingCreated.getAttribute("name"),n=jh.getRowContainerCssClasses(i),i===Yu.CENTER?'<div class="'+n.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>\n </div>':i===Yu.TOP_CENTER||i===Yu.STICKY_TOP_CENTER||i===Yu.BOTTOM_CENTER?'<div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>':'<div class="'+n.container+'" ref="eContainer"></div>'))||this;return e.rowComps={},e.name=sr.elementGettingCreated.getAttribute("name"),e.type=function(t){switch(t){case Yu.CENTER:case Yu.TOP_CENTER:case Yu.STICKY_TOP_CENTER:case Yu.BOTTOM_CENTER:return Ju.CENTER;case Yu.LEFT:case Yu.TOP_LEFT:case Yu.STICKY_TOP_LEFT:case Yu.BOTTOM_LEFT:return Ju.LEFT;case Yu.RIGHT:case Yu.TOP_RIGHT:case Yu.STICKY_TOP_RIGHT:case Yu.BOTTOM_RIGHT:return Ju.RIGHT;case Yu.FULL_WIDTH:case Yu.TOP_FULL_WIDTH:case Yu.STICKY_TOP_FULL_WIDTH:case Yu.BOTTOM_FULL_WIDTH:return Ju.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(e.name),e}return qh(i,t),i.prototype.postConstruct=function(){var t=this,i={setViewportHeight:function(i){return t.eViewport.style.height=i},setRowCtrls:function(i){return t.setRowCtrls(i)},setDomOrder:function(i){t.domOrder=i},setContainerWidth:function(i){return t.eContainer.style.width=i}};this.createManagedBean(new jh(this.name)).setComp(i,this.eContainer,this.eViewport,this.eWrapper)},i.prototype.preDestroy=function(){this.setRowCtrls([])},i.prototype.setRowCtrls=function(t){var i=this,n=Yh({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,t.forEach((function(t){var e=t.getInstanceId(),r=n[e];if(r)i.rowComps[e]=r,delete n[e],i.ensureDomOrder(r.getGui());else{var o=i.newRowComp(t);i.rowComps[e]=o,i.appendRow(o.getGui())}})),m(n).forEach((function(t){i.eContainer.removeChild(t.getGui()),t.destroy()})),Xn(this.eContainer,t.length?"rowgroup":"presentation")},i.prototype.appendRow=function(t){this.domOrder?Dn(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t},i.prototype.ensureDomOrder=function(t){this.domOrder&&(Mn(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},i.prototype.newRowComp=function(t){return jh.getPinned(this.name),new Kh(t,this.beans,this.type)},Jh([W("beans")],i.prototype,"beans",void 0),Jh([ur("eViewport")],i.prototype,"eViewport",void 0),Jh([ur("eContainer")],i.prototype,"eContainer",void 0),Jh([ur("eWrapper")],i.prototype,"eWrapper",void 0),Jh([L],i.prototype,"postConstruct",null),Jh([H],i.prototype,"preDestroy",null),i}(sr),$h=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Qh=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var i=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=t.dragItem.columns;n&&n.forEach((function(t){t.isPrimary()&&(t.isAnyFunctionActive()||(t.isAllowValue()?i.columnsToAggregate.push(t):t.isAllowRowGroup()?i.columnsToGroup.push(t):t.isAllowPivot()&&i.columnsToPivot.push(t)))}))}},t.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?ns.ICON_PINNED:ns.ICON_MOVE:null},t.prototype.onDragLeave=function(){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(){},t.prototype.onDragStop=function(){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")},$h([W("columnModel")],t.prototype,"columnModel",void 0),$h([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),Xh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},tc=function(){function t(t,n){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=n,this.centerContainer=!i(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?ns.ICON_PINNED:ns.ICON_MOVE},t.prototype.onDragEnter=function(t){var i=t.dragItem.columns;if(t.dragSource.type===zo.ToolPanel)this.setColumnsVisible(i,!0,"uiColumnDragged");else{var n=t.dragItem.visibleState,e=(i||[]).filter((function(t){return n[t.getId()]}));this.setColumnsVisible(e,!0,"uiColumnDragged")}this.setColumnsPinned(i,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},t.prototype.onDragLeave=function(){this.ensureIntervalCleared()},t.prototype.setColumnsVisible=function(t,i,n){if(void 0===n&&(n="api"),t){var e=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnModel.setColumnsVisible(e,i,n)}},t.prototype.setColumnsPinned=function(t,i,n){if(void 0===n&&(n="api"),t){var e=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnModel.setColumnsPinned(e,i,n)}},t.prototype.onDragStop=function(){this.ensureIntervalCleared()},t.prototype.normaliseX=function(t){return this.gridOptionsWrapper.isEnableRtl()&&(t=this.eContainer.clientWidth-t),this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var i=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=i+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=t<i+50,this.needToMoveLeft=t>n-50):(this.needToMoveLeft=t<i+50,this.needToMoveRight=t>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(t,i,e){var r=this;if(void 0===i&&(i=!1),void 0===e&&(e=!1),this.lastDraggingEvent=t,!n(t.hDirection)){var o=this.normaliseX(t.x);i||this.checkCenterForScrolling(o);var s=this.normaliseDirection(t.hDirection),u=t.dragSource.type,h=t.dragSource.getDragItem().columns;h=h.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==r.pinned})),this.attemptMoveColumns(u,h,s,o,i,e)}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case Ko.Left:return Ko.Right;case Ko.Right:return Ko.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.calculateOldIndex=function(t){var i=this.columnModel.getAllGridColumns(),n=st(t.map((function(t){return i.indexOf(t)}))),e=n[0];return rt(n)-e!=n.length-1?null:e},t.prototype.attemptMoveColumns=function(t,i,n,e,r,o){var s=n===Ko.Left,u=n===Ko.Right;if(t===zo.HeaderCell){var h=[];i.forEach((function(t){for(var i=null,n=t.getParent();null!=n&&1===n.getDisplayedLeafColumns().length;)i=n,n=n.getParent();null!=i?i.getLeafColumns().forEach((function(t){h.includes(t)||h.push(t)})):h.includes(t)||h.push(t)})),i=h}var c=i.slice();this.columnModel.sortColumnsLikeGridColumns(c);var a=this.calculateValidMoves(c,u,e),f=this.calculateOldIndex(c);if(0!==a.length){var l=a[0],d=null!==f&&!r;if(t==zo.HeaderCell&&(d=null!==f),d&&!o){if(s&&l>=f)return;if(u&&l<=f)return}for(var v=this.columnModel.getAllDisplayedColumns(),p=[],g=null,m=0;m<a.length;m++){var w=a[m],b=this.columnModel.getProposedColumnOrder(c,w);if(this.columnModel.doesOrderPassRules(b)){var y=b.filter((function(t){return v.includes(t)}));if(null===g)g=y;else if(!Ye.areEqual(y,g))break;var C=this.groupFragCount(b);p.push({move:w,fragCount:C})}}0!==p.length&&(p.sort((function(t,i){return t.fragCount-i.fragCount})),this.columnModel.moveColumns(c,p[0].move,"uiColumnDragged"))}},t.prototype.groupFragCount=function(t){function i(t){for(var i=[],n=t.getOriginalParent();null!=n;)i.push(n),n=n.getOriginalParent();return i}for(var n=0,e=function(e){var r,o=i(t[e]),s=i(t[e+1]);r=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(o.length>s.length?[o,s]:[s,o],2),s=r[1],(o=r[0]).forEach((function(t){-1===s.indexOf(t)&&n++}))},r=0;r<t.length-1;r++)e(r);return n},t.prototype.calculateValidMoves=function(t,i,n){if(this.gridOptionsWrapper.isSuppressMovableColumns()||t.some((function(t){return t.getColDef().suppressMovable})))return[];var e,r=this.columnModel.getDisplayedColumns(this.pinned),o=this.columnModel.getAllGridColumns(),s=r.filter((function(i){return ft(t,i)})),u=r.filter((function(i){return!ft(t,i)})),h=o.filter((function(i){return!ft(t,i)})),c=0,a=n;if(i){var f=0;s.forEach((function(t){return f+=t.getActualWidth()})),a-=f}if(a>0){for(var l=0;l<u.length&&!((a-=u[l].getActualWidth())<0);l++)c++;i&&c++}c>0?e=h.indexOf(u[c-1])+1:-1===(e=h.indexOf(u[0]))&&(e=0);var d=[e],v=function(t,i){return t-i};if(i){for(var p=e+1,g=o.length-1;p<=g;)d.push(p),p++;d.sort(v)}else{g=o.length-1;for(var m=o[p=e];p<=g&&this.isColumnHidden(r,m);)p++,d.push(p),m=o[p];for(p=e-1;p>=0;)d.push(p),p--;d.sort(v).reverse()}return d},t.prototype.isColumnHidden=function(t,i){return t.indexOf(i)<0},t.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?ns.ICON_LEFT:ns.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ns.ICON_MOVE))},t.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var i=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?i=n.scrollHorizontally(-t):this.needToMoveRight&&(i=n.scrollHorizontally(t)),0!==i)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var e=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));e.length>0&&(this.dragAndDropService.setGhostIcon(ns.ICON_PINNED),this.failedMoveAttempts>7&&(this.setColumnsPinned(e,this.needToMoveLeft?Q.PINNED_LEFT:Q.PINNED_RIGHT,"uiColumnDragged"),this.dragAndDropService.nudge()))}},Xh([W("columnModel")],t.prototype,"columnModel",void 0),Xh([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Xh([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Xh([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Xh([L],t.prototype,"init",null),t}(),ic=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ec=function(t){function i(i,n){var e=t.call(this)||this;return e.pinned=i,e.eContainer=n,e}return ic(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){switch(t.pinned){case Q.PINNED_LEFT:t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.leftRowContainerCtrl.getContainerElement()],[i.bottomLeftRowContainerCtrl.getContainerElement()],[i.topLeftRowContainerCtrl.getContainerElement()]];break;case Q.PINNED_RIGHT:t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.rightRowContainerCtrl.getContainerElement()],[i.bottomRightRowContainerCtrl.getContainerElement()],[i.topRightRowContainerCtrl.getContainerElement()]];break;default:t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.centerRowContainerCtrl.getViewportElement()],[i.bottomCenterRowContainerCtrl.getViewportElement()],[i.topCenterRowContainerCtrl.getViewportElement()]]}}))},i.prototype.isInterestedIn=function(t){return t===zo.HeaderCell||t===zo.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},i.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},i.prototype.getContainer=function(){return this.eContainer},i.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new tc(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Qh(this.pinned)),this.dragAndDropService.addDropTarget(this)},i.prototype.getIconName=function(){return this.currentDropListener.getIconName()},i.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===zo.ToolPanel},i.prototype.onDragEnter=function(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(t)},i.prototype.onDragLeave=function(t){this.currentDropListener.onDragLeave(t)},i.prototype.onDragging=function(t){this.currentDropListener.onDragging(t)},i.prototype.onDragStop=function(t){this.currentDropListener.onDragStop(t)},nc([W("dragAndDropService")],i.prototype,"dragAndDropService",void 0),nc([W("columnModel")],i.prototype,"columnModel",void 0),nc([W("ctrlsService")],i.prototype,"ctrlsService",void 0),nc([L],i.prototype,"postConstruct",null),nc([L],i.prototype,"init",null),i}(kt),rc=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},oc=function(){function t(){}return t.getHeaderClassesFromColDef=function(t,i,e,r){return n(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,i,e,r)},t.getToolPanelClassesFromColDef=function(t,i,e,r){return n(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,i,e,r)},t.getClassParams=function(t,i,n,e){return{colDef:t,column:n,columnGroup:e,api:i.getApi(),columnApi:i.getColumnApi(),context:i.getContext()}},t.getColumnClassesFromCollDef=function(t,i,e,r,o){return n(t)?[]:"string"==typeof(s="function"==typeof t?t(this.getClassParams(i,e,r,o)):t)?[s]:Array.isArray(s)?function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(rc(arguments[i]));return t}(s):[];var s},t}(),sc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),uc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hc=function(t){function i(n){var e=t.call(this,i.TEMPLATE,n)||this;return e.headerCompVersion=0,e.column=n.getColumnGroupChild(),e.pinned=n.getPinned(),e}return sc(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui(),n=function(t,n,e){var r=e||i;null!=n&&""!=n?r.setAttribute(t,n):r.removeAttribute(t)};this.ctrl.setComp({setWidth:function(t){return i.style.width=t},addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setColId:function(t){return n("col-id",t)},setTitle:function(t){return n("title",t)},setAriaDescription:function(t){return oe(i,t)},setAriaSort:function(t){return t?be(i,t):ye(i)},setUserCompDetails:function(i){return t.setUserCompDetails(i)},getUserCompInstance:function(){return t.headerComp}},this.getGui(),this.eResize,this.eHeaderCompWrapper);var e=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",e)},i.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},i.prototype.setUserCompDetails=function(t){var i=this;this.headerCompVersion++;var n=this.headerCompVersion;t.newAgStackInstance().then((function(t){return i.afterCompCreated(n,t)}))},i.prototype.afterCompCreated=function(t,i){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=i,this.headerCompGui=i.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(i)},i.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>',uc([ur("eResize")],i.prototype,"eResize",void 0),uc([ur("eHeaderCompWrapper")],i.prototype,"eHeaderCompWrapper",void 0),uc([L],i.prototype,"postConstruct",null),uc([H],i.prototype,"destroyHeaderComp",null),i}(ru),cc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ac=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},fc=function(t){function i(n){return t.call(this,i.TEMPLATE,n)||this}return cc(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui(),n=function(t,n){return null!=n?i.setAttribute(t,n):i.removeAttribute(t)};this.ctrl.setComp({addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},addOrRemoveResizableCssClass:function(i,n){return t.eResize.classList.toggle(i,n)},setWidth:function(t){return i.style.width=t},setColId:function(t){return i.setAttribute("col-id",t)},setAriaExpanded:function(t){return n("aria-expanded",t)},setTitle:function(t){return n("title",t)},setUserCompDetails:function(i){return t.setUserCompDetails(i)}},i,this.eResize)},i.prototype.setUserCompDetails=function(t){var i=this;t.newAgStackInstance().then((function(t){return i.afterHeaderCompCreated(t)}))},i.prototype.afterHeaderCompCreated=function(t){var i=this,n=function(){return i.destroyBean(t)};this.isAlive()?(this.getGui().appendChild(t.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(t.getGui())):n()},i.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>',ac([W("userComponentFactory")],i.prototype,"userComponentFactory",void 0),ac([ur("eResize")],i.prototype,"eResize",void 0),ac([L],i.prototype,"postConstruct",null),i}(ru),lc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),dc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t.COLUMN_GROUP="group",t.COLUMN="column",t.FLOATING_FILTER="filter"}(Rh||(Rh={}));var vc,pc=function(t){function i(i){var n=t.call(this)||this;n.headerComps={};var e=i.getType()==Rh.COLUMN_GROUP?"ag-header-row-column-group":i.getType()==Rh.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return n.setTemplate('<div class="ag-header-row '+e+'" role="row"></div>'),n.ctrl=i,n}return lc(i,t),i.prototype.init=function(){var t=this;this.ctrl.setComp({setTransform:function(i){return t.getGui().style.transform=i},setHeight:function(i){return t.getGui().style.height=i},setTop:function(i){return t.getGui().style.top=i},setHeaderCtrls:function(i){return t.setHeaderCtrls(i)},setWidth:function(i){return t.getGui().style.width=i},setAriaRowIndex:function(i){return pe(t.getGui(),i)}})},i.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},i.prototype.setHeaderCtrls=function(t){var i=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},t.forEach((function(t){var e=t.getInstanceId(),r=n[e];delete n[e],null==r&&(r=i.createHeaderComp(t),i.getGui().appendChild(r.getGui())),i.headerComps[e]=r})),a(n,(function(t,n){i.getGui().removeChild(n.getGui()),i.destroyBean(n)})),this.gridOptionsWrapper.isEnsureDomOrder()){var e=m(this.headerComps);e.sort((function(t,i){return t.getCtrl().getColumnGroupChild().getLeft()-i.getCtrl().getColumnGroupChild().getLeft()}));var r=e.map((function(t){return t.getGui()}));kn(this.getGui(),r)}}},i.prototype.createHeaderComp=function(t){var i;switch(this.ctrl.getType()){case Rh.COLUMN_GROUP:i=new fc(t);break;case Rh.FLOATING_FILTER:i=new uu(t);break;default:i=new hc(t)}return this.createBean(i),i.setParentComponent(this),i},dc([L],i.prototype,"init",null),dc([H],i.prototype,"destroyHeaderCtrls",null),i}(sr),gc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wc=0,bc=function(t){function i(i,n){var e=t.call(this)||this;return e.lastFocusEvent=null,e.columnGroupChild=i,e.parentRowCtrl=n,e.instanceId=i.getUniqueId()+"-"+wc++,e}return gc(i,t),i.prototype.shouldStopEventPropagation=function(t){var i=this.focusService.getFocusedHeader();return Ee(this.gridOptionsWrapper,t,i.headerRowIndex,i.column)},i.prototype.getWrapperHasFocus=function(){return this.gridOptionsWrapper.getDocument().activeElement===this.eGui},i.prototype.setGui=function(t){this.eGui=t,this.addDomData()},i.prototype.handleKeyDown=function(t){var i=this.getWrapperHasFocus();switch(t.key){case Pe.PAGE_DOWN:case Pe.PAGE_UP:case Pe.PAGE_HOME:case Pe.PAGE_END:i&&t.preventDefault()}},i.prototype.addDomData=function(){var t=this,n=i.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return t.gridOptionsWrapper.setDomData(t.eGui,n,null)}))},i.prototype.getGui=function(){return this.eGui},i.prototype.focus=function(t){return!!this.eGui&&(this.lastFocusEvent=t||null,this.eGui.focus(),!0)},i.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},i.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},i.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.getColumnGroupChild=function(){return this.columnGroupChild},i.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",mc([W("focusService")],i.prototype,"focusService",void 0),mc([W("beans")],i.prototype,"beans",void 0),mc([W("userComponentFactory")],i.prototype,"userComponentFactory",void 0),i}(kt);
240
- /**
241
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
242
- * @version v28.2.0
243
- * @link https://www.ag-grid.com/
244
- * @license MIT
245
- */!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"}(vc||(vc={}));
246
- /**
247
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
248
- * @version v28.2.0
249
- * @link https://www.ag-grid.com/
250
- * @license MIT
251
- */
252
- var yc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};function Cc(t){return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():t}var Rc,Sc=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 Q.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case Q.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case Q.ROW_MODEL_TYPE_SERVER_SIDE: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.addDetailGridInfo=function(t,i){this.detailGridInfoMap[t]=i},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 n=0;a(this.detailGridInfoMap,(function(e,r){i(r)&&(t(r,n),n++)}))},t.prototype.getDataAsCsv=function(t){if(X.assertRegistered(q.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){X.assertRegistered(q.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getExcelExportMode=function(t){var i=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},i,t).exportMode},t.prototype.getDataAsExcel=function(t){if(X.assertRegistered(q.ExcelExportModule,"api.getDataAsExcel")){var i=this.getExcelExportMode(t);if(this.excelCreator.getFactoryMode(i)!==is.MULTI_SHEET)return this.excelCreator.getDataAsExcel(t);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},t.prototype.exportDataAsExcel=function(t){if(X.assertRegistered(q.ExcelExportModule,"api.exportDataAsExcel")){var i=this.getExcelExportMode(t);this.excelCreator.getFactoryMode(i)!==is.MULTI_SHEET?this.excelCreator.exportDataAsExcel(t):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},t.prototype.getSheetDataForExcel=function(t){if(X.assertRegistered(q.ExcelExportModule,"api.getSheetDataForExcel")){var i=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(is.MULTI_SHEET,i),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(X.assertRegistered(q.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(X.assertRegistered(q.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setEnterpriseDatasource=function(t){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},t.prototype.setGridAriaProperty=function(t,i){if(t){var n=this.ctrlsService.getGridBodyCtrl().getGui(),e="aria-"+t;null===i?n.removeAttribute(e):n.setAttribute(e,i)}},t.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+Q.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+Q.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+Q.ROW_MODEL_TYPE_INFINITE+"'")},t.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+Q.ROW_MODEL_TYPE_VIEWPORT+"'")},t.prototype.setRowData=function(t){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},t.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},t.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},t.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},t.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},t.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},t.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(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,i){void 0===i&&(i="api"),this.columnModel.setColumnDefs(t,i)},t.prototype.setAutoGroupColumnDef=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_AUTO_GROUP_COLUMN_DEF,t,!0)},t.prototype.setDefaultColDef=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_DEFAULT_COL_DEF,t,!0)},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.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},t.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):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={}),this.rowRenderer.redrawRows(t?t.rowNodes:void 0)},t.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("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,i){t&&t.setExpanded(i)},t.prototype.onGroupExpandedOrCollapsed=function(t){n(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),i(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:vc.MAP})},t.prototype.refreshInMemoryRowModel=function(t){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},t.prototype.refreshClientSideRowModel=function(t){n(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=vc.EVERYTHING,r={group:vc.EVERYTHING,filter:vc.FILTER,map:vc.MAP,aggregate:vc.AGGREGATE,sort:vc.SORT,pivot:vc.PIVOT};if(i(t)&&(e=r[t]),n(e))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(r).join(", "));else{var o=!this.gridOptionsWrapper.isSuppressAnimationFrame();this.clientSideRowModel.refreshModel({step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:o})}},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.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},t.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},t.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},t.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return Cc(this.sideBarComp.getToolPanelInstance(t));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.addVirtualRowListener=function(t,i,n){"string"!=typeof t&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,i,n)},t.prototype.addRenderedRowListener=function(t,i,n){"virtualRowSelected"===t&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(t,i,n)},t.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},t.prototype.selectIndex=function(t,i,n){console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(t,i)},t.prototype.deselectIndex=function(t,i){void 0===i&&(i=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},t.prototype.selectNode=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!i})},t.prototype.deselectNode=function(t,i){void 0===i&&(i=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},t.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},t.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},t.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},t.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},t.prototype.recomputeAggregates=function(){n(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:vc.AGGREGATE})},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.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},t.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColIndexVisible=function(){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},t.prototype.ensureColumnVisible=function(t,i){void 0===i&&(i="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,i)},t.prototype.ensureIndexVisible=function(t,i){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,i)},t.prototype.ensureNodeVisible=function(t,i){void 0===i&&(i=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,i)},t.prototype.forEachLeafNode=function(t){n(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},t.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},t.prototype.forEachNodeAfterFilter=function(t){n(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},t.prototype.forEachNodeAfterFilterAndSort=function(t){n(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},t.prototype.getFilterInstance=function(t,i){var n=this.getFilterInstanceImpl(t,(function(t){if(i){var n=Cc(t);i(n)}}));return Cc(n)},t.prototype.getFilterInstanceImpl=function(t,i){var n=this.columnModel.getPrimaryColumn(t);if(n){var e=this.filterManager.getFilterComponent(n,"NO_UI"),r=e&&e.resolveNow(null,(function(t){return t}));return r?setTimeout(i,0,r):e&&e.then((function(t){i(t)})),r}},t.prototype.destroyFilter=function(t){var i=this.columnModel.getPrimaryColumn(t);if(i)return this.filterManager.destroyFilter(i,"filterDestroyed")},t.prototype.getStatusPanel=function(t){if(this.statusBarService)return Cc(this.statusBarService.getStatusPanel(t))},t.prototype.getColumnDef=function(t){var i=this.columnModel.getPrimaryColumn(t);return i?i.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},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,i,n){this.focusService.setFocusedCell({rowIndex:t,column:i,rowPinned:n,forceBrowserFocus:!0})},t.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_SUPPRESS_ROW_DRAG,t)},t.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},t.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},t.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},t.prototype.removeRowDropZone=function(t){var i=this.dragAndDropService.findExternalZone(t);i&&this.dragAndDropService.removeDropTarget(i)},t.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},t.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_HEADER_HEIGHT,t)},t.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_DOM_LAYOUT,t)},t.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},t.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_FILL_HANDLE_DIRECTION,t)},t.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GROUP_HEADER_HEIGHT,t)},t.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_FLOATING_FILTERS_HEIGHT,t)},t.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_PIVOT_HEADER_HEIGHT,t)},t.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},t.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},t.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_DOES_EXTERNAL_FILTER_PASS,t)},t.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_NAVIGATE_TO_NEXT_CELL,t)},t.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_TAB_TO_NEXT_CELL,t)},t.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_TAB_TO_NEXT_HEADER,t)},t.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_NAVIGATE_TO_NEXT_HEADER,t)},t.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GROUP_ROW_AGG_NODES,t)},t.prototype.setGetGroupRowAgg=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_GROUP_ROW_AGG,t)},t.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},t.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_CHILD_COUNT,t)},t.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_PROCESS_ROW_POST_CREATE,t)},t.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_ROW_NODE_ID,t)},t.prototype.setGetRowId=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_ROW_ID,t)},t.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_ROW_CLASS,t)},t.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_IS_FULL_WIDTH_CELL,t)},t.prototype.setIsFullWidthRow=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_IS_FULL_WIDTH_ROW,t)},t.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_IS_ROW_SELECTABLE,t)},t.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_IS_ROW_MASTER,t)},t.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_POST_SORT,t)},t.prototype.setPostSortRows=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_POST_SORT_ROWS,t)},t.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_DOCUMENT,t)},t.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_CONTEXT_MENU_ITEMS,t)},t.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_MAIN_MENU_ITEMS,t)},t.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},t.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_SEND_TO_CLIPBOARD,t)},t.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},t.prototype.setProcessSecondaryColDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(t)},t.prototype.setProcessSecondaryColGroupDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(t)},t.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_PROCESS_PIVOT_RESULT_COL_DEF,t)},t.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,t)},t.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_POST_PROCESS_POPUP,t)},t.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},t.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_INITIAL_GROUP_ORDER_COMPARATOR,t)},t.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_CHART_TOOLBAR_ITEMS,t)},t.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_PAGINATION_NUMBER_FORMATTER,t)},t.prototype.setGetServerSideStoreParams=function(t){this.setGetServerSideGroupLevelParams(t)},t.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_SERVER_SIDE_GROUP_PARAMS,t)},t.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},t.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},t.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_IS_SERVER_SIDE_GROUP,t)},t.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},t.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_ROW_STYLE,t)},t.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GET_ROW_HEIGHT,t)},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("AG Grid: sideBar is not loaded")},t.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("AG Grid: sideBar is not loaded")},t.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},t.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",li.parse(t))},t.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.doLayout=function(){O((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},t.prototype.resetRowHeights=function(){if(i(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.gridOptionsWrapper.setProperty(Ji.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},t.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},t.prototype.setGroupDisplayType=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_GROUP_DISPLAY_TYPE,t)},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(t,i){var e=this.columnModel.getPrimaryColumn(t);return n(e)&&(e=this.columnModel.getGridColumn(t)),n(e)?null:this.valueService.getValue(e,i)},t.prototype.addEventListener=function(t,i){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,i,n)},t.prototype.addGlobalListener=function(t){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,i)},t.prototype.removeEventListener=function(t,i){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,i,n)},t.prototype.removeGlobalListener=function(t){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,i)},t.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(y.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.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},t.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},t.prototype.camelCaseToHumanReadable=function(t){return zt(t)},t.prototype.addRangeSelection=function(){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},t.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},t.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(X.assertRegistered(q.RangeSelectionModule,"api.getChartModels")&&X.assertRegistered(q.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.getChartRef=function(t){if(X.assertRegistered(q.RangeSelectionModule,"api.getChartRef")&&X.assertRegistered(q.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},t.prototype.getChartImageDataURL=function(t){if(X.assertRegistered(q.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},t.prototype.downloadChart=function(t){if(X.assertRegistered(q.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},t.prototype.openChartToolPanel=function(t){if(X.assertRegistered(q.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},t.prototype.closeChartToolPanel=function(t){if(X.assertRegistered(q.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},t.prototype.createRangeChart=function(t){if(X.assertRegistered(q.RangeSelectionModule,"api.createRangeChart")&&X.assertRegistered(q.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createCrossFilterChart=function(t){if(X.assertRegistered(q.RangeSelectionModule,"api.createCrossFilterChart")&&X.assertRegistered(q.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},t.prototype.restoreChart=function(t,i){if(X.assertRegistered(q.RangeSelectionModule,"api.restoreChart")&&X.assertRegistered(q.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,i)},t.prototype.createPivotChart=function(t){if(X.assertRegistered(q.RangeSelectionModule,"api.createPivotChart")&&X.assertRegistered(q.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copyToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(t)},t.prototype.copySelectedRowsToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t)},t.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},t.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(t,i){var n=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(n,i,"columnMenu")},t.prototype.showColumnMenuAfterMouseClick=function(t,i){var n=this.columnModel.getGridColumn(t);n||(n=this.columnModel.getPrimaryColumn(t)),n?this.menuFactory.showMenuAfterMouseEvent(n,i):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.gridOptionsWrapper.setProperty(Ji.PROP_POPUP_PARENT,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(Cc)},t.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(Cc)},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 i=this.columnModel.getGridColumn(t.colKey);if(i){var n={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:i};null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var e=this.navigationService.getCellByPosition(n);e&&e.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},t.prototype.addAggFunc=function(t,i){this.aggFuncService&&this.aggFuncService.addAggFunc(t,i)},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);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyServerSideTransactionAsync=function(t,i){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,i);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},t.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var i=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(i.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),i}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},t.prototype.setDeltaSort=function(t){this.gridOptionsWrapper.setProperty("deltaSort",t)},t.prototype.updateRowData=function(t){return O((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(t)},t.prototype.applyTransactionAsync=function(t,i){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,i):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.batchUpdateRowData=function(t,i){O((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,i)},t.prototype.insertItemsAtIndex=function(t,i){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:i,addIndex:t,update:null,remove:null})},t.prototype.removeItems=function(t){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var i=t.map((function(t){return t.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:i})},t.prototype.addItems=function(t){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},t.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},t.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeEnterpriseCache=function(t){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(t)},t.prototype.purgeServerSideCache=function(t){void 0===t&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},t.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},t.prototype.refreshServerSideStore=function(t){return O((function(){return console.warn("AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0")}),"refreshServerSideStore-renamed"),this.refreshServerSide(t)},t.prototype.getServerSideStoreState=function(){return O((function(){return console.warn("AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0")}),"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},t.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},t.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},t.prototype.setVirtualRowCount=function(t,i){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,i)},t.prototype.setInfiniteRowCount=function(t,i){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,i)},t.prototype.setRowCount=function(t,i){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,i):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},t.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},t.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},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.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("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)},t.prototype.setRowClass=function(t){this.gridOptionsWrapper.setProperty(Ji.PROP_ROW_CLASS,t)},yc([V("immutableService")],t.prototype,"immutableService",void 0),yc([V("csvCreator")],t.prototype,"csvCreator",void 0),yc([V("excelCreator")],t.prototype,"excelCreator",void 0),yc([W("rowRenderer")],t.prototype,"rowRenderer",void 0),yc([W("navigationService")],t.prototype,"navigationService",void 0),yc([W("filterManager")],t.prototype,"filterManager",void 0),yc([W("columnModel")],t.prototype,"columnModel",void 0),yc([W("selectionService")],t.prototype,"selectionService",void 0),yc([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),yc([W("valueService")],t.prototype,"valueService",void 0),yc([W("alignedGridsService")],t.prototype,"alignedGridsService",void 0),yc([W("eventService")],t.prototype,"eventService",void 0),yc([W("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),yc([W("context")],t.prototype,"context",void 0),yc([W("rowModel")],t.prototype,"rowModel",void 0),yc([W("sortController")],t.prototype,"sortController",void 0),yc([W("paginationProxy")],t.prototype,"paginationProxy",void 0),yc([W("focusService")],t.prototype,"focusService",void 0),yc([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),yc([V("rangeService")],t.prototype,"rangeService",void 0),yc([V("clipboardService")],t.prototype,"clipboardService",void 0),yc([V("aggFuncService")],t.prototype,"aggFuncService",void 0),yc([W("menuFactory")],t.prototype,"menuFactory",void 0),yc([V("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),yc([W("valueCache")],t.prototype,"valueCache",void 0),yc([W("animationFrameService")],t.prototype,"animationFrameService",void 0),yc([V("statusBarService")],t.prototype,"statusBarService",void 0),yc([V("chartService")],t.prototype,"chartService",void 0),yc([V("undoRedoService")],t.prototype,"undoRedoService",void 0),yc([V("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),yc([V("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),yc([W("ctrlsService")],t.prototype,"ctrlsService",void 0),yc([V("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),yc([L],t.prototype,"init",null),yc([H],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),yc([B("gridApi")],t)}(),Oc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ac=function(t){function n(i,n,e,r){var o=t.call(this)||this;return o.columnOrGroup=i,o.eCell=n,o.ariaEl=o.eCell.querySelector("[role=columnheader]")||o.eCell,o.colsSpanning=r,o.beans=e,o}return Oc(n,t),n.prototype.setColsSpanning=function(t){this.colsSpanning=t,this.onLeftChanged()},n.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?rt(this.colsSpanning):this.columnOrGroup},n.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,nt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,Ji.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},n.prototype.setLeftFirstTime=function(){var t=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),n=i(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&n&&!t?this.animateInLeft():this.onLeftChanged()},n.prototype.animateInLeft=function(){var t=this,i=this.getColumnOrGroup(),n=i.getLeft(),e=i.getOldLeft(),r=this.modifyLeftForPrintLayout(i,e),o=this.modifyLeftForPrintLayout(i,n);this.setLeft(r),this.actualLeft=o,this.beans.columnAnimationService.executeNextVMTurn((function(){t.actualLeft===o&&t.setLeft(o)}))},n.prototype.onLeftChanged=function(){var t=this.getColumnOrGroup(),i=t.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(t,i),this.setLeft(this.actualLeft)},n.prototype.modifyLeftForPrintLayout=function(t,i){if(this.beans.gridOptionsWrapper.getDomLayout()!==Q.DOM_LAYOUT_PRINT)return i;if(t.getPinned()===Q.PINNED_LEFT)return i;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return t.getPinned()===Q.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+i:n+i},n.prototype.setLeft=function(t){var n;if(i(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof nt)n=this.columnOrGroup;else{var e=this.columnOrGroup.getLeafColumns();if(!e.length)return;e.length>1&&we(this.ariaEl,e.length),n=e[0]}var r=this.beans.columnModel.getAriaColumnIndex(n);me(this.ariaEl,r)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],n.prototype,"postConstruct",null),n}(kt),jc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Gc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},_c=function(t){function i(i,n){var e=t.call(this)||this;return e.columns=i,e.element=n,e}return jc(i,t),i.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},i.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},i.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},i.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Gc([W("columnHoverService")],i.prototype,"columnHoverService",void 0),Gc([L],i.prototype,"postConstruct",null),i}(kt),xc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Mc=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.column=i,e}return xc(i,t),i.prototype.setComp=function(i,n,e,r){t.prototype.setGui.call(this,n),this.comp=i,this.eButtonShowMainFilter=e,this.eFloatingFilterBody=r;var o=this.column.getColDef();this.active=!(!o.filter&&!o.filterFramework||!o.floatingFilter),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},i.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var t=ke("filter",this.gridOptionsWrapper,this.column);t&&this.eButtonShowMainFilter.appendChild(t)}},i.prototype.setupFocus=function(){this.createManagedBean(new yr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},i.prototype.onTabKeyDown=function(t){if(this.gridOptionsWrapper.getDocument().activeElement!==this.eGui){var i=this.focusService.findNextFocusableElement(this.eGui,null,t.shiftKey);if(i)return this.beans.headerNavigationService.scrollToColumn(this.column),t.preventDefault(),void i.focus();var n=this.findNextColumnWithFloatingFilter(t.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:t})&&t.preventDefault()}},i.prototype.findNextColumnWithFloatingFilter=function(t){var i=this.beans.columnModel,n=this.column;do{if(!(n=t?i.getDisplayedColBefore(n):i.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i);var n=this.getWrapperHasFocus();switch(i.key){case Pe.UP:case Pe.DOWN:n||i.preventDefault();case Pe.LEFT:case Pe.RIGHT:if(n)return;i.stopPropagation();case Pe.ENTER:n&&this.focusService.focusInto(this.eGui)&&i.preventDefault();break;case Pe.ESCAPE:n||this.eGui.focus()}},i.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var i=!!t.relatedTarget&&!t.relatedTarget.classList.contains("ag-floating-filter"),n=!!t.relatedTarget&&gn(t.relatedTarget,"ag-floating-filter");if(i&&n&&t.target===this.eGui){var e=this.lastFocusEvent;e&&e&&e.key===Pe.TAB&&this.focusService.focusInto(this.eGui,e.shiftKey)}var r=this.getRowIndex();this.beans.focusService.setFocusedHeader(r,this.column)}},i.prototype.setupHover=function(){var t=this;this.createManagedBean(new _c([this.column],this.eGui));var i=function(){if(t.gridOptionsWrapper.isColumnHoverHighlight()){var i=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",i)}};this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_HOVER_CHANGED,i),i()},i.prototype.setupLeft=function(){var t=new Ac(this.column,this.eGui,this.beans);this.createManagedBean(t)},i.prototype.setupUserComp=function(){var t=this;if(this.active){var i=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,i),e=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,Es,n),r=this.userComponentFactory.getDefaultFloatingFilterType(i);null==r&&(r="agReadOnlyFloatingFilter");var o={column:this.column,filterParams:e,currentParentModel:function(){return t.currentParentModel()},parentFilterInstance:function(i){return t.parentFilterInstance(i)},showParentFilter:function(){return t.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(i,o,r);s&&this.comp.setCompDetails(s)}},i.prototype.currentParentModel=function(){var t=this.getFilterComponent(!1);return t?t.resolveNow(null,(function(t){return t&&t.getModel()})):null},i.prototype.getFilterComponent=function(t){return void 0===t&&(t=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",t)},i.prototype.parentFilterInstance=function(t){var i=this.getFilterComponent();null!=i&&i.then((function(i){t(Cc(i))}))},i.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter,"floatingFilter","filterMenuTab",["filterMenuTab"])},i.prototype.setupSyncWithFilter=function(){var t=this;if(this.active){var i=function(i){var n=t.comp.getFloatingFilterComp();if(n){var e=t.currentParentModel();n.then((function(t){t&&t.onParentModelChanged(e,i)}))}};this.addManagedListener(this.column,nt.EVENT_FILTER_CHANGED,i),this.filterManager.isFilterActive(this.column)&&i(null)}},i.prototype.setupWidth=function(){var t=this,i=function(){var i=t.column.getActualWidth()+"px";t.comp.setWidth(i)};this.addManagedListener(this.column,nt.EVENT_WIDTH_CHANGED,i),i()},Fc([W("filterManager")],i.prototype,"filterManager",void 0),Fc([W("columnHoverService")],i.prototype,"columnHoverService",void 0),Fc([W("menuFactory")],i.prototype,"menuFactory",void 0),i}(bc),kc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Dc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Pc=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.pinned=i,s.column=n,s.eResize=e,s.comp=r,s.ctrl=o,s}return kc(i,t),i.prototype.postConstruct=function(){var t,i,n=this,e=this.column.getColDef(),r=[],o=function(){r.forEach((function(t){return t()})),r.length=0},s=function(){var s=n.column.isResizable(),u=!n.gridOptionsWrapper.isSuppressAutoSize()&&!e.suppressAutoSize;(s!==t||u!==i)&&(t=s,i=u,o(),function(){if(dn(n.eResize,t),t){var e=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(r.push(e),i){var o=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){n.columnModel.autoSizeColumn(n.column,o,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var u=new mo(n.eResize);u.addEventListener(mo.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),u.removeEventListener(mo.EVENT_DOUBLE_TAP,s),u.destroy()}))}}}())};s(),this.addDestroyFunc(o),this.ctrl.addRefreshFunction(s)},i.prototype.onResizing=function(t,i){var n=this.normaliseResizeAmount(i);this.columnModel.setColumnWidths([{key:this.column,newWidth:this.resizeStartWidth+n}],this.resizeWithShiftKey,t,"uiColumnDragged"),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},i.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},i.prototype.normaliseResizeAmount=function(t){var i=t,n=this.pinned!==Q.PINNED_LEFT,e=this.pinned===Q.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(i*=-1):e&&(i*=-1),i},Dc([W("horizontalResizeService")],i.prototype,"horizontalResizeService",void 0),Dc([W("columnModel")],i.prototype,"columnModel",void 0),Dc([L],i.prototype,"postConstruct",null),i}(kt),Ic=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Tc=function(t){function i(i,n,e){void 0===n&&(n="ag-checkbox"),void 0===e&&(e="checkbox");var r=t.call(this,i,n,e)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return Ic(i,t),i.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},i.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},i.prototype.setPassive=function(t){this.passive=t},i.prototype.isReadOnly=function(){return this.readOnly},i.prototype.setReadOnly=function(t){this.eWrapper.classList.toggle("ag-disabled",t),this.eInput.disabled=t,this.readOnly=t},i.prototype.setDisabled=function(i){return this.eWrapper.classList.toggle("ag-disabled",i),t.prototype.setDisabled.call(this,i)},i.prototype.toggle=function(){if(!this.eInput.disabled){var t=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,t):this.setValue(i)}},i.prototype.getValue=function(){return this.isSelected()},i.prototype.setValue=function(t,i){return this.refreshSelectedClass(t),this.setSelected(t,i),this},i.prototype.setName=function(t){return this.getInputElement().name=t,this},i.prototype.isSelected=function(){return this.selected},i.prototype.setSelected=function(t,i){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,i||this.dispatchChange(this.selected,this.previousValue))},i.prototype.dispatchChange=function(t,n,e){this.dispatchEvent({type:i.EVENT_CHANGED,selected:t,previousValue:n,event:e});var r=this.getInputElement();this.eventService.dispatchEvent({type:Tt.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:t,previousValue:n})},i.prototype.onCheckboxClick=function(t){if(!this.passive&&!this.eInput.disabled){var i=this.isSelected(),n=this.selected=t.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,i,t)}},i.prototype.refreshSelectedClass=function(t){this.eWrapper.classList.toggle("ag-checked",!0===t),this.eWrapper.classList.toggle("ag-indeterminate",null==t)},i}(Nr),Ec=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Nc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Lc=function(t){function i(i){var n=t.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=i;var e=i.getColDef();return n.filteredOnly=!!e&&!!e.headerCheckboxSelectionFilteredOnly,n}return Ec(i,t),i.prototype.onSpaceKeyPressed=function(t){var i=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();i.isDisplayed()&&!i.getGui().contains(n.activeElement)&&(t.preventDefault(),i.setValue(!i.getValue()))},i.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},i.prototype.setComp=function(t){this.headerCellCtrl=t,this.cbSelectAll=this.createManagedBean(new Tc),this.cbSelectAll.addCssClass("ag-header-select-all"),Xn(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Tt.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Tc.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},i.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},i.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},i.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},i.prototype.getNextCheckboxState=function(t){return(0!==t.selected||0!==t.notSelected)&&(t.selected>0&&t.notSelected>0?null:t.selected>0)},i.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.getSelectionCount(),i=this.getNextCheckboxState(t);this.cbSelectAll.setValue(i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},i.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.cbSelectAll.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),n=t("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",n+" ("+i+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null);this.headerCellCtrl.refreshAriaDescription()},i.prototype.getSelectionCount=function(){var t=this,i=0,n=0,e=function(e){t.gridOptionsWrapper.isGroupSelectsChildren()&&e.group||(e.isSelected()?i++:e.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(e):this.gridApi.forEachNode(e),{notSelected:n,selected:i}},i.prototype.checkRightRowModelType=function(){var t=this.rowModel.getType();t===Q.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+t)},i.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},i.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;return"function"==typeof t&&(t=t({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()})),!(!t||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),1)))},Nc([W("gridApi")],i.prototype,"gridApi",void 0),Nc([W("columnApi")],i.prototype,"columnApi",void 0),Nc([W("rowModel")],i.prototype,"rowModel",void 0),Nc([W("selectionService")],i.prototype,"selectionService",void 0),i}(kt),Hc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wc=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.refreshFunctions=[],e.userHeaderClasses=new Set,e.ariaDescriptionProperties=new Map,e.column=i,e}return Hc(i,t),i.prototype.setComp=function(i,n,e,r){var o=this;t.prototype.setGui.call(this,n),this.comp=i,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Pc(this.getPinned(),this.column,e,i,this)),this.createManagedBean(new _c([this.column],n)),this.createManagedBean(new Ac(this.column,n,this.beans)),this.createManagedBean(new yr(n,{shouldStopEventPropagation:function(t){return o.shouldStopEventPropagation(t)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,nt.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},i.prototype.setupUserComp=function(){var t=this.lookupUserCompDetails();this.setCompDetails(t)},i.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setUserCompDetails(t)},i.prototype.lookupUserCompDetails=function(){var t=this.createParams(),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,t)},i.prototype.createParams=function(){var t=this,i=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:i.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(i){t.gridApi.showColumnMenuAfterButtonClick(t.column,i)},progressSort:function(i){t.sortController.progressSort(t.column,!!i,"uiColumnSorted")},setSort:function(i,n){t.sortController.setSortForColumn(t.column,i,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},i.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Lc(this.column)),this.selectAllFeature.setComp(this)},i.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i),i.key===Pe.SPACE&&this.selectAllFeature.onSpaceKeyPressed(i),i.key===Pe.ENTER&&this.onEnterKeyPressed(i)},i.prototype.onEnterKeyPressed=function(t){var i=this.comp.getUserCompInstance();i&&(t.ctrlKey||t.metaKey?this.menuEnabled&&i.showMenu&&(t.preventDefault(),i.showMenu()):this.sortable&&this.sortController.progressSort(this.column,t.shiftKey,"uiColumnSorted"))},i.prototype.isMenuEnabled=function(){return this.menuEnabled},i.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var i=this.getRowIndex();this.focusService.setFocusedHeader(i,this.column)}this.setActiveHeader(!0)},i.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},i.prototype.setupTooltip=function(){var t=this,i=this.createManagedBean(new Du({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}},this.beans));i.setComp(this.comp),this.refreshFunctions.push((function(){return i.refreshToolTip()}))},i.prototype.setupClassesFromColDef=function(){var t=this,i=function(){var i=t.column.getColDef(),n=oc.getHeaderClassesFromColDef(i,t.gridOptionsWrapper,t.column,null),e=t.userHeaderClasses;t.userHeaderClasses=new Set(n),n.forEach((function(i){e.has(i)?e.delete(i):t.comp.addOrRemoveCssClass(i,!0)})),e.forEach((function(i){return t.comp.addOrRemoveCssClass(i,!1)}))};this.refreshFunctions.push(i),i()},i.prototype.setDragSource=function(t){var i=this;if(this.dragSourceElement=t,this.removeDragSource(),t&&this.draggable){var n=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:zo.HeaderCell,eElement:t,defaultIconName:n?ns.ICON_HIDE:ns.ICON_NOT_ALLOWED,getDragItem:function(){return i.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return i.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(t){var e,r;if(n){var o=(null===(r=null===(e=t)||void 0===e?void 0:e.columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(o,!0,"uiColumnMoved")}},onGridExit:function(t){var e,r;if(n){var o=(null===(r=null===(e=t)||void 0===e?void 0:e.columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(o,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},i.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},i.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},i.prototype.onColDefChanged=function(){this.refresh()},i.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()},i.prototype.addRefreshFunction=function(t){this.refreshFunctions.push(t)},i.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(t){return t()}))},i.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)},i.prototype.attemptHeaderCompRefresh=function(t){var i=this.comp.getUserCompInstance();return!!i&&!!i.refresh&&i.refresh(t)},i.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},i.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},i.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!(this.gridOptionsWrapper.isSuppressMovableColumns()||t.suppressMovable||t.lockPosition)||!!t.enableRowGroup||!!t.enablePivot},i.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},i.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},i.prototype.onColumnValueChanged=function(){this.checkDisplayName()},i.prototype.setupWidth=function(){var t=this,i=function(){t.comp.setWidth(t.column.getActualWidth()+"px")};this.addManagedListener(this.column,nt.EVENT_WIDTH_CHANGED,i),i()},i.prototype.setupMovingCss=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.column.isMoving())};this.addManagedListener(this.column,nt.EVENT_MOVING_CHANGED,i),i()},i.prototype.setupMenuClass=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-column-menu-visible",t.column.isMenuVisible())};this.addManagedListener(this.column,nt.EVENT_MENU_VISIBLE_CHANGED,i),i()},i.prototype.setupSortableClass=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!t.sortable)};i(),this.addRefreshFunction(i),this.addManagedListener(this.column,nt.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},i.prototype.setupWrapTextClass=function(){var t=this,i=function(){var i=!!t.column.getColDef().wrapHeaderText;t.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",i)};i(),this.addRefreshFunction(i)},i.prototype.setupAutoHeight=function(t){var i,n=this,e=function(i){if(n.isAlive()){var r=mn(n.getGui()),o=t.offsetHeight+r.paddingTop+r.paddingBottom;if(i<5){var s=n.beans.gridOptionsWrapper.getDocument();if(!s||!s.contains(t)||0==o)return void n.beans.frameworkOverrides.setTimeout((function(){return e(i+1)}),0)}n.columnModel.setColumnHeaderHeight(n.column,o)}},r=!1,o=function(){var t=n.column.isAutoHeaderHeight();t&&!r&&s(),!t&&r&&u()},s=function(){r=!0,e(0),i=n.resizeObserverService.observeResize(t,(function(){return e(0)}))},u=function(){r=!1,i&&i(),i=void 0};o(),this.addDestroyFunc((function(){return u()})),this.addManagedListener(this.column,nt.EVENT_WIDTH_CHANGED,(function(){return r&&e(0)})),this.addManagedListener(this.column,nt.EVENT_SORT_CHANGED,(function(){r&&n.beans.frameworkOverrides.setTimeout((function(){return e(0)}))})),this.addRefreshFunction(o)},i.prototype.refreshAriaSort=function(){if(this.sortable){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(te(this.column)),this.setAriaDescriptionProperty("sort",t("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},i.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",t("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},i.prototype.setAriaDescriptionProperty=function(t,i){null!=i?this.ariaDescriptionProperties.set(t,i):this.ariaDescriptionProperties.delete(t)},i.prototype.refreshAriaDescription=function(){var t=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(t.length?t.join(" "):void 0)},i.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},i.prototype.addColumnHoverListener=function(){var t=this,i=function(){if(t.gridOptionsWrapper.isColumnHoverHighlight()){var i=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",i)}};this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_HOVER_CHANGED,i),i()},i.prototype.setupFilterCss=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-filtered",t.column.isFilterActive())};this.addManagedListener(this.column,nt.EVENT_FILTER_ACTIVE_CHANGED,i),i()},i.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},i.prototype.addActiveHeaderMouseListeners=function(){var t=this,i=function(i){return t.setActiveHeader("mouseenter"===i.type)};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i)},i.prototype.setActiveHeader=function(t){this.comp.addOrRemoveCssClass("ag-header-active",t)},Bc([W("columnModel")],i.prototype,"columnModel",void 0),Bc([W("columnHoverService")],i.prototype,"columnHoverService",void 0),Bc([W("sortController")],i.prototype,"sortController",void 0),Bc([W("menuFactory")],i.prototype,"menuFactory",void 0),Bc([W("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Bc([W("resizeObserverService")],i.prototype,"resizeObserverService",void 0),Bc([W("gridApi")],i.prototype,"gridApi",void 0),Bc([W("columnApi")],i.prototype,"columnApi",void 0),Bc([H],i.prototype,"removeDragSource",null),i}(bc),Vc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Uc=function(t){function i(i,n,e,r){var o=t.call(this)||this;return o.eResize=n,o.comp=i,o.pinned=e,o.columnGroup=r,o}return Vc(i,t),i.prototype.postConstruct=function(){var t=this;if(this.columnGroup.isResizable()){var i=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(i),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var i=[];t.columnGroup.getDisplayedLeafColumns().forEach((function(t){t.getColDef().suppressAutoSize||i.push(t.getColId())})),i.length>0&&t.columnModel.autoSizeColumns({columns:i,skipHeader:n,stopAtGroup:t.columnGroup,source:"uiColumnResized"}),t.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},i.prototype.onResizeStart=function(t){var i=this;this.calculateInitialValues();var n=null;if(t&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var e=n.getDisplayedLeafColumns();this.resizeTakeFromCols=e.filter((function(t){return t.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(t){return i.resizeTakeFromStartWidth+=t.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(t){return i.resizeTakeFromRatios.push(t.getActualWidth()/i.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},i.prototype.onResizing=function(t,i){var n=this.normaliseDragChange(i);this.resizeColumns(this.resizeStartWidth+n,t)},i.prototype.resizeLeafColumnsToFit=function(){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),t>this.resizeStartWidth&&this.resizeColumns(t,!0)},i.prototype.resizeColumns=function(t,i){void 0===i&&(i=!0);var n=[];n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:t}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-(t-this.resizeStartWidth)}),this.columnModel.resizeColumnSets({resizeSets:n,finished:i,source:"uiColumnDragged"}),i&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},i.prototype.calculateInitialValues=function(){var t=this,i=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=i.filter((function(t){return t.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(i){return t.resizeStartWidth+=i.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(i){return t.resizeRatios.push(i.getActualWidth()/t.resizeStartWidth)}))},i.prototype.normaliseDragChange=function(t){var i=t;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==Q.PINNED_LEFT&&(i*=-1):this.pinned===Q.PINNED_RIGHT&&(i*=-1),i},zc([W("horizontalResizeService")],i.prototype,"horizontalResizeService",void 0),zc([W("autoWidthCalculator")],i.prototype,"autoWidthCalculator",void 0),zc([W("columnModel")],i.prototype,"columnModel",void 0),zc([L],i.prototype,"postConstruct",null),i}(kt),Kc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qc=function(t){function i(i,n){var e=t.call(this)||this;return e.removeChildListenersFuncs=[],e.columnGroup=n,e.comp=i,e}return Kc(i,t),i.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,pt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},i.prototype.addListenersToChildrenColumns=function(){var t=this;this.removeListenersOnChildrenColumns();var i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(nt.EVENT_WIDTH_CHANGED,i),n.addEventListener(nt.EVENT_VISIBLE_CHANGED,i),t.removeChildListenersFuncs.push((function(){n.removeEventListener(nt.EVENT_WIDTH_CHANGED,i),n.removeEventListener(nt.EVENT_VISIBLE_CHANGED,i)}))}))},i.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(t){return t()})),this.removeChildListenersFuncs=[]},i.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},i.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(kt),Yc=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Jc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zc=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.columnGroup=i,e}return Yc(i,t),i.prototype.setComp=function(i,n,e){t.prototype.setGui.call(this,n),this.comp=i,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),o=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new _c(o,n)),this.createManagedBean(new Ac(this.columnGroup,n,this.beans)),this.createManagedBean(new qc(i,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Uc(i,e,r,this.columnGroup)),this.createManagedBean(new yr(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},i.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},i.prototype.setupUserComp=function(){var t=this,i=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(i){t.columnModel.setColumnGroupOpened(t.columnGroup.getProvidedColumnGroup(),i,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!i){for(var e=this.columnGroup,r=e.getLeafColumns();e.getParent()&&e.getParent().getLeafColumns().length===r.length;)e=e.getParent();var o=e.getColGroupDef();o&&(i=o.headerName),i||(i=r?this.columnModel.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(s)},i.prototype.setupTooltip=function(){var t=this,i=this.columnGroup.getColGroupDef(),n={getColumn:function(){return t.columnGroup},getGui:function(){return t.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return i&&i.headerTooltip}};i&&(n.getColDef=function(){return i}),this.createManagedBean(new Du(n,this.beans)).setComp(this.comp)},i.prototype.setupExpandable=function(){var t=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(t,gt.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,gt.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},i.prototype.refreshExpanded=function(){var t=this.columnGroup;this.expandable=t.isExpandable();var i=t.isExpanded();this.comp.setAriaExpanded(this.expandable?i?"true":"false":void 0)},i.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},i.prototype.addClasses=function(){var t=this,i=this.columnGroup.getColGroupDef(),n=oc.getHeaderClassesFromColDef(i,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(i){return t.comp.addOrRemoveCssClass(i,!0)}))},i.prototype.setupMovingCss=function(){var t=this,i=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.columnGroup.isMoving())};i.forEach((function(i){t.addManagedListener(i,nt.EVENT_MOVING_CHANGED,n)})),n()},i.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.columnGroup)}},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i);var n=this.getWrapperHasFocus();if(this.expandable&&n&&i.key===Pe.ENTER){var e=this.columnGroup,r=!e.isExpanded();this.columnModel.setColumnGroupOpened(e.getProvidedColumnGroup(),r,"uiColumnExpanded")}},i.prototype.setDragSource=function(t){var i=this;if(!this.isSuppressMoving()){var n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),e=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),r={type:zo.HeaderCell,eElement:t,defaultIconName:e?ns.ICON_HIDE:ns.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach((function(t){return t.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return n.forEach((function(t){return t.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(t){var n,r;if(e){var o=(null===(r=null===(n=t)||void 0===n?void 0:n.columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(o,!0,"uiColumnMoved")}},onGridExit:function(t){var n,r;if(e){var o=(null===(r=null===(n=t)||void 0===n?void 0:n.columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(o,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return i.dragAndDropService.removeDragSource(r)}))}},i.prototype.getDragItemForGroup=function(){var t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i={};t.forEach((function(t){return i[t.getId()]=t.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(i){t.indexOf(i)>=0&&(n.push(i),ut(t,i))})),t.forEach((function(t){return n.push(t)})),{columns:n,visibleState:i}},i.prototype.isSuppressMoving=function(){var t=!1;return this.columnGroup.getLeafColumns().forEach((function(i){(i.getColDef().suppressMovable||i.getColDef().lockPosition)&&(t=!0)})),t||this.gridOptionsWrapper.isSuppressMovableColumns()},Jc([W("columnModel")],i.prototype,"columnModel",void 0),Jc([W("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Jc([W("gridApi")],i.prototype,"gridApi",void 0),Jc([W("columnApi")],i.prototype,"columnApi",void 0),i}(bc),$c=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xc=0,ta=function(t){function i(i,n,e){var r=t.call(this)||this;return r.instanceId=Xc++,r.headerCellCtrls={},r.rowIndex=i,r.pinned=n,r.type=e,r}return $c(i,t),i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.setComp=function(t){this.comp=t,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),pi()&&this.comp.setTransform("translateZ(0)"),t.setAriaRowIndex(this.rowIndex+1)},i.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},i.prototype.getHeaderCellCtrl=function(t){return u(this.headerCellCtrls).find((function(i){return i.getColumnGroupChild()===t}))},i.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},i.prototype.getType=function(){return this.type},i.prototype.onColumnResized=function(){this.setWidth()},i.prototype.setWidth=function(){var t=this.getWidthForRow();this.comp.setWidth(t+"px")},i.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(Q.PINNED_RIGHT)+this.columnModel.getContainerWidth(Q.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},i.prototype.onRowHeightChanged=function(){var t=this.columnModel.getHeaderRowCount(),i=[],n=0;this.columnModel.hasFloatingFilters()&&(t++,n=1);for(var e=this.columnModel.getColumnGroupHeaderRowHeight(),r=this.columnModel.getColumnHeaderRowHeight(),o=t-(1+n),s=0;s<o;s++)i.push(e);for(i.push(r),s=0;s<n;s++)i.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var u=0;for(s=0;s<this.rowIndex;s++)u+=i[s];var h=i[this.rowIndex]+"px";this.comp.setTop(u+"px"),this.comp.setHeight(h)},i.prototype.getPinned=function(){return this.pinned},i.prototype.getRowIndex=function(){return this.rowIndex},i.prototype.onVirtualColumnsChanged=function(){var t=this,i=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(n){if(!n.isEmptyGroup()){var e=n.getUniqueId(),r=i[e];if(delete i[e],r&&r.getColumnGroupChild()!=n&&(t.destroyBean(r),r=void 0),null==r)switch(t.type){case Rh.FLOATING_FILTER:r=t.createBean(new Mc(n,t));break;case Rh.COLUMN_GROUP:r=t.createBean(new Zc(n,t));break;default:r=t.createBean(new Wc(n,t))}t.headerCellCtrls[e]=r}})),a(i,(function(i,n){var e;t.focusService.isHeaderWrapperFocused(e=n)&&t.columnModel.isDisplayed(e.getColumnGroupChild())?t.headerCellCtrls[i]=n:t.destroyBean(n)}));var n=m(this.headerCellCtrls);this.comp.setHeaderCtrls(n)},i.prototype.destroyCtrls=function(){var t=this;a(this.headerCellCtrls,(function(i,n){t.destroyBean(n)})),this.headerCellCtrls={}},i.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},i.prototype.getColumnsInViewportPrintLayout=function(){var t=this;if(null!=this.pinned)return[];var i=[],n=this.getActualDepth();return[Q.PINNED_LEFT,null,Q.PINNED_RIGHT].forEach((function(e){var r=t.columnModel.getVirtualHeaderGroupRow(e,n);i=i.concat(r)})),i},i.prototype.getActualDepth=function(){return this.type==Rh.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},i.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},i.prototype.focusHeader=function(t,i){var n=m(this.headerCellCtrls).find((function(i){return i.getColumnGroupChild()==t}));return!!n&&(n.focus(i),!0)},Qc([W("columnModel")],i.prototype,"columnModel",void 0),Qc([W("focusService")],i.prototype,"focusService",void 0),Qc([H],i.prototype,"destroyCtrls",null),i}(kt),ia=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),na=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ea=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},ra=function(t){function i(i){var n=t.call(this)||this;return n.groupsRowCtrls=[],n.pinned=i,n}return ia(i,t),i.prototype.setComp=function(t,i){this.comp=t,this.eViewport=i,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,Tt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},i.prototype.setupDragAndDrop=function(t){var i=new ec(this.pinned,t);this.createManagedBean(i)},i.prototype.refresh=function(t){var i=this;void 0===t&&(t=!1);var n,e=new Je,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var t=i.columnModel.getHeaderRowCount()-1;i.groupsRowCtrls=i.destroyBeans(i.groupsRowCtrls);for(var n=0;n<t;n++){var r=i.createBean(new ta(e.next(),i.pinned,Rh.COLUMN_GROUP));i.groupsRowCtrls.push(r)}}(),n=e.next(),(null==i.columnsRowCtrl||!t||i.columnsRowCtrl.getRowIndex()!==n)&&(i.destroyBean(i.columnsRowCtrl),i.columnsRowCtrl=i.createBean(new ta(n,i.pinned,Rh.COLUMN))),function(){var n=function(){i.filtersRowCtrl=i.destroyBean(i.filtersRowCtrl)};if(i.columnModel.hasFloatingFilters()){var r=e.next();if(i.filtersRowCtrl){var o=i.filtersRowCtrl.getRowIndex()!==r;t&&!o||n()}i.filtersRowCtrl||(i.filtersRowCtrl=i.createBean(new ta(r,i.pinned,Rh.FLOATING_FILTER)))}else n()}();var o=this.getAllCtrls();this.comp.setCtrls(o),this.restoreFocusOnHeader(r)},i.prototype.restoreFocusOnHeader=function(t){null!=t&&t.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:t})},i.prototype.getAllCtrls=function(){var t=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(ea(arguments[i]));return t}(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&t.push(this.filtersRowCtrl),t},i.prototype.onGridColumnsChanged=function(){this.refresh(!0)},i.prototype.setupCenterWidth=function(){var t=this;null==this.pinned&&this.createManagedBean(new wh((function(i){return t.comp.setCenterWidth(i+"px")})))},i.prototype.setHorizontalScroll=function(t){this.comp.setContainerTransform("translateX("+t+"px)")},i.prototype.resetScrollLeft=function(){this.eViewport.scrollLeft=0},i.prototype.setupPinnedWidth=function(){var t=this;if(null!=this.pinned){var i=this.pinned===Q.PINNED_LEFT,n=this.pinned===Q.PINNED_RIGHT,e=function(){var e=i?t.pinnedWidthService.getPinnedLeftWidth():t.pinnedWidthService.getPinnedRightWidth();if(null!=e){var r=0==e,o=t.gridOptionsWrapper.isEnableRtl(),s=t.gridOptionsWrapper.getScrollbarWidth(),u=t.scrollVisibleService.isVerticalScrollShowing()&&(o&&i||!o&&n);t.comp.setPinnedContainerWidth((u?e+s:e)+"px"),t.comp.addOrRemoveCssClass("ag-hidden",r)}};this.addManagedListener(this.eventService,Tt.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Tt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Tt.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,Tt.EVENT_SCROLLBAR_WIDTH_CHANGED,e)}},i.prototype.getHeaderCtrlForColumn=function(t){if(t instanceof nt){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(t)}if(0!==this.groupsRowCtrls.length)for(var i=0;i<this.groupsRowCtrls.length;i++){var n=this.groupsRowCtrls[i].getHeaderCellCtrl(t);if(n)return n}},i.prototype.getHtmlElementForColumnHeader=function(t){var i=this.getHeaderCtrlForColumn(t);return i?i.getGui():null},i.prototype.getRowType=function(t){var i=this.getAllCtrls()[t];return i?i.getType():void 0},i.prototype.focusHeader=function(t,i,n){var e=this.getAllCtrls()[t];return!!e&&e.focusHeader(i,n)},i.prototype.getRowCount=function(){return this.getAllCtrls().length},na([W("ctrlsService")],i.prototype,"ctrlsService",void 0),na([W("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),na([W("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),na([W("columnModel")],i.prototype,"columnModel",void 0),na([W("focusService")],i.prototype,"focusService",void 0),i}(kt),oa=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ua=function(t){function i(i){var n=t.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=i,n}return oa(i,t),i.prototype.init=function(){var t=this;this.selectAndSetTemplate();var i={addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setCtrls:function(i){return t.setCtrls(i)},setCenterWidth:function(i){return t.eCenterContainer.style.width=i},setContainerTransform:function(i){return t.eCenterContainer.style.transform=i},setPinnedContainerWidth:function(i){var n=t.getGui();n.style.width=i,n.style.maxWidth=i,n.style.minWidth=i}};this.createManagedBean(new ra(this.pinned)).setComp(i,this.getGui())},i.prototype.selectAndSetTemplate=function(){this.setTemplate(this.pinned==Q.PINNED_LEFT?i.PINNED_LEFT_TEMPLATE:this.pinned==Q.PINNED_RIGHT?i.PINNED_RIGHT_TEMPLATE:i.CENTER_TEMPLATE),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},i.prototype.destroyRowComps=function(){this.setCtrls([])},i.prototype.destroyRowComp=function(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())},i.prototype.setCtrls=function(t){var i,n=this,e=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],t.forEach((function(t){var r=t.getInstanceId(),o=e[r];delete e[r];var s=o||n.createBean(new pc(t));n.headerRowComps[r]=s,n.rowCompsList.push(s),function(t){var e=t.getGui();e.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(e),i&&Mn(n.eRowContainer,e,i),i=e}(s)})),m(e).forEach((function(t){return n.destroyRowComp(t)}))},i.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',i.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',i.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',sa([ur("eCenterContainer")],i.prototype,"eCenterContainer",void 0),sa([L],i.prototype,"init",null),sa([H],i.prototype,"destroyRowComps",null),i}(sr),ha=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ca=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
253
- /**
254
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
255
- * @version v28.2.0
256
- * @link https://www.ag-grid.com/
257
- * @license MIT
258
- */!function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(Rc||(Rc={}));var aa=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ha(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCon=i.gridBodyCtrl}))},i.prototype.getHeaderRowCount=function(){var t=this.ctrlsService.getHeaderRowContainerCtrl();return t?t.getRowCount():0},i.prototype.getHeaderRowType=function(t){var i=this.ctrlsService.getHeaderRowContainerCtrl();if(i)return i.getRowType(t)},i.prototype.navigateVertically=function(t,i,n){if(i||(i=this.focusService.getFocusedHeader()),!i)return!1;var e=i.headerRowIndex,r=i.column,o=this.getHeaderRowCount(),s=t===Rc.UP,u=s?e-1:e+1,h=null,c=!1;u<0&&(u=0,h=r,c=!0),u>=o&&(u=-1);var a=this.getHeaderRowType(e);if(!c){if(a===Rh.COLUMN_GROUP){var f=r;h=s?r.getParent():f.getDisplayedChildren()[0]}else a===Rh.FLOATING_FILTER?h=r:(f=r,h=s?f.getParent():f);if(!h)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u,column:h},allowUserOverride:!0,event:n})},i.prototype.navigateHorizontally=function(t,i,n){void 0===i&&(i=!1);var e,r,o=this.focusService.getFocusedHeader(),s=t===Rc.LEFT,u=this.gridOptionsWrapper.isEnableRtl();return(e=this.headerPositionUtils.findHeader(o,r=s!==u?"Before":"After"))||!i?this.focusService.focusHeaderPosition({headerPosition:e,direction:r,fromTab:i,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(o,r,n)},i.prototype.focusNextHeaderRow=function(t,i,n){var e=t.headerRowIndex,r=null;return"Before"===i?e>0&&(r=this.headerPositionUtils.findColAtEdgeForHeaderRow(e-1,"end")):r=this.headerPositionUtils.findColAtEdgeForHeaderRow(e+1,"start"),this.focusService.focusHeaderPosition({headerPosition:r,direction:i,fromTab:!0,allowUserOverride:!0,event:n})},i.prototype.scrollToColumn=function(t,i){if(void 0===i&&(i="After"),!t.getPinned()){var n;if(t instanceof pt){var e=t.getDisplayedLeafColumns();n="Before"===i?rt(e):e[0]}else n=t;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n)}},ca([W("focusService")],i.prototype,"focusService",void 0),ca([W("headerPositionUtils")],i.prototype,"headerPositionUtils",void 0),ca([W("animationFrameService")],i.prototype,"animationFrameService",void 0),ca([W("ctrlsService")],i.prototype,"ctrlsService",void 0),ca([L],i.prototype,"postConstruct",null),ca([B("headerNavigationService")],i)}(kt),fa=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),la=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},da=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return fa(n,t),n.prototype.setComp=function(t,i,n){this.comp=t,this.eGui=i,this.createManagedBean(new yr(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},n.prototype.setupHeaderHeight=function(){var t=this.setHeaderHeight.bind(this);t(),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_PIVOT_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_GROUP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_PIVOT_GROUP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_FLOATING_FILTERS_HEIGHT,t),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,t)},n.prototype.getHeaderHeight=function(){return this.headerHeight},n.prototype.setHeaderHeight=function(){var t,i=this.columnModel,n=this.gridOptionsWrapper,e=0,r=i.getHeaderRowCount();i.hasFloatingFilters()&&(r++,e=1);var o=this.columnModel.getColumnGroupHeaderRowHeight(),s=this.columnModel.getColumnHeaderRowHeight(),u=r-(1+e);t=e*n.getFloatingFiltersHeight(),t+=u*o,this.headerHeight!==(t+=s)&&(this.headerHeight=t,this.comp.setHeightAndMinHeight(t+1+"px"),this.eventService.dispatchEvent({type:Tt.EVENT_HEADER_HEIGHT_CHANGED}))},n.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)},n.prototype.onTabKeyDown=function(t){var i=this.gridOptionsWrapper.isEnableRtl();(this.headerNavigationService.navigateHorizontally(t.shiftKey!==i?Rc.LEFT:Rc.RIGHT,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},n.prototype.handleKeyDown=function(t){var n=null;switch(t.key){case Pe.LEFT:n=Rc.LEFT;case Pe.RIGHT:i(n)||(n=Rc.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,t);break;case Pe.UP:n=Rc.UP;case Pe.DOWN:i(n)||(n=Rc.DOWN),this.headerNavigationService.navigateVertically(n,null,t)&&t.preventDefault();break;default:return}},n.prototype.onFocusOut=function(t){var i=this.gridOptionsWrapper.getDocument(),n=t.relatedTarget;!n&&this.eGui.contains(i.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},la([W("headerNavigationService")],n.prototype,"headerNavigationService",void 0),la([W("focusService")],n.prototype,"focusService",void 0),la([W("columnModel")],n.prototype,"columnModel",void 0),la([W("ctrlsService")],n.prototype,"ctrlsService",void 0),n}(kt),va=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pa=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return va(i,t),i.prototype.postConstruct=function(){var t=this,i={addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setHeightAndMinHeight:function(i){t.getGui().style.height=i,t.getGui().style.minHeight=i}};this.createManagedBean(new da).setComp(i,this.getGui(),this.getFocusableElement());var n=function(i){t.createManagedBean(i),t.appendChild(i)};n(new ua(Q.PINNED_LEFT)),n(new ua(null)),n(new ua(Q.PINNED_RIGHT))},i.TEMPLATE='<div class="ag-header" role="presentation"/>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(sr),ga=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ma=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wa=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ga(i,t),i.prototype.addResizeBar=function(t){var i=this,n={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)};return this.dragService.addDragSource(n,!0),function(){return i.dragService.removeDragSource(n)}},i.prototype.onDragStart=function(t,i){this.dragStartX=i.clientX,this.setResizeIcons();var n=i instanceof MouseEvent&&!0===i.shiftKey;t.onResizeStart(n)},i.prototype.setResizeIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!0),t.disableUserSelect(!0)},i.prototype.onDragStop=function(t){t.onResizeEnd(this.resizeAmount),this.resetIcons()},i.prototype.resetIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!1),t.disableUserSelect(!1)},i.prototype.onDragging=function(t,i){this.resizeAmount=i.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},ma([W("dragService")],i.prototype,"dragService",void 0),ma([W("ctrlsService")],i.prototype,"ctrlsService",void 0),ma([B("horizontalResizeService")],i)}(kt),ba=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ya=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ca=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ba(i,t),i.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},i.prototype.showMenuAfterMouseEvent=function(t,i){var n=this;this.showPopup(t,(function(e){n.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:i,ePopup:e})}),i.target)},i.prototype.showMenuAfterButtonClick=function(t,i,n){var e=this;this.showPopup(t,(function(r){e.popupService.positionPopupUnderComponent({type:n,eventSource:i,ePopup:r,keepWithinBounds:!0,column:t})}),i)},i.prototype.showPopup=function(t,i,n){var e=this,r=this.filterManager.getOrCreateFilterWrapper(t,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var o,s=document.createElement("div");Xn(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(t){return e.trapFocusWithin(t,s)})),r.guiPromise.then((function(t){return s.appendChild(t)}));var u=n||this.ctrlsService.getGridBodyCtrl().getGui(),h=this.gridOptionsWrapper.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(i){t.setMenuVisible(!1,"contextMenu");var r=i instanceof KeyboardEvent;if(e.tabListener&&(e.tabListener=e.tabListener()),r&&n&&Gn(n)){var o=e.focusService.findTabbableParent(n);o&&o.focus()}},positionCallback:function(){return i(s)},anchorToElement:u,ariaLabel:h("ariaLabelColumnMenu","Column Menu")});c&&(this.hidePopup=o=c.hideFunc),r.filterPromise.then((function(t){i(s),t.afterGuiAttached&&t.afterGuiAttached({container:"columnMenu",hidePopup:o})})),t.setMenuVisible(!0,"contextMenu")},i.prototype.trapFocusWithin=function(t,i){t.key!==Pe.TAB||t.defaultPrevented||this.focusService.findNextFocusableElement(i,!1,t.shiftKey)||(t.preventDefault(),this.focusService.focusInto(i,t.shiftKey))},i.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()},ya([W("filterManager")],i.prototype,"filterManager",void 0),ya([W("popupService")],i.prototype,"popupService",void 0),ya([W("focusService")],i.prototype,"focusService",void 0),ya([W("ctrlsService")],i.prototype,"ctrlsService",void 0),ya([B("menuFactory")],i)}(kt),Ra=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Sa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
259
- /**
260
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
261
- * @version v28.2.0
262
- * @link https://www.ag-grid.com/
263
- * @license MIT
264
- */!function(t){function i(n){var e=t.call(this,i.getTemplate(n.cssClass))||this;return e.items=[],e.tabbedItemScrollMap=new Map,e.params=n,n.items&&n.items.forEach((function(t){return e.addItem(t)})),e}Ra(i,t),i.prototype.postConstruct=function(){this.createManagedBean(new yr(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},i.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>'},i.prototype.handleKeyDown=function(t){var i=this.gridOptionsWrapper.getDocument();switch(t.key){case Pe.RIGHT:case Pe.LEFT:if(!this.eHeader.contains(i.activeElement))return;var n=t.key===Pe.RIGHT,e=this.gridOptionsWrapper.isEnableRtl(),r=this.items.indexOf(this.activeItem),o=n!==e?Math.min(r+1,this.items.length-1):Math.max(r-1,0);if(r===o)return;t.preventDefault();var s=this.items[o];this.showItemWrapper(s),s.eHeaderButton.focus();break;case Pe.UP:case Pe.DOWN:t.stopPropagation()}},i.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var i=this,n=i.focusService,e=i.eHeader,r=i.eBody,o=i.activeItem,s=this.gridOptionsWrapper.getDocument().activeElement;if(t.preventDefault(),e.contains(s))n.focusInto(r,t.shiftKey);else if(n.isFocusUnderManagedComponent(r))o.eHeaderButton.focus();else{var u=n.findNextFocusableElement(r,!1,t.shiftKey);u?u.focus():o.eHeaderButton.focus()}}},i.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},i.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},i.prototype.addItem=function(t){var i=document.createElement("span");Xn(i,"tab"),i.setAttribute("tabIndex","-1"),i.appendChild(t.title),i.classList.add("ag-tab"),this.eHeader.appendChild(i),ee(i,t.titleLabel);var n={tabbedItem:t,eHeaderButton:i};this.items.push(n),i.addEventListener("click",this.showItemWrapper.bind(this,n))},i.prototype.showItem=function(t){var i=this.items.find((function(i){return i.tabbedItem===t}));i&&this.showItemWrapper(i)},i.prototype.showItemWrapper=function(t){var i=this,n=t.tabbedItem,e=t.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==t?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),An(this.eBody),n.bodyPromise.then((function(t){i.eBody.appendChild(t);var e=!i.focusService.isKeyboardMode();if(i.focusService.focusInto(i.eBody,!1,e),n.afterAttachedCallback&&n.afterAttachedCallback(i.afterAttachedParams),i.params.keepScrollPosition){var r=n.getScrollableContainer&&n.getScrollableContainer()||t;i.lastScrollListener=i.addManagedListener(r,"scroll",(function(){i.tabbedItemScrollMap.set(n.name,r.scrollTop)}));var o=i.tabbedItemScrollMap.get(n.name);void 0!==o&&setTimeout((function(){r.scrollTop=o}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),e.classList.add("ag-tab-selected"),this.activeItem=t):I(this.params.onActiveItemClicked)},Sa([W("focusService")],i.prototype,"focusService",void 0),Sa([ur("eHeader")],i.prototype,"eHeader",void 0),Sa([ur("eBody")],i.prototype,"eBody",void 0),Sa([L],i.prototype,"postConstruct",null)}(sr);
265
- /**
266
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
267
- * @version v28.2.0
268
- * @link https://www.ag-grid.com/
269
- * @license MIT
270
- */
271
- var Oa,Aa=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ja=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.polyfillFunctions=[],i}return Aa(i,t),i.prototype.observeResize=function(t,i){var n,e,r,o,s,u=this,h=this.gridOptionsWrapper.getDocument().defaultView||window,c=k(i,50),a=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return h.ResizeObserver&&!a?((n=new h.ResizeObserver(c)).observe(t),function(){return n.disconnect()}):(e=Fn(t),r=xn(t),o=!0,(s=function(){if(o){var n=Fn(t),h=xn(t);(n!==e||h!==r)&&(e=n,r=h,i()),u.doNextPolyfillTurn(s)}})(),function(){return o=!1})},i.prototype.doNextPolyfillTurn=function(t){this.polyfillFunctions.push(t),this.schedulePolyfill()},i.prototype.schedulePolyfill=function(){var t=this;this.polyfillScheduled||(this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var i=t.polyfillFunctions;t.polyfillScheduled=!1,t.polyfillFunctions=[],i.forEach((function(t){return t()}))}),50))},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("resizeObserverService")],i)}(kt),Ga=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_a=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},xa=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.createTasksP1={list:[],sorted:!1},i.createTasksP2={list:[],sorted:!1},i.destroyTasks=[],i.ticking=!1,i.scrollGoingDown=!0,i.lastScrollTop=0,i.taskCount=0,i.cancelledTasks=new Set,i}return Ga(i,t),i.prototype.setScrollTop=function(t){this.scrollGoingDown=t>this.lastScrollTop,this.lastScrollTop=t},i.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},i.prototype.isOn=function(){return this.useAnimationFrame},i.prototype.verifyAnimationFrameOn=function(t){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+t+" called but animation frames are off")},i.prototype.createTask=function(t,i,n){this.verifyAnimationFrameOn(n);var e={task:t,index:i,createOrder:++this.taskCount};this.addTaskToList(this[n],e),this.schedule()},i.prototype.cancelTask=function(t){this.cancelledTasks.add(t)},i.prototype.addTaskToList=function(t,i){t.list.push(i),t.sorted=!1},i.prototype.sortTaskList=function(t){if(!t.sorted){var i=this.scrollGoingDown?1:-1;t.list.sort((function(t,n){return t.index!==n.index?i*(n.index-t.index):n.createOrder-t.createOrder})),t.sorted=!0}},i.prototype.addDestroyTask=function(t){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(t),this.schedule()},i.prototype.executeFrame=function(t){this.verifyAnimationFrameOn("executeFrame");for(var i=this.createTasksP1,n=i.list,e=this.createTasksP2,r=e.list,o=this.destroyTasks,s=(new Date).getTime(),u=(new Date).getTime()-s,h=t<=0,c=this.ctrlsService.getGridBodyCtrl();h||u<t;){if(!c.getScrollFeature().executeAnimationFrameScroll()){var a=void 0;if(n.length)this.sortTaskList(i),a=n.pop().task;else if(r.length)this.sortTaskList(e),a=r.pop().task;else{if(!o.length){this.cancelledTasks.clear();break}a=o.pop()}this.cancelledTasks.has(a)||a()}u=(new Date).getTime()-s}n.length||r.length||o.length?this.requestFrame():this.stopTicking()},i.prototype.stopTicking=function(){this.ticking=!1},i.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},i.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},i.prototype.requestFrame=function(){var t=this.executeFrame.bind(this,60),i=this.gridOptionsWrapper.getDocument().defaultView||window;i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)},i.prototype.isQueueEmpty=function(){return!this.ticking},i.prototype.debounce=function(t){var i=this,n=!1;return function(){i.isOn()?n||(n=!0,i.addDestroyTask((function(){n=!1,t()}))):i.getFrameworkOverrides().setTimeout(t,0)}},_a([W("ctrlsService")],i.prototype,"ctrlsService",void 0),_a([L],i.prototype,"init",null),_a([B("animationFrameService")],i)}(kt),Fa=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ma=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ka=function(t){function i(i,n){var e=t.call(this)||this;return e.element=i,e.dragStartPosition={x:0,y:0},e.position={x:0,y:0},e.lastSize={width:-1,height:-1},e.positioned=!1,e.resizersAdded=!1,e.resizeListeners=[],e.boundaryEl=null,e.isResizing=!1,e.isMoving=!1,e.resizable={},e.movable=!1,e.currentResizer=null,e.config=Object.assign({},{popup:!1},n),e}return Fa(i,t),i.prototype.center=function(){var t=this.offsetParent,i=t.clientHeight,n=t.clientWidth/2-this.getWidth()/2,e=i/2-this.getHeight()/2;this.offsetElement(n,e)},i.prototype.initialisePosition=function(){var t=this.config,i=t.centered,n=t.forcePopupParentAsOffsetParent,e=t.minWidth,r=t.width,o=t.minHeight,s=t.height,u=t.x,h=t.y;this.offsetParent||this.setOffsetParent();var c=0,a=0,f=!!this.element.offsetParent;if(f){var l=this.findBoundaryElement(),d=window.getComputedStyle(l);if(null!=d.minWidth){var v=l.offsetWidth-this.element.offsetWidth;a=parseInt(d.minWidth,10)-v}if(null!=d.minHeight){var p=l.offsetHeight-this.element.offsetHeight;c=parseInt(d.minHeight,10)-p}}if(this.minHeight=o||c,this.minWidth=e||a,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),i)this.center();else if(u||h)this.offsetElement(u,h);else if(f&&n&&this.boundaryEl){var g=parseFloat(this.boundaryEl.style.top),m=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(m)?0:m,isNaN(g)?0:g)}this.positioned=!!this.offsetParent},i.prototype.isPositioned=function(){return this.positioned},i.prototype.getPosition=function(){return this.position},i.prototype.setMovable=function(t,i){if(this.config.popup&&t!==this.movable){this.movable=t;var n=this.moveElementDragListener||{eElement:i,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},i.prototype.setResizable=function(t){var i=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(n){var e=!!t[n],r=i.getResizerElement(n),o={dragStartPixels:0,eElement:r,onDragStart:function(t){return i.onResizeStart(t,n)},onDragging:i.onResize.bind(i),onDragStop:function(t){return i.onResizeEnd(t,n)}};!!i.resizable[n]===e&&(i.isAlive()||e)||(e?(i.dragService.addDragSource(o),i.resizeListeners.push(o),r.style.pointerEvents="all"):r.style.pointerEvents="none")}))},i.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},i.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var t=this.lastSize,i=t.height,n=t.width;-1!==n&&(this.element.style.width=n+"px"),-1!==i&&(this.element.style.height=i+"px")},i.prototype.getHeight=function(){return this.element.offsetHeight},i.prototype.setHeight=function(t){var i=this.config.popup,n=this.element,e=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Ln(n,t),t=yn(n),e=!0;else if(this.positioned){var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect();t=Math.max(this.minHeight,t);var s=this.offsetParent.clientHeight,u=i?this.position.y:r.top;s&&t+u>s+(i?0:o.top)&&(t=s-u)}this.getHeight()!==t&&(e?(n.style.maxHeight="unset",n.style.minHeight="unset"):i?Ln(n,t):(n.style.height=t+"px",n.style.flex="0 0 auto",this.lastSize.height="number"==typeof t?t:parseFloat(t)))},i.prototype.getWidth=function(){return this.element.offsetWidth},i.prototype.setWidth=function(t){var i=this.element,n=this.config.popup,e=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Nn(i,t),t=Cn(i),e=!0;else if(this.positioned){t=Math.max(this.minWidth,t);var r=this.offsetParent.clientWidth,o=n?this.position.x:this.element.getBoundingClientRect().left;r&&t+o>r&&(t=r-o)}this.getWidth()!==t&&(e?(i.style.maxWidth="unset",i.style.minWidth="unset"):this.config.popup?Nn(i,t):(i.style.width=t+"px",i.style.flex=" unset",this.lastSize.width="number"==typeof t?t:parseFloat(t)))},i.prototype.offsetElement=function(t,i){void 0===t&&(t=0),void 0===i&&(i=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,x:t,y:i,keepWithinBounds:!0}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},i.prototype.setPosition=function(t,i){this.position.x=t,this.position.y=i},i.prototype.updateDragStartPosition=function(t,i){this.dragStartPosition={x:t,y:i}},i.prototype.calculateMouseMovement=function(t){var i=t.e,n=t.isTop,e=t.topBuffer,r=i.clientX-this.dragStartPosition.x,o=i.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(i,!!t.isLeft,!!t.anywhereWithin,r)?0:r,movementY:this.shouldSkipY(i,!!n,e,o)?0:o}},i.prototype.shouldSkipX=function(t,i,n,e){var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.x:r.left,h=u<=0&&o.left>=t.clientX||o.right<=t.clientX&&o.right<=s.right;return!!h||(i?e<0&&t.clientX>u+o.left||e>0&&t.clientX<u+o.left:n?e<0&&t.clientX>s.right||e>0&&t.clientX<u+o.left:e<0&&t.clientX>s.right||e>0&&t.clientX<s.right)},i.prototype.shouldSkipY=function(t,i,n,e){void 0===n&&(n=0);var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.y:r.top,h=u<=0&&o.top>=t.clientY||o.bottom<=t.clientY&&o.bottom<=s.bottom;return!!h||(i?e<0&&t.clientY>u+o.top+n||e>0&&t.clientY<u+o.top:e<0&&t.clientY>s.bottom||e>0&&t.clientY<s.bottom)},i.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]")}}},i.prototype.addResizers=function(){if(!this.resizersAdded){var t=this.element;if(t){var i=(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(i.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},i.prototype.removeResizers=function(){this.resizerMap=void 0;var t=this.element.querySelector(".ag-resizer-wrapper");t&&this.element.removeChild(t),this.resizersAdded=!1},i.prototype.getResizerElement=function(t){return this.resizerMap[t].element},i.prototype.onResizeStart=function(t,i){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!i.match(/top/i),isRight:!!i.match(/right/i),isBottom:!!i.match(/bottom/i),isLeft:!!i.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[i].element.classList.add("ag-active");var n=this.config;n.popup||n.forcePopupParentAsOffsetParent||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(t.clientX,t.clientY)},i.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},i.prototype.getMinSizeOfSiblings=function(){for(var t=this.getSiblings()||[],i=0,n=0,e=0;e<t.length;e++){var r=t[e];if(r!==this.element){var o=this.minHeight||0,s=this.minWidth||0;if(r.style.flex&&"0 0 auto"!==r.style.flex){var u=window.getComputedStyle(r);u.minHeight&&(o=parseInt(u.minHeight,10)),u.minWidth&&(s=parseInt(u.minWidth,10))}else o=r.offsetHeight,s=r.offsetWidth;i+=o,n+=s}}return{height:i,width:n}},i.prototype.applySizeToSiblings=function(t){var i=null,n=this.getSiblings();if(n){for(var e=0;e<n.length;e++){var r=n[e];r!==i&&(t?r.style.height=r.offsetHeight+"px":r.style.width=r.offsetWidth+"px",r.style.flex="0 0 auto",r===this.element&&(i=n[e+1]))}i&&(i.style.removeProperty("height"),i.style.removeProperty("min-height"),i.style.removeProperty("max-height"),i.style.flex="1 1 auto")}},i.prototype.onResize=function(t){if(this.isResizing&&this.currentResizer){var i=this.config,n=i.popup,e=i.forcePopupParentAsOffsetParent,r=this.currentResizer,o=r.isTop,s=r.isLeft,u=r.isRight||s,h=r.isBottom||o,c=this.calculateMouseMovement({e:t,isLeft:s,isTop:o}),a=c.movementX,f=c.movementY,l=this.position.x,d=this.position.y,v=0,p=0;if(u&&a){var g=s?-1:1,m=this.getWidth(),w=m+a*g,b=!1;s&&(l+(v=m-w)<=0||w<=this.minWidth)&&(b=!0,v=0),b||this.setWidth(w)}if(h&&f){g=o?-1:1;var y=this.getHeight(),C=y+f*g,R=!1;o?(d+(p=y-C)<=0||C<=this.minHeight)&&(R=!0,p=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&y<C&&this.getMinSizeOfSiblings().height+C>this.element.parentElement.offsetHeight&&(R=!0),R||this.setHeight(C)}this.updateDragStartPosition(t.clientX,t.clientY),((n||e)&&v||p)&&this.offsetElement(l+v,d+p)}},i.prototype.onResizeEnd=function(t,i){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[i].element.classList.remove("ag-active"),this.dispatchEvent(n)},i.prototype.refreshSize=function(){var t=this.element;this.config.popup&&(this.config.width||this.setWidth(t.offsetWidth),this.config.height||this.setHeight(t.offsetHeight))},i.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)},i.prototype.onMove=function(t){if(this.isMoving){var i,n=this.position,e=n.x,r=n.y;this.config.calculateTopBuffer&&(i=this.config.calculateTopBuffer());var o=this.calculateMouseMovement({e:t,isTop:!0,anywhereWithin:!0,topBuffer:i});this.offsetElement(e+o.movementX,r+o.movementY),this.updateDragStartPosition(t.clientX,t.clientY)}},i.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},i.prototype.setOffsetParent=function(){this.offsetParent=this.config.forcePopupParentAsOffsetParent?this.popupService.getPopupParent():this.element.offsetParent},i.prototype.findBoundaryElement=function(){for(var t=this.element;t;){if("static"!==window.getComputedStyle(t).position)return t;t=t.parentElement}return this.element},i.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var t=this.resizeListeners.pop();this.dragService.removeDragSource(t)}},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},Ma([W("popupService")],i.prototype,"popupService",void 0),Ma([W("dragService")],i.prototype,"dragService",void 0),i}(kt),Da=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ia=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Da(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.centerRowContainerCtrl=i.centerRowContainerCtrl}))},i.prototype.getPreferredWidthForColumn=function(t,i){var n=this.getHeaderCellForColumn(t);if(!n)return-1;var e=this.rowRenderer.getAllCellsForColumn(t);return i||e.push(n),this.addElementsToContainerAndGetWidth(e)},i.prototype.getPreferredWidthForColumnGroup=function(t){var i=this.getHeaderCellForColumn(t);return i?this.addElementsToContainerAndGetWidth([i]):-1},i.prototype.addElementsToContainerAndGetWidth=function(t){var i=this,n=document.createElement("span");n.style.position="fixed";var e=this.centerRowContainerCtrl.getContainerElement();e.appendChild(n),t.forEach((function(t){return i.cloneItemIntoDummy(t,n)}));var r=n.offsetWidth;return e.removeChild(n),r+this.gridOptionsWrapper.getAutoSizePadding()},i.prototype.getHeaderCellForColumn=function(t){var i=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(n){var e=n.getHtmlElementForColumnHeader(t);null!=e&&(i=e)})),i},i.prototype.cloneItemIntoDummy=function(t,i){var n=t.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var e=document.createElement("div"),r=e.classList;["ag-header-cell","ag-header-group-cell"].some((function(t){return n.classList.contains(t)}))?(r.add("ag-header","ag-header-row"),e.style.position="static"):r.add("ag-row");for(var o=t.parentElement;o;){if(["ag-header-row","ag-row"].some((function(t){return o.classList.contains(t)}))){for(var s=0;s<o.classList.length;s++){var u=o.classList[s];"ag-row-position-absolute"!=u&&r.add(u)}break}o=o.parentElement}e.appendChild(n),i.appendChild(e)},Pa([W("rowRenderer")],i.prototype,"rowRenderer",void 0),Pa([W("ctrlsService")],i.prototype,"ctrlsService",void 0),Pa([W("rowCssClassCalculator")],i.prototype,"rowCssClassCalculator",void 0),Pa([L],i.prototype,"postConstruct",null),Pa([B("autoWidthCalculator")],i)}(kt),Ta=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ea=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Na=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},La=function(t){function i(i,n){var e=t.call(this)||this;return e.createRowCon=i,e.destroyRowCtrls=n,e.stickyRowCtrls=[],e.containerHeight=0,e}return Ta(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCtrl=i.gridBodyCtrl}))},i.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},i.prototype.checkStickyRows=function(){var t=0;if(this.gridOptionsWrapper.isGroupRowsSticky()){for(var i=[],n=this.rowRenderer.getFirstVisibleVerticalPixel(),e=function(e){i.push(e);for(var r=e;r.expanded;)r=rt(r.childrenAfterSort);var o=r.rowTop+r.rowHeight,s=n+t+e.rowHeight;e.stickyRowTop=o<s?t+(o-s):t,t=0,i.forEach((function(i){var n=i.stickyRowTop+i.rowHeight;t<n&&(t=n)}))};;){var r=n+t,o=this.rowModel.getRowIndexAtPixel(r),s=this.rowModel.getRow(o);if(null==s)break;if(s.level<0)break;for(var u=[],h=s.parent;h.level>=0;)u.push(h),h=h.parent;var c=u.reverse().find((function(t){return i.indexOf(t)<0&&t.displayed}));if(c)e(c);else{if(!(s.group&&s.expanded&&!s.footer&&s.rowTop<r))break;e(s)}}this.refreshNodesAndContainerHeight(i,t)}else this.refreshNodesAndContainerHeight([],t)},i.prototype.refreshNodesAndContainerHeight=function(t,i){var n,e,r,o=this,s=this.stickyRowCtrls.filter((function(i){return-1===t.indexOf(i.getRowNode())})),u=t.filter((function(t){return-1===o.stickyRowCtrls.findIndex((function(i){return i.getRowNode()===t}))})),h={};s.forEach((function(t){h[t.getRowNode().id]=t,o.stickyRowCtrls=o.stickyRowCtrls.filter((function(i){return i!==t}))}));try{for(var c=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(h)),a=c.next();!a.done;a=c.next())a.value.getRowNode().sticky=!1}catch(t){n={error:t}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(n)throw n.error}}this.destroyRowCtrls(h,!1);var f=u.map((function(t){return t.sticky=!0,o.createRowCon(t,!1,!1)}));(r=this.stickyRowCtrls).push.apply(r,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Na(arguments[i]));return t}(f)),this.stickyRowCtrls.forEach((function(t){return t.setRowTop(t.getRowNode().stickyRowTop)})),this.stickyRowCtrls.sort((function(t,i){return i.getRowNode().rowIndex-t.getRowNode().rowIndex})),this.containerHeight!==i&&(this.containerHeight=i,this.gridBodyCtrl.setStickyTopHeight(i))},Ea([W("rowModel")],i.prototype,"rowModel",void 0),Ea([W("rowRenderer")],i.prototype,"rowRenderer",void 0),Ea([W("ctrlsService")],i.prototype,"ctrlsService",void 0),Ea([L],i.prototype,"postConstruct",null),i}(kt),Ha=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ba=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wa=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Va=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Wa(arguments[i]));return t},za=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.destroyFuncsForColumnListeners=[],i.rowCtrlsByRowIndex={},i.zombieRowCtrls={},i.allRowCtrls=[],i.topRowCtrls=[],i.bottomRowCtrls=[],i.refreshInProgress=!1,i.dataFirstRenderedFired=!1,i}return Ha(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.initialise()}))},e.prototype.initialise=function(){this.addManagedListener(this.eventService,Tt.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.gridOptionsWrapper.isGroupRowsSticky()&&(this.rowModel.getType()!=Q.ROW_MODEL_TYPE_CLIENT_SIDE?O((function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model")}),"rowRenderer.stickyWorksWithCsrmOnly"):this.gridOptionsWrapper.isTreeData()?O((function(){return console.warn("AG Grid: The feature Sticky Row Groups does not work with Tree Data.")}),"rowRenderer.stickyDoesNotWorkWithTreeData"):this.stickyRowFeature=this.createManagedBean(new La(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},e.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var t=this.gridOptionsWrapper.getKeepDetailRowsCount();this.cachedRowCtrls=new Ua(null!=t?t:3)}},e.prototype.getRowCtrls=function(){return this.allRowCtrls},e.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},e.prototype.updateAllRowCtrls=function(){var t=m(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&t.sort((function(t,i){return t.getRowNode().rowIndex-i.getRowNode.rowIndex}));var i=m(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=Va(t,i,n)},e.prototype.registerCellEventListeners=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_CELL_FOCUSED,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onCellFocused(i)})),t.getFullWidthRowCtrls().forEach((function(t){t.onFullWidthRowFocused(i)}))})),this.addManagedListener(this.eventService,Tt.EVENT_FLASH_CELLS,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onFlashCells(i)}))})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_HOVER_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onColumnHover()}))})),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){t.printLayout&&t.getAllCellCtrls().forEach((function(t){return t.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Tt.EVENT_RANGE_SELECTION_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_MOVED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PINNED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_VISIBLE,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Tt.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},e.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(t){return t()})),this.destroyFuncsForColumnListeners.length=0},e.prototype.refreshListenersToColumnsForCellComps=function(){var t=this;this.removeGridColumnListeners();var i=this.columnModel.getAllGridColumns();i&&i.forEach((function(i){var n=function(n){t.getAllCellCtrls().forEach((function(t){t.getColumn()===i&&n(t)}))},e=function(){n((function(t){return t.onLeftChanged()}))},r=function(){n((function(t){return t.onWidthChanged()}))},o=function(){n((function(t){return t.onFirstRightPinnedChanged()}))},s=function(){n((function(t){return t.onLastLeftPinnedChanged()}))},u=function(){n((function(t){return t.onColDefChanged()}))};i.addEventListener(nt.EVENT_LEFT_CHANGED,e),i.addEventListener(nt.EVENT_WIDTH_CHANGED,r),i.addEventListener(nt.EVENT_FIRST_RIGHT_PINNED_CHANGED,o),i.addEventListener(nt.EVENT_LAST_LEFT_PINNED_CHANGED,s),i.addEventListener(nt.EVENT_COL_DEF_CHANGED,u),t.destroyFuncsForColumnListeners.push((function(){i.removeEventListener(nt.EVENT_LEFT_CHANGED,e),i.removeEventListener(nt.EVENT_WIDTH_CHANGED,r),i.removeEventListener(nt.EVENT_FIRST_RIGHT_PINNED_CHANGED,o),i.removeEventListener(nt.EVENT_LAST_LEFT_PINNED_CHANGED,s),i.removeEventListener(nt.EVENT_COL_DEF_CHANGED,u)}))}))},e.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_PRINT,i=t||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=i!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t,this.embedFullWidthRows=i,n&&this.redrawAfterModelUpdate()},e.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},e.prototype.onPageLoaded=function(t){this.redrawAfterModelUpdate({recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:!0})},e.prototype.getAllCellsForColumn=function(t){var i=[];return this.getAllRowCtrls().forEach((function(n){var e=n.getCellElement(t);e&&i.push(e)})),i},e.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},e.prototype.getTopRowCtrls=function(){return this.topRowCtrls},e.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},e.prototype.refreshFloatingRows=function(t,i){var n=this;t.forEach((function(t){t.destroyFirstPass(),t.destroySecondPass()})),t.length=0,i&&i.forEach((function(i){var e=new $u(i,n.beans,!1,!1,n.printLayout);t.push(e)}))},e.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},e.prototype.getRenderedIndexesForRowNodes=function(t){var i=[];return n(t)||a(this.rowCtrlsByRowIndex,(function(n,e){var r=e.getRowNode();t.indexOf(r)>=0&&i.push(n)})),i},e.prototype.redrawRows=function(t){var i=null!=t&&t.length>0;if(i){var n=this.getRenderedIndexesForRowNodes(t);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:i})},e.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var i,n=(null===(i=t)||void 0===i?void 0:i.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==n)return null;var e=this.gridOptionsWrapper.getDocument().activeElement,r=this.gridOptionsWrapper.getDomData(e,Uu.DOM_DATA_KEY_CELL_CTRL),o=this.gridOptionsWrapper.getDomData(e,$u.DOM_DATA_KEY_ROW_CTRL);return r||o?n:null},e.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var i=this.getCellToRestoreFocusToAfterRefresh(t);this.updateContainerHeights(),this.scrollToTopIfNewData(t);var n=!this.printLayout&&!!t.recycleRows,e=t.animate&&this.gridOptionsWrapper.isAnimateRows(),r=n?this.recycleRows():null;n||this.removeAllRowComps();var o=function(){if(null==i||null==r)return!1;var t=!1;return a(r,(function(n,e){var r=e.getRowNode();r.rowIndex==i.rowIndex&&r.rowPinned==i.rowPinned&&(t=!0)})),t}();this.redraw(r,e),this.gridBodyCtrl.updateRowCount(),t.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),o||this.restoreFocusedCell(i),this.releaseLockOnRefresh()},e.prototype.scrollToTopIfNewData=function(t){var i=t.newData||t.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();i&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},e.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.rowContainerHeightService.setModelHeight(t)}},e.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},e.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},e.prototype.isRefreshInProgress=function(){return this.refreshInProgress},e.prototype.restoreFocusedCell=function(t){t&&this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})},e.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.getAllRowCtrls().forEach((function(i){i.stopEditing(t)}))},e.prototype.getAllCellCtrls=function(){var t=[];return this.getAllRowCtrls().forEach((function(i){return t=t.concat(i.getAllCellCtrls())})),t},e.prototype.getAllRowCtrls=function(){var t=this,i=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],n=Va(this.topRowCtrls,this.bottomRowCtrls,i);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(i){return n.push(t.rowCtrlsByRowIndex[i])})),n},e.prototype.addRenderedRowListener=function(t,i,n){var e=this.rowCtrlsByRowIndex[i];e&&e.addEventListener(t,n)},e.prototype.flashCells=function(t){void 0===t&&(t={});var i=t.flashDelay,n=t.fadeDelay;this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){return t.flashCell({flashDelay:i,fadeDelay:n})}))},e.prototype.refreshCells=function(t){void 0===t&&(t={});var i={forceRefresh:t.force,newData:!1,suppressFlash:t.suppressFlash};this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){if(t.refreshShouldDestroy()){var n=t.getRowCtrl();n&&n.refreshCell(t)}else t.refreshCell(i)})),this.getFullWidthRowCtrls(t.rowNodes).forEach((function(t){t.refreshFullWidth()}))},e.prototype.getCellRendererInstances=function(t){return this.getCellCtrls(t.rowNodes,t.columns).map((function(t){return t.getCellRenderer()})).filter((function(t){return null!=t}))},e.prototype.getCellEditorInstances=function(t){var i=[];return this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){var n=t.getCellEditor();n&&i.push(n)})),i},e.prototype.getEditingCells=function(){var t=[];return this.getAllCellCtrls().forEach((function(i){if(i.isEditing()){var n=i.getCellPosition();t.push(n)}})),t},e.prototype.mapRowNodes=function(t){if(t){var i={top:{},bottom:{},normal:{}};return t.forEach((function(t){var n=t.id;t.rowPinned===Q.PINNED_TOP?i.top[n]=t:t.rowPinned===Q.PINNED_BOTTOM?i.bottom[n]=t:i.normal[n]=t})),i}},e.prototype.isRowInMap=function(t,i){var n=t.id,e=t.rowPinned;return e===Q.PINNED_BOTTOM?null!=i.bottom[n]:e===Q.PINNED_TOP?null!=i.top[n]:null!=i.normal[n]},e.prototype.getCellCtrls=function(t,n){var e,r=this,o=this.mapRowNodes(t),s=[];i(n)&&(e={},n.forEach((function(t){var n=r.columnModel.getGridColumn(t);i(n)&&(e[n.getId()]=!0)})));var u=function(t){var i=t.getRowNode();(null==o||r.isRowInMap(i,o))&&t.getAllCellCtrls().forEach((function(t){var i=t.getColumn().getId();e&&!e[i]||s.push(t)}))};return a(this.rowCtrlsByRowIndex,(function(t,i){u(i)})),this.topRowCtrls&&this.topRowCtrls.forEach(u),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(u),s},e.prototype.destroy=function(){this.removeAllRowComps(),t.prototype.destroy.call(this)},e.prototype.removeAllRowComps=function(){var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},e.prototype.recycleRows=function(){var t=[];a(this.rowCtrlsByRowIndex,(function(i,n){null==n.getRowNode().id&&t.push(i)})),this.removeRowCtrls(t);var i={};return a(this.rowCtrlsByRowIndex,(function(t,n){var e=n.getRowNode();i[e.id]=n})),this.rowCtrlsByRowIndex={},i},e.prototype.removeRowCtrls=function(t){var i=this;t.forEach((function(t){var n=i.rowCtrlsByRowIndex[t];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete i.rowCtrlsByRowIndex[t]}))},e.prototype.redrawAfterScroll=function(){var t;if(this.stickyRowFeature&&yi()&&(t=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=t){var i=this.getCellToRestoreFocusToAfterRefresh();null!=t&&null==i&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(t))}},e.prototype.removeRowCompsNotToDraw=function(t){var i={};t.forEach((function(t){return i[t]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(t){return!i[t]}));this.removeRowCtrls(n)},e.prototype.calculateIndexesToDraw=function(t){var i=this,n=Ti(this.firstRenderedRow,this.lastRenderedRow),e=function(t,e){var r=e.getRowNode().rowIndex;null!=r&&(r<i.firstRenderedRow||r>i.lastRenderedRow)&&i.doNotUnVirtualiseRow(e)&&n.push(r)};return a(this.rowCtrlsByRowIndex,e),a(t,e),n.sort((function(t,i){return t-i})),n=n.filter((function(t){var n=i.paginationProxy.getRow(t);return n&&!n.sticky}))},e.prototype.redraw=function(t,n,e){var r=this;void 0===n&&(n=!1),void 0===e&&(e=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var o=this.calculateIndexesToDraw(t);this.removeRowCompsNotToDraw(o),this.printLayout&&(n=!1),o.forEach((function(o){i(r.createOrUpdateRowCtrl(o,t,n,e))})),t&&(!e||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowCtrls(t,n):this.beans.animationFrameService.addDestroyTask((function(){r.destroyRowCtrls(t,n),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()}))),this.updateAllRowCtrls()},e.prototype.dispatchDisplayedRowsChanged=function(){this.eventService.dispatchEvent({type:Tt.EVENT_DISPLAYED_ROWS_CHANGED})},e.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.isPinningLeft(),i=this.columnModel.isPinningRight();(this.pinningLeft!==t||i!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=i,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},e.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];this.getFullWidthRowCtrls().forEach((function(i){var n=i.getRowNode().rowIndex;t.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(t),this.redrawAfterScroll()},e.prototype.getFullWidthRowCtrls=function(t){var i=this,n=this.mapRowNodes(t);return m(this.rowCtrlsByRowIndex).filter((function(t){if(!t.isFullWidth())return!1;var e=t.getRowNode();return!(null!=n&&!i.isRowInMap(e,n))}))},e.prototype.refreshFullWidthRows=function(t){var i=[],n=!!t,e=n?{}:void 0;n&&e&&t.forEach((function(t){return e[t.id]=!0})),this.getFullWidthRowCtrls().forEach((function(t){var r=t.getRowNode();if((!n||!e||e[r.id]||e[r.level>0&&r.parent?r.parent.id:void 0])&&!t.refreshFullWidth()){var o=t.getRowNode().rowIndex;i.push(o.toString())}})),this.removeRowCtrls(i),this.redrawAfterScroll()},e.prototype.createOrUpdateRowCtrl=function(t,n,e,r){var o,s=this.rowCtrlsByRowIndex[t];if(s||i(o=this.paginationProxy.getRow(t))&&i(n)&&n[o.id]&&o.alreadyRendered&&(s=n[o.id],n[o.id]=null),!s){if(o||(o=this.paginationProxy.getRow(t)),!i(o))return;s=this.createRowCon(o,e,r)}return o&&(o.alreadyRendered=!0),this.rowCtrlsByRowIndex[t]=s,s},e.prototype.destroyRowCtrls=function(t,i){var n=this,e=[];a(t,(function(t,r){r&&(n.cachedRowCtrls&&r.isCacheable()?n.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),i?(n.zombieRowCtrls[r.getInstanceId()]=r,e.push((function(){r.destroySecondPass(),delete n.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),i&&(e.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),G(e))},e.prototype.workOutFirstAndLastRowsToRender=function(){var t,i;if(this.paginationProxy.isRowsToRender())if(this.printLayout)t=this.paginationProxy.getPageFirstRow(),i=this.paginationProxy.getPageLastRow();else{var n=this.gridOptionsWrapper.getRowBufferInPixels(),e=this.ctrlsService.getGridBodyCtrl(),r=this.gridOptionsWrapper.isSuppressRowVirtualisation(),o=!1,s=void 0,u=void 0;do{var h=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),a=c.pageFirstPixel,f=c.pageLastPixel,l=this.rowContainerHeightService.getDivStretchOffset(),d=e.getScrollFeature().getVScrollPosition(),v=d.top,p=d.bottom;r?(s=a+l,u=f+l):(s=Math.max(v+h-n,a)+l,u=Math.min(p+h+n,f)+l),this.firstVisibleVPixel=Math.max(v+h,a)+l,o=this.ensureAllRowsInRangeHaveHeightsCalculated(s,u)}while(o);var g=this.paginationProxy.getRowIndexAtPixel(s),m=this.paginationProxy.getRowIndexAtPixel(u),w=this.paginationProxy.getPageFirstRow(),b=this.paginationProxy.getPageLastRow();g<w&&(g=w),m>b&&(m=b),t=g,i=m}else t=0,i=-1;var y=this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_NORMAL,C=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),R=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);y&&!C&&i-t>R&&(i=t+R),(t!==this.firstRenderedRow||i!==this.lastRenderedRow)&&(this.firstRenderedRow=t,this.lastRenderedRow=i,this.eventService.dispatchEvent({type:Tt.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:i}))},e.prototype.dispatchFirstDataRenderedEvent=function(){var t=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var i={type:Tt.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((function(){t.beans.eventService.dispatchEvent(i)}))}},e.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,i){var n=this.paginationProxy.ensureRowHeightsValid(t,i,-1,-1);return n&&this.updateContainerHeights(),n},e.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},e.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},e.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},e.prototype.doNotUnVirtualiseRow=function(t){var i=t.getRowNode(),n=this.focusService.isRowNodeFocused(i),e=t.isEditing();return!!(n||e||i.detail)&&!!this.paginationProxy.isRowPresent(i)},e.prototype.createRowCon=function(t,i,n){var e=this.cachedRowCtrls?this.cachedRowCtrls.getRow(t):null;if(e)return e;var r=this.gridOptionsWrapper.isSuppressAnimationFrame();return new $u(t,this.beans,i,n&&!r&&!this.printLayout,this.printLayout)},e.prototype.getRenderedNodes=function(){var t=this.rowCtrlsByRowIndex;return Object.keys(t).map((function(i){return t[i].getRowNode()}))},e.prototype.getRowByPosition=function(t){var i,n=t.rowIndex;switch(t.rowPinned){case Q.PINNED_TOP:i=this.topRowCtrls[n];break;case Q.PINNED_BOTTOM:i=this.bottomRowCtrls[n];break;default:(i=this.rowCtrlsByRowIndex[n])||(i=this.getStickyTopRowCtrls().find((function(t){return t.getRowNode().rowIndex===n}))||null)}return i},e.prototype.getRowNode=function(t){switch(t.rowPinned){case Q.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case Q.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},e.prototype.isRangeInRenderedViewport=function(t,i){return!(null==t||null==i||i<this.firstRenderedRow||t>this.lastRenderedRow)},Ba([W("animationFrameService")],e.prototype,"animationFrameService",void 0),Ba([W("paginationProxy")],e.prototype,"paginationProxy",void 0),Ba([W("columnModel")],e.prototype,"columnModel",void 0),Ba([W("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Ba([W("rowModel")],e.prototype,"rowModel",void 0),Ba([W("focusService")],e.prototype,"focusService",void 0),Ba([W("beans")],e.prototype,"beans",void 0),Ba([W("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Ba([W("ctrlsService")],e.prototype,"ctrlsService",void 0),Ba([L],e.prototype,"postConstruct",null),Ba([B("rowRenderer")],e)}(kt),Ua=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 i=this.entriesList[0];i.destroyFirstPass(),i.destroySecondPass(),this.removeFromCache(i)}},t.prototype.getRow=function(t){if(null==t||null==t.id)return null;var i=this.entriesMap[t.id];return i?(this.removeFromCache(i),i.setCached(!1),i.getRowNode()!=t?null:i):null},t.prototype.removeFromCache=function(t){var i=t.getRowNode().id;delete this.entriesMap[i],ut(this.entriesList,t)},t.prototype.getEntries=function(){return this.entriesList},t}(),Ka=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ya=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ka(i,t),i.prototype.formatValue=function(t,i,n,e,r){void 0===r&&(r=!0);var o,s=null,u=t.getColDef();if(e?o=e:r&&(o=i&&i.rowPinned&&u.pinnedRowValueFormatter?u.pinnedRowValueFormatter:u.valueFormatter),o){var h={value:n,node:i,data:i?i.data:null,colDef:u,column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=this.expressionService.evaluate(o,h)}else if(u.refData)return u.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},qa([W("expressionService")],i.prototype,"expressionService",void 0),qa([B("valueFormatterService")],i)}(kt),Ja=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Za=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$a=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ja(i,t),i.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},i.prototype.isEmpty=function(t){return e(t===Q.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},i.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},i.prototype.getRowAtPixel=function(t,i){var n=i===Q.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(e(n))return 0;for(var r=0;r<n.length;r++){var o=n[r];if(o.rowTop+o.rowHeight-1>=t)return r}return n.length-1},i.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0),this.eventService.dispatchEvent({type:Tt.EVENT_PINNED_ROW_DATA_CHANGED})},i.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1),this.eventService.dispatchEvent({type:Tt.EVENT_PINNED_ROW_DATA_CHANGED})},i.prototype.createNodesFromData=function(t,i){var n=this,e=[];if(t){var r=0;t.forEach((function(t,o){var s=new qo(n.beans);s.data=t,s.id=(i?qo.ID_PREFIX_TOP_PINNED:qo.ID_PREFIX_BOTTOM_PINNED)+o,s.rowPinned=i?Q.PINNED_TOP:Q.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(o),r+=s.rowHeight,e.push(s)}))}return e},i.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},i.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},i.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},i.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},i.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},i.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},i.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},i.prototype.forEachPinnedTopRow=function(t){e(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},i.prototype.forEachPinnedBottomRow=function(t){e(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},i.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},i.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var i=rt(t);return i.rowTop+i.rowHeight},Za([W("beans")],i.prototype,"beans",void 0),Za([L],i.prototype,"init",null),Za([B("pinnedRowModel")],i)}(kt);!function(t){t.Applied="Applied",t.StoreNotFound="StoreNotFound",t.StoreLoading="StoreLoading",t.StoreWaitingToLoad="StoreWaitingToLoad",t.StoreLoadingFailed="StoreLoadingFailed",t.StoreWrongType="StoreWrongType",t.Cancelled="Cancelled"}(Oa||(Oa={}));
272
- /**
273
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
274
- * @version v28.2.0
275
- * @link https://www.ag-grid.com/
276
- * @license MIT
277
- */
278
- var Qa,Xa=function(){function t(t,i){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:i,children:null},this.mapToItems[i.id]=this.pathRoot}return t.prototype.setInactive=function(){this.active=!1},t.prototype.isActive=function(){return this.active},t.prototype.depthFirstSearchChangedPath=function(t,i){if(t.children)for(var n=0;n<t.children.length;n++)this.depthFirstSearchChangedPath(t.children[n],i);i(t.rowNode)},t.prototype.depthFirstSearchEverything=function(t,i,n){if(t.childrenAfterGroup)for(var e=0;e<t.childrenAfterGroup.length;e++){var r=t.childrenAfterGroup[e];r.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[e],i,n):n&&i(r)}i(t)},t.prototype.forEachChangedNodeDepthFirst=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,i)},t.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},t.prototype.createPathItems=function(t){for(var i=t,n=0;!this.mapToItems[i.id];)this.mapToItems[i.id]={rowNode:i,children:null},n++,i=i.parent;return n},t.prototype.populateColumnsMap=function(t,i){var n=this;if(this.keepingColumns&&i)for(var e=t;e;)this.nodeIdsToColumns[e.id]||(this.nodeIdsToColumns[e.id]={}),i.forEach((function(t){return n.nodeIdsToColumns[e.id][t.getId()]=!0})),e=e.parent},t.prototype.linkPathItems=function(t,i){for(var n=t,e=0;e<i;e++){var r=this.mapToItems[n.id],o=this.mapToItems[n.parent.id];o.children||(o.children=[]),o.children.push(r),n=n.parent}},t.prototype.addParentNode=function(t,i){if(t&&!t.isRowPinned()){var n=this.createPathItems(t);this.linkPathItems(t,n),this.populateColumnsMap(t,i)}},t.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},t.prototype.getValueColumnsForNode=function(t,i){if(!this.keepingColumns)return i;var n=this.nodeIdsToColumns[t.id];return i.filter((function(t){return n[t.getId()]}))},t.prototype.getNotValueColumnsForNode=function(t,i){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[t.id];return i.filter((function(t){return!n[t.getId()]}))},t}(),tf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nf=function(t){function i(n){var e=t.call(this)||this;return e.state=i.STATE_WAITING_TO_LOAD,e.version=0,e.id=n,e}return tf(i,t),i.prototype.getId=function(){return this.id},i.prototype.load=function(){this.state=i.STATE_LOADING,this.loadFromDatasource()},i.prototype.getVersion=function(){return this.version},i.prototype.setStateWaitingToLoad=function(){this.version++,this.state=i.STATE_WAITING_TO_LOAD},i.prototype.getState=function(){return this.state},i.prototype.pageLoadFailed=function(t){this.isRequestMostRecentAndLive(t)&&(this.state=i.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},i.prototype.success=function(t,i){this.successCommon(t,i)},i.prototype.pageLoaded=function(t,i,n){this.successCommon(t,{rowData:i,rowCount:n})},i.prototype.isRequestMostRecentAndLive=function(t){var i=t===this.version,n=this.isAlive();return i&&n},i.prototype.successCommon=function(t,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(t)&&(this.state=i.STATE_LOADED,this.processServerResult(n))},i.prototype.dispatchLoadCompleted=function(t){void 0===t&&(t=!0),this.dispatchEvent({type:i.EVENT_LOAD_COMPLETE,success:t,block:this})},i.EVENT_LOAD_COMPLETE="loadComplete",i.STATE_WAITING_TO_LOAD="needsLoading",i.STATE_LOADING="loading",i.STATE_LOADED="loaded",i.STATE_FAILED="failed",i}(kt),ef=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},of=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.activeBlockLoadsCount=0,i.blocks=[],i.active=!0,i}var n,e;return ef(i,t),n=i,i.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();t&&t>0&&(this.checkBlockToLoadDebounce=Ye.debounce(this.performCheckBlocksToLoad.bind(this),t))},i.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},i.prototype.addBlock=function(t){this.blocks.push(t),t.addEventListener(nf.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},i.prototype.removeBlock=function(t){Ye.removeFromArray(this.blocks,t)},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},i.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},i.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},i.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=void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0,i=this.blocks.filter((function(t){return t.getState()===nf.STATE_WAITING_TO_LOAD})).slice(0,t);this.activeBlockLoadsCount+=i.length,i.forEach((function(t){return t.load()})),this.printCacheStatus()}},i.prototype.getBlockState=function(){var t={};return this.blocks.forEach((function(i){var n=i.getBlockStateJson();t[n.id]=n.state})),t},i.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},i.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},i.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",rf([L],i.prototype,"postConstruct",null),rf([(0,e=U("loggerFactory"),function(t,i){e(t,i,0)})],i.prototype,"setBeans",null),n=rf([B("rowNodeBlockLoader")],i)}(kt),sf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),uf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hf=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.currentPage=0,i.topDisplayedRowIndex=0,i.bottomDisplayedRowIndex=0,i.pixelOffset=0,i.masterRowCount=0,i}return sf(e,t),e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,Tt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},e.prototype.ensureRowHeightsValid=function(t,i){var n=this.rowModel.ensureRowHeightsValid(t,i,this.getPageFirstRow(),this.getPageLastRow());return n&&this.calculatePages(),n},e.prototype.onModelUpdated=function(t){this.calculatePages(),this.eventService.dispatchEvent({type:Tt.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows})},e.prototype.onPaginationPageSizeChanged=function(){this.calculatePages(),this.eventService.dispatchEvent({type:Tt.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0})},e.prototype.goToPage=function(t){this.active&&this.currentPage!==t&&(this.currentPage=t,this.onModelUpdated({type:Tt.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0}))},e.prototype.getPixelOffset=function(){return this.pixelOffset},e.prototype.getRow=function(t){return this.rowModel.getRow(t)},e.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},e.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},e.prototype.getCurrentPageHeight=function(){return n(this.topRowBounds)||n(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},e.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},e.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex},e.prototype.isEmpty=function(){return this.rowModel.isEmpty()},e.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},e.prototype.getNodesInRangeForSelection=function(t,i){return this.rowModel.getNodesInRangeForSelection(t,i)},e.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},e.prototype.getType=function(){return this.rowModel.getType()},e.prototype.getRowBounds=function(t){var i=this.rowModel.getRowBounds(t);return i.rowIndex=t,i},e.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},e.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},e.prototype.getRowCount=function(){return this.rowModel.getRowCount()},e.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},e.prototype.goToPageWithIndex=function(t){if(this.active){var i=this.getPageForIndex(t);this.goToPage(i)}},e.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},e.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},e.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},e.prototype.goToFirstPage=function(){this.goToPage(0)},e.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),i=Math.floor(t/this.pageSize);this.goToPage(i)},e.prototype.getPageSize=function(){return this.pageSize},e.prototype.getTotalPages=function(){return this.totalPages},e.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},e.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(i(this.topRowBounds)?this.topRowBounds.rowTop:0)},e.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:Tt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},e.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},e.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.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Ei(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var i=this.pageSize*(this.currentPage+1)-1;if(i>t&&(i=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(this.pageSize*this.currentPage),i===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(i+1);this.bottomDisplayedRowIndex=n-1}}},e.prototype.getMasterRowCount=function(){return this.masterRowCount},e.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.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Ei(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},e.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},uf([W("rowModel")],e.prototype,"rowModel",void 0),uf([L],e.prototype,"postConstruct",null),uf([B("paginationProxy")],e)}(kt),cf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),af=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ff=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return cf(i,t),i.prototype.processAllCellClasses=function(t,i,n,e){this.processClassRules(t.cellClassRules,i,n,e),this.processStaticCellClasses(t,i,n)},i.prototype.processClassRules=function(t,i,n,e){if(null!=t){for(var r=Object.keys(t),o={},s={},u=function(n){var e,u=r[n],c=t[u];"string"==typeof c?e=h.expressionService.evaluate(c,i):"function"==typeof c&&(e=c(i)),u.split(" ").forEach((function(t){null!=t&&""!=t.trim()&&(e?o[t]=!0:s[t]=!0)}))},h=this,c=0;c<r.length;c++)u(c);e&&Object.keys(s).forEach(e),Object.keys(o).forEach(n)}},i.prototype.getStaticCellClasses=function(t,i){var n,e=t.cellClass;return e?("string"==typeof(n="function"==typeof e?e(i):e)&&(n=[n]),n||[]):[]},i.prototype.processStaticCellClasses=function(t,i,n){this.getStaticCellClasses(t,i).forEach((function(t){n(t)}))},af([W("expressionService")],i.prototype,"expressionService",void 0),af([B("stylingService")],i)}(kt),lf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),df=function(t){function i(i){return t.call(this,i,"ag-radio-button","radio")||this}return lf(i,t),i.prototype.isSelected=function(){return this.eInput.checked},i.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},i.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Tt.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},i.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)},i}(Tc),vf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pf=function(t){function i(i){return t.call(this,i,"ag-toggle-button")||this}return vf(i,t),i.prototype.setValue=function(i,n){return t.prototype.setValue.call(this,i,n),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},i}(Tc),gf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mf=function(t){function n(i,n,e){return void 0===n&&(n="ag-text-field"),void 0===e&&(e="text"),t.call(this,i,n,e)||this}return gf(n,t),n.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},n.prototype.setValue=function(n,e){var r=t.prototype.setValue.call(this,n,e);return this.eInput.value!==n&&(this.eInput.value=i(n)?n:""),r},n.prototype.preventDisallowedCharacters=function(){var t=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(i){i.key&&!t.test(i.key)&&i.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(i){var n,e=null===(n=i.clipboardData)||void 0===n?void 0:n.getData("text");e&&e.split("").some((function(i){return!t.test(i)}))&&i.preventDefault()}))},n}(Nr),wf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bf=function(t){function i(i){return t.call(this,i,"ag-text-area",null,"textarea")||this}return wf(i,t),i.prototype.setValue=function(i,n){var e=t.prototype.setValue.call(this,i,n);return this.eInput.value=i,e},i.prototype.setCols=function(t){return this.eInput.cols=t,this},i.prototype.setRows=function(t){return this.eInput.rows=t,this},i}(Nr),yf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cf=function(t){function i(i){return t.call(this,i,"ag-number-field","number")||this}return yf(i,t),i.prototype.postConstruct=function(){var i=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(i.eInput.value),n=isNaN(t)?"":i.normalizeValue(t.toString());i.value!==n&&i.setValue(n)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},i.prototype.onWheel=function(t){document.activeElement===this.eInput&&t.preventDefault()},i.prototype.normalizeValue=function(t){if(""===t)return"";this.precision&&(t=this.adjustPrecision(t));var i=parseFloat(t);return null!=this.min&&i<this.min?t=this.min.toString():null!=this.max&&i>this.max&&(t=this.max.toString()),t},i.prototype.adjustPrecision=function(t){if(this.precision){var i=parseFloat(t).toFixed(this.precision);t=parseFloat(i).toString()}return t},i.prototype.setMin=function(t){return this.min===t||(this.min=t,Kn(this.eInput,"min",t)),this},i.prototype.setMax=function(t){return this.max===t||(this.max=t,Kn(this.eInput,"max",t)),this},i.prototype.setPrecision=function(t){return this.precision=t,this},i.prototype.setStep=function(t){return this.step===t||(this.step=t,Kn(this.eInput,"step",t)),this},i.prototype.setValue=function(i,n){return(i=this.adjustPrecision(i))!=this.normalizeValue(i)?this:t.prototype.setValue.call(this,i,n)},i}(mf),Rf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Sf=function(t){function i(i){return t.call(this,i,"ag-range-field","range")||this}return Rf(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var i=this.config,n=i.min,e=i.max,r=i.step;null!=n&&this.setMinValue(n),null!=e&&this.setMaxValue(e),this.setStep(r||1)},i.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(i){t.setValue(i.target.value)}))},i.prototype.setMinValue=function(t){return this.min=t,this.eInput.setAttribute("min",t.toString()),this},i.prototype.setMaxValue=function(t){return this.max=t,this.eInput.setAttribute("max",t.toString()),this},i.prototype.setStep=function(t){return this.eInput.setAttribute("step",t.toString()),this},i.prototype.setValue=function(i,n){null!=this.min&&(i=Math.max(parseFloat(i),this.min).toString()),null!=this.max&&(i=Math.min(parseFloat(i),this.max).toString());var e=t.prototype.setValue.call(this,i,n);return this.eInput.value=i,e},i}(Nr),Of=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Af=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jf=function(t){function i(n){var e=t.call(this,n,i.TEMPLATE)||this;return e.labelAlignment="top",e}return Of(i,t),i.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},i.prototype.onValueChange=function(t){var i=this,n=Gr.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(i.eText.getValue());i.eSlider.setValue(n.toString(),!0),t(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=i.eSlider.getValue();i.eText.setValue(n,!0),t(parseFloat(n))})),this},i.prototype.setSliderWidth=function(t){return this.eSlider.setWidth(t),this},i.prototype.setTextFieldWidth=function(t){return this.eText.setWidth(t),this},i.prototype.setMinValue=function(t){return this.eSlider.setMinValue(t),this.eText.setMin(t),this},i.prototype.setMaxValue=function(t){return this.eSlider.setMaxValue(t),this.eText.setMax(t),this},i.prototype.getValue=function(){return this.eText.getValue()},i.prototype.setValue=function(t){return this.getValue()===t||(this.eText.setValue(t,!0),this.eSlider.setValue(t,!0),this.dispatchEvent({type:Gr.EVENT_CHANGED})),this},i.prototype.setStep=function(t){return this.eSlider.setStep(t),this.eText.setStep(t),this},i.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>',Af([ur("eLabel")],i.prototype,"eLabel",void 0),Af([ur("eSlider")],i.prototype,"eSlider",void 0),Af([ur("eText")],i.prototype,"eText",void 0),Af([L],i.prototype,"init",null),i}(Ar),Gf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_f=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},xf=function(t){function n(i){var e=t.call(this,i,n.TEMPLATE)||this;return e.radius=0,e.offsetX=0,e.offsetY=0,e}return Gf(n,t),n.prototype.postConstruct=function(){var n=this;t.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(){n.parentCircleRect=n.eParentCircle.getBoundingClientRect()},onDragging:function(t){return n.calculateAngleDrag(t)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(t){null!=t&&""!==t||(t="0"),t=n.eAngleValue.normalizeValue(t);var i=parseFloat(t);i>180&&(i-=360),n.setValue(i)})),this.updateNumberInput(),i(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,Gr.EVENT_CHANGED,(function(){var t=n.gridOptionsWrapper.getDocument();n.eAngleValue.getInputElement().contains(t.activeElement)||n.updateNumberInput()}))},n.prototype.updateNumberInput=function(){var t=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(t.toString())},n.prototype.positionChildCircle=function(t){var i=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,e=i.height/2;n.style.left=i.width/2+8*Math.cos(t)+"px",n.style.top=e+8*Math.sin(t)+"px"},n.prototype.calculatePolar=function(){var t=this.offsetX,i=this.offsetY,n=Math.atan2(i,t);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(t*t+i*i),this.positionChildCircle(n)},n.prototype.calculateCartesian=function(){var t=this.toRadians(this.getValue()),i=this.getRadius();this.setOffsetX(Math.cos(t)*i).setOffsetY(Math.sin(t)*i)},n.prototype.setOffsetX=function(t){return this.offsetX!==t&&(this.offsetX=t,this.calculatePolar()),this},n.prototype.setOffsetY=function(t){return this.offsetY!==t&&(this.offsetY=t,this.calculatePolar()),this},n.prototype.calculateAngleDrag=function(t){var i=this.parentCircleRect,n=Math.atan2(t.clientY-i.top-i.height/2,t.clientX-i.left-i.width/2);this.setValue(n,!0)},n.prototype.toDegrees=function(t){return t/Math.PI*180},n.prototype.toRadians=function(t){return t/180*Math.PI},n.prototype.normalizeNegativeValue=function(t){return t<0?360+t:t},n.prototype.normalizeAngle180=function(t){return(t%=2*Math.PI)<-Math.PI?t+=2*Math.PI:t>=Math.PI&&(t-=2*Math.PI),t},n.prototype.getRadius=function(){return this.radius},n.prototype.setRadius=function(t){return this.radius===t||(this.radius=t,this.calculateCartesian()),this},n.prototype.onValueChange=function(t){var i=this;return this.addManagedListener(this,Gr.EVENT_CHANGED,(function(){t(i.degrees)})),this},n.prototype.getValue=function(t){return t?this.toRadians(this.degrees):this.degrees},n.prototype.setValue=function(t,i){var n;return n=i?t:this.normalizeAngle180(this.toRadians(t)),t=this.toDegrees(n),this.degrees!==t&&(this.degrees=Math.floor(t),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Gr.EVENT_CHANGED})),this},n.prototype.setWidth=function(t){return Nn(this.getGui(),t),this},n.prototype.setDisabled=function(i){return t.prototype.setDisabled.call(this,i),this.eAngleValue.setDisabled(i),this},n.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),t.prototype.destroy.call(this)},n.TEMPLATE='<div class="ag-angle-select">\n <div ref="eLabel"></div>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',_f([ur("eLabel")],n.prototype,"eLabel",void 0),_f([ur("eParentCircle")],n.prototype,"eParentCircle",void 0),_f([ur("eChildCircle")],n.prototype,"eChildCircle",void 0),_f([ur("eAngleValue")],n.prototype,"eAngleValue",void 0),_f([W("dragService")],n.prototype,"dragService",void 0),n}(Ar),Ff=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Mf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},kf=function(t){function n(i){var e=t.call(this,n.TEMPLATE)||this;return e.H=1,e.S=1,e.B=1,e.A=1,e.isSpectrumDragging=!1,e.isSpectrumHueDragging=!1,e.isSpectrumAlphaDragging=!1,e.colorChanged=!1,e.picker=i.picker,e}return Ff(n,t),n.prototype.postConstruct=function(){var t=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},n.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},n.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},n.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},n.prototype.onSpectrumDraggerDown=function(t){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(t)},n.prototype.onSpectrumDraggerMove=function(t){this.isSpectrumDragging&&this.moveDragger(t)},n.prototype.onSpectrumHueDown=function(t){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(t)},n.prototype.onSpectrumHueMove=function(t){this.isSpectrumHueDragging&&this.moveHueSlider(t)},n.prototype.onSpectrumAlphaDown=function(t){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(t)},n.prototype.onSpectrumAlphaMove=function(t){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(t)},n.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},n.prototype.moveDragger=function(t){var i=this.spectrumValRect;if(i){var n=t.clientX-i.left,e=t.clientY-i.top;n=Math.max(n,0),n=Math.min(n,i.width),e=Math.max(e,0),e=Math.min(e,i.height),this.setSpectrumValue(n/i.width,1-e/i.height)}},n.prototype.moveHueSlider=function(t){var i=this.spectrumHueRect;if(i){var n=this.spectrumHueSlider,e=n.getBoundingClientRect(),r=t.clientX-i.left;r=Math.max(r,0),r=Math.min(r,i.width),this.H=1-r/i.width,n.style.left=r+e.width/2+"px",this.update()}},n.prototype.moveAlphaSlider=function(t){var i=this.spectrumAlphaRect;if(i){var n=this.spectrumAlphaSlider,e=n.getBoundingClientRect(),r=t.clientX-i.left;r=Math.max(r,0),r=Math.min(r,i.width),this.A=r/i.width,n.style.left=r+e.width/2+"px",this.update()}},n.prototype.update=function(){var t=an.fromHSB(360*this.H,this.S,this.B,this.A),i=an.fromHSB(360*this.H,1,1),n=t.toRgbaString(),e=this.picker;an.fromString(e.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),e.setValue(n),this.spectrumColor.style.backgroundColor=i.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},n.prototype.setSpectrumValue=function(t,i){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var e=this.spectrumDragger,r=e.getBoundingClientRect();t=Math.max(0,t),t=Math.min(1,t),i=Math.max(0,i),i=Math.min(1,i),this.S=t,this.B=i,e.style.left=t*n.width-r.width/2+"px",e.style.top=(1-i)*n.height-r.height/2+"px",this.update()}},n.prototype.initRecentColors=function(){var t=n.recentColors.map((function(t,i){return'<div class="ag-recent-color" id='+i+' style="background-color: '+t+'; width: 15px; height: 15px;" recent-color="'+t+'"></div>'}));this.recentColors.innerHTML=t.join("")},n.prototype.setValue=function(t){var i=an.fromString(t),n=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(i.toHSB(),3),e=n[0],r=n[1],o=n[2];this.H=(isNaN(e)?0:e)/360,this.A=i.a;var s=this.spectrumHueRect||this.refreshHueRect(),u=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*u.width+"px",this.setSpectrumValue(r,o)},n.prototype.onRecentColorClick=function(t){var e=t.target;if(i(e.id)){var r=parseInt(e.id,10);this.setValue(n.recentColors[r]),this.destroy()}},n.prototype.addRecentColor=function(){var t=an.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),i=n.recentColors;this.colorChanged&&i[0]!==t&&(i=i.filter((function(i){return i!=t})),(i=[t].concat(i)).length>n.maxRecentColors&&(i=i.slice(0,n.maxRecentColors)),n.recentColors=i)},n.prototype.destroy=function(){this.addRecentColor(),t.prototype.destroy.call(this)},n.maxRecentColors=8,n.recentColors=[],n.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',Mf([ur("spectrumColor")],n.prototype,"spectrumColor",void 0),Mf([ur("spectrumVal")],n.prototype,"spectrumVal",void 0),Mf([ur("spectrumDragger")],n.prototype,"spectrumDragger",void 0),Mf([ur("spectrumHue")],n.prototype,"spectrumHue",void 0),Mf([ur("spectrumHueSlider")],n.prototype,"spectrumHueSlider",void 0),Mf([ur("spectrumAlpha")],n.prototype,"spectrumAlpha",void 0),Mf([ur("spectrumAlphaSlider")],n.prototype,"spectrumAlphaSlider",void 0),Mf([ur("recentColors")],n.prototype,"recentColors",void 0),Mf([L],n.prototype,"postConstruct",null),n}(sr),Df=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},If=function(t){function i(n){var e=t.call(this,i.getTemplate(n))||this;return e.closable=!0,e.config=n,e}return Df(i,t),i.getTemplate=function(t){var i=t&&t.cssIdentifier||"default";return'<div class="ag-panel ag-'+i+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+i+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+i+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+i+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+i+'-panel-content-wrapper"></div>\n </div>'},i.prototype.postConstruct=function(){var t=this,i=this.config,n=i.component,e=i.closable,r=i.hideTitleBar,o=i.title,s=i.minWidth,u=void 0===s?250:s,h=i.width,c=i.minHeight,a=void 0===c?250:c,f=i.height,l=i.centered,d=i.popup,v=i.x,p=i.y;this.positionableFeature=new ka(this.getGui(),{minWidth:u,width:h,minHeight:a,height:f,centered:l,x:v,y:p,popup:d,calculateTopBuffer:function(){return t.positionableFeature.getHeight()-t.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var g=this.getGui();n&&this.setBodyComponent(n),r?this.eTitleBar.classList.add("ag-hidden"):(o&&this.setTitle(o),this.setClosable(null!=e?e:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(i){var n=t.gridOptionsWrapper.getDocument();if(g.contains(i.relatedTarget)||g.contains(n.activeElement)||t.eTitleBarButtons.contains(i.target))i.preventDefault();else{var e=t.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");e&&e.focus()}})),d&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},i.prototype.renderComponent=function(){var t=this,i=this.getGui();i.focus(),this.close=function(){i.parentElement.removeChild(i),t.destroy()}},i.prototype.getHeight=function(){return this.positionableFeature.getHeight()},i.prototype.setHeight=function(t){this.positionableFeature.setHeight(t)},i.prototype.getWidth=function(){return this.positionableFeature.getWidth()},i.prototype.setWidth=function(t){this.positionableFeature.setWidth(t)},i.prototype.setClosable=function(t){if(t!==this.closable&&(this.closable=t),t){var n=this.closeButtonComp=new sr(i.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var e=n.getGui(),r=ke("close",this.gridOptionsWrapper);r.classList.add("ag-panel-title-bar-button-icon"),e.appendChild(r),this.addTitleBarButton(n),n.addManagedListener(e,"click",this.onBtClose.bind(this))}else this.closeButtonComp&&((e=this.closeButtonComp.getGui()).parentElement.removeChild(e),this.closeButtonComp=this.destroyBean(this.closeButtonComp))},i.prototype.setBodyComponent=function(t){t.setParentComponent(this),this.eContentWrapper.appendChild(t.getGui())},i.prototype.addTitleBarButton=function(t,i){var n=this.eTitleBarButtons,e=n.children,r=e.length;null==i&&(i=r),i=Math.max(0,Math.min(i,r)),t.addCssClass("ag-panel-title-bar-button");var o=t.getGui();0===i?n.insertAdjacentElement("afterbegin",o):i===r?n.insertAdjacentElement("beforeend",o):e[i-1].insertAdjacentElement("afterend",o),t.setParentComponent(this)},i.prototype.getBodyHeight=function(){return wn(this.eContentWrapper)},i.prototype.getBodyWidth=function(){return bn(this.eContentWrapper)},i.prototype.setTitle=function(t){this.eTitle.innerText=t},i.prototype.onBtClose=function(){this.close()},i.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var i=this.getGui();i&&i.offsetParent&&this.close(),t.prototype.destroy.call(this)},i.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Pf([ur("eContentWrapper")],i.prototype,"eContentWrapper",void 0),Pf([ur("eTitleBar")],i.prototype,"eTitleBar",void 0),Pf([ur("eTitleBarButtons")],i.prototype,"eTitleBarButtons",void 0),Pf([ur("eTitle")],i.prototype,"eTitle",void 0),Pf([L],i.prototype,"postConstruct",null),i}(sr),Tf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ef=function(){return(Ef=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},Nf=function(t){function i(i){var n=t.call(this,Ef(Ef({},i),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return Tf(i,t),i.prototype.postConstruct=function(){var i=this,n=this.getGui(),e=this.config,r=e.movable,o=e.resizable,s=e.maximizable;this.addCssClass("ag-dialog"),t.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(t){n.contains(t.relatedTarget)||i.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),o&&this.setResizable(o)},i.prototype.renderComponent=function(){var t=this.getGui(),i=this.config,n=i.alwaysOnTop,e=i.modal,r=i.title,o=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:e,eChild:t,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:r||o("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},i.prototype.toggleMaximize=function(){var t=this.positionableFeature.getPosition();if(this.isMaximized){var i=this.lastPosition,n=i.x,e=i.y,r=i.height;this.setWidth(i.width),this.setHeight(r),this.positionableFeature.offsetElement(n,e)}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()},i.prototype.refreshMaximizeIcon=function(){dn(this.maximizeIcon,!this.isMaximized),dn(this.minimizeIcon,this.isMaximized)},i.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(t){return t()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},i.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),t.prototype.destroy.call(this)},i.prototype.setResizable=function(t){this.positionableFeature.setResizable(t)},i.prototype.setMovable=function(t){this.positionableFeature.setMovable(t,this.eTitleBar)},i.prototype.setMaximizable=function(t){var i=this;if(!t)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&t!==this.isMaximizable){var e=this.maximizeButtonComp=this.createBean(new sr('<div class="ag-dialog-button"></span>')),r=e.getGui();r.appendChild(this.maximizeIcon=ke("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=ke("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),e.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(e,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){i.isMaximized=!1,i.refreshMaximizeIcon()}))}},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([W("popupService")],i.prototype,"popupService",void 0),i}(If),Lf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hf=function(t){function i(i){var n=t.call(this,i,"ag-color-picker","colorPicker")||this;return i&&i.color&&(n.value=i.color),n}return Lf(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},i.prototype.showPicker=function(){var t=this,i=this.getGui().getBoundingClientRect(),n=this.createBean(new Nf({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:i.right-190,y:i.top-250}));this.isPickerDisplayed=!0,n.addCssClass("ag-color-dialog"),ce(this.eWrapper,!0);var e=this.createBean(new kf({picker:this}));return e.addDestroyFunc((function(){n.isAlive()&&t.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(e),e.setValue(this.getValue()),n.addDestroyFunc((function(){t.isDestroyingPicker?t.isDestroyingPicker=!1:(t.isDestroyingPicker=!0,e.isAlive()&&t.destroyBean(e)),t.isAlive()&&(ce(t.eWrapper,!1),t.getFocusableElement().focus()),t.isPickerDisplayed=!1})),n},i.prototype.setValue=function(i){return this.value===i?this:(this.eDisplayField.style.backgroundColor=i,t.prototype.setValue.call(this,i))},i.prototype.getValue=function(){return this.value},i}(Fr),Bf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Wf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Vf=function(t){function i(n){void 0===n&&(n={});var e=t.call(this,i.getTemplate(n))||this;e.suppressEnabledCheckbox=!0,e.suppressOpenCloseIcons=!1;var r=n.enabled,o=n.items,s=n.suppressEnabledCheckbox,u=n.suppressOpenCloseIcons;return e.title=n.title,e.cssIdentifier=n.cssIdentifier||"default",e.enabled=null==r||r,e.items=o||[],e.alignItems=n.alignItems||"center",null!=s&&(e.suppressEnabledCheckbox=s),null!=u&&(e.suppressOpenCloseIcons=u),e}return Bf(i,t),i.getTemplate=function(t){var i=t.cssIdentifier||"default";return'<div class="ag-group ag-'+i+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+i+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+i+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+i+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+i+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+i+'-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-"+i+'-group-container"></div>\n </div>'},i.prototype.postConstruct=function(){if(this.items.length){var t=this.items;this.items=[],this.addItems(t)}var i=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(i("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()},i.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(Me("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Me("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(i){switch(i.key){case Pe.ENTER:case Pe.SPACE:i.preventDefault(),t.toggleGroupExpand();break;case Pe.RIGHT:case Pe.LEFT:i.preventDefault(),t.toggleGroupExpand(i.key===Pe.RIGHT)}}))},i.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||ce(this.eTitleBar,this.expanded)},i.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)},i.prototype.isExpanded=function(){return this.expanded},i.prototype.setAlignItems=function(t){return this.alignItems!==t&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=t,this.addCssClass("ag-group-item-alignment-"+this.alignItems),this},i.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),dn(this.eContainer,!0),this):(this.expanded===(t=null!=t?t:!this.expanded)||(this.expanded=t,this.refreshAriaStatus(),this.refreshChildDisplay(),dn(this.eContainer,t),this.dispatchEvent({type:this.expanded?i.EVENT_EXPANDED:i.EVENT_COLLAPSED})),this)},i.prototype.addItems=function(t){var i=this;t.forEach((function(t){return i.addItem(t)}))},i.prototype.addItem=function(t){var i=this.eContainer,n=t instanceof sr?t.getGui():t;n.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),i.appendChild(n),this.items.push(n)},i.prototype.hideItem=function(t,i){this.items[i].classList.toggle("ag-hidden",t)},i.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},i.prototype.addCssClassToTitleBar=function(t){this.eTitleBar.classList.add(t)},i.prototype.setEnabled=function(t,i){return this.enabled=t,this.refreshDisabledStyles(),this.toggleGroupExpand(t),i||this.cbGroupEnabled.setValue(t),this},i.prototype.isEnabled=function(){return this.enabled},i.prototype.onEnableChange=function(t){var i=this;return this.cbGroupEnabled.onValueChange((function(n){i.setEnabled(n,!0),t(n)})),this},i.prototype.hideEnabledCheckbox=function(t){return this.suppressEnabledCheckbox=t,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},i.prototype.hideOpenCloseIcons=function(t){return this.suppressOpenCloseIcons=t,t&&this.toggleGroupExpand(!0),this},i.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)},i.EVENT_EXPANDED="expanded",i.EVENT_COLLAPSED="collapsed",Wf([ur("eTitleBar")],i.prototype,"eTitleBar",void 0),Wf([ur("eGroupOpenedIcon")],i.prototype,"eGroupOpenedIcon",void 0),Wf([ur("eGroupClosedIcon")],i.prototype,"eGroupClosedIcon",void 0),Wf([ur("eToolbar")],i.prototype,"eToolbar",void 0),Wf([ur("cbGroupEnabled")],i.prototype,"cbGroupEnabled",void 0),Wf([ur("eTitle")],i.prototype,"eTitle",void 0),Wf([ur("eContainer")],i.prototype,"eContainer",void 0),Wf([L],i.prototype,"postConstruct",null),i}(sr),zf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Uf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Kf=function(t){function i(i){var n=t.call(this)||this;n.skipTabGuardFocus=!1;var e=i.eTopGuard,r=i.eBottomGuard,o=i.focusInnerElement,s=i.onFocusIn,u=i.onFocusOut,h=i.shouldStopEventPropagation,c=i.onTabKeyDown,a=i.handleKeyDown,f=i.eFocusableElement;return n.comp=i.comp,n.eTopGuard=e,n.eBottomGuard=r,n.providedFocusInnerElement=o,n.eFocusableElement=f,n.providedFocusIn=s,n.providedFocusOut=u,n.providedShouldStopEventPropagation=h,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=a,n}return zf(i,t),i.prototype.postConstruct=function(){var t=this;this.createManagedBean(new yr(this.eFocusableElement,{shouldStopEventPropagation:function(){return t.shouldStopEventPropagation()},onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)},onFocusIn:function(i){return t.onFocusIn(i)},onFocusOut:function(i){return t.onFocusOut(i)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(i){return t.addManagedListener(i,"focus",t.onFocus.bind(t))}))},i.prototype.handleKeyDown=function(t){this.providedHandleKeyDown&&this.providedHandleKeyDown(t)},i.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},i.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},i.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},i.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},i.prototype.onFocus=function(t){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var i=t.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(i):this.focusInnerElement(i)}},i.prototype.onFocusIn=function(t){this.providedFocusIn&&this.providedFocusIn(t)||this.deactivateTabGuards()},i.prototype.onFocusOut=function(t){this.providedFocusOut&&this.providedFocusOut(t)||this.eFocusableElement.contains(t.relatedTarget)||this.activateTabGuards()},i.prototype.onTabKeyDown=function(t){var i=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(t);else if(!t.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var e=this.getNextFocusableElement(t.shiftKey);n&&setTimeout((function(){return i.activateTabGuards()}),0),e&&(e.focus(),t.preventDefault())}},i.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},i.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var i=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(i.splice(0,1),i.splice(i.length-1,1)),i.length&&i[t?i.length-1:0].focus()},i.prototype.getNextFocusableElement=function(t){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,t)},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1);var i=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,i.focus()},Uf([W("focusService")],i.prototype,"focusService",void 0),Uf([L],i.prototype,"postConstruct",null),i}(kt),qf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yf=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Jf=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return qf(i,t),i.prototype.initialiseTabGuard=function(t){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var i=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(t){i.forEach((function(i){return null!=t?i.setAttribute("tabIndex",t):i.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new Kf({comp:n,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}))},i.prototype.createTabGuard=function(t){var i=document.createElement("div");return i.classList.add("ag-tab-guard","ag-tab-guard-"+t),Xn(i,"presentation"),i},i.prototype.addTabGuards=function(t,i){this.eFocusableElement.insertAdjacentElement("afterbegin",t),this.eFocusableElement.insertAdjacentElement("beforeend",i)},i.prototype.removeAllChildrenExceptTabGuards=function(){var t=[this.eTopGuard,this.eBottomGuard];An(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Yf(arguments[i]));return t}(t))},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.tabGuardCtrl.forceFocusOutOfContainer(t)},i.prototype.appendChild=function(i,n){Vn(i)||(i=i.getGui());var e=this.eBottomGuard;e?e.insertAdjacentElement("beforebegin",i):t.prototype.appendChild.call(this,i,n)},i}(sr),Zf=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$f=function(){return($f=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},Qf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xf=function(t){function i(i){void 0===i&&(i=1);var n=t.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return n.level=i,n.menuItems=[],n}return Zf(i,t),i.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}})},i.prototype.onTabKeyDown=function(t){var i=this.getParentComponent(),n=i&&i.getGui();n&&n.classList.contains("ag-focus-managed")||t.preventDefault(),t.shiftKey&&this.closeIfIsChild(t)},i.prototype.handleKeyDown=function(t){switch(t.key){case Pe.UP:case Pe.RIGHT:case Pe.DOWN:case Pe.LEFT:t.preventDefault(),this.handleNavKey(t.key);break;case Pe.ESCAPE:var i=this.findTopMenu();i&&this.focusService.focusInto(i.getGui())}},i.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},i.prototype.addMenuItems=function(t){var i=this;null!=t&&t.forEach((function(t){"separator"===t?i.addSeparator():"string"==typeof t?console.warn("AG Grid: unrecognised menu item "+t):i.addItem(t)}))},i.prototype.addItem=function(t){var i=this,n=this.createManagedBean(new rl($f($f({},t),{isAnotherSubMenuOpen:function(){return i.menuItems.some((function(t){return t.isSubMenuOpen()}))}})));n.setParentComponent(this),ue(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,rl.EVENT_MENU_ITEM_SELECTED,(function(t){i.dispatchEvent(t)})),this.addManagedListener(n,rl.EVENT_MENU_ITEM_ACTIVATED,(function(t){i.activeMenuItem&&i.activeMenuItem!==t.menuItem&&i.activeMenuItem.deactivate(),i.activeMenuItem=t.menuItem}))},i.prototype.activateFirstItem=function(){var t=this.menuItems.filter((function(t){return!t.isDisabled()}))[0];t&&t.activate()},i.prototype.addSeparator=function(){this.appendChild(_n('\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>'))},i.prototype.findTopMenu=function(){var t=this.getParentComponent();if(!t&&this instanceof i)return this;for(;;){var n=t&&t.getParentComponent&&t.getParentComponent();if(!n||!(n instanceof i||n instanceof rl))break;t=n}return t instanceof i?t:void 0},i.prototype.handleNavKey=function(t){switch(t){case Pe.UP:case Pe.DOWN:var i=this.findNextItem(t===Pe.UP);return void(i&&i!==this.activeMenuItem&&i.activate())}t===(this.gridOptionsWrapper.isEnableRtl()?Pe.RIGHT:Pe.LEFT)?this.closeIfIsChild():this.openChild()},i.prototype.closeIfIsChild=function(t){var i=this.getParentComponent();i&&i instanceof rl&&(t&&t.preventDefault(),i.closeSubMenu(),i.getGui().focus())},i.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},i.prototype.findNextItem=function(t){var i=this.menuItems.filter((function(t){return!t.isDisabled()}));if(i.length){if(!this.activeMenuItem)return t?rt(i):i[0];var n;t&&i.reverse();for(var e=!1,r=0;r<i.length;r++){var o=i[r];if(e){n=o;break}o===this.activeMenuItem&&(e=!0)}return n||this.activeMenuItem}},i.prototype.destroy=function(){this.clearActiveItem(),t.prototype.destroy.call(this)},Qf([W("focusService")],i.prototype,"focusService",void 0),Qf([L],i.prototype,"postConstruct",null),i}(Jf),tl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),il=function(t){function i(i){var n=t.call(this)||this;return n.wrappedComponent=i,n.setTemplateFromElement(i.getGui()),n}return tl(i,t),i.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}})},i.prototype.handleKeyDown=function(t){t.key===Pe.ESCAPE&&this.closePanel()},i.prototype.onTabKeyDown=function(t){t.defaultPrevented||(this.closePanel(),t.preventDefault())},i.prototype.closePanel=function(){var t=this.parentComponent;t.closeSubMenu(),setTimeout((function(){return t.getGui().focus()}),0)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([L],i.prototype,"postConstruct",null),i}(Jf),nl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),el=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},rl=function(t){function i(i){var n=t.call(this)||this;return n.params=i,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return nl(i,t),i.prototype.init=function(){var t=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var i=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),he(i,!0)):(this.addGuiEventListener("click",(function(i){return t.onItemSelected(i)})),this.addGuiEventListener("keydown",(function(i){i.key!==Pe.ENTER&&i.key!==Pe.SPACE||(i.preventDefault(),t.onItemSelected(i))})),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(i){return t.addCssClass(i)}))},i.prototype.isDisabled=function(){return!!this.params.disabled},i.prototype.openSubMenu=function(t){var n=this;if(void 0===t&&(t=!1),this.closeSubMenu(),this.params.subMenu){var e,r=_n('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var o=ie(this.getGui()),s=isNaN(o)?1:o+1,u=this.createBean(new Xf(s));u.setParentComponent(this),u.addMenuItems(this.params.subMenu),r.appendChild(u.getGui()),this.addManagedListener(u,i.EVENT_MENU_ITEM_SELECTED,(function(t){return n.dispatchEvent(t)})),u.addGuiEventListener("mouseenter",(function(){return n.cancelDeactivate()})),e=function(){return n.destroyBean(u)},t&&setTimeout((function(){return u.activateFirstItem()}),0)}else{var h=this.params.subMenu,c=this.createBean(new il(h));c.setParentComponent(this);var a=c.getGui(),f="mouseenter",l=function(){return n.cancelDeactivate()};a.addEventListener(f,l),e=function(){return a.removeEventListener(f,l)},r.appendChild(a),h.afterGuiAttached&&setTimeout((function(){return h.afterGuiAttached()}),0)}var d=this.getGui(),v=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:d,ePopup:r}),p=this.gridOptionsWrapper.getLocaleTextFunc(),g=this.popupService.addPopup({modal:!0,eChild:r,positionCallback:v,anchorToElement:d,ariaLabel:p("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,ce(d,!0),this.hideSubMenu=function(){g&&g.hideFunc(),n.subMenuIsOpen=!1,ce(d,!1),e()}}},i.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,ce(this.getGui(),!1))},i.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},i.prototype.activate=function(t){var i=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),t&&this.params.subMenu&&window.setTimeout((function(){i.isAlive()&&i.isActive&&i.openSubMenu()}),300),this.onItemActivated())},i.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},i.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var t=_n('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?t.appendChild(ke("check",this.gridOptionsWrapper)):this.params.icon&&(Vn(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)}},i.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var t=_n('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(t)}},i.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new ir(this)))},i.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},i.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var t=_n('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(t)}},i.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var t=_n('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),i=this.getGui();if(this.params.subMenu){var n=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";ce(i,!1),t.appendChild(ke(n,this.gridOptionsWrapper))}i.appendChild(t)}},i.prototype.onItemSelected=function(t){this.params.action?this.params.action():this.openSubMenu(t&&"keydown"===t.type),(!this.params.subMenu||this.params.action)&&this.dispatchEvent({type:i.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})},i.prototype.onItemActivated=function(){this.dispatchEvent({type:i.EVENT_MENU_ITEM_ACTIVATED,menuItem:this})},i.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},i.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},i.prototype.onMouseEnter=function(){var t=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return t.activate(!0)}),i.ACTIVATION_DELAY):this.activate(!0)},i.prototype.onMouseLeave=function(){var t=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return t.deactivate()}),i.ACTIVATION_DELAY):this.deactivate()},i.prototype.getClassName=function(t){var i=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return t?i+"-"+t:i},i.EVENT_MENU_ITEM_SELECTED="menuItemSelected",i.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",i.ACTIVATION_DELAY=80,el([W("popupService")],i.prototype,"popupService",void 0),el([L],i.prototype,"init",null),i}(sr),ol=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ul=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},hl=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}var e;return ol(n,i),e=n,n.addKeyboardModeEvents=function(t,i){var n=e.instancesMonitored.get(t);n&&n.length>0?-1===n.indexOf(i)&&n.push(i):(e.instancesMonitored.set(t,[i]),t.addEventListener("keydown",e.toggleKeyboardMode),t.addEventListener("mousedown",e.toggleKeyboardMode))},n.removeKeyboardModeEvents=function(t,i){var n=e.instancesMonitored.get(t),r=[];n&&n.length&&(r=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(ul(arguments[i]));return t}(n).filter((function(t){return t!==i})),e.instancesMonitored.set(t,r)),0===r.length&&(t.removeEventListener("keydown",e.toggleKeyboardMode),t.removeEventListener("mousedown",e.toggleKeyboardMode))},n.toggleKeyboardMode=function(t){var i=e.keyboardModeActive,n="keydown"===t.type;if(!(n&&(t.ctrlKey||t.metaKey||t.altKey)||i&&n||!i&&!n)){e.keyboardModeActive=n;var r=t.target.ownerDocument;if(r){var o=e.instancesMonitored.get(r);o&&o.forEach((function(t){t.dispatchEvent({type:n?Tt.EVENT_KEYBOARD_FOCUS:Tt.EVENT_MOUSE_FOCUS})}))}}},n.prototype.init=function(){var t=this,i=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PIVOT_MODE_CHANGED,i),this.addManagedListener(this.eventService,Tt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_GROUP_OPENED,i),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,i),this.ctrlsService.whenReady((function(i){t.gridCtrl=i.gridCtrl;var n=t.gridOptionsWrapper.getDocument();e.addKeyboardModeEvents(n,t.gridCtrl),t.addDestroyFunc((function(){return t.unregisterGridCompController(t.gridCtrl)}))}))},n.prototype.unregisterGridCompController=function(t){var i=this.gridOptionsWrapper.getDocument();e.removeKeyboardModeEvents(i,t)},n.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,i=this.columnModel.getGridColumn(t.getId());t!==i&&this.clearFocusedCell()}},n.prototype.isKeyboardMode=function(){return e.keyboardModeActive},n.prototype.getFocusCellToUseAfterRefresh=function(){var t=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(t.activeElement,$u.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},n.prototype.getFocusHeaderToUseAfterRefresh=function(){var t=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(t.activeElement,bc.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},n.prototype.isDomDataMissingInHierarchy=function(t,i){for(var n=t;n;){if(this.gridOptionsWrapper.getDomData(n,i))return!1;n=n.parentNode}return!0},n.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1,!1)},n.prototype.getFocusedCell=function(){return this.focusedCellPosition},n.prototype.setFocusedCell=function(i){var n=i.rowIndex,e=i.rowPinned,r=i.forceBrowserFocus,o=void 0!==r&&r,s=i.preventScrollOnBrowserFocus,u=void 0!==s&&s,h=this.columnModel.getGridColumn(i.column);h?(this.focusedCellPosition=h?{rowIndex:n,rowPinned:t(e),column:h}:null,this.onCellFocused(o,u)):this.focusedCellPosition=null},n.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&this.focusedCellPosition.column===t.column&&this.isRowFocused(t.rowIndex,t.rowPinned)},n.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},n.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var i=t.getColumnGroupChild(),n=t.getRowIndex(),e=t.getPinned(),r=this.focusedHeaderPosition,o=r.column;return i===o&&n===r.headerRowIndex&&e==o.getPinned()},n.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},n.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},n.prototype.setFocusedHeader=function(t,i){this.focusedHeaderPosition={headerRowIndex:t,column:i}},n.prototype.focusHeaderPosition=function(t){var i=t.direction,n=t.fromTab,e=t.event,r=t.headerPosition;if(t.allowUserOverride){var o,s=this.gridOptionsWrapper,u=this.getFocusedHeader(),h=this.headerNavigationService.getHeaderRowCount();n?(o=s.getTabToNextHeaderFunc())&&(r=o({backwards:"Before"===i,previousHeaderPosition:u,nextHeaderPosition:r,headerRowCount:h})):(o=s.getNavigateToNextHeaderFunc())&&e&&(r=o({key:e.key,previousHeaderPosition:u,nextHeaderPosition:r,headerRowCount:h,event:e}))}return!!r&&(-1===r.headerRowIndex?this.focusGridView(r.column):(this.headerNavigationService.scrollToColumn(r.column,i),this.ctrlsService.getHeaderRowContainerCtrl(r.column.getPinned()).focusHeader(r.headerRowIndex,r.column,e)))},n.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}}))},n.prototype.focusLastHeader=function(t){var i=this.headerNavigationService.getHeaderRowCount()-1,n=rt(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:i,column:n},event:t})},n.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},n.prototype.isRowFocused=function(i,n){return null!=this.focusedCellPosition&&this.focusedCellPosition.rowIndex===i&&this.focusedCellPosition.rowPinned===t(n)},n.prototype.findFocusableElements=function(t,i,n){void 0===n&&(n=!1);var e=Q.FOCUSABLE_EXCLUDE;i&&(e+=", "+i),n&&(e+=', [tabindex="-1"]');var r,o=Array.prototype.slice.apply(t.querySelectorAll(Q.FOCUSABLE_SELECTOR)),s=Array.prototype.slice.apply(t.querySelectorAll(e));return s.length?(r=s,o.filter((function(t){return-1===r.indexOf(t)}))):o},n.prototype.focusInto=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var e=this.findFocusableElements(t,null,n),r=i?rt(e):e[0];return!!r&&(r.focus(),!0)},n.prototype.findNextFocusableElement=function(t,i,n){void 0===t&&(t=this.eGridDiv);var e=this.findFocusableElements(t,i?':not([tabindex="-1"])':null),r=this.gridOptionsWrapper.getDocument().activeElement,o=(i?e.findIndex((function(t){return t.contains(r)})):e.indexOf(r))+(n?-1:1);return o<0||o>=e.length?null:e[o]},n.prototype.isFocusUnderManagedComponent=function(t){var i=this.gridOptionsWrapper.getDocument(),n=t.querySelectorAll("."+yr.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var e=0;e<n.length;e++)if(n[e].contains(i.activeElement))return!0;return!1},n.prototype.findTabbableParent=function(t,i){void 0===i&&(i=5);for(var n=0;t&&null===Ci(t)&&++n<=i;)t=t.parentElement;return null===Ci(t)?null:t},n.prototype.onCellFocused=function(t,i){var n={type:Tt.EVENT_CELL_FOCUSED,forceBrowserFocus:t,preventScrollOnBrowserFocus:i,rowIndex:null,column:null,floating:null,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var e=n.rowIndex=this.focusedCellPosition.rowIndex,r=n.rowPinned=this.focusedCellPosition.rowPinned;n.column=this.focusedCellPosition.column;var o=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:r});o&&(n.isFullWidthCell=o.isFullWidth())}this.eventService.dispatchEvent(n)},n.prototype.focusGridView=function(i,n){if(this.gridOptionsWrapper.isSuppressCellFocus())return n?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var e=n?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!e)return!1;var r=e.rowIndex,o=e.rowPinned,s=this.getFocusedHeader();return!i&&s&&(i=s.column),!(null==r||!i)&&(this.navigationService.ensureCellVisible({rowIndex:r,column:i,rowPinned:o}),this.setFocusedCell({rowIndex:r,column:i,rowPinned:t(o),forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:r,rowPinned:o,column:i}),!0)},n.prototype.focusNextGridCoreContainer=function(t){return!!this.gridCtrl.focusNextInnerContainer(t)||(t||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},n.AG_KEYBOARD_FOCUS="ag-keyboard-focus",n.keyboardModeActive=!1,n.instancesMonitored=new Map,sl([W("eGridDiv")],n.prototype,"eGridDiv",void 0),sl([W("columnModel")],n.prototype,"columnModel",void 0),sl([W("headerNavigationService")],n.prototype,"headerNavigationService",void 0),sl([W("rowRenderer")],n.prototype,"rowRenderer",void 0),sl([W("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),sl([V("rangeService")],n.prototype,"rangeService",void 0),sl([W("navigationService")],n.prototype,"navigationService",void 0),sl([W("ctrlsService")],n.prototype,"ctrlsService",void 0),sl([L],n.prototype,"init",null),e=sl([B("focusService")],n)}(kt),cl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),al=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},fl=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};
279
- /**
280
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
281
- * @version v28.2.0
282
- * @link https://www.ag-grid.com/
283
- * @license MIT
284
- */!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal"}(Qa||(Qa={}));var ll=0,dl=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.popupList=[],i}return cl(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridCtrl=i.gridCtrl,t.addManagedListener(t.gridCtrl,Tt.EVENT_KEYBOARD_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.add(hl.AG_KEYBOARD_FOCUS)}))})),t.addManagedListener(t.gridCtrl,Tt.EVENT_MOUSE_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.remove(hl.AG_KEYBOARD_FOCUS)}))}))}))},i.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCtrl.getGui()},i.prototype.positionPopupForMenu=function(t){var i=t.eventSource.getBoundingClientRect(),n=this.getParentRect(),e=this.keepXYWithinBounds(t.ePopup,i.top-n.top,Qa.vertical),r=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=r+"px";var o,s=n.right-n.left-r;function u(){return i.right-n.left-2}function h(){return i.left-n.left-r}this.gridOptionsWrapper.isEnableRtl()?((o=h())<0&&(o=u()),o>s&&(o=0)):((o=u())>s&&(o=h()),o<0&&(o=0)),t.ePopup.style.left=o+"px",t.ePopup.style.top=e+"px"},i.prototype.positionPopupUnderMouseEvent=function(t){var i=t.ePopup,n=t.nudgeX,e=t.nudgeY,r=this.calculatePointerAlign(t.mouseEvent);this.positionPopup({ePopup:i,x:r.x,y:r.y,nudgeX:n,nudgeY:e,keepWithinBounds:!0}),this.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)},i.prototype.calculatePointerAlign=function(t){var i=this.getParentRect();return{x:t.clientX-i.left,y:t.clientY-i.top}},i.prototype.positionPopupUnderComponent=function(t){var i=t.eventSource.getBoundingClientRect(),n=t.alignSide||"left",e=this.getParentRect(),r=i.left-e.left;"right"===n&&(r-=t.ePopup.offsetWidth-i.width),this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:r,y:i.top-e.top+i.height,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},i.prototype.positionPopupOverComponent=function(t){var i=t.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:i.left-n.left,y:i.top-n.top,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},i.prototype.callPostProcessPopup=function(t,i,n,e,r,o){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:o,ePopup:i,type:t,eventSource:n,mouseEvent:e})},i.prototype.positionPopup=function(t){var i=t.ePopup,n=t.nudgeX,e=t.nudgeY,r=t.x,o=t.y;n&&(r+=n),e&&(o+=e),t.keepWithinBounds&&(r=this.keepXYWithinBounds(i,r,Qa.horizontal),o=this.keepXYWithinBounds(i,o,Qa.vertical)),i.style.left=r+"px",i.style.top=o+"px"},i.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},i.prototype.getPopupList=function(){return this.popupList},i.prototype.getParentRect=function(){var t=this.gridOptionsWrapper.getDocument(),i=this.getPopupParent();i===t.body?i=t.documentElement:"static"===getComputedStyle(i).position&&(i=i.offsetParent);var n=getComputedStyle(i),e=i.getBoundingClientRect();return{top:e.top+parseFloat(n.borderTopWidth)||0,left:e.left+parseFloat(n.borderLeftWidth)||0,right:e.right+parseFloat(n.borderRightWidth)||0,bottom:e.bottom+parseFloat(n.borderBottomWidth)||0}},i.prototype.keepXYWithinBounds=function(t,i,n){var e=n===Qa.vertical,r=e?"clientHeight":"clientWidth",o=e?"top":"left",s=e?"offsetHeight":"offsetWidth",u=e?"scrollTop":"scrollLeft",h=this.gridOptionsWrapper.getDocument(),c=h.documentElement,a=this.getPopupParent(),f=a.getBoundingClientRect(),l=h.documentElement.getBoundingClientRect(),d=a===h.body,v=t[s],p=d?(e?yn:Cn)(c)+c[u]:a[r];d&&(p-=Math.abs(l[o]-f[o]));var g=p-v;return Math.min(Math.max(i,0),Math.abs(g))},i.prototype.keepPopupPositionedRelativeTo=function(t){var i=this,n=this.getPopupParent(),e=n.getBoundingClientRect(),r=t.element.getBoundingClientRect(),o=e.top-r.top,s=e.left-r.left,u=o,h=s,c=t.ePopup.style.top,a=parseInt(c.substring(0,c.length-1),10),f=t.ePopup.style.left,l=parseInt(f.substring(0,f.length-1),10);return new $e((function(e){i.getFrameworkOverrides().setInterval((function(){var e=n.getBoundingClientRect(),r=t.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)t.hidePopup();else{var c=e.top-r.top;if(c!=u){var f=i.keepXYWithinBounds(t.ePopup,a+o-c,Qa.vertical);t.ePopup.style.top=f+"px"}u=c;var d=e.left-r.left;if(d!=h){var v=i.keepXYWithinBounds(t.ePopup,l+s-d,Qa.horizontal);t.ePopup.style.left=v+"px"}h=d}}),200).then((function(t){e((function(){null!=t&&window.clearInterval(t)}))}))}))},i.prototype.addPopup=function(t){var i,n=this,e=t.modal,r=t.eChild,o=t.closeOnEsc,s=t.closedCallback,u=t.click,h=t.alwaysOnTop,c=t.afterGuiAttached,a=t.positionCallback,f=t.anchorToElement,l=t.ariaLabel,d=this.gridOptionsWrapper.getDocument(),v=new $e((function(t){return t((function(){}))}));if(!d)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:v};var p=this.popupList.findIndex((function(t){return t.element===r}));if(-1!==p){var g=this.popupList[p];return{hideFunc:g.hideFunc,stopAnchoringPromise:g.stopAnchoringPromise}}var m=this.getPopupParent();null==r.style.top&&(r.style.top="0px"),null==r.style.left&&(r.style.left="0px");var w=document.createElement("div"),b=this.environment.getTheme().allThemes;b.length&&(i=w.classList).add.apply(i,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(fl(arguments[i]));return t}(b)),w.classList.add("ag-popup"),r.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),r.hasAttribute("role")||Xn(r,"dialog"),ee(r,l),this.focusService.isKeyboardMode()&&r.classList.add(hl.AG_KEYBOARD_FOCUS),w.appendChild(r),m.appendChild(w),h?this.setAlwaysOnTop(w,!0):this.bringPopupToFront(w);var y=!1,C=function(t){w.contains(d.activeElement)&&t.key===Pe.ESCAPE&&O({keyboardEvent:t})},R=function(t){return O({mouseEvent:t})},S=function(t){return O({touchEvent:t})},O=function(t){void 0===t&&(t={});var i=t.mouseEvent,e=t.touchEvent,o=t.keyboardEvent;n.isEventFromCurrentPopup({mouseEvent:i,touchEvent:e},r)||n.isEventSameChainAsOriginalEvent({originalMouseEvent:u,mouseEvent:i,touchEvent:e})||y||(y=!0,m.removeChild(w),d.removeEventListener("keydown",C),d.removeEventListener("mousedown",R),d.removeEventListener("touchstart",S),d.removeEventListener("contextmenu",R),n.eventService.removeEventListener(Tt.EVENT_DRAG_STARTED,R),s&&s(i||e||o),n.popupList=n.popupList.filter((function(t){return t.element!==r})),v&&v.then((function(t){return t&&t()})))};return c&&c({hidePopup:O}),window.setTimeout((function(){o&&d.addEventListener("keydown",C),e&&(d.addEventListener("mousedown",R),n.eventService.addEventListener(Tt.EVENT_DRAG_STARTED,R),d.addEventListener("touchstart",S),d.addEventListener("contextmenu",R))}),0),a&&a(),f&&(v=this.keepPopupPositionedRelativeTo({element:f,ePopup:r,hidePopup:O})),this.popupList.push({element:r,wrapper:w,hideFunc:O,stopAnchoringPromise:v,instanceId:ll++,isAnchored:!!f}),{hideFunc:O,stopAnchoringPromise:v}},i.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(t){return t.isAnchored}))},i.prototype.isEventFromCurrentPopup=function(t,i){var n=t.mouseEvent||t.touchEvent;if(!n)return!1;var e=this.popupList.findIndex((function(t){return t.element===i}));if(-1===e)return!1;for(var r=e;r<this.popupList.length;r++)if(At(this.popupList[r].element,n))return!0;return this.isElementWithinCustomPopup(n.target)},i.prototype.isElementWithinCustomPopup=function(t){for(var i=this.gridOptionsWrapper.getDocument();t&&t!==i.body;){if(t.classList.contains("ag-custom-component-popup")||null===t.parentElement)return!0;t=t.parentElement}return!1},i.prototype.isEventSameChainAsOriginalEvent=function(t){var i=t.originalMouseEvent,n=t.mouseEvent,e=t.touchEvent,r=null;if(n?r=n:e&&(r=e.touches[0]),r&&i){var o=n?n.screenY:0,s=Math.abs(i.screenX-(n?n.screenX:0))<5,u=Math.abs(i.screenY-o)<5;if(s&&u)return!0}return!1},i.prototype.getWrapper=function(t){for(;!t.classList.contains("ag-popup")&&t.parentElement;)t=t.parentElement;return t.classList.contains("ag-popup")?t:null},i.prototype.setAlwaysOnTop=function(t,i){var n=this.getWrapper(t);n&&(n.classList.toggle("ag-always-on-top",!!i),i&&this.bringPopupToFront(n))},i.prototype.bringPopupToFront=function(t){var i=this.getPopupParent(),n=Array.prototype.slice.call(i.querySelectorAll(".ag-popup")),e=n.length,r=Array.prototype.slice.call(i.querySelectorAll(".ag-popup.ag-always-on-top")),o=r.length,s=this.getWrapper(t);if(s&&!(e<=1)&&i.contains(t)){var u=n.indexOf(s),h=s.querySelectorAll("div"),c=[];for(h.forEach((function(t){0!==t.scrollTop&&c.push([t,t.scrollTop])})),o?s.classList.contains("ag-always-on-top")?u!==e-1&&rt(r).insertAdjacentElement("afterend",s):u!==e-o-1&&r[0].insertAdjacentElement("beforebegin",s):u!==e-1&&rt(n).insertAdjacentElement("afterend",s);c.length;){var a=c.pop();a[0].scrollTop=a[1]}var f={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(f)}},al([W("environment")],i.prototype,"environment",void 0),al([W("focusService")],i.prototype,"focusService",void 0),al([W("ctrlsService")],i.prototype,"ctrlsService",void 0),al([L],i.prototype,"postConstruct",null),al([B("popupService")],i)}(kt),vl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(n,e,r){void 0===n&&(n="default"),void 0===e&&(e="listbox");var o=t.call(this,i.getTemplate(n))||this;return o.cssIdentifier=n,o.ariaRole=e,o.listName=r,o.renderedRows=new Map,o.rowHeight=20,o.isDestroyed=!1,o}vl(i,t),i.prototype.postConstruct=function(){var t=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(i){return t.onFocusIn(i)},onFocusOut:function(i){return t.onFocusOut(i)},focusInnerElement:function(i){return t.focusInnerElement(i)},onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}}),this.setAriaProperties()},i.prototype.setAriaProperties=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),i=this.eContainer;Xn(i,this.ariaRole),ee(i,t)},i.prototype.addResizeObserver=function(){var t=this.drawVirtualRows.bind(this),i=this.resizeObserverService.observeResize(this.getGui(),t);this.addDestroyFunc(i)},i.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},i.prototype.onFocusIn=function(t){var i=t.target;return i.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=ne(i)-1),!1},i.prototype.onFocusOut=function(t){return this.getFocusableElement().contains(t.relatedTarget)||(this.lastFocusedRowIndex=null),!1},i.prototype.handleKeyDown=function(t){switch(t.key){case Pe.UP:case Pe.DOWN:this.navigate(t.key===Pe.UP)&&t.preventDefault()}},i.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():this.focusService.focusInto(this.getGui(),!t.shiftKey)},i.prototype.navigate=function(t){if(null==this.lastFocusedRowIndex)return!1;var i=this.lastFocusedRowIndex+(t?-1:1);return!(i<0||i>=this.model.getRowCount()||(this.focusRow(i),0))},i.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},i.prototype.focusRow=function(t){var i=this;this.ensureIndexVisible(t),window.setTimeout((function(){var n=i.renderedRows.get(t);n&&n.eDiv.focus()}),10)},i.prototype.getComponentAt=function(t){var i=this.renderedRows.get(t);return i&&i.rowComponent},i.prototype.forEachRenderedRow=function(t){this.renderedRows.forEach((function(i,n){return t(i.rowComponent,n)}))},i.getTemplate=function(t){return'\n <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>'},i.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},i.prototype.ensureIndexVisible=function(t){var i=this.model.getRowCount();if("number"!=typeof t||t<0||t>=i)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+t);else{var n=t*this.rowHeight,e=n+this.rowHeight,r=this.getGui(),o=r.scrollTop,s=r.offsetHeight,u=o+s<e;o>n?r.scrollTop=n:u&&(r.scrollTop=e-s)}},i.prototype.setComponentCreator=function(t){this.componentCreator=t},i.prototype.getRowHeight=function(){return this.rowHeight},i.prototype.getScrollTop=function(){return this.getGui().scrollTop},i.prototype.setRowHeight=function(t){this.rowHeight=t,this.refresh()},i.prototype.refresh=function(){var t=this;if(null!=this.model&&!this.isDestroyed){var i=this.model.getRowCount();this.eContainer.style.height=i*this.rowHeight+"px",P((function(){return t.eContainer.clientHeight>=i*t.rowHeight}),(function(){t.isDestroyed||(t.clearVirtualRows(),t.drawVirtualRows())}))}},i.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(i,n){return t.removeRow(n)}))},i.prototype.drawVirtualRows=function(){if(this.isAlive()){var t=this.getGui(),i=t.scrollTop,n=i+t.offsetHeight,e=Math.floor(i/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(e,r)}},i.prototype.ensureRowsRendered=function(t,i){var n=this;this.renderedRows.forEach((function(e,r){(r<t||r>i)&&r!==n.lastFocusedRowIndex&&n.removeRow(r)}));for(var e=t;e<=i;e++)this.renderedRows.has(e)||e<this.model.getRowCount()&&this.insertRow(e)},i.prototype.insertRow=function(t){var i=this,n=this.model.getRow(t),e=document.createElement("div");if(e.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Xn(e,"tree"===this.ariaRole?"treeitem":"option"),fe(e,this.model.getRowCount()),le(e,t+1),e.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var r=this.model.isRowSelected(t);Ce(e,!!r),Re(e,r)}e.style.height=this.rowHeight+"px",e.style.top=this.rowHeight*t+"px";var o=this.componentCreator(n,e);o.addGuiEventListener("focusin",(function(){return i.lastFocusedRowIndex=t})),e.appendChild(o.getGui()),this.renderedRows.has(t-1)?this.renderedRows.get(t-1).eDiv.insertAdjacentElement("afterend",e):this.renderedRows.has(t+1)?this.renderedRows.get(t+1).eDiv.insertAdjacentElement("beforebegin",e):this.eContainer.appendChild(e),this.renderedRows.set(t,{rowComponent:o,eDiv:e})},i.prototype.removeRow=function(t){var i=this.renderedRows.get(t);this.eContainer.removeChild(i.eDiv),this.destroyBean(i.rowComponent),this.renderedRows.delete(t)},i.prototype.addScrollListener=function(){var t=this;this.addGuiEventListener("scroll",(function(){return t.drawVirtualRows()}))},i.prototype.setModel=function(t){this.model=t},i.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,t.prototype.destroy.call(this))},pl([W("resizeObserverService")],i.prototype,"resizeObserverService",void 0),pl([W("focusService")],i.prototype,"focusService",void 0),pl([ur("eContainer")],i.prototype,"eContainer",void 0),pl([L],i.prototype,"postConstruct",null)}(Jf);
285
- /**
286
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
287
- * @version v28.2.0
288
- * @link https://www.ag-grid.com/
289
- * @license MIT
290
- */
291
- var gl,ml=["mouseover","mouseout","mouseenter","mouseleave"],wl=["touchstart","touchend","touchmove","touchcancel"],bl=function(){function t(){this.isOutsideAngular=function(t){return ft(ml,t)}}return t.prototype.setTimeout=function(t,i){window.setTimeout(t,i)},t.prototype.setInterval=function(t,i){return new $e((function(n){n(window.setInterval(t,i))}))},t.prototype.addEventListener=function(t,i,n,e){var r=ft(wl,i);t.addEventListener(i,n,{capture:!!e,passive:r})},t.prototype.dispatchEvent=function(t,i){i()},t.prototype.frameworkComponent=function(){return null},t.prototype.isFrameworkComponent=function(){return!1},t}(),yl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Rl=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Sl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yl(i,t),i.prototype.getNextCellToFocus=function(t,i,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(t,i):this.getNextCellToFocusWithoutCtrlPressed(t,i)},i.prototype.getNextCellToFocusWithCtrlPressed=function(t,i){var n,e,r=t===Pe.UP,o=t===Pe.LEFT;if(r||t===Pe.DOWN)e=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=i.column;else{var s=this.columnModel.getAllDisplayedColumns(),u=this.gridOptionsWrapper.isEnableRtl();e=i.rowIndex,n=o!==u?s[0]:rt(s)}return{rowIndex:e,rowPinned:null,column:n}},i.prototype.getNextCellToFocusWithoutCtrlPressed=function(t,i){for(var n=i,e=!1;!e;){switch(t){case Pe.UP:n=this.getCellAbove(n);break;case Pe.DOWN:n=this.getCellBelow(n);break;case Pe.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case Pe.LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+t)}e=!n||this.isCellGoodToFocusOn(n)}return n},i.prototype.isCellGoodToFocusOn=function(t){var i,n=t.column;switch(t.rowPinned){case Q.PINNED_TOP:i=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case Q.PINNED_BOTTOM:i=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:i=this.rowModel.getRow(t.rowIndex)}return!!i&&!n.isSuppressNavigable(i)},i.prototype.getCellToLeft=function(t){if(!t)return null;var i=this.columnModel.getDisplayedColBefore(t.column);return i?{rowIndex:t.rowIndex,column:i,rowPinned:t.rowPinned}:null},i.prototype.getCellToRight=function(t){if(!t)return null;var i=this.columnModel.getDisplayedColAfter(t.column);return i?{rowIndex:t.rowIndex,column:i,rowPinned:t.rowPinned}:null},i.prototype.getRowBelow=function(t){var i=t.rowIndex,n=t.rowPinned;if(this.isLastRowInContainer(t))switch(n){case Q.PINNED_BOTTOM:return null;case Q.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(Q.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Q.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(Q.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Q.PINNED_BOTTOM}:null}var e=this.rowModel.getRow(t.rowIndex);return this.getNextStickyPosition(e)||{rowIndex:i+1,rowPinned:n}},i.prototype.getNextStickyPosition=function(t,i){if(this.gridOptionsWrapper.isGroupRowsSticky()&&t&&t.sticky){var n=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Rl(arguments[i]));return t}(this.rowRenderer.getStickyTopRowCtrls()).sort((function(t,i){return t.getRowNode().rowIndex-i.getRowNode().rowIndex})),e=i?-1:1,r=n.findIndex((function(i){return i.getRowNode().rowIndex===t.rowIndex})),o=n[r+e];return o?{rowIndex:o.getRowNode().rowIndex,rowPinned:null}:void 0}},i.prototype.getCellBelow=function(t){if(!t)return null;var i=this.getRowBelow(t);return i?{rowIndex:i.rowIndex,column:t.column,rowPinned:i.rowPinned}:null},i.prototype.isLastRowInContainer=function(t){var i=t.rowPinned,n=t.rowIndex;return i===Q.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:i===Q.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},i.prototype.getRowAbove=function(t){var i=t.rowIndex,n=t.rowPinned;if(n?0===i:i===this.paginationProxy.getPageFirstRow())return n===Q.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(Q.PINNED_TOP)?this.getLastFloatingTopRow():null;var e=this.rowModel.getRow(t.rowIndex);return this.getNextStickyPosition(e,!0)||{rowIndex:i-1,rowPinned:n}},i.prototype.getCellAbove=function(t){if(!t)return null;var i=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return i?{rowIndex:i.rowIndex,column:t.column,rowPinned:i.rowPinned}:null},i.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},i.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:Q.PINNED_TOP}},i.prototype.getNextTabbedCell=function(t,i){return i?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},i.prototype.getNextTabbedCellForwards=function(t){var i=this.columnModel.getAllDisplayedColumns(),e=t.rowIndex,r=t.rowPinned,o=this.columnModel.getDisplayedColAfter(t.column);if(!o){o=i[0];var s=this.getRowBelow(t);if(n(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;e=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:e,column:o,rowPinned:r}},i.prototype.getNextTabbedCellBackwards=function(t){var i=this.columnModel.getAllDisplayedColumns(),e=t.rowIndex,r=t.rowPinned,o=this.columnModel.getDisplayedColBefore(t.column);if(!o){o=rt(i);var s=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(n(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;e=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:e,column:o,rowPinned:r}},Cl([W("columnModel")],i.prototype,"columnModel",void 0),Cl([W("rowModel")],i.prototype,"rowModel",void 0),Cl([W("rowRenderer")],i.prototype,"rowRenderer",void 0),Cl([W("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Cl([W("paginationProxy")],i.prototype,"paginationProxy",void 0),Cl([B("cellNavigationService")],i)}(kt),Ol=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Al=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jl=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.consuming=!1,i}var n;return Ol(i,t),i.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},i.prototype.init=function(){this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},i.prototype.fireEvent=function(t){if(!this.consuming){var i=this.gridOptionsWrapper.getAlignedGrids();i&&i.forEach((function(i){if(i.api){var n=i.api.__getAlignedGridService();t(n)}}))}},i.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},i.prototype.fireColumnEvent=function(t){this.fireEvent((function(i){i.onColumnEvent(t)}))},i.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(i){i.onScrollEvent(t)}))},i.prototype.onScrollEvent=function(t){var i=this;this.onEvent((function(){i.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(t.left)}))},i.prototype.getMasterColumns=function(t){var i=[];return t.columns?t.columns.forEach((function(t){i.push(t)})):t.column&&i.push(t.column),i},i.prototype.getColumnIds=function(t){var i=[];return t.columns?t.columns.forEach((function(t){i.push(t.getColId())})):t.column&&i.push(t.column.getColId()),i},i.prototype.onColumnEvent=function(t){var i=this;this.onEvent((function(){switch(t.type){case Tt.EVENT_COLUMN_MOVED:case Tt.EVENT_COLUMN_VISIBLE:case Tt.EVENT_COLUMN_PINNED:case Tt.EVENT_COLUMN_RESIZED:i.processColumnEvent(t);break;case Tt.EVENT_COLUMN_GROUP_OPENED:i.processGroupOpenedEvent(t);break;case Tt.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.")}}))},i.prototype.processGroupOpenedEvent=function(t){var i=t.columnGroup,n=null;if(i){var e=i.getGroupId();n=this.columnModel.getProvidedColumnGroup(e)}i&&!n||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+i.isExpanded()),this.columnModel.setColumnGroupOpened(n,i.isExpanded(),"alignedGridChanged"))},i.prototype.processColumnEvent=function(t){var i,n=this,e=t.column,r=null;if(e&&(r=this.columnModel.getPrimaryColumn(e.getColId())),!e||r){var o=this.getMasterColumns(t);switch(t.type){case Tt.EVENT_COLUMN_MOVED:var s=t,u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:u,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex);break;case Tt.EVENT_COLUMN_VISIBLE:var h=t;u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,hide:t.hide}})),this.columnModel.applyColumnState({state:u},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+h.visible);break;case Tt.EVENT_COLUMN_PINNED:var c=t;u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,pinned:t.pinned}})),this.columnModel.applyColumnState({state:u},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+c.pinned);break;case Tt.EVENT_COLUMN_RESIZED:var a=t,f={};o.forEach((function(i){n.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+i.getActualWidth()),f[i.getId()]={key:i.getColId(),newWidth:i.getActualWidth()}})),null===(i=a.flexColumns)||void 0===i||i.forEach((function(t){f[t.getId()]&&delete f[t.getId()]})),this.columnModel.setColumnWidths(Object.values(f),!1,a.finished,"alignedGridChanged")}var l=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),d=this.gridOptionsWrapper.getAlignedGrids();d&&d.forEach((function(t){t.api&&t.api.setAlwaysShowVerticalScroll(l)}))}},Al([W("columnModel")],i.prototype,"columnModel",void 0),Al([W("ctrlsService")],i.prototype,"ctrlsService",void 0),Al([(0,n=U("loggerFactory"),function(t,i){n(t,i,0)})],i.prototype,"setBeans",null),Al([L],i.prototype,"init",null),Al([B("alignedGridsService")],i)}(kt),Gl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_l=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},xl=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}var e;return Gl(n,t),n.prototype.setBeans=function(t){this.logger=t.create("selectionService"),this.reset()},n.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Tt.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},n.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},n.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},n.prototype.getSelectedNodes=function(){var t=[];return a(this.selectedNodes,(function(i,n){n&&t.push(n)})),t},n.prototype.getSelectedRows=function(){var t=[];return a(this.selectedNodes,(function(i,n){n&&n.data&&t.push(n.data)})),t},n.prototype.removeGroupsFromSelection=function(){var t=this;a(this.selectedNodes,(function(i,n){n&&n.group&&(t.selectedNodes[n.id]=void 0)}))},n.prototype.updateGroupsFromChildrenSelections=function(t){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===Q.ROW_MODEL_TYPE_CLIENT_SIDE){var i=this.rowModel.getRootNode();t||(t=new Xa(!0,i)).setInactive(),t.forEachChangedNodeDepthFirst((function(t){if(t!==i){var n=t.calculateSelectedFromChildren();t.selectThisNode(null!==n&&n)}}))}},n.prototype.getNodeForIdIfSelected=function(t){return this.selectedNodes[t]},n.prototype.clearOtherNodes=function(t){var i=this,n={},e=0;return a(this.selectedNodes,(function(r,o){o&&o.id!==t.id&&(e+=i.selectedNodes[o.id].setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),i.groupSelectsChildren&&o.parent&&(n[o.parent.id]=o.parent))})),a(n,(function(t,i){var n=i.calculateSelectedFromChildren();i.selectThisNode(null!==n&&n)})),e},n.prototype.onRowSelected=function(t){var i=t.node;this.groupSelectsChildren&&i.group||(this.selectedNodes[i.id]=i.isSelected()?i:void 0)},n.prototype.syncInRowNode=function(t,i){this.syncInOldRowNode(t,i),this.syncInNewRowNode(t)},n.prototype.syncInOldRowNode=function(t,n){i(n)&&t.id!==n.id&&n&&this.selectedNodes[n.id]==t&&(this.selectedNodes[n.id]=n)},n.prototype.syncInNewRowNode=function(t){i(this.selectedNodes[t.id])?(t.setSelectedInitialValue(!0),this.selectedNodes[t.id]=t):t.setSelectedInitialValue(!1)},n.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},n.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===Q.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getTopLevelNodes();if(null!==t){var i=[];return function t(n){for(var e=0,r=n.length;e<r;e++){var o=n[e];o.isSelected()?i.push(o):o.group&&o.children&&t(o.children)}}(t),i}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model")},n.prototype.setRowModel=function(t){this.rowModel=t},n.prototype.isEmpty=function(){var t=0;return a(this.selectedNodes,(function(i,n){n&&t++})),0===t},n.prototype.deselectAllRowNodes=function(t){void 0===t&&(t=!1);var i=function(t){return t.selectThisNode(!1)},n=this.rowModel.getType()===Q.ROW_MODEL_TYPE_CLIENT_SIDE;if(t){if(!n)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(i)}else a(this.selectedNodes,(function(t,n){n&&i(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:Tt.EVENT_SELECTION_CHANGED})},n.prototype.selectAllRowNodes=function(t){if(void 0===t&&(t=!1),this.rowModel.getType()!==Q.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var i=this.rowModel,n=function(t){return t.selectThisNode(!0)};t?i.forEachNodeAfterFilter(n):i.forEachNode(n),this.rowModel.getType()===Q.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:Tt.EVENT_SELECTION_CHANGED})},n.prototype.selectNode=function(t,i){t&&t.setSelectedParams({newValue:!0,clearSelection:!i})},n.prototype.deselectIndex=function(t){var i=this.rowModel.getRow(t);this.deselectNode(i)},n.prototype.deselectNode=function(t){t&&t.setSelectedParams({newValue:!1,clearSelection:!1})},n.prototype.selectIndex=function(t,i){var n=this.rowModel.getRow(t);this.selectNode(n,i)},_l([W("rowModel")],n.prototype,"rowModel",void 0),_l([(0,e=U("loggerFactory"),function(t,i){e(t,i,0)})],n.prototype,"setBeans",null),_l([L],n.prototype,"init",null),_l([B("selectionService")],n)}(kt),Fl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ml=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,i){this.columnModel.setColumnGroupOpened(t,i,"api")},t.prototype.getColumnGroup=function(t,i){return this.columnModel.getColumnGroup(t,i)},t.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,i){return this.columnModel.getDisplayNameForColumn(t,i)||""},t.prototype.getDisplayNameForColumnGroup=function(t,i){return this.columnModel.getDisplayNameForColumnGroup(t,i)||""},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,i){this.columnModel.setColumnVisible(t,i,"api")},t.prototype.setColumnsVisible=function(t,i){this.columnModel.setColumnsVisible(t,i,"api")},t.prototype.setColumnPinned=function(t,i){this.columnModel.setColumnPinned(t,i,"api")},t.prototype.setColumnsPinned=function(t,i){this.columnModel.setColumnsPinned(t,i,"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,i){"number"==typeof t?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(t,i,"api")):this.columnModel.moveColumn(t,i,"api")},t.prototype.moveColumnByIndex=function(t,i){this.columnModel.moveColumnByIndex(t,i,"api")},t.prototype.moveColumns=function(t,i){this.columnModel.moveColumns(t,i,"api")},t.prototype.moveRowGroupColumn=function(t,i){this.columnModel.moveRowGroupColumn(t,i)},t.prototype.setColumnAggFunc=function(t,i){this.columnModel.setColumnAggFunc(t,i)},t.prototype.setColumnWidth=function(t,i,n,e){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:t,newWidth:i}],!1,n,e)},t.prototype.setColumnWidths=function(t,i,n){void 0===i&&(i=!0),this.columnModel.setColumnWidths(t,!1,i,n)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getSecondaryPivotColumn=function(t,i){return console.warn("AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead"),this.getPivotResultColumn(t,i)},t.prototype.getPivotResultColumn=function(t,i){return this.columnModel.getSecondaryPivotColumn(t,i)},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,i){return this.columnModel.autoSizeColumn(t,i,"api")},t.prototype.autoSizeColumns=function(t,i){this.columnModel.autoSizeColumns({columns:t,skipHeader:i})},t.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},t.prototype.setSecondaryColumns=function(t){console.warn("AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead"),this.setPivotResultColumns(t)},t.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},t.prototype.getSecondaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead"),this.getPivotResultColumns()},t.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.getPrimaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead"),this.getColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Ye.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return console.warn("AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead"),this.getColumns()},t.prototype.columnGroupOpened=function(t,i){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(t,i)},t.prototype.hideColumns=function(t,i){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(t,!i,"api")},t.prototype.hideColumn=function(t,i){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(t,!i,"api")},t.prototype.setState=function(t){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(t)},t.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},t.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},t.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},t.prototype.removeAggregationColumn=function(t){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(t,"api")},t.prototype.removeAggregationColumns=function(t){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(t,"api")},t.prototype.addAggregationColumn=function(t){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(t,"api")},t.prototype.addAggregationColumns=function(t){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(t,"api")},t.prototype.setColumnAggFunction=function(t,i){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(t,i,"api")},t.prototype.getDisplayNameForCol=function(t){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(t,null)},t.prototype.setColumnState=function(t){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:t,applyOrder:!0},"api")},t.prototype.getOriginalColumnGroup=function(t){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(t)},Fl([W("columnModel")],t.prototype,"columnModel",void 0),Fl([H],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),Fl([B("columnApi")],t)}(),kl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Dl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Pl=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.initialised=!1,i}return kl(e,t),e.prototype.init=function(){var t=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(Tt.EVENT_CELL_VALUE_CHANGED,(function(i){return t.callColumnCellValueChangedHandler(i)}),this.gridOptionsWrapper.useAsyncEvents())},e.prototype.getValue=function(t,i,n,e){if(void 0===n&&(n=!1),void 0===e&&(e=!1),this.initialised||this.init(),i){var r,o=t.getColDef(),s=o.field,u=t.getId(),h=i.data,c=i.groupData&&void 0!==i.groupData[u],a=!e&&i.aggData&&void 0!==i.aggData[u];if(n&&o.filterValueGetter?r=this.executeFilterValueGetter(o.filterValueGetter,h,t,i):this.gridOptionsWrapper.isTreeData()&&a?r=i.aggData[u]:this.gridOptionsWrapper.isTreeData()&&o.valueGetter?r=this.executeValueGetter(o.valueGetter,h,t,i):this.gridOptionsWrapper.isTreeData()&&s&&h?r=b(h,s,t.isFieldContainsDots()):c?r=i.groupData[u]:a?r=i.aggData[u]:o.valueGetter?r=this.executeValueGetter(o.valueGetter,h,t,i):s&&h&&(r=b(h,s,t.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var f=r.substring(1);r=this.executeValueGetter(f,h,t,i)}if(null==r){var l=this.getOpenedGroup(i,t);if(null!=l)return l}return r}},e.prototype.getOpenedGroup=function(t,i){if(this.gridOptionsWrapper.isShowOpenedGroup()&&i.getColDef().showRowGroup)for(var n=i.getColDef().showRowGroup,e=t.parent;null!=e;){if(e.rowGroupColumn&&(!0===n||n===e.rowGroupColumn.getId()))return e.key;e=e.parent}},e.prototype.setValue=function(t,e,r,o){var s=this.columnModel.getPrimaryColumn(e);if(!t||!s)return!1;n(t.data)&&(t.data={});var u=s.getColDef(),h=u.field,c=u.newValueHandler,a=u.valueSetter;if(n(h)&&n(c)&&n(a))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var f,l={node:t,data:t.data,oldValue:this.getValue(s,t),newValue:r,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return l.newValue=r,void 0===(f=c&&i(c)?c(l):i(a)?this.expressionService.evaluate(a,l):this.setValueUsingField(t.data,h,r,s.isFieldContainsDots()))&&(f=!0),!!f&&(t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),l.newValue=this.getValue(s,t),this.eventService.dispatchEvent({type:Tt.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:l.column,api:l.api,columnApi:l.columnApi,colDef:l.colDef,context:l.context,data:t.data,node:t,oldValue:l.oldValue,newValue:l.newValue,value:l.newValue,source:o}),!0)},e.prototype.callColumnCellValueChangedHandler=function(t){var i=t.colDef.onCellValueChanged;"function"==typeof i&&i({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})},e.prototype.setValueUsingField=function(t,i,n,e){if(!i)return!1;var r=!1;if(e)for(var o=i.split("."),s=t;o.length>0&&s;){var u=o.shift();0===o.length?(r=s[u]==n)||(s[u]=n):s=s[u]}else(r=t[i]==n)||(t[i]=n);return!r},e.prototype.executeFilterValueGetter=function(t,i,n,e){var r={data:i,node:e,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,e)};return this.expressionService.evaluate(t,r)},e.prototype.executeValueGetter=function(t,i,n,e){var r=n.getId(),o=this.valueCache.getValue(e,r);if(void 0!==o)return o;var s={data:i,node:e,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,e)},u=this.expressionService.evaluate(t,s);return this.valueCache.setValue(e,r,u),u},e.prototype.getValueCallback=function(t,i){var n=this.columnModel.getPrimaryColumn(i);return n?this.getValue(n,t):null},e.prototype.getKeyForNode=function(t,i){var n=this.getValue(t,i),e=t.getColDef().keyCreator,r=n;return e&&(r=e({value:n,colDef:t.getColDef(),column:t,node:i,data:i.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&O((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]"),r},Dl([W("expressionService")],e.prototype,"expressionService",void 0),Dl([W("columnModel")],e.prototype,"columnModel",void 0),Dl([W("valueCache")],e.prototype,"valueCache",void 0),Dl([L],e.prototype,"init",null),Dl([B("valueService")],e)}(kt),Il=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Tl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},El=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.expressionToFunctionCache={},i}var n;return Il(i,t),i.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},i.prototype.evaluate=function(t,i){return"function"==typeof t?t(i):"string"==typeof t?this.evaluateExpression(t,i):void console.error("AG Grid: value should be either a string or a function",t)},i.prototype.evaluateExpression=function(t,i){try{return this.createExpressionFunction(t)(i.value,i.context,i.oldValue,i.newValue,i.value,i.node,i.data,i.colDef,i.rowIndex,i.api,i.columnApi,i.getValue,i.column,i.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+t),console.log("Params =",i),console.log("Exception = "+n),null}},i.prototype.createExpressionFunction=function(t){if(this.expressionToFunctionCache[t])return this.expressionToFunctionCache[t];var i=this.createFunctionBody(t),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",i);return this.expressionToFunctionCache[t]=n,n},i.prototype.createFunctionBody=function(t){return t.indexOf("return")>=0?t:"return "+t+";"},Tl([(0,n=U("loggerFactory"),function(t,i){n(t,i,0)})],i.prototype,"setBeans",null),Tl([B("expressionService")],i)}(kt),Nl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ll=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.templateCache={},i.waitingCallbacks={},i}return Nl(i,t),i.prototype.getTemplate=function(t,i){var n=this.templateCache[t];if(n)return n;var e=this.waitingCallbacks[t],r=this;if(!e){this.waitingCallbacks[t]=e=[];var o=new XMLHttpRequest;o.onload=function(){r.handleHttpResult(this,t)},o.open("GET",t),o.send()}return i&&e.push(i),null},i.prototype.handleHttpResult=function(t,i){if(200===t.status&&null!==t.response){this.templateCache[i]=t.response||t.responseText;for(var n=this.waitingCallbacks[i],e=0;e<n.length;e++)(0,n[e])()}else console.warn("AG Grid: Unable to get template error "+t.status+" - "+i)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("templateService")],i)}(kt),Hl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var n;return Hl(i,t),i.prototype.setBeans=function(t){this.logging=t.isDebug()},i.prototype.create=function(t){return new Vl(t,this.isLogging.bind(this))},i.prototype.isLogging=function(){return this.logging},Bl([(0,n=U("gridOptionsWrapper"),function(t,i){n(t,i,0)})],i.prototype,"setBeans",null),Bl([B("loggerFactory")],i)}(kt),Vl=function(){function t(t,i){this.name=t,this.isLoggingFunc=i}return t.prototype.isLogging=function(){return this.isLoggingFunc()},t.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},t}(),zl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ul=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Kl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return zl(i,t),i.prototype.setComp=function(t,i,n){var e=this;this.view=t,this.eGridHostDiv=i,this.eGui=n,this.dragAndDropService.addDropTarget({getContainer:function(){return e.eGui},isInterestedIn:function(t){return t===zo.HeaderCell||t===zo.ToolPanel},getIconName:function(){return ns.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(i),this.createManagedBean(new fu(this.view)),this.addRtlSupport(),this.addManagedListener(this,Tt.EVENT_KEYBOARD_FOCUS,(function(){e.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,Tt.EVENT_MOUSE_FOCUS,(function(){e.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()})),this.ctrlsService.registerGridCtrl(this)},i.prototype.isDetailGrid=function(){var t,i;return(null===(i=null===(t=this.focusService.findTabbableParent(this.getGui()))||void 0===t?void 0:t.getAttribute("row-id"))||void 0===i?void 0:i.startsWith("detail"))||!1},i.prototype.showDropZones=function(){return X.isRegistered(q.RowGroupingModule)},i.prototype.showSideBar=function(){return X.isRegistered(q.SideBarModule)},i.prototype.showStatusBar=function(){return X.isRegistered(q.StatusBarModule)},i.prototype.showWatermark=function(){return X.isRegistered(q.EnterpriseCoreModule)},i.prototype.onGridSizeChanged=function(){this.eventService.dispatchEvent({type:Tt.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})},i.prototype.addRtlSupport=function(){var t=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(t)},i.prototype.destroyGridUi=function(){this.view.destroyGridUi()},i.prototype.getGui=function(){return this.eGui},i.prototype.setResizeCursor=function(t){this.view.setCursor(t?"ew-resize":null)},i.prototype.disableUserSelect=function(t){this.view.setUserSelect(t?"none":null)},i.prototype.focusNextInnerContainer=function(t){var i=this.gridOptionsWrapper.getDocument(),n=this.view.getFocusableContainers(),e=n.findIndex((function(t){return t.contains(i.activeElement)}))+(t?-1:1);return!(e<=0||e>=n.length)&&this.focusService.focusInto(n[e])},i.prototype.focusInnerElement=function(t){var i=this.view.getFocusableContainers();if(t){if(i.length>1)return this.focusService.focusInto(rt(i),!0);var n=rt(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusService.focusFirstHeader()},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.view.forceFocusOutOfContainer(t)},Ul([W("focusService")],i.prototype,"focusService",void 0),Ul([W("resizeObserverService")],i.prototype,"resizeObserverService",void 0),Ul([W("columnModel")],i.prototype,"columnModel",void 0),Ul([W("ctrlsService")],i.prototype,"ctrlsService",void 0),Ul([W("mouseEventService")],i.prototype,"mouseEventService",void 0),Ul([W("dragAndDropService")],i.prototype,"dragAndDropService",void 0),i}(kt),ql=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Jl=function(t){function i(i){var n=t.call(this,void 0)||this;return n.eGridDiv=i,n}return ql(i,t),i.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var i={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(i){return t.addCssClass(i)},addOrRemoveKeyboardFocusClass:function(i){return t.addOrRemoveCssClass(hl.AG_KEYBOARD_FOCUS,i)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(i){t.getGui().style.userSelect=null!=i?i:"",t.getGui().style.webkitUserSelect=null!=i?i:""},setCursor:function(i){t.getGui().style.cursor=null!=i?i:""}};this.ctrl=this.createManagedBean(new Kl);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(i,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(i){return t.ctrl.focusInnerElement(i)}})},i.prototype.insertGridIntoDom=function(){var t=this,i=this.getGui();this.eGridDiv.appendChild(i),this.addDestroyFunc((function(){t.eGridDiv.removeChild(i),t.logger.log("Grid removed from DOM")}))},i.prototype.updateLayoutClasses=function(t,i){var n=this.eRootWrapperBody.classList;n.toggle(Js.AUTO_HEIGHT,i.autoHeight),n.toggle(Js.NORMAL,i.normal),n.toggle(Js.PRINT,i.print),this.addOrRemoveCssClass(Js.AUTO_HEIGHT,i.autoHeight),this.addOrRemoveCssClass(Js.NORMAL,i.normal),this.addOrRemoveCssClass(Js.PRINT,i.print)},i.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>"},i.prototype.getFocusableElement=function(){return this.eRootWrapperBody},i.prototype.getFocusableContainers=function(){var t=[this.gridBodyComp.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return Gn(t)}))},Yl([W("loggerFactory")],i.prototype,"loggerFactory",void 0),Yl([ur("gridBody")],i.prototype,"gridBodyComp",void 0),Yl([ur("sideBar")],i.prototype,"sideBarComp",void 0),Yl([ur("rootWrapperBody")],i.prototype,"eRootWrapperBody",void 0),Yl([L],i.prototype,"postConstruct",null),i}(Jf),Zl=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$l=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ql=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Xl=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Ql(arguments[i]));return t},td=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var n;return Zl(i,t),n=i,i.prototype.progressSort=function(t,i,n){var e=this.getNextSortDirection(t);this.setSortForColumn(t,e,i,n)},i.prototype.setSortForColumn=function(t,i,n,e){var r;i!==Q.SORT_ASC&&i!==Q.SORT_DESC&&(i=null);var o=[t];if(this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&t.getColDef().showRowGroup){var s=null===(r=this.columnModel.getSourceColumnsForGroupColumn(t))||void 0===r?void 0:r.filter((function(t){return t.getColDef().sortable}));s&&(o=Xl([t],s))}o.forEach((function(t){return t.setSort(i,e)})),(n||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarTheseColumns(o,e),this.updateSortIndex(t),this.dispatchSortChangedEvents(e)},i.prototype.updateSortIndex=function(t){var i=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),n=this.columnModel.getGroupDisplayColumnForGroup(t.getId()),e=i&&n||t,r=this.getIndexableColumnsOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(t){return t.setSortIndex(null)}));var o=r.filter((function(t){return t!==e}));(e.getSort()?Xl(o,[e]):o).forEach((function(t,i){return t.setSortIndex(i)}))},i.prototype.onSortChanged=function(t){this.dispatchSortChangedEvents(t)},i.prototype.isSortActive=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t&&t.length>0},i.prototype.dispatchSortChangedEvents=function(t){this.eventService.dispatchEvent({type:Tt.EVENT_SORT_CHANGED,source:t})},i.prototype.clearSortBarTheseColumns=function(t,i){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){t.includes(n)||n.setSort(void 0,i)}))},i.prototype.getNextSortDirection=function(t){var i;if(i=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(i)||i.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+i),null;var e,r=i.indexOf(t.getSort());return n.DEFAULT_SORTING_ORDER.indexOf(e=r<0||r==i.length-1?i[0]:i[r+1])<0?(console.warn("AG Grid: invalid sort type "+e),null):e},i.prototype.getColumnsOrderedForSort=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),i={};return t.forEach((function(t,n){return i[t.getId()]=n})),t.sort((function(t,n){var e=t.getSortIndex(),r=n.getSortIndex();return null!=e&&null!=r?e-r:null==e&&null==r?i[t.getId()]>i[n.getId()]?1:-1:null==r?-1:1})),t},i.prototype.getIndexableColumnsOrdered=function(){var t=this;return this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()?this.getColumnsOrderedForSort().filter((function(i){var n;return i.getColDef().showRowGroup?!(!i.getColDef().field||!i.getSort())||(null===(n=t.columnModel.getSourceColumnsForGroupColumn(i))||void 0===n?void 0:n.some((function(t){return!!t.getSort()}))):!!i.getSort()})):this.getColumnsWithSortingOrdered()},i.prototype.getColumnsWithSortingOrdered=function(){return this.getColumnsOrderedForSort().filter((function(t){return!!t.getSort()}))},i.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),colId:t.getId()}}))},i.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),column:t}}))},i.prototype.canColumnDisplayMixedSort=function(t){var i=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),n=!!t.getColDef().showRowGroup;return i&&n},i.prototype.getDisplaySortForColumn=function(t){var i,n=this.columnModel.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!(null===(i=n)||void 0===i?void 0:i.length))return t.getSort();var e=t.getColDef().field?Xl([t],n):n,r=e[0].getSort();return e.every((function(t){return t.getSort()==r}))?r:"mixed"},i.prototype.getDisplaySortIndexForColumn=function(t){var i=this;if(!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup())return this.getColumnsWithSortingOrdered().indexOf(t);var n=this.columnModel.getGroupDisplayColumnForGroup(t.getId());return n?t.getSort()?this.getDisplaySortIndexForColumn(n):null:this.getIndexableColumnsOrdered().filter((function(t){return!i.columnModel.getGroupDisplayColumnForGroup(t.getId())})).indexOf(t)},i.DEFAULT_SORTING_ORDER=[Q.SORT_ASC,Q.SORT_DESC,null],$l([W("columnModel")],i.prototype,"columnModel",void 0),n=$l([B("sortController")],i)}(kt),id=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return id(i,t),i.prototype.setMouseOver=function(t){this.selectedColumns=t,this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_HOVER_CHANGED})},i.prototype.clearMouseOver=function(){this.selectedColumns=null,this.eventService.dispatchEvent({type:Tt.EVENT_COLUMN_HOVER_CHANGED})},i.prototype.isHovered=function(t){return!!this.selectedColumns&&this.selectedColumns.indexOf(t)>=0},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("columnHoverService")],i)}(kt),ed=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},od=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.executeNextFuncs=[],i.executeLaterFuncs=[],i.active=!1,i.animationThreadCount=0,i}return ed(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){return t.gridBodyCtrl=i.gridBodyCtrl}))},i.prototype.isActive=function(){return this.active},i.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},i.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},i.prototype.executeNextVMTurn=function(t){this.active?this.executeNextFuncs.push(t):t()},i.prototype.executeLaterVMTurn=function(t){this.active?this.executeLaterFuncs.push(t):t()},i.prototype.ensureAnimationCssClassPresent=function(){var t=this;this.animationThreadCount++;var i=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){t.animationThreadCount===i&&t.gridBodyCtrl.setColumnMovingCss(!1)}))},i.prototype.flush=function(){var t=this.executeNextFuncs;this.executeNextFuncs=[];var i=this.executeLaterFuncs;this.executeLaterFuncs=[],0===t.length&&0===i.length||(window.setTimeout((function(){return t.forEach((function(t){return t()}))}),0),window.setTimeout((function(){return i.forEach((function(t){return t()}))}),300))},rd([W("ctrlsService")],i.prototype,"ctrlsService",void 0),rd([L],i.prototype,"postConstruct",null),rd([B("columnAnimationService")],i)}(kt),sd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ud=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var e;return sd(i,t),e=i,i.prototype.createAutoGroupColumns=function(t,i){var n=this,e=[],r=this.gridOptionsWrapper.isTreeData(),o=this.gridOptionsWrapper.isGroupMultiAutoColumn();return r&&o&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),o=!1),o?i.forEach((function(i,r){e.push(n.createOneAutoGroupColumn(t,i,r))})):e.push(this.createOneAutoGroupColumn(t)),e},i.prototype.createOneAutoGroupColumn=function(t,i,r){var o,s=this.generateDefaultColDef(i);o=i?Q.GROUP_AUTO_COLUMN_ID+"-"+i.getId():e.GROUP_AUTO_COLUMN_BUNDLE_ID,w(s,this.gridOptionsWrapper.getAutoGroupColumnDef()),(s=this.columnFactory.mergeColDefs(s)).colId=o,this.gridOptionsWrapper.isTreeData()||n(s.field)&&n(s.valueGetter)&&n(s.filterValueGetter)&&(s.filter=!1),r&&r>0&&(s.headerCheckboxSelection=!1);var u=t.find((function(t){return t.getId()==o}));if(u)return u.setColDef(s,null),this.columnFactory.applyColumnState(u,s),u;var h=new nt(s,null,o,!0);return this.context.createBean(h),h},i.prototype.generateDefaultColDef=function(t){var i=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(i&&(i.cellRenderer||i.cellRendererFramework||i.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),t){var e=t.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(t,"header"),headerValueGetter:e.headerValueGetter}),(e.cellRenderer||e.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:e.cellRenderer,innerRendererFramework:e.cellRendererFramework,innerRendererParams:e.cellRendererParams}}),n.showRowGroup=t.getColId()}else n.showRowGroup=!0;return n},i.GROUP_AUTO_COLUMN_BUNDLE_ID=Q.GROUP_AUTO_COLUMN_ID,ud([W("columnModel")],i.prototype,"columnModel",void 0),ud([W("columnFactory")],i.prototype,"columnFactory",void 0),e=ud([B("autoGroupColService")],i)}(kt),cd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ad=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},fd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return cd(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.centerRowContainerCon=i.centerRowContainerCtrl,t.addManagedListener(t.eventService,Tt.EVENT_BODY_HEIGHT_CHANGED,t.onBodyHeightChanged.bind(t)),t.addManagedListener(t.eventService,Tt.EVENT_SCROLL_VISIBILITY_CHANGED,t.onScrollVisibilityChanged.bind(t)),t.checkPageSize()}))},i.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},i.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},i.prototype.onBodyHeightChanged=function(){this.checkPageSize()},i.prototype.checkPageSize=function(){if(!this.notActive()){var t=this.gridOptionsWrapper.getRowHeightAsNumber(),i=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(i>0){var n=Math.floor(i/t);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},ad([W("ctrlsService")],i.prototype,"ctrlsService",void 0),ad([L],i.prototype,"postConstruct",null),ad([B("paginationAutoPageSizeService")],i)}(kt),ld=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),dd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},vd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.cacheVersion=0,i}return ld(i,t),i.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},i.prototype.onDataChanged=function(){this.neverExpires||this.expire()},i.prototype.expire=function(){this.cacheVersion++},i.prototype.setValue=function(t,i,n){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[i]=n)},i.prototype.getValue=function(t,i){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[i]},dd([L],i.prototype,"init",null),dd([B("valueCache")],i)}(kt),pd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),gd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},md=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return pd(i,t),i.prototype.init=function(){this.rowModel.getType()===Q.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Tt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},i.prototype.onCellValueChanged=function(t){t.source!==Q.SOURCE_PASTE&&this.doChangeDetection(t.node,t.column)},i.prototype.doChangeDetection=function(t,i){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!t.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),e=new Xa(n,this.clientSideRowModel.getRootNode());e.addParentNode(t.parent,[i]),this.clientSideRowModel.doAggregate(e)}this.rowRenderer.refreshCells()}},gd([W("rowModel")],i.prototype,"rowModel",void 0),gd([W("rowRenderer")],i.prototype,"rowRenderer",void 0),gd([L],i.prototype,"init",null),gd([B("changeDetectionService")],i)}(kt),wd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},yd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return wd(i,t),i.prototype.adaptFunction=function(t,i){var n=this.componentMetadataProvider.retrieve(t);return n&&n.functionAdapter?n.functionAdapter(i):null},i.prototype.adaptCellRendererFunction=function(t){return function(){function i(){}return i.prototype.refresh=function(){return!1},i.prototype.getGui=function(){return this.eGui},i.prototype.init=function(i){var n=t(i),e=typeof n;this.eGui="string"!==e&&"number"!==e&&"boolean"!==e?null!=n?n:_n("<span></span>"):_n("<span>"+n+"</span>")},i}()},i.prototype.doesImplementIComponent=function(t){return!!t&&t.prototype&&"getGui"in t.prototype},bd([W("componentMetadataProvider")],i.prototype,"componentMetadataProvider",void 0),bd([B("agComponentUtils")],i)}(kt),Cd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Sd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Cd(i,t),i.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)},pinnedRowCellRenderer:{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","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},i.prototype.retrieve=function(t){return this.componentMetaData[t]},Rd([W("agComponentUtils")],i.prototype,"agComponentUtils",void 0),Rd([L],i.prototype,"postConstruct",null),Rd([B("componentMetadataProvider")],i)}(kt),Od=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ad=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jd={"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}},Gd={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},_d={},xd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Od(i,t),i.prototype.getSassVariable=function(t,i){var n="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),e=jd[n][i],r=0;_d[t]||(_d[t]={});var o=_d[t][i];if(null!=o)return o;if(Gd[i]){var s=Gd[i],u=document.createElement("div");u.classList.add(t),u.style.position="absolute";var h=s.reduce((function(t,i){var n=document.createElement("div");return n.style.position="static",n.classList.add(i),t.appendChild(n),n}),u);if(document.body){document.body.appendChild(u);var c=-1!==i.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(h)[c],10),document.body.removeChild(u)}}return _d[t][i]=r||e,_d[t][i]},i.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},i.prototype.chartMenuPanelWidth=function(){var t=this.getTheme().themeFamily;return this.getSassVariable(t,"chartMenuPanelWidth")},i.prototype.getTheme=function(){for(var t=/\bag-(material|(?:theme-([\w\-]*)))\b/g,i=this.eGridDiv,n=null,e=[];i;){if(n=t.exec(i.className)){var r=i.className.match(t);r&&(e=r);break}i=i.parentElement||void 0}if(!n)return{allThemes:e};var o=n[0];if(void 0===n[2]){var s=o.replace("ag-","ag-theme-");O((function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+o+" with "+s+".")}),"using-old-theme")}return{theme:o,el:i,themeFamily:o.replace(/-dark$/,""),allThemes:e}},Ad([W("eGridDiv")],i.prototype,"eGridDiv",void 0),Ad([B("environment")],i)}(kt),Fd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Md=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},kd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.scrollY=0,i.uiBodyHeight=0,i}var n;return Fd(i,t),i.prototype.agWire=function(t){this.logger=t.create("RowContainerHeightService")},i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Tt.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Ri(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},i.prototype.isStretching=function(){return this.stretching},i.prototype.getDivStretchOffset=function(){return this.divStretchOffset},i.prototype.updateOffset=function(){if(this.stretching){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,i=this.getUiBodyHeight();(t!==this.scrollY||i!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=i,this.calculateOffset())}},i.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,i=t*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+i+" ("+this.pixelsToShave+" * "+t+")"),this.setDivStretchOffset(i)},i.prototype.setUiContainerHeight=function(t){t!==this.uiContainerHeight&&(this.uiContainerHeight=t,this.eventService.dispatchEvent({type:Tt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},i.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},i.prototype.setDivStretchOffset=function(t){var i="number"==typeof t?Math.floor(t):null;this.divStretchOffset!==i&&(this.divStretchOffset=i,this.eventService.dispatchEvent({type:Tt.EVENT_HEIGHT_SCALE_CHANGED}))},i.prototype.setModelHeight=function(t){this.modelHeight=t,this.stretching=null!=t&&this.maxDivHeight>0&&t>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},i.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},i.prototype.getRealPixelPosition=function(t){return t-this.divStretchOffset},i.prototype.getUiBodyHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return t.bottom-t.top},i.prototype.getScrollPositionForPixel=function(t){if(this.pixelsToShave<=0)return t;var i=this.modelHeight-this.getUiBodyHeight();return this.maxScrollY*(t/i)},Md([W("ctrlsService")],i.prototype,"ctrlsService",void 0),Md([(0,n=U("loggerFactory"),function(t,i){n(t,i,0)})],i.prototype,"agWire",null),Md([L],i.prototype,"postConstruct",null),Md([B("rowContainerHeightService")],i)}(kt),Dd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Id=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Dd(n,t),n.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},n.prototype.updateSelectableAfterGrouping=function(t){this.isRowSelectableFunc&&this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))},n.prototype.recurseDown=function(t,n){var e=this;t&&t.forEach((function(t){var r;t.group&&(t.hasChildren()&&e.recurseDown(n(t),n),r=e.groupSelectsChildren?i((n(t)||[]).find((function(t){return!0===t.selectable}))):!!e.isRowSelectableFunc&&e.isRowSelectableFunc(t),t.setRowSelectable(r))}))},Pd([L],n.prototype,"init",null),Pd([B("selectableService")],n)}(kt),Td=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ed=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Nd=function(t){function i(){var i=t.call(this)||this;return i.previousAndFirstButtonsDisabled=!1,i.nextButtonDisabled=!1,i.lastButtonDisabled=!1,i}return Td(i,t),i.prototype.postConstruct=function(){var t=this,i=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",ke(i?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",ke(i?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",ke(i?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",ke(i?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,Tt.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(i){var n=i.el,e=i.fn;t.addManagedListener(n,"click",e),t.addManagedListener(n,"keydown",(function(t){t.key!==Pe.ENTER&&t.key!==Pe.SPACE||(t.preventDefault(),e())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},i.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},i.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},i.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,i=this.paginationProxy.getCurrentPage();this.lbCurrent.innerHTML=this.formatNumber(t?i+1:0)},i.prototype.formatNumber=function(t){var i=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(i)return i({value:t});var n=this.gridOptionsWrapper.getLocaleTextFunc();return Ni(t,n("thousandSeparator",","),n("decimalSeparator","."))},i.prototype.getTemplate=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=t("page","Page"),n=t("to","to"),e=t("of","of"),r=t("firstPage","First Page"),o=t("previousPage","Previous Page"),s=t("nextPage","Next Page"),u=t("lastPage","Last Page"),h=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+h+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+h+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+h+'-to">'+n+'</span>\n <span id="ag-'+h+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+h+'-of">'+e+'</span>\n <span id="ag-'+h+'-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-paging-button" role="button" aria-label="'+r+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+o+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+h+'-start-page">'+i+'</span>\n <span id="ag-'+h+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+h+'-of-page">'+e+'</span>\n <span id="ag-'+h+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+u+'"></div>\n </span>\n </div>'},i.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},i.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},i.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},i.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var e=this.isZeroPagesToDisplay();this.nextButtonDisabled=i&&t===n-1||e,this.lastButtonDisabled=!i||e||t===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},i.prototype.toggleButtonDisabled=function(t,i){he(t,i),t.classList.toggle("ag-disabled",i),i?t.removeAttribute("tabindex"):t.setAttribute("tabindex","0")},i.prototype.updateRowLabels=function(){var t,i,n=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?t=i=0:(i=(t=e*n+1)+e-1,r&&i>o&&(i=o)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.lbLastRowOnPage.innerHTML=this.rowNodeBlockLoader.isLoading()?"?":this.formatNumber(i)},i.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages();return t&&0===i},i.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages(),n=t?this.paginationProxy.getMasterRowCount():null;if(1===n){var e=this.paginationProxy.getRow(0);if(e&&e.group&&!e.groupData&&!e.aggData)return void this.setTotalLabelsToZero()}if(t)this.lbTotal.innerHTML=this.formatNumber(i),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},i.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)},Ed([W("paginationProxy")],i.prototype,"paginationProxy",void 0),Ed([W("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),Ed([ur("btFirst")],i.prototype,"btFirst",void 0),Ed([ur("btPrevious")],i.prototype,"btPrevious",void 0),Ed([ur("btNext")],i.prototype,"btNext",void 0),Ed([ur("btLast")],i.prototype,"btLast",void 0),Ed([ur("lbRecordCount")],i.prototype,"lbRecordCount",void 0),Ed([ur("lbFirstRowOnPage")],i.prototype,"lbFirstRowOnPage",void 0),Ed([ur("lbLastRowOnPage")],i.prototype,"lbLastRowOnPage",void 0),Ed([ur("lbCurrent")],i.prototype,"lbCurrent",void 0),Ed([ur("lbTotal")],i.prototype,"lbTotal",void 0),Ed([L],i.prototype,"postConstruct",null),i}(sr),Ld=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows"}(gl||(gl={}));var Bd,Wd=function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n.manuallyDisplayed=!1,n}return Ld(i,t),i.prototype.updateLayoutClasses=function(t,i){var n=this.eOverlayWrapper.classList;n.toggle(Js.AUTO_HEIGHT,i.autoHeight),n.toggle(Js.NORMAL,i.normal),n.toggle(Js.PRINT,i.print)},i.prototype.postConstruct=function(){this.createManagedBean(new fu(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,Tt.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},i.prototype.setWrapperTypeClass=function(t){var i=this.eOverlayWrapper.classList;i.toggle("ag-overlay-loading-wrapper",t===gl.Loading),i.toggle("ag-overlay-no-rows-wrapper",t===gl.NoRows)},i.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var t=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,gl.Loading)}},i.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var t=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,gl.NoRows)}},i.prototype.showOverlay=function(t,i){var n=this;this.inProgress||(this.setWrapperTypeClass(i),this.destroyActiveOverlay(),this.inProgress=!0,t&&t.then((function(t){n.inProgress=!1,n.eOverlayWrapper.appendChild(t.getGui()),n.activeOverlay=t,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},i.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),An(this.eOverlayWrapper))},i.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},i.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},i.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),i=this.gridOptionsWrapper.isSuppressNoRowsOverlay();t&&!i?this.showNoRowsOverlay():this.hideOverlay()},i.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},i.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},i.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>',Hd([W("userComponentFactory")],i.prototype,"userComponentFactory",void 0),Hd([W("paginationProxy")],i.prototype,"paginationProxy",void 0),Hd([W("gridApi")],i.prototype,"gridApi",void 0),Hd([W("columnModel")],i.prototype,"columnModel",void 0),Hd([ur("eOverlayWrapper")],i.prototype,"eOverlayWrapper",void 0),Hd([L],i.prototype,"postConstruct",null),i}(sr),Vd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ud=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Vd(n,t),n.prototype.getFirstRow=function(){var t,i=0;return this.pinnedRowModel.getPinnedTopRowCount()?t=Q.PINNED_TOP:this.rowModel.getRowCount()?(t=null,i=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t=Q.PINNED_BOTTOM),void 0===t?null:{rowIndex:i,rowPinned:t}},n.prototype.getLastRow=function(){var t,i=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),e=this.pinnedRowModel.getPinnedTopRowCount();return n?(i=Q.PINNED_BOTTOM,t=n-1):this.rowModel.getRowCount()?(i=null,t=this.paginationProxy.getPageLastRow()):e&&(i=Q.PINNED_TOP,t=e-1),void 0===t?null:{rowIndex:t,rowPinned:i}},n.prototype.getRowNode=function(t){switch(t.rowPinned){case Q.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case Q.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},n.prototype.sameRow=function(t,i){return!t&&!i||!(t&&!i||!t&&i)&&t.rowIndex===i.rowIndex&&t.rowPinned==i.rowPinned},n.prototype.before=function(t,n){switch(t.rowPinned){case Q.PINNED_TOP:if(n.rowPinned!==Q.PINNED_TOP)return!0;break;case Q.PINNED_BOTTOM:if(n.rowPinned!==Q.PINNED_BOTTOM)return!1;break;default:if(i(n.rowPinned))return n.rowPinned!==Q.PINNED_TOP}return t.rowIndex<n.rowIndex},n.prototype.rowMax=function(t){var i,n=this;return t.forEach((function(t){(void 0===i||n.before(i,t))&&(i=t)})),i},n.prototype.rowMin=function(t){var i,n=this;return t.forEach((function(t){(void 0===i||n.before(t,i))&&(i=t)})),i},zd([W("rowModel")],n.prototype,"rowModel",void 0),zd([W("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),zd([W("paginationProxy")],n.prototype,"paginationProxy",void 0),zd([B("rowPositionUtils")],n)}(kt),Kd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Kd(i,t),i.prototype.createId=function(t){return this.createIdFromValues(t.rowIndex,t.column,t.rowPinned)},i.prototype.createIdFromValues=function(t,i,n){return t+"."+(null==n?"null":n)+"."+i.getId()},i.prototype.equals=function(t,i){return t.column===i.column&&t.rowPinned===i.rowPinned&&t.rowIndex===i.rowIndex},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("cellPositionUtils")],i)}(kt),Yd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Jd=function(t){this.cellValueChanges=t},Zd=function(t){function i(i,n,e,r){var o=t.call(this,i)||this;return o.initialRange=n,o.finalRange=e,o.ranges=r,o}return Yd(i,t),i}(Jd),$d=function(){function t(i){this.actionStack=[],this.maxStackSize=i||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}(),Qd=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xd=function(){return(Xd=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},tv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},iv=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},nv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.cellValueChanges=[],i.activeCellEdit=null,i.activeRowEdit=null,i.isPasting=!1,i.isRangeInAction=!1,i.onCellValueChanged=function(t){var n={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},e=null!==i.activeCellEdit&&i.cellPositionUtils.equals(i.activeCellEdit,n),r=null!==i.activeRowEdit&&i.rowPositionUtils.sameRow(i.activeRowEdit,n);if(e||r||i.isPasting||i.isRangeInAction){var o=t.oldValue,s=t.value,u={rowPinned:t.rowPinned,rowIndex:t.rowIndex,columnId:t.column.getColId(),newValue:s,oldValue:o};i.cellValueChanges.push(u)}},i.clearStacks=function(){i.undoStack.clear(),i.redoStack.clear()},i}return Qd(i,t),i.prototype.init=function(){var t=this;if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var i=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();i<=0||(this.undoStack=new $d(i),this.redoStack=new $d(i),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,Tt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Tt.EVENT_MODEL_UPDATED,(function(i){i.keepUndoRedoStack||t.clearStacks()})),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Tt.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Tt.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})))}},i.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},i.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},i.prototype.undo=function(){if(this.undoStack){var t=this.undoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.oldValue})),t instanceof Zd?this.processRange(t.ranges||[t.initialRange]):this.processCell(t.cellValueChanges),this.redoStack.push(t))}},i.prototype.redo=function(){if(this.redoStack){var t=this.redoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.newValue})),t instanceof Zd?this.processRange(t.ranges||[t.finalRange]):this.processCell(t.cellValueChanges),this.undoStack.push(t))}},i.prototype.processAction=function(t,i){var n=this;t.cellValueChanges.forEach((function(t){var e=t.columnId,r=n.getRowNode({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(r.displayed){var o=i(t),s="function"==typeof o.toString?o.toString():o;r.setDataValue(e,s)}}))},i.prototype.processRange=function(t){var i,n=this;this.rangeService.removeAllCellRanges(!0),t.forEach((function(e,r){if(e){var o=e.startRow,s=e.endRow;r===t.length-1&&(i={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:e.startColumn.getColId()},n.setLastFocusedCell(i)),n.rangeService.addCellRange({rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:e.startColumn,columns:e.columns})}}))},i.prototype.processCell=function(t){var i=t[0],n=this.getRowNode({rowIndex:i.rowIndex,rowPinned:i.rowPinned});this.setLastFocusedCell({rowPinned:i.rowPinned,rowIndex:n.rowIndex,columnId:i.columnId},!0)},i.prototype.setLastFocusedCell=function(t,i){var n=t.rowIndex,e=t.columnId,r=t.rowPinned,o=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getGridColumn(e);if(s){o.ensureIndexVisible(n),o.ensureColumnVisible(s);var u={rowIndex:n,column:s,rowPinned:r};this.focusService.setFocusedCell(Xd(Xd({},u),{forceBrowserFocus:!0})),i&&this.rangeService.setRangeToCell(u)}},i.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_ROW_EDITING_STARTED,(function(i){t.activeRowEdit={rowIndex:i.rowIndex,rowPinned:i.rowPinned}})),this.addManagedListener(this.eventService,Tt.EVENT_ROW_EDITING_STOPPED,(function(){var i=new Jd(t.cellValueChanges);t.pushActionsToUndoStack(i),t.activeRowEdit=null}))},i.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_CELL_EDITING_STARTED,(function(i){t.activeCellEdit={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned}})),this.addManagedListener(this.eventService,Tt.EVENT_CELL_EDITING_STOPPED,(function(i){if(t.activeCellEdit=null,i.valueChanged&&!t.activeRowEdit&&!t.isPasting&&!t.isRangeInAction){var n=new Jd(t.cellValueChanges);t.pushActionsToUndoStack(n)}}))},i.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,Tt.EVENT_PASTE_END,(function(){var i=new Jd(t.cellValueChanges);t.pushActionsToUndoStack(i),t.isPasting=!1}))},i.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_FILL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,Tt.EVENT_FILL_END,(function(i){var n=new Zd(t.cellValueChanges,i.initialRange,i.finalRange);t.pushActionsToUndoStack(n),t.isRangeInAction=!1}))},i.prototype.addCellKeyListeners=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,Tt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var i;i=t.rangeService&&t.gridOptionsWrapper.isEnableRangeSelection()?new Zd(t.cellValueChanges,void 0,void 0,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(iv(arguments[i]));return t}(t.rangeService.getCellRanges())):new Jd(t.cellValueChanges),t.pushActionsToUndoStack(i),t.isRangeInAction=!1}))},i.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},i.prototype.getRowNode=function(t){switch(t.rowPinned){case Q.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case Q.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},tv([W("focusService")],i.prototype,"focusService",void 0),tv([W("ctrlsService")],i.prototype,"ctrlsService",void 0),tv([W("rowModel")],i.prototype,"rowModel",void 0),tv([W("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),tv([W("cellPositionUtils")],i.prototype,"cellPositionUtils",void 0),tv([W("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),tv([W("columnModel")],i.prototype,"columnModel",void 0),tv([V("rangeService")],i.prototype,"rangeService",void 0),tv([L],i.prototype,"init",null),tv([B("undoRedoService")],i)}(kt),ev=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ov=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ev(i,t),i.prototype.findHeader=function(t,i){var n;if(n=t.column instanceof pt?this.columnModel["getDisplayedGroup"+i](t.column):this.columnModel["getDisplayedCol"+i](t.column))return{column:n,headerRowIndex:t.headerRowIndex}},i.prototype.findColAtEdgeForHeaderRow=function(t,i){var n=this.columnModel.getAllDisplayedColumns(),e=n["start"===i?0:n.length-1];if(e){var r=this.ctrlsService.getHeaderRowContainerCtrl(e.getPinned()).getRowType(t);return r==Rh.COLUMN_GROUP?{headerRowIndex:t,column:this.columnModel.getColumnGroupAtLevel(e,t)}:{headerRowIndex:null==r?-1:t,column:e}}},rv([W("columnModel")],i.prototype,"columnModel",void 0),rv([W("ctrlsService")],i.prototype,"ctrlsService",void 0),rv([B("headerPositionUtils")],i)}(kt),sv=function(){function t(){}return t.prototype.buildColumnDefs=function(t,i,n){var e=this,r=[],o={};return t.forEach((function(t){for(var s=!0,u=e.createDefFromColumn(t,i,n),h=t.getOriginalParent();h;){var c=null;if(h.isPadding())h=h.getOriginalParent();else{var a=o[h.getGroupId()];if(a){a.children.push(u),s=!1;break}(c=e.createDefFromGroup(h))&&(c.children=[u],o[c.groupId]=c,u=c,h=h.getOriginalParent())}}s&&r.push(u)})),r},t.prototype.createDefFromGroup=function(t){var i=l(t.getColGroupDef(),["children"]);return i&&(i.groupId=t.getGroupId()),i},t.prototype.createDefFromColumn=function(t,i,n){var e=l(t.getColDef());return e.colId=t.getColId(),e.width=t.getActualWidth(),e.rowGroup=t.isRowGroupActive(),e.rowGroupIndex=t.isRowGroupActive()?i.indexOf(t):null,e.pivot=t.isPivotActive(),e.pivotIndex=t.isPivotActive()?n.indexOf(t):null,e.aggFunc=t.isValueActive()?t.getAggFunc():null,e.hide=!t.isVisible()||void 0,e.pinned=t.isPinned()?t.getPinned():null,e.sort=t.getSort()?t.getSort():null,e.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,e},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("columnDefFactory")],t)}(),uv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hv=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var n=[];return i(t.extraCssClass)&&n.push(t.extraCssClass),n.push("ag-row"),n.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&n.push("ag-opacity-zero"),n.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&n.push("ag-row-pinned"),t.rowNode.isSelected()&&n.push("ag-row-selected"),t.rowNode.footer&&n.push("ag-row-footer"),n.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&n.push("ag-row-loading"),t.fullWidthRow&&n.push("ag-full-width-row"),t.expandable&&(n.push("ag-row-group"),n.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&n.push("ag-row-dragging"),dt(n,this.processClassesFromGridOptions(t.rowNode)),dt(n,this.preProcessRowClassRules(t.rowNode)),n.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&n.push("ag-row-first"),t.lastRowOnPage&&n.push("ag-row-last"),t.fullWidthRow&&(t.pinned===Q.PINNED_LEFT&&n.push("ag-cell-last-left-pinned"),t.pinned===Q.PINNED_RIGHT&&n.push("ag-cell-first-right-pinned")),n},t.prototype.processClassesFromGridOptions=function(t){var i=[],n=function(t){"string"==typeof t?i.push(t):Array.isArray(t)&&t.forEach((function(t){return i.push(t)}))},e=this.gridOptionsWrapper.getRowClass();if(e){if("function"==typeof e)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(e)}var r=this.gridOptionsWrapper.getRowClassFunc();return r&&n(r({data:t.data,node:t,rowIndex:t.rowIndex})),i},t.prototype.preProcessRowClassRules=function(t){var i=[];return this.processRowClassRules(t,(function(t){i.push(t)}),(function(){})),i},t.prototype.processRowClassRules=function(t,i,n){var e={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),e,i,n)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},uv([W("stylingService")],t.prototype,"stylingService",void 0),uv([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),uv([B("rowCssClassCalculator")],t)}(),cv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},av=function(){function t(){}return t.prototype.doFullSort=function(t,i){var n=t.map((function(t,i){return{currentPos:i,rowNode:t}}));return n.sort(this.compareRowNodes.bind(this,i)),n.map((function(t){return t.rowNode}))},t.prototype.compareRowNodes=function(t,i,n){for(var e=i.rowNode,r=n.rowNode,o=0,s=t.length;o<s;o++){var u,h=t[o],c=h.sort===Q.SORT_DESC,a=this.getValue(e,h.column),f=this.getValue(r,h.column),l=this.getComparator(h,e);if(u=l?l(a,f,e,r,c):Ye.defaultComparator(a,f,this.gridOptionsWrapper.isAccentedSort()),!isNaN(u)&&0!==u)return h.sort===Q.SORT_ASC?u:-1*u}return i.currentPos-n.currentPos},t.prototype.getComparator=function(t,i){var n=t.column,e=n.getColDef().comparator;if(null!=e)return e;if(n.getColDef().showRowGroup){var r=!i.group&&n.getColDef().field;if(r){var o=this.columnModel.getPrimaryColumn(r);if(o)return o.getColDef().comparator}}},t.prototype.getValue=function(t,i){var n,e;if(!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup())return this.valueService.getValue(i,t,!1,!1);if(t.rowGroupColumn===i){if(this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(i.getColDef().keyCreator)return t.key;var r=null===(n=t.allLeafChildren)||void 0===n?void 0:n[0];return r?this.valueService.getValue(i,r,!1,!1):void 0}var o=this.columnModel.getGroupDisplayColumnForGroup(i.getId());if(!o)return;return null===(e=t.groupData)||void 0===e?void 0:e[o.getId()]}return t.group&&i.getColDef().showRowGroup?void 0:this.valueService.getValue(i,t,!1,!1)},cv([W("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),cv([W("valueService")],t.prototype,"valueService",void 0),cv([W("columnModel")],t.prototype,"columnModel",void 0),cv([B("rowNodeSorter")],t)}(),fv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),lv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.ready=!1,i.readyCallbacks=[],i}var n;return fv(i,t),n=i,i.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.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var t=this.createReadyParams();this.readyCallbacks.forEach((function(i){return i(t)})),this.readyCallbacks.length=0}},i.prototype.whenReady=function(t){this.ready?t(this.createReadyParams()):this.readyCallbacks.push(t)},i.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,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},i.prototype.registerFakeHScrollCtrl=function(t){this.fakeHScrollCtrl=t,this.checkReady()},i.prototype.registerGridHeaderCtrl=function(t){this.gridHeaderCtrl=t,this.checkReady()},i.prototype.registerCenterRowContainerCtrl=function(t){this.centerRowContainerCtrl=t,this.checkReady()},i.prototype.registerLeftRowContainerCtrl=function(t){this.leftRowContainerCtrl=t,this.checkReady()},i.prototype.registerRightRowContainerCtrl=function(t){this.rightRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopCenterRowContainerCtrl=function(t){this.topCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopLeftRowContainerCon=function(t){this.topLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopRightRowContainerCtrl=function(t){this.topRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopCenterRowContainerCtrl=function(t){this.stickyTopCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopLeftRowContainerCon=function(t){this.stickyTopLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopRightRowContainerCtrl=function(t){this.stickyTopRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomCenterRowContainerCtrl=function(t){this.bottomCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomLeftRowContainerCtrl=function(t){this.bottomLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomRightRowContainerCtrl=function(t){this.bottomRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerHeaderContainer=function(t,i){switch(i){case Q.PINNED_LEFT:this.leftHeaderRowContainerCtrl=t;break;case Q.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=t;break;default:this.centerHeaderRowContainerCtrl=t}this.checkReady()},i.prototype.registerGridBodyCtrl=function(t){this.gridBodyCtrl=t,this.checkReady()},i.prototype.registerGridCtrl=function(t){this.gridCtrl=t,this.checkReady()},i.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},i.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},i.prototype.getGridCtrl=function(){return this.gridCtrl},i.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},i.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},i.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},i.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},i.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},i.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},i.prototype.getHeaderRowContainerCtrl=function(t){switch(t){case Q.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case Q.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},i.NAME="ctrlsService",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B(n.NAME)],i)}(kt),dv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.registry={},i}return dv(i,t),i.prototype.register=function(t){this.registry[t.controllerName]=t.controllerClass},i.prototype.getInstance=function(t){var i=this.registry[t];if(null!=i)return new i},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([B("ctrlsFactory")],i)}(kt),pv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),gv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},mv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return pv(i,t),i.prototype.setComp=function(t,i,n,e){this.view=t,this.eViewport=n,this.eContainer=e,this.eGui=i,this.addManagedListener(this.eventService,Tt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this));var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_DOM_LAYOUT,r),this.addManagedListener(this.eventService,Tt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.onScrollVisibilityChanged(),this.ctrlsService.registerFakeHScrollCtrl(this),this.view.addOrRemoveCssClass("ag-apple-scrollbar",wi()||bi())},i.prototype.addActiveListenerToggles=function(){var t=this;["mouseenter","mousedown","touchstart"].forEach((function(i){return t.addManagedListener(t.eGui,i,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","touchend"].forEach((function(i){return t.addManagedListener(t.eGui,i,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},i.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=Ai(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles(),this.refreshCompBottom()))},i.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},i.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var t=this.pinnedRowModel.getPinnedBottomTotalHeight();this.view.setBottom(t)}},i.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},i.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var t=this;this.addManagedListener(this.eventService,Tt.EVENT_BODY_SCROLL,(function(i){"horizontal"===i.direction&&t.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,Tt.EVENT_BODY_SCROLL_END,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},i.prototype.setFakeHScrollSpacerWidths=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),i=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&t,e=this.gridOptionsWrapper.getScrollbarWidth();n&&(i+=e),this.view.setRightSpacerFixedWidth(i),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",i<=e);var r=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&t&&(r+=e),this.view.setLeftSpacerFixedWidth(r),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",r<=e)},i.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isHorizontalScrollShowing(),i=this.invisibleScrollbar,n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),e=t&&this.gridOptionsWrapper.getScrollbarWidth()||0,r=n?0:0===e&&i?15:e;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",i),this.view.setHeight(r),this.view.setViewportHeight(r),this.view.setContainerHeight(r),this.view.addOrRemoveCssClass("ag-hidden",!t)},i.prototype.getViewport=function(){return this.eViewport},i.prototype.getContainer=function(){return this.eContainer},gv([W("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),gv([W("columnModel")],i.prototype,"columnModel",void 0),gv([W("ctrlsService")],i.prototype,"ctrlsService",void 0),gv([W("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),i}(kt),wv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},yv=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return wv(i,t),i.prototype.postConstruct=function(){var t=this,i={addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setHeight:function(i){return Ln(t.getGui(),i)},setBottom:function(i){return t.getGui().style.bottom=i+"px"},setContainerHeight:function(i){return Ln(t.eContainer,i)},setViewportHeight:function(i){return Ln(t.eViewport,i)},setRightSpacerFixedWidth:function(i){return Nn(t.eRightSpacer,i)},setLeftSpacerFixedWidth:function(i){return Nn(t.eLeftSpacer,i)},includeLeftSpacerScrollerCss:function(i,n){return t.eLeftSpacer.classList.toggle(i,n)},includeRightSpacerScrollerCss:function(i,n){return t.eRightSpacer.classList.toggle(i,n)}};this.createManagedBean(new mv).setComp(i,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new wh((function(i){return t.eContainer.style.width=i+"px"})))},i.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>',bv([ur("eLeftSpacer")],i.prototype,"eLeftSpacer",void 0),bv([ur("eRightSpacer")],i.prototype,"eRightSpacer",void 0),bv([ur("eViewport")],i.prototype,"eViewport",void 0),bv([ur("eContainer")],i.prototype,"eContainer",void 0),bv([L],i.prototype,"postConstruct",null),i}(sr),Cv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Sv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Cv(i,t),i.prototype.postConstruct=function(){var t=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,Tt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_DOM_LAYOUT,t)},i.prototype.checkContainerWidths=function(){var t=this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_PRINT,i=t?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=t?0:this.columnModel.getDisplayedColumnsRightWidth();i!=this.leftWidth&&(this.leftWidth=i,this.eventService.dispatchEvent({type:Tt.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:Tt.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},i.prototype.getPinnedRightWidth=function(){return this.rightWidth},i.prototype.getPinnedLeftWidth=function(){return this.leftWidth},Rv([W("columnModel")],i.prototype,"columnModel",void 0),Rv([L],i.prototype,"postConstruct",null),Rv([B("pinnedWidthService")],i)}(kt),Ov=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Av=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.events=[],i}return Ov(i,t),i.prototype.postConstruct=function(){this.rowModel.getType()==Q.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},i.prototype.dispatchExpanded=function(t){var i=this;null!=this.clientSideRowModel?(this.events.push(t),null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){i.clientSideRowModel&&i.clientSideRowModel.onRowGroupOpened(),i.events.forEach((function(t){return i.eventService.dispatchEvent(t)})),i.events=[]}))),this.dispatchExpandedDebounced()):this.eventService.dispatchEvent(t)},Av([W("animationFrameService")],i.prototype,"animationFrameService",void 0),Av([W("rowModel")],i.prototype,"rowModel",void 0),Av([L],i.prototype,"postConstruct",null),Av([B("rowNodeEventThrottle")],i)}(kt),Gv=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},_v=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Gv(arguments[i]));return t},xv=function(){function t(t,i,n){i?(this.gridOptions=i,(new Fv).create(t,i,(function(i){var n=new Jl(t);i.createBean(n)}),void 0,n)):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}(),Fv=function(){function t(){}return t.prototype.create=function(t,i,n,e,r){var o=this,s=!!i.debug,u=this.getRegisteredModules(r),h=this.createBeansList(i.rowModelType,u),c=this.createProvidedBeans(t,i,r);if(h){var a={providedBeanInstances:c,beanClasses:h,debug:s},f=new Vl("AG Grid",(function(){return i.debug})),l=new Vl("Context",(function(){return a.debug})),d=new E(a,l),v=d.getBean("beans");this.registerModuleUserComponents(v,u),this.registerStackComponents(v,u),this.registerControllers(v,u),n(d),v.ctrlsService.whenReady((function(){o.setColumnsAndData(v),o.dispatchGridReadyEvent(v);var t=X.isRegistered(q.EnterpriseCoreModule);f.log("initialised successfully, enterprise = "+t)})),e&&e(d)}},t.prototype.registerControllers=function(t,i){i.forEach((function(i){i.controllers&&i.controllers.forEach((function(i){return t.ctrlsFactory.register(i)}))}))},t.prototype.registerStackComponents=function(t,i){var n=this.createAgStackComponentsList(i);t.agStackComponentsRegistry.setupComponents(n)},t.prototype.getRegisteredModules=function(t){var i=t?t.modules:null,n=X.getRegisteredModules(),e=[],r={};function o(t,i){var n;r[(n=i).moduleName]||(r[n.moduleName]=!0,e.push(n),X.register(n,t)),i.dependantModules&&i.dependantModules.forEach(o.bind(null,t))}return i&&i.forEach(o.bind(null,!0)),n&&n.forEach(o.bind(null,!X.isPackageBased())),e},t.prototype.registerModuleUserComponents=function(t,i){this.extractModuleEntity(i,(function(t){return t.userComponents?t.userComponents:[]})).forEach((function(i){t.userComponentRegistry.registerDefaultComponent(i.componentName,i.componentClass)}))},t.prototype.createProvidedBeans=function(t,i,e){var r=e?e.frameworkOverrides:null;n(r)&&(r=new bl);var o={gridOptions:i,eGridDiv:t,globalEventListener:e?e.globalEventListener:null,frameworkOverrides:r};return e&&e.providedBeanInstances&&Object.assign(o,e.providedBeanInstances),o},t.prototype.createAgStackComponentsList=function(t){var i=[{componentName:"AgCheckbox",componentClass:Tc},{componentName:"AgRadioButton",componentClass:df},{componentName:"AgToggleButton",componentClass:pf},{componentName:"AgInputTextField",componentClass:mf},{componentName:"AgInputTextArea",componentClass:bf},{componentName:"AgInputNumberField",componentClass:Cf},{componentName:"AgInputRange",componentClass:Sf},{componentName:"AgSelect",componentClass:Ir},{componentName:"AgSlider",componentClass:jf},{componentName:"AgAngleSelect",componentClass:xf},{componentName:"AgColorPicker",componentClass:Hf},{componentName:"AgGridBody",componentClass:Fh},{componentName:"AgHeaderRoot",componentClass:pa},{componentName:"AgSortIndicator",componentClass:yo},{componentName:"AgPagination",componentClass:Nd},{componentName:"AgOverlayWrapper",componentClass:Wd},{componentName:"AgGroupComponent",componentClass:Vf},{componentName:"AgPanel",componentClass:If},{componentName:"AgDialog",componentClass:Nf},{componentName:"AgRowContainer",componentClass:Zh},{componentName:"AgFakeHorizontalScroll",componentClass:yv}],n=this.extractModuleEntity(t,(function(t){return t.agStackComponents?t.agStackComponents:[]}));return i.concat(n)},t.prototype.createBeansList=function(t,i){var n=this.getRowModelClass(t,i);if(n){var e=[n,Iu,Ud,qd,ov,fd,Sc,Gs,yd,Sd,ja,Ys,kd,wa,$a,Qs,sn,$,Ji,dl,xl,nu,nn,aa,hf,za,El,It,Ll,jl,Hh,vd,Pl,Wl,rn,Ia,Ca,ns,Ml,hl,Th,xd,Sl,Ya,ff,Dh,td,nd,od,Id,hd,md,xa,nv,hn,sv,hv,of,av,lv,Sv,jv,vv],r=this.extractModuleEntity(i,(function(t){return t.beans?t.beans:[]}));e.push.apply(e,_v(r));var o=[];return e.forEach((function(t){o.indexOf(t)<0&&o.push(t)})),o}},t.prototype.extractModuleEntity=function(t,i){return[].concat.apply([],_v(t.map(i)))},t.prototype.setColumnsAndData=function(t){var i=t.gridOptionsWrapper.getColumnDefs();t.columnModel.setColumnDefs(i||[],"gridInitializing"),t.rowModel.start()},t.prototype.dispatchGridReadyEvent=function(t){t.eventService.dispatchEvent({type:Tt.EVENT_GRID_READY})},t.prototype.getRowModelClass=function(t,n){t||(t=Q.ROW_MODEL_TYPE_CLIENT_SIDE);var e={};n.forEach((function(t){a(t.rowModels,(function(t,i){e[t]=i}))}));var r=e[t];if(i(r))return r;X.isPackageBased()?[Q.ROW_MODEL_TYPE_VIEWPORT,Q.ROW_MODEL_TYPE_SERVER_SIDE].includes(t)?console.error('AG Grid: Row Model "'+t+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+t):t===Q.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+q.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===Q.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+q.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===Q.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+q.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===Q.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+q.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+t)},t}();
292
- /**
293
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
294
- * @version v28.2.0
295
- * @link https://www.ag-grid.com/
296
- * @license MIT
297
- */!function(t){t.InsideBase="insideBase",t.InsideEnd="insideEnd",t.Center="center",t.OutsideEnd="outsideEnd"}(Bd||(Bd={}));
298
- /**
299
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
300
- * @version v28.2.0
301
- * @link https://www.ag-grid.com/
302
- * @license MIT
303
- */
304
- var Mv="undefined"==typeof global?{}:global;Mv.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Mv.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Mv.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Mv.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Mv.Node="undefined"==typeof Node?{}:Node,Mv.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var kv,Dv=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Pv=function(){function t(i,n,e,r,o,s){this.nextId=0,this.allNodesMap={},this.rootNode=i,this.gridOptionsWrapper=n,this.eventService=e,this.columnModel=r,this.beans=s,this.selectionService=o,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.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},t.prototype.getCopyOfNodesMap=function(){return Ye.cloneObject(this.allNodesMap)},t.prototype.getRowNode=function(t){return this.allNodesMap[t]},t.prototype.setRowData=function(i){var n=this;if("string"!=typeof i){var e=this.rootNode,r=this.rootNode.sibling;e.childrenAfterFilter=null,e.childrenAfterGroup=null,e.childrenAfterAggFilter=null,e.childrenAfterSort=null,e.childrenMapped=null,e.updateHasChildren(),this.nextId=0,this.allNodesMap={},i?e.allLeafChildren=i.map((function(i){return n.createNode(i,n.rootNode,t.TOP_LEVEL)})):(e.allLeafChildren=[],e.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=e.childrenAfterFilter,r.childrenAfterGroup=e.childrenAfterGroup,r.childrenAfterAggFilter=e.childrenAfterAggFilter,r.childrenAfterSort=e.childrenAfterSort,r.childrenMapped=e.childrenMapped,r.allLeafChildren=e.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,i){var n={remove:[],update:[],add:[]},e=[];return this.executeRemove(t,n,e),this.executeUpdate(t,n,e),this.executeAdd(t,n),this.updateSelection(e),i&&Ye.sortRowNodesByOrder(this.rootNode.allLeafChildren,i),n},t.prototype.updateSelection=function(t){var i=t.length>0;i&&t.forEach((function(t){t.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),i&&this.eventService.dispatchEvent({type:Tt.EVENT_SELECTION_CHANGED})},t.prototype.executeAdd=function(i,n){var e=this,r=i.add,o=i.addIndex;if(!Ye.missingOrEmpty(r)){var s,u,h=r.map((function(i){return e.createNode(i,e.rootNode,t.TOP_LEVEL)}));if("number"==typeof o&&o>=0){var c=this.rootNode.allLeafChildren,a=0===o?0:c.reduce((function(t,i,n){var e,r=i.rowIndex,s=null===(e=c[t])||void 0===e?void 0:e.rowIndex;return null!=r&&null!=s&&r<o&&r>s?n:t}),0)+1;s=c.slice(0,a),u=c.slice(a,c.length)}else s=this.rootNode.allLeafChildren,u=[];this.rootNode.allLeafChildren=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Dv(arguments[i]));return t}(s,h,u),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=h}},t.prototype.executeRemove=function(t,i,n){var e=this,r=t.remove;if(!Ye.missingOrEmpty(r)){var o={};r.forEach((function(t){var r=e.lookupRowNode(t);r&&(r.isSelected()&&n.push(r),r.clearRowTopAndRowIndex(),o[r.id]=!0,delete e.allNodesMap[r.id],i.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(t){return!o[t.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},t.prototype.executeUpdate=function(i,n,e){var r=this,o=i.update;Ye.missingOrEmpty(o)||o.forEach((function(i){var o=r.lookupRowNode(i);o&&(o.updateData(i),!o.selectable&&o.isSelected()&&e.push(o),r.setMasterForRow(o,i,t.TOP_LEVEL,!1),n.update.push(o))}))},t.prototype.lookupRowNode=function(t){var i,n=this.gridOptionsWrapper.getRowIdFunc();if(n){var e=n({data:t,level:0});if(!(i=this.allNodesMap[e]))return console.error("AG Grid: could not find row id="+e+", data item was not found for this id"),null}else if(!(i=this.rootNode.allLeafChildren.find((function(i){return i.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 i||null},t.prototype.createNode=function(t,i,n){var e=new qo(this.beans);return e.group=!1,this.setMasterForRow(e,t,n,!0),i&&!this.suppressParentsInRowNodes&&(e.parent=i),e.level=n,e.setDataAndId(t,this.nextId.toString()),this.allNodesMap[e.id]&&console.warn("AG Grid: duplicate node id '"+e.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[e.id]=e,this.nextId++,e},t.prototype.setMasterForRow=function(t,i,n,e){if(this.doingTreeData)t.setMaster(!1),e&&(t.expanded=!1);else if(t.setMaster(!!this.doingMasterDetail&&(!this.isRowMasterFunc||this.isRowMasterFunc(i))),e){var r=this.columnModel.getRowGroupColumns();t.expanded=!!t.master&&this.isExpanded(n+(r?r.length:0))}},t.prototype.isExpanded=function(t){var i=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===i||t<i},t.TOP_LEVEL=0,t.ROOT_NODE_ID="ROOT_NODE_ID",t}(),Iv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Tv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.Normal=0]="Normal",t[t.AfterFilter=1]="AfterFilter",t[t.AfterFilterAndSort=2]="AfterFilterAndSort",t[t.PivotNodes=3]="PivotNodes"}(kv||(kv={}));var Ev,Nv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.onRowHeightChanged_debounced=Ye.debounce(i.onRowHeightChanged.bind(i),100),i.rowsToDisplay=[],i}return Iv(i,t),i.prototype.init=function(){var t=this.refreshModel.bind(this,{step:vc.EVERYTHING}),i=!this.gridOptionsWrapper.isSuppressAnimationFrame(),n=this.refreshModel.bind(this,{step:vc.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:i});this.addManagedListener(this.eventService,Tt.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:vc.PIVOT})),this.addManagedListener(this.eventService,Tt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_COLUMN_PIVOT_MODE_CHANGED,t);var e=this.refreshModel.bind(this,{step:vc.MAP,keepRenderedRows:!0,animate:i});this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e),this.addManagedListener(this.gridOptionsWrapper,Ji.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e),this.rootNode=new qo(this.beans),this.nodeManager=new Pv(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.selectionService,this.beans)},i.prototype.start=function(){var t=this.gridOptionsWrapper.getRowData();t&&this.setRowData(t)},i.prototype.ensureRowHeightsValid=function(t,i,n,e){var r,o=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(t),u=this.getRowIndexAtPixel(i),h=Math.max(s,n),c=Math.min(u,e),a=h;a<=c;a++){var f=this.getRow(a);if(f.rowHeightEstimated){var l=this.gridOptionsWrapper.getRowHeightForNode(f);f.setRowHeight(l.height),r=!0,o=!0}}r&&this.setRowTopAndRowIndex()}while(r);return o},i.prototype.setRowTopAndRowIndex=function(){for(var t=this.gridOptionsWrapper.getDefaultRowHeight(),i=0,n=new Set,e=this.gridOptionsWrapper.getDomLayout()===Q.DOM_LAYOUT_NORMAL,r=0;r<this.rowsToDisplay.length;r++){var o=this.rowsToDisplay[r];if(null!=o.id&&n.add(o.id),null==o.rowHeight){var s=this.gridOptionsWrapper.getRowHeightForNode(o,e,t);o.setRowHeight(s.height,s.estimated)}o.setRowTop(i),o.setRowIndex(r),i+=o.rowHeight}return n},i.prototype.clearRowTopAndRowIndex=function(t,i){var n=t.isActive(),e=function(t){t&&null!=t.id&&!i.has(t.id)&&t.clearRowTopAndRowIndex()},r=function(t){e(t),e(t.detailNode),e(t.sibling),t.hasChildren()&&t.childrenAfterGroup&&(n&&-1!=t.level&&!t.expanded||t.childrenAfterGroup.forEach(r))};r(this.rootNode)},i.prototype.ensureRowsAtPixel=function(t,i,n){var e=this;void 0===n&&(n=0);var r=this.getRowIndexAtPixel(i),o=this.getRow(r),s=!this.gridOptionsWrapper.isSuppressAnimationFrame();return o!==t[0]&&(t.forEach((function(t){Ye.removeFromArray(e.rootNode.allLeafChildren,t)})),t.forEach((function(t,i){Ye.insertIntoArray(e.rootNode.allLeafChildren,t,Math.max(r+n,0)+i)})),this.refreshModel({step:vc.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:s}),!0)},i.prototype.highlightRowAtPixel=function(t,i){var n=null!=i?this.getRowIndexAtPixel(i):null,e=null!=n?this.getRow(n):null;if(e&&t&&e!==t&&null!=i){var r=this.getHighlightPosition(i,e);this.lastHighlightedRow&&this.lastHighlightedRow!==e&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),e.setHighlighted(r),this.lastHighlightedRow=e}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},i.prototype.getHighlightPosition=function(t,i){if(!i){var n=this.getRowIndexAtPixel(t);if(!(i=this.getRow(n||0)))return Br.Below}return t-i.rowTop<i.rowHeight/2?Br.Above:Br.Below},i.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},i.prototype.isLastRowIndexKnown=function(){return!0},i.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},i.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var t=this.rootNode.childrenAfterAggFilter;return t?t.length:0},i.prototype.getTopLevelRowDisplayedIndex=function(t){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return t;var i=this.rootNode.childrenAfterSort[t];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;i.expanded&&i.childrenAfterSort&&i.childrenAfterSort.length>0;)i=i.childrenAfterSort[0];return i.rowIndex},i.prototype.getRowBounds=function(t){if(Ye.missing(this.rowsToDisplay))return null;var i=this.rowsToDisplay[t];return i?{rowTop:i.rowTop,rowHeight:i.rowHeight}:null},i.prototype.onRowGroupOpened=function(){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:vc.MAP,keepRenderedRows:!0,animate:t})},i.prototype.onFilterChanged=function(t){if(!t.afterDataChange){var i=this.gridOptionsWrapper.isAnimateRows(),n=0===t.columns.length||t.columns.some((function(t){return t.isPrimary()}));this.refreshModel({step:n?vc.FILTER:vc.FILTER_AGGREGATES,keepRenderedRows:!0,animate:i})}},i.prototype.onSortChanged=function(){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:vc.SORT,keepRenderedRows:!0,animate:t,keepEditingRows:!0})},i.prototype.getType=function(){return Q.ROW_MODEL_TYPE_CLIENT_SIDE},i.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:vc.PIVOT}):this.refreshModel({step:vc.AGGREGATE})},i.prototype.createChangePath=function(t){var i=Ye.missingOrEmpty(t),n=new Xa(!1,this.rootNode);return(i||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},i.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(t){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())return!1;if(null==t.rowNodeTransactions)return!1;var i=t.rowNodeTransactions.filter((function(t){return null!=t.add&&t.add.length>0||null!=t.remove&&t.remove.length>0}));return null==i||0==i.length},i.prototype.refreshModel=function(t){if(!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var i=this.createChangePath(t.rowNodeTransactions);switch(t.step){case vc.EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,i,!!t.afterColumnsChanged);case vc.FILTER:this.doFilter(i);case vc.PIVOT:this.doPivot(i);case vc.AGGREGATE:this.doAggregate(i);case vc.FILTER_AGGREGATES:this.doFilterAggregates(i);case vc.SORT:this.doSort(t.rowNodeTransactions,i);case vc.MAP:this.doRowsToDisplay()}var n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(i,n),this.eventService.dispatchEvent({type:Tt.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack})}},i.prototype.isEmpty=function(){var t=Ye.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Ye.missing(this.rootNode)||t||!this.columnModel.isReady()},i.prototype.isRowsToRender=function(){return Ye.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},i.prototype.getNodesInRangeForSelection=function(t,i){var n,e=!i,r=!1,o=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(u){var h=e&&!r;if(e||u!==i&&u!==t||(e=!0),!u.group||!s){var c=e&&!r,a=u.isParentOfNode(n);(c||a)&&o.push(u)}h&&(u!==i&&u!==t||(r=!0,n=u===i?i:t))})),o},i.prototype.setDatasource=function(){console.error("AG Grid: should never call setDatasource on clientSideRowController")},i.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},i.prototype.getRootNode=function(){return this.rootNode},i.prototype.getRow=function(t){return this.rowsToDisplay[t]},i.prototype.isRowPresent=function(t){return this.rowsToDisplay.indexOf(t)>=0},i.prototype.getRowIndexAtPixel=function(t){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var i=0,n=this.rowsToDisplay.length-1;if(t<=0)return 0;if(Ye.last(this.rowsToDisplay).rowTop<=t)return this.rowsToDisplay.length-1;for(var e=-1,r=-1;;){var o=Math.floor((i+n)/2),s=this.rowsToDisplay[o];if(this.isRowInPixel(s,t))return o;if(s.rowTop<t?i=o+1:s.rowTop>t&&(n=o-1),e===i&&r===n)return o;e=i,r=n}},i.prototype.isRowInPixel=function(t,i){return t.rowTop<=i&&t.rowTop+t.rowHeight>i},i.prototype.forEachLeafNode=function(t){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(i,n){return t(i,n)}))},i.prototype.forEachNode=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,t,kv.Normal,0)},i.prototype.forEachNodeAfterFilter=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,t,kv.AfterFilter,0)},i.prototype.forEachNodeAfterFilterAndSort=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,t,kv.AfterFilterAndSort,0)},i.prototype.forEachPivotNode=function(t){this.recursivelyWalkNodesAndCallback([this.rootNode],t,kv.PivotNodes,0)},i.prototype.recursivelyWalkNodesAndCallback=function(t,i,n,e){if(!t)return e;for(var r=0;r<t.length;r++){var o=t[r];if(i(o,e++),o.hasChildren()){var s=null;switch(n){case kv.Normal:s=o.childrenAfterGroup;break;case kv.AfterFilter:s=o.childrenAfterAggFilter;break;case kv.AfterFilterAndSort:s=o.childrenAfterSort;break;case kv.PivotNodes:s=o.leafGroup?null:o.childrenAfterSort}s&&(e=this.recursivelyWalkNodesAndCallback(s,i,n,e))}}return e},i.prototype.doAggregate=function(t){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:t})},i.prototype.doFilterAggregates=function(t){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:t}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},i.prototype.expandOrCollapseAll=function(t){var i=this.gridOptionsWrapper.isTreeData(),n=this.columnModel.isPivotActive(),e=function(r){r&&r.forEach((function(r){var o=function(){r.expanded=t,e(r.childrenAfterGroup)};i?Ye.exists(r.childrenAfterGroup)&&o():n?!r.leafGroup&&o():r.group&&o()}))};this.rootNode&&e(this.rootNode.childrenAfterGroup),this.refreshModel({step:vc.MAP}),this.eventService.dispatchEvent({type:Tt.EVENT_EXPAND_COLLAPSE_ALL,source:t?"expandAll":"collapseAll"})},i.prototype.doSort=function(t,i){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,changedPath:i})},i.prototype.doRowGrouping=function(t,i,n,e,r){this.groupStage?(i?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:i,rowNodeOrder:n,changedPath:e}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:e,afterColumnsChanged:r}),this.restoreGroupState(t)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(e)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},i.prototype.restoreGroupState=function(t){t&&Ye.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(i,n){"boolean"==typeof t[n]&&(i.expanded=t[n])}))},i.prototype.doFilter=function(t){this.filterStage.execute({rowNode:this.rootNode,changedPath:t})},i.prototype.doPivot=function(t){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:t})},i.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var t={};return Ye.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(i,n){return t[n]=i.expanded})),t},i.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},i.prototype.getRowNode=function(t){if("string"==typeof t&&0==t.indexOf(qo.ID_PREFIX_ROW_GROUP)){var i=void 0;return this.forEachNode((function(n){n.id===t&&(i=n)})),i}return this.nodeManager.getRowNode(t)},i.prototype.setRowData=function(t){var i=this.getGroupState();this.nodeManager.setRowData(t),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated"),this.eventService.dispatchEvent({type:Tt.EVENT_ROW_DATA_UPDATED}),this.refreshModel({step:vc.EVERYTHING,groupState:i,newData:!0})},i.prototype.batchUpdateRowData=function(t,i){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var e=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){n.executeBatchUpdateRowData()}),e)}this.rowDataTransactionBatch.push({rowDataTransaction:t,callback:i})},i.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},i.prototype.executeBatchUpdateRowData=function(){var t=this;this.valueCache.onDataChanged();var i=[],n=[],e=!1;this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(r){var o=t.nodeManager.updateRowData(r.rowDataTransaction,void 0);n.push(o),r.callback&&i.push(r.callback.bind(null,o)),"number"==typeof r.rowDataTransaction.addIndex&&(e=!0)})),this.commonUpdateRowData(n,void 0,e),i.length>0&&window.setTimeout((function(){i.forEach((function(t){return t()}))}),0),n.length>0&&this.eventService.dispatchEvent({type:Tt.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},i.prototype.updateRowData=function(t,i){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(t,i);return this.commonUpdateRowData([n],i,"number"==typeof t.addIndex),n},i.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var t={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var i=0;i<this.rootNode.allLeafChildren.length;i++)t[this.rootNode.allLeafChildren[i].id]=i;return t}},i.prototype.commonUpdateRowData=function(t,i,n){var e=!this.gridOptionsWrapper.isSuppressAnimationFrame();n&&(i=this.createRowNodeOrder()),this.refreshModel({step:vc.EVERYTHING,rowNodeTransactions:t,rowNodeOrder:i,keepRenderedRows:!0,keepEditingRows:!0,animate:e}),this.filterManager.onNewRowsLoaded("rowDataUpdated"),this.eventService.dispatchEvent({type:Tt.EVENT_ROW_DATA_UPDATED})},i.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},i.prototype.onRowHeightChanged=function(){this.refreshModel({step:vc.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},i.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},i.prototype.resetRowHeights=function(){var t=!1;this.forEachNode((function(i){i.setRowHeight(i.rowHeight,!0);var n=i.detailNode;n&&n.setRowHeight(n.rowHeight,!0),t=!0})),t&&this.onRowHeightChanged()},Tv([W("columnModel")],i.prototype,"columnModel",void 0),Tv([W("selectionService")],i.prototype,"selectionService",void 0),Tv([W("filterManager")],i.prototype,"filterManager",void 0),Tv([W("valueCache")],i.prototype,"valueCache",void 0),Tv([W("beans")],i.prototype,"beans",void 0),Tv([W("filterStage")],i.prototype,"filterStage",void 0),Tv([W("sortStage")],i.prototype,"sortStage",void 0),Tv([W("flattenStage")],i.prototype,"flattenStage",void 0),Tv([V("groupStage")],i.prototype,"groupStage",void 0),Tv([V("aggregationStage")],i.prototype,"aggregationStage",void 0),Tv([V("pivotStage")],i.prototype,"pivotStage",void 0),Tv([V("filterAggregatesStage")],i.prototype,"filterAggregatesStage",void 0),Tv([L],i.prototype,"init",null),Tv([B("rowModel")],i)}(kt),Lv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Bv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Lv(i,t),i.prototype.execute=function(t){this.filterService.filter(t.changedPath)},Hv([W("filterService")],i.prototype,"filterService",void 0),Hv([B("filterStage")],i)}(kt),Wv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},zv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Wv(i,t),i.prototype.execute=function(t){var i=this,n=this.sortController.getSortOptions(),e=Ye.exists(n)&&n.length>0,r=e&&Ye.exists(t.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),o=n.some((function(t){return!!i.columnModel.getGroupDisplayColumnForGroup(t.column.getId())}));this.sortService.sort(n,e,r,t.rowNodeTransactions,t.changedPath,o)},Vv([W("sortService")],i.prototype,"sortService",void 0),Vv([W("sortController")],i.prototype,"sortController",void 0),Vv([W("columnModel")],i.prototype,"columnModel",void 0),Vv([B("sortStage")],i)}(kt),Uv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Kv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},qv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Uv(i,t),i.prototype.execute=function(t){var i=t.rowNode,n=[],e={value:0},r=this.columnModel.isPivotMode(),o=r&&i.leafGroup;return this.recursivelyAddToRowsToDisplay(o?[i]:i.childrenAfterSort,n,e,r,0),!o&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(i),this.addRowNodeToRowsToDisplay(i.sibling,n,e,0)),n},i.prototype.recursivelyAddToRowsToDisplay=function(t,i,n,e,r){if(!Ye.missingOrEmpty(t))for(var o=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),u=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),h=0;h<t.length;h++){var c=t[h],a=c.hasChildren(),f=s&&a&&1===c.childrenAfterGroup.length,l=u&&a&&c.leafGroup&&1===c.childrenAfterGroup.length;if(!(e&&!a||o&&c.expanded&&!c.master&&(!e||!c.leafGroup)||f||l)&&this.addRowNodeToRowsToDisplay(c,i,n,r),!e||!c.leafGroup)if(a){var d=f||l;(c.expanded||d)&&(this.recursivelyAddToRowsToDisplay(c.childrenAfterSort,i,n,e,d?r:r+1),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(c),this.addRowNodeToRowsToDisplay(c.sibling,i,n,r)))}else if(c.master&&c.expanded){var v=this.createDetailNode(c);this.addRowNodeToRowsToDisplay(v,i,n,r)}}},i.prototype.addRowNodeToRowsToDisplay=function(t,i,n,e){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();i.push(t),t.setUiLevel(r?0:e)},i.prototype.ensureFooterNodeExists=function(t){if(!Ye.exists(t.sibling)){var i=new qo(this.beans);Object.keys(t).forEach((function(n){i[n]=t[n]})),i.footer=!0,i.setRowTop(null),i.setRowIndex(null),i.oldRowTop=null,Ye.exists(i.id)&&(i.id="rowGroupFooter_"+i.id),i.sibling=t,t.sibling=i}},i.prototype.createDetailNode=function(t){if(Ye.exists(t.detailNode))return t.detailNode;var i=new qo(this.beans);return i.detail=!0,i.selectable=!1,i.parent=t,Ye.exists(t.id)&&(i.id="detail_"+t.id),i.data=t.data,i.level=t.level+1,t.detailNode=i,i},Kv([W("columnModel")],i.prototype,"columnModel",void 0),Kv([W("beans")],i.prototype,"beans",void 0),Kv([B("flattenStage")],i)}(kt),Yv=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Jv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Yv(i,t),i.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},i.prototype.sort=function(t,i,n,e,r,o){var s=this,u=this.gridOptionsWrapper.isGroupMaintainOrder(),h=this.columnModel.getAllGridColumns().some((function(t){return t.isRowGroupActive()})),c={};n&&e&&(c=this.calculateDirtyNodes(e));var a=this.columnModel.isPivotMode();r&&r.forEachChangedNodeDepthFirst((function(e){if(s.pullDownGroupDataForHideOpenParents(e.childrenAfterAggFilter,!0),!i||u&&h&&!e.leafGroup&&!o||a&&e.leafGroup){var f=e.childrenAfterAggFilter.slice(0);if(u&&e.childrenAfterSort){var l=e.childrenAfterSort.reduce((function(t,i,n){return t[i.id]=n,t}),{});f.sort((function(t,i){return(l[t.id]||0)-(l[i.id]||0)}))}e.childrenAfterSort=f}else e.childrenAfterSort=n?s.doDeltaSort(e,c,r,t):s.rowNodeSorter.doFullSort(e.childrenAfterAggFilter,t);e.sibling&&(e.sibling.childrenAfterSort=e.childrenAfterSort),s.updateChildIndexes(e),s.postSortFunc&&s.postSortFunc({nodes:e.childrenAfterSort})})),this.updateGroupDataForHideOpenParents(r)},i.prototype.calculateDirtyNodes=function(t){var i={},n=function(t){t&&t.forEach((function(t){return i[t.id]=!0}))};return t&&t.forEach((function(t){n(t.add),n(t.update),n(t.remove)})),i},i.prototype.doDeltaSort=function(t,i,n,e){var r=this,o=t.childrenAfterAggFilter,s=t.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(o,e);var u={},h=[];o.forEach((function(t){i[t.id]||!n.canSkip(t)?h.push(t):u[t.id]=!0}));var c=s.filter((function(t){return u[t.id]})),a=function(t,i){return{currentPos:i,rowNode:t}},f=h.map(a).sort((function(t,i){return r.rowNodeSorter.compareRowNodes(e,t,i)}));return this.mergeSortedArrays(e,f,c.map(a)).map((function(t){return t.rowNode}))},i.prototype.mergeSortedArrays=function(t,i,n){for(var e=[],r=0,o=0;r<i.length&&o<n.length;){var s=this.rowNodeSorter.compareRowNodes(t,i[r],n[o]);e.push(s<0?i[r++]:n[o++])}for(;r<i.length;)e.push(i[r++]);for(;o<n.length;)e.push(n[o++]);return e},i.prototype.updateChildIndexes=function(t){if(!Ye.missing(t.childrenAfterSort))for(var i=t.childrenAfterSort,n=0;n<i.length;n++){var e=i[n],r=n===t.childrenAfterSort.length-1;e.setFirstChild(0===n),e.setLastChild(r),e.setChildIndex(n)}},i.prototype.updateGroupDataForHideOpenParents=function(t){var i=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData())return Ye.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 n=function(t){i.pullDownGroupDataForHideOpenParents(t.childrenAfterSort,!1),t.childrenAfterSort.forEach((function(t){t.hasChildren()&&n(t)}))};t&&t.executeFromRootNode((function(t){return n(t)}))}},i.prototype.pullDownGroupDataForHideOpenParents=function(t,i){var n=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!Ye.missing(t)&&t.forEach((function(t){n.columnModel.getGroupDisplayColumns().forEach((function(e){var r=e.getColDef().showRowGroup;if("string"==typeof r){var o=n.columnModel.getPrimaryColumn(r);if(o!==t.rowGroupColumn)if(i)t.setGroupValue(e.getId(),void 0);else{var s=t.getFirstChildOfFirstChild(o);s&&t.setGroupValue(e.getId(),s.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Jv([W("columnModel")],i.prototype,"columnModel",void 0),Jv([W("rowNodeSorter")],i.prototype,"rowNodeSorter",void 0),Jv([L],i.prototype,"init",null),Jv([B("sortService")],i)}(kt),$v=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return $v(i,t),i.prototype.filter=function(t){var i=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(i,t)},i.prototype.filterNodes=function(t,i){var n=this,e=function(i,e){i.childrenAfterFilter=i.hasChildren()&&t&&!e?i.childrenAfterGroup.filter((function(t){var i=t.childrenAfterFilter&&t.childrenAfterFilter.length>0,e=t.data&&n.filterManager.doesRowPassFilter({rowNode:t});return i||e})):i.childrenAfterGroup,i.sibling&&(i.sibling.childrenAfterFilter=i.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var r=function(t,i){if(t.childrenAfterGroup)for(var o=0;o<t.childrenAfterGroup.length;o++){var s=t.childrenAfterGroup[o],u=i||n.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?r(t.childrenAfterGroup[o],u):e(s,u)}e(t,i)};i.executeFromRootNode((function(t){return r(t,!1)}))}else i.forEachChangedNodeDepthFirst((function(t){return e(t,!1)}),!0)},i.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Qv([W("filterManager")],i.prototype,"filterManager",void 0),Qv([B("filterService")],i)}(kt),tp=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ip=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},np=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return tp(i,t),i.prototype.postConstruct=function(){this.rowModel.getType()===Q.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},i.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},i.prototype.setRowData=function(t){var i=this.createTransactionForRowData(t);if(i){var n=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(i,2),e=this.clientSideRowModel.updateRowData(n[0],n[1]);e&&this.rowRenderer.refreshFullWidthRows(e.update)}},i.prototype.createTransactionForRowData=function(t){if(Ye.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var i=this.gridOptionsWrapper.getRowIdFunc();if(null!=i){var n={remove:[],update:[],add:[]},e=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?void 0:{};return Ye.exists(t)&&t.forEach((function(t,o){var s=i({data:t,level:0}),u=e[s];r&&(r[s]=o),u?(u.data!==t&&n.update.push(t),e[s]=void 0):n.add.push(t)})),Ye.iterateObject(e,(function(t,i){i&&n.remove.push(i.data)})),[n,r]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},ip([W("rowModel")],i.prototype,"rowModel",void 0),ip([W("rowRenderer")],i.prototype,"rowRenderer",void 0),ip([W("columnApi")],i.prototype,"columnApi",void 0),ip([W("gridApi")],i.prototype,"gridApi",void 0),ip([W("filterManager")],i.prototype,"filterManager",void 0),ip([L],i.prototype,"postConstruct",null),ip([B("immutableService")],i)}(kt),ep={moduleName:q.ClientSideRowModelModule,beans:[Bv,zv,qv,Zv,Xv,np],rowModels:{clientSide:Nv}},rp=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),op=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},sp=function(t){function i(i,n,e){var r=t.call(this,i)||this;return r.parentCache=n,r.params=e,r.startRow=i*e.blockSize,r.endRow=r.startRow+e.blockSize,r}return rp(i,t),i.prototype.postConstruct=function(){this.createRowNodes()},i.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},i.prototype.setDataAndId=function(t,i,n){!t.id&&t.alreadyRendered&&(t.alreadyRendered=!1),Ye.exists(i)?t.setDataAndId(i,n.toString()):t.setDataAndId(void 0,void 0)},i.prototype.loadFromDatasource=function(){var t=this,i=this.createLoadParams();Ye.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){t.params.datasource.getRows(i)}),0)},i.prototype.processServerFail=function(){},i.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.gridOptionsWrapper.getContext()}},i.prototype.forEachNode=function(t,i,n){var e=this;this.rowNodes.forEach((function(r,o){e.startRow+o<n&&t(r,i.next())}))},i.prototype.getLastAccessed=function(){return this.lastAccessed},i.prototype.getRow=function(t,i){return void 0===i&&(i=!1),i||(this.lastAccessed=this.params.lastAccessedSequence.next()),this.rowNodes[t-this.startRow]},i.prototype.getStartRow=function(){return this.startRow},i.prototype.getEndRow=function(){return this.endRow},i.prototype.createRowNodes=function(){this.rowNodes=[];for(var t=0;t<this.params.blockSize;t++){var i=this.startRow+t,n=new qo(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(i),n.setRowTop(this.params.rowHeight*i),this.rowNodes.push(n)}},i.prototype.processServerResult=function(t){var i=this;this.rowNodes.forEach((function(n,e){i.setDataAndId(n,t.rowData?t.rowData[e]:void 0,i.startRow+e)})),this.parentCache.pageLoaded(this,null!=t.rowCount&&t.rowCount>=0?t.rowCount:void 0)},i.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(t){t.clearRowTopAndRowIndex()}))},op([W("beans")],i.prototype,"beans",void 0),op([L],i.prototype,"postConstruct",null),op([H],i.prototype,"destroyRowNodes",null),i}(nf),up=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),hp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},cp=function(t){function i(i){var n=t.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=i.initialRowCount,n.params=i,n}var n;return up(i,t),i.prototype.setBeans=function(t){this.logger=t.create("InfiniteCache")},i.prototype.getRow=function(t,i){void 0===i&&(i=!1);var n=Math.floor(t/this.params.blockSize),e=this.blocks[n];if(!e){if(i)return;e=this.createBlock(n)}return e.getRow(t)},i.prototype.createBlock=function(t){var i=this.createBean(new sp(t,this,this.params));return this.blocks[i.getId()]=i,this.blockCount++,this.purgeBlocksIfNeeded(i),this.params.rowNodeBlockLoader.addBlock(i),i},i.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(t){return t.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},i.prototype.destroyAllBlocks=function(){var t=this;this.getBlocksInOrder().forEach((function(i){return t.destroyBlock(i)}))},i.prototype.getRowCount=function(){return this.rowCount},i.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},i.prototype.pageLoaded=function(t,i){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+t.getId()+", lastRow = "+i),this.checkRowCount(t,i),this.onCacheUpdated())},i.prototype.purgeBlocksIfNeeded=function(t){var n=this,e=this.getBlocksInOrder().filter((function(i){return i!=t}));e.sort((function(t,i){return i.getLastAccessed()-t.getLastAccessed()}));var r=this.params.maxBlocksInCache>0,o=r?this.params.maxBlocksInCache-1:null,s=i.MAX_EMPTY_BLOCKS_TO_KEEP-1;e.forEach((function(t,i){if(t.getState()===sp.STATE_WAITING_TO_LOAD&&i>=s||r&&i>=o){if(n.isBlockCurrentlyDisplayed(t))return;if(n.isBlockFocused(t))return;n.removeBlockFromCache(t)}}))},i.prototype.isBlockFocused=function(t){var i=this.focusService.getFocusCellToUseAfterRefresh();if(!i)return!1;if(null!=i.rowPinned)return!1;var n=t.getStartRow(),e=t.getEndRow();return i.rowIndex>=n&&i.rowIndex<e},i.prototype.isBlockCurrentlyDisplayed=function(t){var i=t.getStartRow(),n=t.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(i,n)},i.prototype.removeBlockFromCache=function(t){t&&this.destroyBlock(t)},i.prototype.checkRowCount=function(t,i){if("number"==typeof i&&i>=0)this.rowCount=i,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(t.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},i.prototype.setRowCount=function(t,i){this.rowCount=t,Ye.exists(i)&&(this.lastRowIndexKnown=i),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()},i.prototype.forEachNodeDeep=function(t){var i=this,n=new Je;this.getBlocksInOrder().forEach((function(e){return e.forEachNode(t,n,i.rowCount)}))},i.prototype.getBlocksInOrder=function(){return Ye.getAllValuesInObject(this.blocks).sort((function(t,i){return t.getId()-i.getId()}))},i.prototype.destroyBlock=function(t){delete this.blocks[t.getId()],this.destroyBean(t),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(t)},i.prototype.onCacheUpdated=function(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventService.dispatchEvent({type:Tt.EVENT_STORE_UPDATED}))},i.prototype.destroyAllBlocksPastVirtualRowCount=function(){var t=this,i=[];this.getBlocksInOrder().forEach((function(n){n.getId()*t.params.blockSize>=t.rowCount&&i.push(n)})),i.length>0&&i.forEach((function(i){return t.destroyBlock(i)}))},i.prototype.purgeCache=function(){var t=this;this.getBlocksInOrder().forEach((function(i){return t.removeBlockFromCache(i)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},i.prototype.getRowNodesInRange=function(t,i){var n=this,e=[],r=-1,o=!1,s=new Je;Ye.missing(t)&&(o=!0);var u=!1;return this.getBlocksInOrder().forEach((function(h){u||(o&&r+1!==h.getId()?u=!0:(r=h.getId(),h.forEachNode((function(n){var r=n===t||n===i;(o||r)&&e.push(n),r&&(o=!o)}),s,n.rowCount)))})),u||o?[]:e},i.MAX_EMPTY_BLOCKS_TO_KEEP=2,hp([W("rowRenderer")],i.prototype,"rowRenderer",void 0),hp([W("focusService")],i.prototype,"focusService",void 0),hp([(0,n=U("loggerFactory"),function(t,i){n(t,i,0)})],i.prototype,"setBeans",null),hp([H],i.prototype,"destroyAllBlocks",null),i}(kt),ap=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},lp=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ap(i,t),i.prototype.getRowBounds=function(t){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*t}},i.prototype.ensureRowHeightsValid=function(){return!1},i.prototype.init=function(){var t=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return t.destroyCache()})),this.verifyProps())},i.prototype.verifyProps=function(){null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()&&Ye.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")},i.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},i.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},i.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Tt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,Tt.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},i.prototype.onFilterChanged=function(){this.reset()},i.prototype.onSortChanged=function(){this.reset()},i.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},i.prototype.isSortModelDifferent=function(){return!Ye.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},i.prototype.getType=function(){return Q.ROW_MODEL_TYPE_INFINITE},i.prototype.setDatasource=function(t){this.destroyDatasource(),this.datasource=t,t&&this.reset()},i.prototype.isEmpty=function(){return!this.infiniteCache},i.prototype.isRowsToRender=function(){return!!this.infiniteCache},i.prototype.getNodesInRangeForSelection=function(t,i){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(t,i):[]},i.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsWrapper.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)}},i.prototype.createModelUpdatedEvent=function(){return{type:Tt.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},i.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.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new Je},this.infiniteCache=this.createBean(new cp(this.cacheParams))},i.prototype.defaultIfInvalid=function(t,i){return t>0?t:i},i.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},i.prototype.onCacheUpdated=function(){var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)},i.prototype.getRow=function(t){if(this.infiniteCache&&!(t>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(t)},i.prototype.getRowNode=function(t){var i;return this.forEachNode((function(n){n.id===t&&(i=n)})),i},i.prototype.forEachNode=function(t){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(t)},i.prototype.getTopLevelRowCount=function(){return this.getRowCount()},i.prototype.getTopLevelRowDisplayedIndex=function(t){return t},i.prototype.getRowIndexAtPixel=function(t){if(0!==this.rowHeight){var i=Math.floor(t/this.rowHeight),n=this.getRowCount()-1;return i>n?n:i}return 0},i.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},i.prototype.isRowPresent=function(t){return!!this.getRowNode(t.id)},i.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},i.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},i.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},i.prototype.setRowCount=function(t,i){this.infiniteCache&&this.infiniteCache.setRowCount(t,i)},fp([W("filterManager")],i.prototype,"filterManager",void 0),fp([W("sortController")],i.prototype,"sortController",void 0),fp([W("selectionService")],i.prototype,"selectionService",void 0),fp([W("rowRenderer")],i.prototype,"rowRenderer",void 0),fp([W("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),fp([L],i.prototype,"init",null),fp([H],i.prototype,"destroyDatasource",null),fp([B("rowModel")],i)}(kt),dp={moduleName:q.InfiniteRowModelModule,rowModels:{infinite:lp}},vp=function(){function t(){}return t.prototype.setBeans=function(t){this.beans=t},t.prototype.getFileName=function(t){var i=this.getDefaultFileExtension();return null!=t&&t.length||(t=this.getDefaultFileName()),-1===t.indexOf(".")?t+"."+i:t},t.prototype.getData=function(t){var i=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(i,t)},t}(),pp=function(){function t(t){this.groupColumns=[];var i=t.valueService,n=t.gridOptionsWrapper,e=t.processCellCallback,r=t.processHeaderCallback,o=t.processGroupHeaderCallback,s=t.processRowGroupCallback;this.columnModel=t.columnModel,this.valueService=i,this.gridOptionsWrapper=n,this.processCellCallback=e,this.processHeaderCallback=r,this.processGroupHeaderCallback=o,this.processRowGroupCallback=s}return t.prototype.prepare=function(t){this.groupColumns=t.filter((function(t){return!!t.getColDef().showRowGroup}))},t.prototype.extractHeaderValue=function(t){var i=this.getHeaderName(this.processHeaderCallback,t);return null!=i?i:""},t.prototype.extractRowCellValue=function(t,i,n,e,r){var o=!this.gridOptionsWrapper.isGroupHideOpenParents()&&this.shouldRenderGroupSummaryCell(r,t,i)?this.createValueForGroupNode(r):this.valueService.getValue(t,r),s=this.processCell({accumulatedRowIndex:n,rowNode:r,column:t,value:o,processCellCallback:this.processCellCallback,type:e});return null!=s?s:""},t.prototype.shouldRenderGroupSummaryCell=function(t,i,n){var e;if(!t||!t.group)return!1;if(-1!==this.groupColumns.indexOf(i)&&(null===(e=t.groupData)||void 0===e?void 0:e[i.getId()]))return!0;var r=this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===n&&r},t.prototype.getHeaderName=function(t,i){return t?t({column:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(i,"csv",!0)},t.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var i=[t.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;t.parent;)i.push((t=t.parent).key);return i.reverse().join(" -> ")},t.prototype.processCell=function(t){var i=t.value,n=t.processCellCallback,e=t.type;return n?n({accumulatedRowIndex:t.accumulatedRowIndex,column:t.column,node:t.rowNode,value:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:e}):null!=i?i:""},t}(),gp=function(){function t(){}return t.download=function(t,i){var n=document.defaultView||window;if(n){var e=document.createElement("a"),r=n.URL.createObjectURL(i);e.setAttribute("href",r),e.setAttribute("download",t),e.style.display="none",document.body.appendChild(e),e.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(e),n.setTimeout((function(){n.URL.revokeObjectURL(r)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},t}(),mp=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),wp=function(t){function i(i){var n=t.call(this,i)||this;n.isFirstLine=!0,n.result="";var e=i.columnSeparator;return n.suppressQuotes=i.suppressQuotes,n.columnSeparator=e,n}return mp(i,t),i.prototype.addCustomContent=function(t){var i=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){i.beginNewLine(),t.forEach((function(t,n){0!==n&&(i.result+=i.columnSeparator),i.result+=i.putInQuotes(t.data.value||""),t.mergeAcross&&i.appendEmptyCells(t.mergeAcross)}))})))},i.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},i.prototype.onNewHeaderGroupingRowColumn=function(t,i,n,e){0!=n&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(i),this.appendEmptyCells(e)},i.prototype.appendEmptyCells=function(t){for(var i=1;i<=t;i++)this.result+=this.columnSeparator+this.putInQuotes("")},i.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},i.prototype.onNewHeaderRowColumn=function(t,i){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(t))},i.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},i.prototype.onNewBodyRowColumn=function(t,i,n){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(t,i,i,Q.EXPORT_TYPE_CSV,n))},i.prototype.putInQuotes=function(t){return this.suppressQuotes?t:null==t?'""':("string"==typeof t?i=t:"function"==typeof t.toString?i=t.toString():(console.warn("AG Grid: unknown value type during csv conversion"),i=""),'"'+i.replace(/"/g,'""')+'"');var i},i.prototype.parse=function(){return this.result},i.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},i}(pp),bp=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),yp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Cp=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return bp(i,t),i.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},i.prototype.getMergedParams=function(t){var i=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},i,t)},i.prototype.export=function(t){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var i=this.getMergedParams(t),n=this.getData(i),e=new Blob(["\ufeff",n],{type:"text/plain"});return gp.download(this.getFileName(i.fileName),e),n},i.prototype.exportDataAsCsv=function(t){return this.export(t)},i.prototype.getDataAsCsv=function(t){var i=this.getMergedParams(t);return this.getData(i)},i.prototype.getDefaultFileName=function(){return"export.csv"},i.prototype.getDefaultFileExtension=function(){return"csv"},i.prototype.createSerializingSession=function(t){var i=this;return new wp({columnModel:i.columnModel,valueService:i.valueService,gridOptionsWrapper:i.gridOptionsWrapper,processCellCallback:t.processCellCallback||void 0,processHeaderCallback:t.processHeaderCallback||void 0,processGroupHeaderCallback:t.processGroupHeaderCallback||void 0,processRowGroupCallback:t.processRowGroupCallback||void 0,suppressQuotes:t.suppressQuotes||!1,columnSeparator:t.columnSeparator||","})},i.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},yp([W("columnModel")],i.prototype,"columnModel",void 0),yp([W("valueService")],i.prototype,"valueService",void 0),yp([W("gridSerializer")],i.prototype,"gridSerializer",void 0),yp([W("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),yp([L],i.prototype,"postConstruct",null),yp([B("csvCreator")],i)}(vp),Rp=function(){var t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])})(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Sp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY"}(Ev||(Ev={}));var Op=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Rp(i,t),i.prototype.serialize=function(t,i){void 0===i&&(i={});var n=this.getColumnsToExport(i.allColumns,i.columnKeys);return Ye.compose(this.prepareSession(n),this.prependContent(i),this.exportColumnGroups(i,n),this.exportHeaders(i,n),this.processPinnedTopRows(i,n),this.processRows(i,n),this.processPinnedBottomRows(i,n),this.appendContent(i))(t).parse()},i.prototype.processRow=function(t,i,n,e){var r=i.shouldRowBeSkipped||function(){return!1},o=this.gridOptionsWrapper,s=o.getContext(),u=o.getApi(),h=o.getColumnApi(),c=o.isGroupRemoveSingleChildren(),a=o.isGroupRemoveLowestSingleChildren(),f=null!=i.rowPositions,l=f||!!i.onlySelected,d=o.isGroupHideOpenParents()&&!l,v=this.columnModel.isPivotMode()?e.leafGroup:!e.group,p=1===e.allChildrenCount&&(c||a&&e.leafGroup);if((i.skipGroups||i.skipRowGroups)&&i.skipGroups&&Ye.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!v&&(i.skipRowGroups||p||d)||i.onlySelected&&!e.isSelected()||i.skipPinnedTop&&"top"===e.rowPinned||i.skipPinnedBottom&&"bottom"===e.rowPinned)&&(-1!==e.level||e.leafGroup||e.footer&&f)&&!r({node:e,api:u,columnApi:h,context:s})){var g=t.onNewBodyRow();if(n.forEach((function(t,i){g.onColumn(t,i,e)})),i.getCustomContentBelowRow){var m=i.getCustomContentBelowRow({node:e,api:u,columnApi:h,context:s});m&&t.addCustomContent(m)}}},i.prototype.appendContent=function(t){return function(i){var n=t.customFooter||t.appendContent;return n&&(t.customFooter&&Ye.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),i.addCustomContent(n)),i}},i.prototype.prependContent=function(t){return function(i){var n=t.customHeader||t.prependContent;return n&&(t.customHeader&&Ye.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),i.addCustomContent(n)),i}},i.prototype.prepareSession=function(t){return function(i){return i.prepare(t),i}},i.prototype.exportColumnGroups=function(t,i){var n=this;return function(e){if(t.skipColumnGroupHeaders)t.columnGroups&&Ye.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 r=new Et,o=n.displayedGroupCreator.createDisplayedGroups(i,n.columnModel.getGridBalancedTree(),r,null);n.recursivelyAddHeaderGroups(o,e,t.processGroupHeaderCallback)}return e}},i.prototype.exportHeaders=function(t,i){return function(n){if(t.skipHeader||t.skipColumnHeaders)t.skipHeader&&Ye.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var e=n.onNewHeaderRow();i.forEach((function(t,i){e.onColumn(t,i,void 0)}))}return n}},i.prototype.processPinnedTopRows=function(t,i){var n=this;return function(e){var r=n.processRow.bind(n,e,t,i);return t.rowPositions?t.rowPositions.filter((function(t){return"top"===t.rowPinned})).sort((function(t,i){return t.rowIndex-i.rowIndex})).map((function(t){return n.pinnedRowModel.getPinnedTopRow(t.rowIndex)})).forEach(r):n.pinnedRowModel.forEachPinnedTopRow(r),e}},i.prototype.processRows=function(t,i){var n=this;return function(e){var r=n.rowModel,o=r.getType(),s=o===Q.ROW_MODEL_TYPE_CLIENT_SIDE,u=o===Q.ROW_MODEL_TYPE_SERVER_SIDE,h=!s&&t.onlySelected,c=n.processRow.bind(n,e,t,i),a=t.exportedRows,f=void 0===a?"filteredAndSorted":a;return t.rowPositions?t.rowPositions.filter((function(t){return null==t.rowPinned})).sort((function(t,i){return t.rowIndex-i.rowIndex})).map((function(t){return r.getRow(t.rowIndex)})).forEach(c):n.columnModel.isPivotMode()?s?r.forEachPivotNode(c):r.forEachNode(c):t.onlySelectedAllPages||h?n.selectionService.getSelectedNodes().forEach(c):"all"===f?r.forEachNode(c):s||u?r.forEachNodeAfterFilterAndSort(c):r.forEachNode(c),e}},i.prototype.processPinnedBottomRows=function(t,i){var n=this;return function(e){var r=n.processRow.bind(n,e,t,i);return t.rowPositions?t.rowPositions.filter((function(t){return"bottom"===t.rowPinned})).sort((function(t,i){return t.rowIndex-i.rowIndex})).map((function(t){return n.pinnedRowModel.getPinnedBottomRow(t.rowIndex)})).forEach(r):n.pinnedRowModel.forEachPinnedBottomRow(r),e}},i.prototype.getColumnsToExport=function(t,i){void 0===t&&(t=!1);var n=this.columnModel.isPivotMode();return i&&i.length?this.columnModel.getGridColumns(i):t&&!n?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([Q.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},i.prototype.recursivelyAddHeaderGroups=function(t,i,n){var e=[];t.forEach((function(t){t.getChildren&&t.getChildren().forEach((function(t){return e.push(t)}))})),t.length>0&&t[0]instanceof pt&&this.doAddHeaderHeader(i,t,n),e&&e.length>0&&this.recursivelyAddHeaderGroups(e,i,n)},i.prototype.doAddHeaderHeader=function(t,i,n){var e=this,r=t.onNewHeaderGroupingRow(),o=0;i.forEach((function(t){var i,s=t;i=n?n({columnGroup:s,api:e.gridOptionsWrapper.getApi(),columnApi:e.gridOptionsWrapper.getColumnApi(),context:e.gridOptionsWrapper.getContext()}):e.columnModel.getDisplayNameForColumnGroup(s,"header");var u=s.getLeafColumns().reduce((function(t,i,n,e){var r=Ye.last(t);return"open"===i.getColumnGroupShow()?r&&null==r[1]||t.push(r=[n]):r&&null==r[1]&&(r[1]=n-1),n===e.length-1&&r&&null==r[1]&&(r[1]=n),t}),[]);r.onColumn(s,i||"",o++,s.getLeafColumns().length-1,u)}))},Sp([W("displayedGroupCreator")],i.prototype,"displayedGroupCreator",void 0),Sp([W("columnModel")],i.prototype,"columnModel",void 0),Sp([W("rowModel")],i.prototype,"rowModel",void 0),Sp([W("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Sp([W("selectionService")],i.prototype,"selectionService",void 0),Sp([W("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),Sp([B("gridSerializer")],i)}(kt);X.registerModules([ep,dp,{moduleName:q.CsvExportModule,beans:[Cp,Op]}]);export{xv as G}