groundfloor-react-ui 1.3.96-sail1.607 → 1.3.96-sail1.609

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.
Files changed (76) hide show
  1. package/dist/SailAdmin/pages/SailAnalyticsView.js +1 -1
  2. package/dist/SailAdmin/pages/SailChatbotAnalytics.js +4 -4
  3. package/dist/SailAdmin/pages/_virtual/_commonjsHelpers.js +1 -0
  4. package/dist/SailAdmin/pages/_virtual/ag-grid-community.auto.esm.js +1 -0
  5. package/dist/SailAdmin/pages/_virtual/agGridReact.js +1 -0
  6. package/dist/SailAdmin/pages/_virtual/agGridReactLegacy.js +1 -0
  7. package/dist/SailAdmin/pages/_virtual/agGridReactUi.js +1 -0
  8. package/dist/SailAdmin/pages/_virtual/beansContext.js +1 -0
  9. package/dist/SailAdmin/pages/_virtual/cellComp.js +1 -0
  10. package/dist/SailAdmin/pages/_virtual/detailCellRenderer.js +1 -0
  11. package/dist/SailAdmin/pages/_virtual/gridBodyComp.js +1 -0
  12. package/dist/SailAdmin/pages/_virtual/gridComp.js +1 -0
  13. package/dist/SailAdmin/pages/_virtual/gridHeaderComp.js +1 -0
  14. package/dist/SailAdmin/pages/_virtual/groupCellRenderer.js +1 -0
  15. package/dist/SailAdmin/pages/_virtual/headerCellComp.js +1 -0
  16. package/dist/SailAdmin/pages/_virtual/headerFilterCellComp.js +1 -0
  17. package/dist/SailAdmin/pages/_virtual/headerGroupCellComp.js +1 -0
  18. package/dist/SailAdmin/pages/_virtual/headerRowComp.js +1 -0
  19. package/dist/SailAdmin/pages/_virtual/headerRowContainerComp.js +1 -0
  20. package/dist/SailAdmin/pages/_virtual/interfaces.js +1 -0
  21. package/dist/SailAdmin/pages/_virtual/jsComp.js +1 -0
  22. package/dist/SailAdmin/pages/_virtual/keyGenerator.js +1 -0
  23. package/dist/SailAdmin/pages/_virtual/legacyReactComponent.js +1 -0
  24. package/dist/SailAdmin/pages/_virtual/newReactComponent.js +1 -0
  25. package/dist/SailAdmin/pages/_virtual/popupEditorComp.js +1 -0
  26. package/dist/SailAdmin/pages/_virtual/portalManager.js +1 -0
  27. package/dist/SailAdmin/pages/_virtual/reactComment.js +1 -0
  28. package/dist/SailAdmin/pages/_virtual/reactComponent.js +1 -0
  29. package/dist/SailAdmin/pages/_virtual/reactFrameworkOverrides.js +1 -0
  30. package/dist/SailAdmin/pages/_virtual/rowComp.js +1 -0
  31. package/dist/SailAdmin/pages/_virtual/rowContainerComp.js +1 -0
  32. package/dist/SailAdmin/pages/_virtual/showJsRenderer.js +1 -0
  33. package/dist/SailAdmin/pages/_virtual/tabGuardComp.js +1 -0
  34. package/dist/SailAdmin/pages/_virtual/useEffectOnce.js +1 -0
  35. package/dist/SailAdmin/pages/_virtual/utils.js +1 -0
  36. package/dist/SailAdmin/pages/node_modules/ag-grid-community/dist/ag-grid-community.auto.esm.js +365 -0
  37. package/dist/SailAdmin/pages/node_modules/ag-grid-community/styles/ag-grid.css.js +1 -0
  38. package/dist/SailAdmin/pages/node_modules/ag-grid-community/styles/ag-theme-alpine.css.js +1 -0
  39. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/agGridReact.js +1 -0
  40. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/legacy/agGridReactLegacy.js +1 -0
  41. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/legacy/legacyReactComponent.js +1 -0
  42. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/agGridReactUi.js +1 -0
  43. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/beansContext.js +1 -0
  44. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/cellRenderer/detailCellRenderer.js +1 -0
  45. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/cellRenderer/groupCellRenderer.js +1 -0
  46. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/cells/cellComp.js +1 -0
  47. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/cells/popupEditorComp.js +1 -0
  48. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/cells/showJsRenderer.js +1 -0
  49. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/gridBodyComp.js +1 -0
  50. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/gridComp.js +1 -0
  51. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/header/gridHeaderComp.js +1 -0
  52. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/header/headerCellComp.js +1 -0
  53. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/header/headerFilterCellComp.js +1 -0
  54. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/header/headerGroupCellComp.js +1 -0
  55. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/header/headerRowComp.js +1 -0
  56. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/header/headerRowContainerComp.js +1 -0
  57. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/jsComp.js +1 -0
  58. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/reactComment.js +1 -0
  59. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/rows/rowComp.js +1 -0
  60. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/rows/rowContainerComp.js +1 -0
  61. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/tabGuardComp.js +1 -0
  62. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/useEffectOnce.js +1 -0
  63. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/reactUi/utils.js +1 -0
  64. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/shared/interfaces.js +1 -0
  65. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/shared/keyGenerator.js +1 -0
  66. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/shared/newReactComponent.js +1 -0
  67. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/shared/portalManager.js +1 -0
  68. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/shared/reactComponent.js +1 -0
  69. package/dist/SailAdmin/pages/node_modules/ag-grid-react/lib/shared/reactFrameworkOverrides.js +1 -0
  70. package/dist/SailAdmin/pages/node_modules/ag-grid-react/main.js +1 -0
  71. package/dist/SailAdmin/pages/src/library/components/Sail/SailAdmin/library/components/HyperLink/HyperLink.js +1 -1
  72. package/dist/index.es.js +2 -2
  73. package/dist/index.es.js.map +1 -1
  74. package/dist/index.js +2 -2
  75. package/dist/index.js.map +1 -1
  76. package/package.json +15 -23
@@ -0,0 +1,365 @@
1
+ "use strict";
2
+ /**
3
+ * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.5
4
+ * @link https://www.ag-grid.com/
5
+ * @license MIT
6
+ */
7
+ /**
8
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
9
+ * @version v29.3.5
10
+ * @link https://www.ag-grid.com/
11
+ * @license MIT
12
+ */
13
+ function e(e){return null==e||""===e?null:e}function t(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function o(e){return!t(e)}function i(e){return null==e||0===e.length}function r(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function n(e){if(void 0!==e){if(null===e||""===e)return null;if("number"==typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function s(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function a(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach(function(e){return t.push(e)}),t}return Object.values(e)}Object.defineProperty(exports,"__esModule",{value:!0});var l=Object.freeze({__proto__:null,makeNull:e,exists:t,missing:o,missingOrEmpty:i,toStringOrNull:r,attrToNumber:n,attrToBoolean:s,attrToString:function(e){if(null!=e&&""!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:function(e,t,o){void 0===o&&(o=!1);var i=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&r)return 0;if(i)return-1;if(r)return 1;function n(e,t){return e>t?1:e<t?-1:0}if("string"!=typeof e)return n(e,t);if(!o)return n(e,t);try{return e.localeCompare(t)}catch(o){return n(e,t)}},values:a}),u=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=r(e);for(var o=0;;){var i=void 0;if(e?(i=e,0!==o&&(i+="_"+o)):t?(i=t,0!==o&&(i+="_"+o)):i=""+o,!this.existingKeys[i])return this.existingKeys[i]=!0,i;o++}},e}();
14
+ /**
15
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
16
+ * @version v29.3.5
17
+ * @link https://www.ag-grid.com/
18
+ * @license MIT
19
+ */
20
+ /**
21
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
22
+ * @version v29.3.5
23
+ * @link https://www.ag-grid.com/
24
+ * @license MIT
25
+ */
26
+ function c(e,t){null!=e&&(Array.isArray(e)?e.forEach(function(e,o){return t(""+o,e)}):Object.keys(e).forEach(function(o){return t(o,e[o])}))}function p(e){for(var t={},o=Object.keys(e),i=0;i<o.length;i++){var r=o[i],n=e[r];t[r]=n}return t}function d(e,t){if(e){var o=e,i={};return Object.keys(o).forEach(function(e){if(!(t&&t.indexOf(e)>=0)){var r=o[e],n=S(r)&&r.constructor===Object;i[e]=n?d(r):r}}),i}}function h(e,t){return e[t]}function f(e,t,o){e[t]=o}function g(e,t,o,i){var r=h(e,o);void 0!==r&&f(t,o,i?i(r):r)}function v(e){var t={};return e.filter(function(e){return null!=e}).forEach(function(e){Object.keys(e).forEach(function(e){return t[e]=null})}),Object.keys(t)}function y(e){if(!e)return[];var t=Object;if("function"==typeof t.values)return t.values(e);var o=[];for(var i in e)e.hasOwnProperty(i)&&e.propertyIsEnumerable(i)&&o.push(e[i]);return o}function m(e,o,i,r){void 0===i&&(i=!0),void 0===r&&(r=!1),t(o)&&c(o,function(t,o){var n=e[t];if(n!==o){if(r)if(null==n&&null!=o)"object"==typeof o&&o.constructor===Object&&(n={},e[t]=n);S(o)&&S(n)&&!Array.isArray(n)?m(n,o,i,r):(i||void 0!==o)&&(e[t]=o)}})}function C(e,t,o){if(t&&e){if(!o)return e[t];for(var i=t.split("."),r=e,n=0;n<i.length;n++){if(null==r)return;r=r[i[n]]}return r}}function w(e,t){Object.keys(e).forEach(function(t){"object"==typeof e[t]&&(e[t]=void 0)});var o=Object.getPrototypeOf(e),i={};Object.keys(o).forEach(function(e){if("function"==typeof o[e]){i[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() 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(e,i)}function S(e){return"object"==typeof e&&null!==e}var E=Object.freeze({__proto__:null,iterateObject:c,cloneObject:p,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:d,getProperty:h,setProperty:f,copyPropertiesIfPresent:function(e,t){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];o.forEach(function(o){return g(e,t,o)})},copyPropertyIfPresent:g,getAllKeysInObjects:v,getAllValuesInObject:y,mergeDeep:m,missingOrEmptyObject:function(e){return o(e)||0===Object.keys(e).length},get:function(e,t,o){if(null==e)return o;for(var i=t.split("."),r=e;i.length>1;)if(null==(r=r[i.shift()]))return o;var n=r[i[0]];return null!=n?n:o},set:function(e,t,o){if(null!=e){var i=t.split("."),r=e;i.forEach(function(e,t){r[e]||(r[e]={}),t<i.length-1&&(r=r[e])}),r[i[i.length-1]]=o}},getValueUsingField:C,removeAllReferences:w,isNonNullObject:S}),R={};
27
+ /**
28
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
29
+ * @version v29.3.5
30
+ * @link https://www.ag-grid.com/
31
+ * @license MIT
32
+ */function b(e,t){R[t]||(e(),R[t]=!0)}function O(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function T(e){return!!(e&&e.constructor&&e.call&&e.apply)}function D(e){N(e,400)}var P=[],_=!1;function A(e){P.push(e),_||(_=!0,window.setTimeout(function(){var e=P.slice();P.length=0,_=!1,e.forEach(function(e){return e()})},0))}function N(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout(function(){return e.forEach(function(e){return e()})},t)}function M(e,t){var o;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.apply(n,i)},t)}}function F(e,t){var o=0;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var n=(new Date).getTime();n-o<t||(o=n,e.apply(this,i))}}function L(e,t,o,i){void 0===o&&(o=100);var r=(new Date).getTime(),n=null,s=!1,a=function(){var a=(new Date).getTime()-r>o;(e()||a)&&(t(),s=!0,null!=n&&(window.clearInterval(n),n=null),a&&i&&console.warn(i))};a(),s||(n=window.setInterval(a,10))}function x(e){e&&e()}var I=Object.freeze({__proto__:null,doOnce:b,getFunctionName:O,isFunction:T,executeInAWhile:D,executeNextVMTurn:A,executeAfter:N,debounce:M,throttle:F,waitUntil:L,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce(function(e,t){return t(e)},t)}},callIfPresent:x,noop:function(){}}),G=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},H=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return a(this.beanWrappers).map(function(e){return e.beanInstance})},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,o){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),t(o)&&e.forEach(o),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),c(this.beanWrappers,function(t,o){var i;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var r=e.getBeansForParameters(i,o.bean.name),n=new(o.bean.bind.apply(o.bean,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(G(arguments[t]));return e}([null],r)));o.beanInstance=n});var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o=void 0;return o=e.prototype.constructor?O(e.prototype.constructor):""+e,void console.error("Context item "+o+" is not a bean")}var i={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=i},e.prototype.autoWireBeans=function(e){var t=this;e.forEach(function(e){t.forEachMetaDataInHierarchy(e,function(o,i){var r=o.agClassAttributes;r&&r.forEach(function(o){var r=t.lookupBeanInstance(i,o.beanName,o.optional);e[o.attributeName]=r})})})},e.prototype.methodWireBeans=function(e){var t=this;e.forEach(function(e){t.forEachMetaDataInHierarchy(e,function(o,i){c(o.autowireMethods,function(o,r){if("agConstructor"!==o){var n=t.getBeansForParameters(r,i);e[o].apply(e,n)}})})})},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var i=o.constructor;if(i.hasOwnProperty("__agBeanMetaData"))t(i.__agBeanMetaData,this.getBeanName(i));o=Object.getPrototypeOf(o)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var o=this,i=[];return e&&c(e,function(e,r){var n=o.lookupBeanInstance(t,r);i[Number(e)]=n}),i},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var i=this.beanWrappers[t];return i?i.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var o=this;e.forEach(function(e){return o.callLifeCycleMethodsOnBean(e,t)})},e.prototype.callLifeCycleMethodsOnBean=function(e,t,o){var i={};this.forEachMetaDataInHierarchy(e,function(e){var r=e[t];r&&r.forEach(function(e){e!=o&&(i[e]=!0)})}),Object.keys(i).forEach(function(t){return e[t]()})},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach(function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var o=e;"function"==typeof o.destroy&&o.destroy()}),[]):[]},e}();function V(e,t,o){var i=Y(e.constructor);i.preConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)}function k(e,t,o){var i=Y(e.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)}function B(e,t,o){var i=Y(e.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)}function j(e){return function(t){Y(t).beanName=e}}function W(e){return function(t,o,i){z(t,e,!1,t,o,null)}}function U(e){return function(t,o,i){z(t,e,!0,t,o,null)}}function z(e,t,o,i,r,n){if(null!==t)if("number"!=typeof n){var s=Y(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:o})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function K(e){return function(t,o,i){var r,n="function"==typeof t?t:t.constructor;if("number"==typeof i){var s=void 0;o?(r=Y(n),s=o):(r=Y(n),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][i]=e}}}function Y(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}
33
+ /**
34
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
35
+ * @version v29.3.5
36
+ * @link https://www.ag-grid.com/
37
+ * @license MIT
38
+ */var q,Q=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},X=function(e,t){return function(o,i){t(o,i,e)}},J=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,o,i){if(void 0===i&&(i=null),this.frameworkOverrides=o,this.gridOptionsService=t,i){var r=t.useAsyncEvents();this.addGlobalListener(i,r)}},e.prototype.getListeners=function(e,t,o){var i=t?this.allAsyncListeners:this.allSyncListeners,r=i.get(e);return!r&&o&&(r=new Set,i.set(e,r)),r},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,o){void 0===o&&(o=!1),this.getListeners(e,o,!0).add(t)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var i=this.getListeners(e,o,!1);i&&(i.delete(t),0===i.size&&(o?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){var t=e;if(this.gridOptionsService){var o=this.gridOptionsService,i=o.api,r=o.columnApi,n=o.context;t.api=i,t.columnApi=r,t.context=n}this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var o=this,i=e.type;if(t&&"event"in e){var r=e.event;r instanceof Event&&(e.eventPath=r.composedPath())}var n=this.getListeners(i,t,!1);n&&function(i){i.forEach(function(i){t?o.dispatchAsync(function(){return i(e)}):i(e)})}(n),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(function(r){t?o.dispatchAsync(function(){return o.frameworkOverrides.dispatchEvent(i,function(){return r(i,e)},!0)}):o.frameworkOverrides.dispatchEvent(i,function(){return r(i,e)},!0)})},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(function(e){return e()})},Q([X(0,K("loggerFactory")),X(1,K("gridOptionsService")),X(2,K("frameworkOverrides")),X(3,K("globalEventListener"))],e.prototype,"setBeans",null),e=Q([j("eventService")],e)}();
39
+ /**
40
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
41
+ * @version v29.3.5
42
+ * @link https://www.ag-grid.com/
43
+ * @license MIT
44
+ */
45
+ exports.ModuleNames=void 0,(q=exports.ModuleNames||(exports.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",q.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",q.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",q.CsvExportModule="@ag-grid-community/csv-export",q.EnterpriseCoreModule="@ag-grid-enterprise/core",q.RowGroupingModule="@ag-grid-enterprise/row-grouping",q.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",q.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",q.MenuModule="@ag-grid-enterprise/menu",q.SetFilterModule="@ag-grid-enterprise/set-filter",q.MultiFilterModule="@ag-grid-enterprise/multi-filter",q.StatusBarModule="@ag-grid-enterprise/status-bar",q.SideBarModule="@ag-grid-enterprise/side-bar",q.RangeSelectionModule="@ag-grid-enterprise/range-selection",q.MasterDetailModule="@ag-grid-enterprise/master-detail",q.RichSelectModule="@ag-grid-enterprise/rich-select",q.GridChartsModule="@ag-grid-enterprise/charts",q.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",q.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",q.ExcelExportModule="@ag-grid-enterprise/excel-export",q.ClipboardModule="@ag-grid-enterprise/clipboard",q.SparklinesModule="@ag-grid-enterprise/sparklines",q.AngularModule="@ag-grid-community/angular",q.ReactModule="@ag-grid-community/react",q.VueModule="@ag-grid-community/vue";
46
+ /**
47
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
48
+ * @version v29.3.5
49
+ * @link https://www.ag-grid.com/
50
+ * @license MIT
51
+ */
52
+ var Z=function(){function e(){}return e.register=function(t,o){void 0===o&&(o=!0),e.runVersionChecks(t),e.modulesMap[t.moduleName]=t,e.setModuleBased(o)},e.runVersionChecks=function(t){if(e.currentModuleVersion||(e.currentModuleVersion=t.version),t.version?t.version!==e.currentModuleVersion&&console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+t.moduleName+"' is version "+t.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+t.moduleName+"' is incompatible. Please update all modules to the same version."),t.validate){var o=t.validate();if(!o.isValid){var i=o;console.error("AG Grid: "+i.message)}}},e.setModuleBased=function(t){void 0===e.moduleBased?e.moduleBased=t:e.moduleBased!==t&&b(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")},e.setIsBundled=function(){e.isBundled=!0},e.registerModules=function(t,o){void 0===o&&(o=!0),e.setModuleBased(o),t&&t.forEach(function(t){return e.register(t,o)})},e.assertRegistered=function(t,o){var i;if(this.isRegistered(t))return!0;var r,n=o+t;if(e.isBundled)r="AG Grid: unable to use "+o+" as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n \n <script src=\"https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js\"><\/script>\n \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise";else if(e.moduleBased||void 0===e.moduleBased){var s=null===(i=Object.entries(exports.ModuleNames).find(function(e){var o=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s}(e,2);return o[0],o[1]===t}))||void 0===i?void 0:i[0];r="AG Grid: unable to use "+o+" as the "+s+" is not registered. Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { "+s+" } from '"+t+"';\n \n ModuleRegistry.registerModules([ "+s+" ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/"}else r="AG Grid: unable to use "+o+" as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n \n import 'ag-grid-enterprise';\n \nFor more info see: https://www.ag-grid.com/javascript-grid/packages/";return b(function(){console.warn(r)},n),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return a(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),$=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ee=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},te=0;function oe(){return te++}var ie=function(){function e(e,t,o,i){this.instanceId=oe(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new J,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=i,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?"asc"!==e.sort&&"desc"!==e.sort||(this.sort=e.sort):"asc"!==e.initialSort&&"desc"!==e.initialSort||(this.sort=e.initialSort);var t=n(e.sortIndex),o=n(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==o&&(this.sortIndex=o);var i=s(e.hide),r=s(e.initialHide);this.visible=void 0!==i?!i:!r,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var a=n(e.flex),l=n(e.initialFlex);void 0!==a?this.flex=a:void 0!==l&&(this.flex=l)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged","api"))},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsService.is("suppressFieldDotNotation");this.fieldContainsDots=t(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=t(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.initTooltip=function(){this.tooltipEnabled=t(this.colDef.tooltipField)||t(this.colDef.tooltipValueGetter)||t(this.colDef.tooltipComponent)||t(this.colDef.tooltipComponentFramework)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(o(this.colDef)||o(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,i=this.colDef.showRowGroup===e;return t||i},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function o(e,t,o){b(function(){o?console.warn(e,o):b(function(){return console.warn(e)},t)},t)}if(this.gridOptionsService.isRowModelType("clientSide")&&!Z.isRegistered(exports.ModuleNames.RowGroupingModule)){(i=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter(function(o){return t(e[o])})).length>0&&Z.assertRegistered(exports.ModuleNames.RowGroupingModule,i.map(function(e){return"colDef."+e}).join(", "))}if("agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||Z.assertRegistered(exports.ModuleNames.RichSelectModule,this.colDef.cellEditor),this.gridOptionsService.isTreeData()){(i=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter(function(o){return t(e[o])})).length>0&&o("AG Grid: "+i.join()+" is not possible when doing tree data, your column definition should not have "+i.join(),"TreeDataCannotRowGroup")}if(t(e.menuTabs))if(Array.isArray(e.menuTabs)){var i,r=["filterMenuTab"],n=["columnsMenuTab","generalMenuTab"];(i=n.filter(function(t){return e.menuTabs.includes(t)})).length>0&&Z.assertRegistered(exports.ModuleNames.MenuModule,"menuTab(s): "+i.map(function(e){return"'"+e+"'"}).join()),e.menuTabs.forEach(function(e){n.includes(e)||r.includes(e)||o("AG Grid: '"+e+"' is not valid for 'colDef.menuTabs'. Valid values are: "+function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ee(arguments[t]));return e}(r,n).map(function(e){return"'"+e+"'"}).join()+".","wrongValue_menuTabs_"+e)})}else o("AG Grid: The typeof 'colDef.menuTabs' should be an array not:"+typeof e.menuTabs,"wrongType_menuTabs");t(e.columnsMenuParams)&&Z.assertRegistered(exports.ModuleNames.MenuModule,"columnsMenuParams"),t(e.columnsMenuParams)&&Z.assertRegistered(exports.ModuleNames.ColumnsToolPanelModule,"columnsMenuParams"),t(this.colDef.width)&&"number"!=typeof this.colDef.width&&o("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),(e.pinnedRowCellRenderer||e.pinnedRowCellRendererParams||e.pinnedRowCellRendererFramework)&&o("AG Grid: pinnedRowCellRenderer[Params,Framework] no longer exist. Use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned.","colDef.pinnedRowCellRenderer-deprecated"),t(e.columnGroupShow)&&"closed"!==e.columnGroupShow&&"open"!==e.columnGroupShow&&o("AG Grid: '"+e.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null","columnGroupShow_invalid")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsService.is("enableGroupEdit"))&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!s(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!s(this.colDef.autoHeight)},e.prototype.isAutoHeaderHeight=function(){return!!s(this.colDef.autoHeaderHeight)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!!s(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(e,t){void 0===t&&(t="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",t))},e.prototype.createColumnEvent=function(e,t){return{type:e,column:this,columns:[this],source:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(e,t){void 0===t&&(t="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",t)))},e.prototype.setMenuVisible=function(e,t){void 0===t&&(t="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",t)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return"asc"===this.sort},e.prototype.isSortDescending=function(){return"desc"===this.sort},e.prototype.isSortNone=function(){return o(this.sort)},e.prototype.isSorting=function(){return t(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(e,t){void 0===t&&(t="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",t)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(e,t,o){void 0===t&&(t="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",t)));var i=this.createColumnEvent("filterChanged",t);o&&m(i,o),this.eventService.dispatchEvent(i)},e.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},e.prototype.setPinned=function(e){this.pinned=!0===e||"left"===e?"left":"right"===e?"right":null},e.prototype.setFirstRightPinned=function(e,t){void 0===t&&(t="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",t)))},e.prototype.setLastLeftPinned=function(e,t){void 0===t&&(t="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",t)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},e.prototype.isPinnedLeft=function(){return"left"===this.pinned},e.prototype.isPinnedRight=function(){return"right"===this.pinned},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(e,t){void 0===t&&(t="api");var o=!0===e;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",t)))},e.prototype.isVisible=function(){return this.visible},e.prototype.isSpanHeaderHeight=function(){return!!this.getColDef().spanHeaderHeight},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.colId},e.prototype.getUniqueId=function(){return this.colId},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},e.prototype.setAutoHeaderHeight=function(e){var t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.getColSpan=function(e){if(o(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)},e.prototype.getRowSpan=function(e){if(o(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)},e.prototype.setActualWidth=function(e,t,o){void 0===t&&(t="api"),void 0===o&&(o=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),o||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(e){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",e))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),t(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(e,t){void 0===t&&(t="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",t)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(e,t){void 0===t&&(t="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",t)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(e,t){void 0===t&&(t="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",t)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_COL_DEF_CHANGED="colDefChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",$([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),$([W("columnUtils")],e.prototype,"columnUtils",void 0),$([W("columnHoverService")],e.prototype,"columnHoverService",void 0),$([k],e.prototype,"initialise",null),e}(),re=function(){function e(e,t,o,i){this.localEventService=new J,this.expandable=!1,this.instanceId=oe(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=o,this.level=i}return e.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},e.prototype.reset=function(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some(function(e){return e.isVisible()})},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach(function(o){o instanceof ie?t.push(o):o instanceof e&&o.addLeafColumns(t)})},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var t=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(function(e){return e.addEventListener("visibleChanged",t)}),this.expandableListenerRemoveCallback=function(){e.getLeafColumns().forEach(function(e){return e.removeEventListener("visibleChanged",t)}),e.expandableListenerRemoveCallback=null}},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,i=!1,r=this.findChildrenRemovingPadding(),n=0,s=r.length;n<s;n++){var a=r[n];if(a.isVisible()){var l=a.getColumnGroupShow();"open"===l?(t=!0,i=!0):"closed"===l?(o=!0,i=!0):(t=!0,o=!0)}}var u=t&&o&&i;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[],o=function(i){i.forEach(function(i){i instanceof e&&i.isPadding()?o(i.children):t.push(i)})};return o(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([B],e.prototype,"destroy",null),e}(),ne={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};
53
+ /**
54
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
55
+ * @version v29.3.5
56
+ * @link https://www.ag-grid.com/
57
+ * @license MIT
58
+ */
59
+ /**
60
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
61
+ * @version v29.3.5
62
+ * @link https://www.ag-grid.com/
63
+ * @license MIT
64
+ */
65
+ function se(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];for(var i=0;i<e.length;i++){var r=e[i];if(t(r))return r}return null}function ae(e){if(e&&e.length)return e[e.length-1]}function le(e,t,o){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(function(e,i){return o?o(e,t[i]):t[i]===e})}function ue(e){return e.sort(function(e,t){return e-t})}function ce(e,t){var o=e.indexOf(t);o>=0&&e.splice(o,1)}function pe(e,t){t.forEach(function(t){return ce(e,t)})}function de(e,t,o){e.splice(o,0,t)}function he(e,t,o){pe(e,t),t.slice().reverse().forEach(function(t){return de(e,t,o)})}function fe(e,t){return e.indexOf(t)>-1}function ge(e){return[].concat.apply([],e)}function ve(e,t){null!=t&&null!=e&&t.forEach(function(t){return e.push(t)})}var ye=Object.freeze({__proto__:null,firstExistingValue:se,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ae,areEqual:le,shallowCompare:function(e,t){return le(e,t)},sortNumerically:ue,removeRepeatsFromArray:function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var i=e[o]===t,r=e[o+1]===t;i&&r&&e.splice(o+1,1)}},removeFromArray:ce,removeAllFromArray:pe,insertIntoArray:de,insertArrayIntoArray:function(e,t,o){if(null!=e&&null!=t)for(var i=t.length-1;i>=0;i--){de(e,t[i],o)}},moveInArray:he,includes:fe,flatten:ge,pushAll:ve,toStrings:function(e){return e.map(r)},forEachReverse:function(e,t){if(null!=e)for(var o=e.length-1;o>=0;o--)t(e[o],o)}}),me="__ag_Grid_Stop_Propagation",Ce=["touchstart","touchend","touchmove","touchcancel","scroll"],we={};
66
+ /**
67
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
68
+ * @version v29.3.5
69
+ * @link https://www.ag-grid.com/
70
+ * @license MIT
71
+ */function Se(e){e[me]=!0}function Ee(e){return!0===e[me]}var Re,be=(Re={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof we[e])return we[e];var t=document.createElement(Re[e]||"div");return we[e="on"+e]=e in t});function Oe(e,t,o){for(var i=t;i;){var r=e.getDomData(i,o);if(r)return r;i=i.parentElement}return null}function Te(e,t){return!(!t||!e)&&Pe(t).indexOf(e)>=0}function De(e){for(var t=[],o=e.target;o;)t.push(o),o=o.parentElement;return t}function Pe(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():De(t)}function _e(e,t,o,i){var r=fe(Ce,o)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,o,i,r)}var Ae,Ne=Object.freeze({__proto__:null,stopPropagationForAgGrid:Se,isStopPropagationForAgGrid:Ee,isEventSupported:be,getCtrlForEventTarget:Oe,isElementInEventPath:Te,createEventPath:De,getEventPath:Pe,addSafePassiveEventListener:_e}),Me=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fe=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach(function(e){return e()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new J),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout(function(){return t.dispatchEvent(e)},0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,o){var i=this;if(!this.destroyed){e instanceof HTMLElement?_e(this.getFrameworkOverrides(),e,t,o):e.addEventListener(t,o);var r=function(){return e.removeEventListener(t,o),i.destroyFunctions=i.destroyFunctions.filter(function(e){return e!==r}),null};return this.destroyFunctions.push(r),r}},e.prototype.addManagedPropertyListener=function(e,t){var o=this;if(!this.destroyed){this.gridOptionsService.addEventListener(e,t);var i=function(){return o.gridOptionsService.removeEventListener(e,t),o.destroyFunctions=o.destroyFunctions.filter(function(e){return e!==i}),null};return this.destroyFunctions.push(i),i}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var o=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),o},e.prototype.createBean=function(e,t,o){return(t||this.getContext()).createBean(e,o)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var o=this;return e&&e.forEach(function(e){return o.destroyBean(e,t)}),[]},e.EVENT_DESTROYED="destroyed",Me([W("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Me([W("context")],e.prototype,"context",void 0),Me([W("eventService")],e.prototype,"eventService",void 0),Me([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Me([W("localeService")],e.prototype,"localeService",void 0),Me([W("environment")],e.prototype,"environment",void 0),Me([B],e.prototype,"destroy",null),e}(),Le=(Ae=function(e,t){return Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},Ae(e,t)},function(e,t){function o(){this.constructor=e}Ae(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),xe=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o,i;return Le(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,o){var i=new u,r=this.extractExistingTreeData(o),n=r.existingCols,s=r.existingGroups,a=r.existingColKeys;i.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,n,i,s),c=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+c);var p=this.balanceColumnTree(l,0,c,i);return this.columnUtils.depthFirstOriginalTreeSearch(null,p,function(e,t){e instanceof re&&e.setupExpandable(),e.setOriginalParent(t)}),{columnTree:p,treeDept:c}},t.prototype.extractExistingTreeData=function(e){var t=[],o=[],i=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(e){if(e instanceof re){var r=e;o.push(r)}else{var n=e;i.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:o,existingColKeys:i}},t.prototype.createForAutoGroups=function(e,t){var o=this;return e.map(function(e){return o.createAutoGroupTreeItem(t,e)})},t.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,i=this.findDepth(e)-1;i>=0;i--){var r=new re(null,"FAKE_PATH_"+t.getId()+"}_"+i,!0,i);this.createBean(r),r.setChildren([o]),o.setOriginalParent(r),o=r}return o},t.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof re;)t++,o=o[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,o,i){for(var r=[],n=0;n<e.length;n++){var s=e[n];if(s instanceof re){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,i);a.setChildren(l),r.push(a)}else{for(var u=void 0,c=void 0,p=o-1;p>=t;p--){var d=i.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new re(h,d,!0,t);this.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(r.push(u),e.some(function(e){return e instanceof re})){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},t.prototype.findMaxDept=function(e,t){for(var o=t,i=0;i<e.length;i++){var r=e[i];if(r instanceof re){var n=r,s=this.findMaxDept(n.getChildren(),t+1);o<s&&(o=s)}}return o},t.prototype.recursivelyCreateColumns=function(e,t,o,i,r,n){var s=this;return(e||[]).map(function(e){return s.isColumnGroup(e)?s.createColumnGroup(o,e,t,i,r,n):s.createColumn(o,e,i,r)})},t.prototype.createColumnGroup=function(e,t,o,i,r,n){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId||null,null),l=new re(s,a,!1,o);this.createBean(l);var u=this.findExistingGroup(t,n);u&&ce(n,u),u&&u.isExpanded()&&l.setExpanded(!0);var c=this.recursivelyCreateColumns(s.children,o+1,e,i,r,n);return l.setChildren(c),l},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(t,e),t},t.prototype.createColumn=function(e,t,o,i){var r=this.mergeColDefs(t),n=this.findExistingColumn(t,o);if(o&&n&&ce(o,n),n)n.setColDef(r,t),this.applyColumnState(n,r);else{var s=i.getUniqueKey(r.colId,r.field);n=new ie(r,t,s,e),this.context.createBean(n)}return n},t.prototype.applyColumnState=function(e,t){var o=n(t.flex);if(void 0!==o&&e.setFlex(o),e.getFlex()<=0){var i=n(t.width);if(null!=i)e.setActualWidth(i);else{var r=e.getActualWidth();e.setActualWidth(r)}}void 0!==t.sort&&("asc"==t.sort||"desc"==t.sort?e.setSort(t.sort):e.setSort(void 0));var a=n(t.sortIndex);void 0!==a&&e.setSortIndex(a);var l=s(t.hide);void 0!==l&&e.setVisible(!l),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find(function(t){var o=t.getUserProvidedColDef();if(!o)return!1;var i=null!=e.colId,r=null!=e.field;return i?t.getId()===e.colId:r?o.field===e.field:o===e})},t.prototype.findExistingGroup=function(e,t){return t.find(function(t){return!!t.getColGroupDef()&&(!(null==e.groupId)&&t.getId()===e.groupId)})},t.prototype.mergeColDefs=function(e){var t={},o=this.gridOptionsService.get("defaultColDef");m(t,o,!1,!0);var i=e.type;i||(i=o&&o.type),i&&this.assignColumnTypes(i,t),m(t,e,!1,!0);var r=this.gridOptionsService.get("autoGroupColumnDef"),n=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&r&&n&&m(t,{sort:r.sort,initialSort:r.initialSort},!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var o=[];if(e instanceof Array){e.some(function(e){return"string"!=typeof e})?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e}else{if("string"!=typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");o=e.split(",")}var i=Object.assign({},ne);c(this.gridOptionsService.get("columnTypes")||{},function(e,t){e in i?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):i[e]=t}),o.forEach(function(e){var o=i[e.trim()];o?m(t,o,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")})},t.prototype.isColumnGroup=function(e){return void 0!==e.children},xe([W("columnUtils")],t.prototype,"columnUtils",void 0),xe([(o=0,i=K("loggerFactory"),function(e,t){i(e,t,o)})],t.prototype,"setBeans",null),t=xe([j("columnFactory")],t)}(Fe),Ge=function(){function e(){}return e.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentFramework:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellRendererFramework:void 0,cellEditor:void 0,cellEditorFramework:void 0,cellEditorParams:void 0,filterFramework:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentFramework:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,floatingFilterComponentFramework:void 0,tooltipComponentParams:void 0,tooltipComponentFramework:void 0,refData:void 0,columnsMenuParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,stickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,spanHeaderHeight:void 0},e.ALL_PROPERTIES=Object.keys(e.ColDefPropertyMap),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),He=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",e.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED="internalToolPanelVisibleChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_UNDO_STARTED="undoStarted",e.EVENT_UNDO_ENDED="undoEnded",e.EVENT_REDO_STARTED="redoStarted",e.EVENT_REDO_ENDED="redoEnded",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_STORE_REFRESHED="storeRefreshed",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",e.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e.EVENT_FILTER_DESTROYED="filterDestroyed",e}(),Ve=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},ke=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ve(arguments[t]));return e},Be=function(){function e(){}return e.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],e.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","pivotSuppressAutoColumn","suppressExpandablePivotGroups","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","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","suppressCutToClipboard"],e.FUNCTIONAL_PROPERTIES=["localeTextFunc","doesExternalFilterPass","groupRowAggNodes","isFullWidthCell","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","postSort","defaultGroupOrderComparator","rowDragText","groupRowRenderer","groupRowRendererFramework","fullWidthCellRenderer","fullWidthCellRendererFramework","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework"],e.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","getRowNodeId","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.FUNCTION_PROPERTIES=ke(e.FUNCTIONAL_PROPERTIES,e.CALLBACK_PROPERTIES),e.ALL_PROPERTIES=ke(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),je=function(){return je=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},je.apply(this,arguments)},We=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Ue=function(){function e(){}return e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.getCoercionLookup=function(){var t={};return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(We(arguments[t]));return e}(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.FUNCTION_PROPERTIES,e.EVENT_CALLBACKS).forEach(function(e){return t[e]="none"}),e.BOOLEAN_PROPERTIES.forEach(function(e){return t[e]="boolean"}),e.NUMBER_PROPERTIES.forEach(function(e){return t[e]="number"}),t},e.getValue=function(t,o){var i=e.coercionLookup[t];if(i){var r=o;switch(i){case"number":r=e.toNumber(o);break;case"boolean":r=e.toBoolean(o);break;case"none":"groupAggFiltering"===t&&"function"!=typeof o&&(r=e.toBoolean(o))}return r}},e.getGridOptionKeys=function(t,o){return o?Object.keys(e.coercionLookup):Object.keys(t)},e.copyAttributesToGridOptions=function(t,o,i){void 0===i&&(i=!1),"object"!=typeof t&&(t={});var r=t;return e.getGridOptionKeys(o,i).forEach(function(t){var i=o[t];if(void 0!==i){var n=e.getValue(t,i);void 0!==n&&(r[t]=n)}}),t},e.processOnChange=function(t,o){if(t&&0!==Object.keys(t).length){var i=je({},t);i.columnTypes&&(o.setColumnTypes(i.columnTypes.currentValue,"gridOptionsChanged"),delete i.columnTypes),i.autoGroupColumnDef&&(o.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.defaultColDef&&(o.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.columnDefs&&(o.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),Object.keys(i).forEach(function(t){var r=t,n=e.getValue(r,i[r].currentValue);o.__setProperty(r,n)});var r={type:He.EVENT_COMPONENT_STATE_CHANGED};c(t,function(e,t){r[e]=t}),o.dispatchEvent(r)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=a(He),e.EXCLUDED_INTERNAL_EVENTS=[He.EVENT_SCROLLBAR_WIDTH_CHANGED,He.EVENT_CHECKBOX_CHANGED,He.EVENT_HEIGHT_SCALE_CHANGED,He.EVENT_BODY_HEIGHT_CHANGED,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,He.EVENT_SCROLL_VISIBILITY_CHANGED,He.EVENT_COLUMN_HOVER_CHANGED,He.EVENT_FLASH_CELLS,He.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,He.EVENT_DISPLAYED_ROWS_CHANGED,He.EVENT_LEFT_PINNED_WIDTH_CHANGED,He.EVENT_RIGHT_PINNED_WIDTH_CHANGED,He.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,He.EVENT_POPUP_TO_FRONT,He.EVENT_KEYBOARD_FOCUS,He.EVENT_MOUSE_FOCUS,He.EVENT_STORE_UPDATED,He.EVENT_COLUMN_PANEL_ITEM_DRAG_START,He.EVENT_COLUMN_PANEL_ITEM_DRAG_END,He.EVENT_FILL_START,He.EVENT_FILL_END,He.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,He.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,He.EVENT_FULL_WIDTH_ROW_FOCUSED,He.EVENT_HEADER_HEIGHT_CHANGED,He.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,He.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,He.EVENT_CELL_FOCUS_CLEARED,He.EVENT_GRID_STYLES_CHANGED,He.EVENT_FILTER_DESTROYED],e.PUBLIC_EVENTS=e.EVENTS.filter(function(t){return!fe(e.EXCLUDED_INTERNAL_EVENTS,t)}),e.EVENT_CALLBACKS=e.EVENTS.map(function(t){return e.getCallbackForEvent(t)}),e.STRING_PROPERTIES=Be.STRING_PROPERTIES,e.OBJECT_PROPERTIES=Be.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=Be.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=Be.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=Be.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=Be.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=Be.ALL_PROPERTIES,e.ALL_PROPERTIES_SET=new Set(Be.ALL_PROPERTIES),e.coercionLookup=e.getCoercionLookup(),e}();
72
+ /**
73
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
74
+ * @version v29.3.5
75
+ * @link https://www.ag-grid.com/
76
+ * @license MIT
77
+ */
78
+ /**
79
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
80
+ * @version v29.3.5
81
+ * @link https://www.ag-grid.com/
82
+ * @license MIT
83
+ */
84
+ function ze(e,t,o){var i={},r=e.filter(function(e){return!t.some(function(t){return t===e})});return r.length>0&&r.forEach(function(e){return i[e]=Ke(e,o)}),i}function Ke(e,t,o,i){var r=t.map(function(t){return{value:t,relevance:Ye(e.toLowerCase(),t.toLocaleLowerCase())}});if(r.sort(function(e,t){return t.relevance-e.relevance}),o&&(r=r.filter(function(e){return 0!==e.relevance})),i&&i>0){var n=r[0].relevance*i;r=r.filter(function(e){return n-e.relevance<0})}return r.map(function(e){return e.value})}function Ye(e,t){for(var o=e.replace(/\s/g,""),i=t.replace(/\s/g,""),r=0,n=-1,s=0;s<o.length;s++){var a=i.indexOf(o[s],n+1);-1!==a&&(r+=100-100*(n=a)/1e4*100)}return r}var qe=Object.freeze({__proto__:null,fuzzyCheckStrings:ze,fuzzySuggestions:Ke}),Qe=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Xe=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Je=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xe(arguments[t]));return e};
85
+ /**
86
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
87
+ * @version v29.3.5
88
+ * @link https://www.ag-grid.com/
89
+ * @license MIT
90
+ */function Ze(e,t,o,i){var r=o?"Please use '"+o+"' instead. ":"";b(function(){return console.warn("AG Grid: since v"+e+", '"+t+"' is deprecated. "+r+(null!=i?i:""))},"Deprecated_"+t)}var $e=function(){function e(){this.deprecatedProperties={serverSideInfiniteScroll:{version:"29",message:"Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`."},rememberGroupStateWhenNewData:{version:"24",message:"Now that transaction updates are possible and they keep group state, this feature is no longer needed."},suppressEnterpriseResetOnNewColumns:{version:"25",message:"Now that it is possible to dynamically change columns in the grid, this is no longer needed."},suppressColumnStateEvents:{version:"25",message:'Events should be ignored based on the `event.source`, which will be "api" if the event was due to setting column state via the API.'},defaultExportParams:{version:"25.2",message:"The property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`"},stopEditingWhenGridLosesFocus:{version:"25.2.2",newProp:"stopEditingWhenCellsLoseFocus",copyToNewProp:!0},applyColumnDefOrder:{version:"26",message:"The property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"},groupMultiAutoColumn:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"multipleColumns"},groupUseEntireRow:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"groupRows"},defaultGroupSortComparator:{version:"26",newProp:"initialGroupOrderComparator"},enableMultiRowDragging:{version:"26.1",newProp:"rowDragMultiRow",copyToNewProp:!0},colWidth:{version:"26.1",newProp:"defaultColDef.width"},minColWidth:{version:"26.1",newProp:"defaultColDef.minWidth"},maxColWidth:{version:"26.1",newProp:"defaultColDef.maxWidth"},reactUi:{version:"26.1",message:"React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."},suppressCellSelection:{version:"27",newProp:"suppressCellFocus",copyToNewProp:!0},clipboardDeliminator:{version:"27.1",newProp:"clipboardDelimiter",copyToNewProp:!0},getRowNodeId:{version:"27.1",newProp:"getRowId",message:"The difference: if getRowId() is implemented then immutable data is enabled by default."},defaultGroupOrderComparator:{version:"27.2",newProp:"initialGroupOrderComparator"},groupRowAggNodes:{version:"27.2",newProp:"getGroupRowAgg"},postSort:{version:"27.2",newProp:"postSortRows"},isFullWidthCell:{version:"27.2",newProp:"isFullWidthRow"},localeTextFunc:{version:"27.2",newProp:"getLocaleText"},serverSideFilteringAlwaysResets:{version:"28.0",newProp:"serverSideFilterAllLevels",copyToNewProp:!0},serverSideSortingAlwaysResets:{version:"28.0",newProp:"serverSideSortAllLevels",copyToNewProp:!0},suppressReactUi:{version:"28",message:"The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."},processSecondaryColDef:{version:"28",newProp:"processPivotResultColDef",copyToNewProp:!0},processSecondaryColGroupDef:{version:"28",newProp:"processPivotResultColGroupDef",copyToNewProp:!0},getServerSideStoreParams:{version:"28",newProp:"getServerSideGroupLevelParams",copyToNewProp:!0},enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"},onColumnAggFuncChangeRequest:{version:"29.2"}}}return e.prototype.pickOneWarning=function(e,t){console.warn("AG Grid: "+e+" and "+t+" do not work with each other, you need to pick one.")},e.prototype.init=function(){var e=this;if(this.checkForDeprecated(),this.checkForViolations(),!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.checkColumnDefViolations(),this.gridOptionsService.is("groupSelectsChildren")&&this.gridOptionsService.is("suppressParentsInRowNodes")&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.gridOptionsService.is("groupSelectsChildren")&&"multiple"!==this.gridOptionsService.get("rowSelection")&&console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.gridOptionsService.is("groupRemoveSingleChildren")&&this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRemoveSingleChildren","groupHideOpenParents"),"autoHeight"!==this.gridOptionsService.get("domLayout")||this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.is("pagination")||(console.warn("AG Grid: domLayout='autoHeight' was ignored as it is only supported by the Client-Side row model, unless using pagination."),this.gridOptions.domLayout="normal"),this.gridOptionsService.isRowModelType("serverSide")){var t=function(e,t){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model."+(t?" Please use "+t+" instead.":"")};this.gridOptionsService.exists("groupDefaultExpanded")&&console.warn(t("groupDefaultExpanded","isServerSideGroupOpenByDefault callback")),this.gridOptionsService.exists("groupIncludeFooter")&&console.warn(t("groupIncludeFooter")),this.gridOptionsService.exists("groupIncludeTotalFooter")&&console.warn(t("groupIncludeTotalFooter"))}this.gridOptionsService.is("enableRangeSelection")?Z.assertRegistered(exports.ModuleNames.RangeSelectionModule,"enableRangeSelection"):(this.gridOptionsService.is("enableRangeHandle")||this.gridOptionsService.is("enableFillHandle"))&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var o=function(t,o){return e.gridOptionsService.exists(t)&&Z.assertRegistered(o,t)};o("sideBar",exports.ModuleNames.SideBarModule),o("statusBar",exports.ModuleNames.StatusBarModule),o("enableCharts",exports.ModuleNames.GridChartsModule),o("getMainMenuItems",exports.ModuleNames.MenuModule),o("getContextMenuItems",exports.ModuleNames.MenuModule),o("allowContextMenuWithControlKey",exports.ModuleNames.MenuModule),this.gridOptionsService.is("groupRowsSticky")&&(this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRowsSticky","groupHideOpenParents"),this.gridOptionsService.is("masterDetail")&&this.pickOneWarning("groupRowsSticky","masterDetail"),this.gridOptionsService.is("pagination")&&this.pickOneWarning("groupRowsSticky","pagination"))},e.prototype.checkColumnDefProperties=function(){var e=this;if(null!=this.gridOptions.columnDefs){var t=Je(Ge.ALL_PROPERTIES,Ge.FRAMEWORK_PROPERTIES),o=function(i,r){var n=Object.getOwnPropertyNames(i);e.checkProperties(n,t,t,r,"https://www.ag-grid.com/javascript-data-grid/column-properties/"),i.children&&i.children.forEach(function(e){return o(e,"columnDefs.children")})};this.gridOptions.columnDefs.forEach(function(e){return o(e,"columnDefs")}),this.gridOptions.defaultColDef&&o(this.gridOptions.defaultColDef,"defaultColDef")}},e.prototype.checkColumnDefViolations=function(){var e,t=null!==(e=this.gridOptionsService.get("rowModelType"))&&void 0!==e?e:"clientSide",o={infinite:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],viewport:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],serverSide:["headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],clientSide:[]}[t];if(null==o?void 0:o.length){var i=function(e){o.forEach(function(o){o in e&&e[o]&&console.warn("AG Grid: Column property "+o+" is not supported with the row model type "+t+".")})};null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach(function(e){return i(e)}),null!=this.gridOptions.autoGroupColumnDef&&i(this.gridOptions.autoGroupColumnDef),null!=this.gridOptions.defaultColDef&&i(this.gridOptions.defaultColDef)}},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=Je(Be.ALL_PROPERTIES,Be.FRAMEWORK_PROPERTIES,Ue.EVENT_CALLBACKS),o=Je(t,["api","columnApi"],Object.keys(this.deprecatedProperties));this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,o,i,r){var n=ze(e,t,o);c(n,function(e,t){b(function(){return console.warn("AG Grid: invalid "+i+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))},"invalidProperty"+i+e)}),Object.keys(n).length>0&&b(function(){return console.warn("AG Grid: to see all the valid "+i+" properties please check: "+r)},"invalidProperties"+i+r)},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;if(Object.entries(this.deprecatedProperties).forEach(function(t){var o,i=Xe(t,2),r=i[0],n=i[1],s=e[r];s&&(Ze(n.version,r,n.newProp,n.message),n.copyToNewProp&&n.newProp&&null==e[n.newProp]&&(e[n.newProp]=null!==(o=n.newPropValue)&&void 0!==o?o:s))}),e.groupSuppressAutoColumn){var t=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+t+" = 'custom'`"),e[t]="custom"}e.immutableData&&(e.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.")),e.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),e.suppressServerSideInfiniteScroll="partial"!==e.serverSideStoreType)},e.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data.")),this.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),this.gridOptionsService.exists("getServerSideGroupKey")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},Qe([W("gridOptions")],e.prototype,"gridOptions",void 0),Qe([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Qe([k],e.prototype,"init",null),e=Qe([j("gridOptionsValidator")],e)}();function et(e,t){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):t===e}
91
+ /**
92
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
93
+ * @version v29.3.5
94
+ * @link https://www.ag-grid.com/
95
+ * @license MIT
96
+ */
97
+ var tt=function(){function e(e,t,o,i){this.displayedChildren=[],this.localEventService=new J,this.groupId=t,this.partId=o,this.providedColumnGroup=e,this.pinned=i}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.partId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every(function(e){return e.isMoving()})},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(t){t instanceof e&&t.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsService.is("enableRtl")){var t=ae(this.displayedChildren).getLeft();this.setLeft(t)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getPartId=function(){return this.partId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach(function(i){t===i&&(o=!0),i instanceof e&&i.isChildInThisGroupDeepSearch(t)&&(o=!0)}),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach(function(t){e+=t.getActualWidth()}),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach(function(t){t.isResizable()&&(e=!0)}),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach(function(t){e+=t.getMinWidth()||0}),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(o){o instanceof ie?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)})},e.prototype.addLeafColumns=function(t){this.children.forEach(function(o){o instanceof ie?t.push(o):o instanceof e&&o.addLeafColumns(t)})},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return Ze("27","getOriginalColumnGroup","getProvidedColumnGroup"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var o=this;null!=o&&o.isPadding();)o=o.getParent();if(!(!!o&&o.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach(function(i){if(!(i instanceof e&&(!i.displayedChildren||!i.displayedChildren.length)))switch(i.getColumnGroupShow()){case"open":o.providedColumnGroup.isExpanded()&&t.displayedChildren.push(i);break;case"closed":o.providedColumnGroup.isExpanded()||t.displayedChildren.push(i);break;default:t.displayedChildren.push(i)}}),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),ot=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!=typeof o?0:o+1,this.existingIds[e]=t,t},e}(),it=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),rt=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},nt="ag-Grid-AutoColumn",st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return it(t,e),t.prototype.createAutoGroupColumns=function(e,t){var o=this,i=[],r=this.gridOptionsService.isTreeData(),n=this.gridOptionsService.isGroupMultiAutoColumn();return r&&n&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),n=!1),n?t.forEach(function(t,r){i.push(o.createOneAutoGroupColumn(e,t,r))}):i.push(this.createOneAutoGroupColumn(e)),i},t.prototype.createOneAutoGroupColumn=function(e,t,i){var r,n=this.generateDefaultColDef(t);(r=t?nt+"-"+t.getId():nt,m(n,this.gridOptionsService.get("autoGroupColumnDef")),(n=this.columnFactory.mergeColDefs(n)).colId=r,this.gridOptionsService.isTreeData())||o(n.field)&&o(n.valueGetter)&&o(n.filterValueGetter)&&"agGroupColumnFilter"!==n.filter&&(n.filter=!1);i&&i>0&&(n.headerCheckboxSelection=!1);var s=e.find(function(e){return e.getId()==r});if(s)return s.setColDef(n,null),this.columnFactory.applyColumnState(s,n),s;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&(n.sort||n.initialSort)&&!n.field&&m(n,{sort:null,initialSort:null},!0,!0);var a=new ie(n,null,r,!0);return this.context.createBean(a),a},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsService.get("autoGroupColumnDef"),o={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(o.cellRenderer="agGroupCellRenderer"),e){var i=e.getColDef();Object.assign(o,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:i.headerValueGetter}),(i.cellRenderer||i.cellRendererFramework)&&Object.assign(o,{cellRendererParams:{innerRenderer:i.cellRenderer,innerRendererFramework:i.cellRendererFramework,innerRendererParams:i.cellRendererParams}}),o.showRowGroup=e.getColId()}else o.showRowGroup=!0;return o},rt([W("columnModel")],t.prototype,"columnModel",void 0),rt([W("columnFactory")],t.prototype,"columnFactory",void 0),t=rt([j("autoGroupColService")],t)}(Fe),at=/[&<>"']/g,lt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ut(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function ct(e,t){if(null==e)return null;var o=e.toString().toString();return t?o:o.replace(at,function(e){return lt[e]})}function pt(e){if(!e||null==e)return null;return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map(function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")}).join(" ")}var dt=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function o(e,o){return t(e>>o&63|128)}function i(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(!(4294967168&e))return t(e);var i="";return 4294965248&e?4294901760&e?4292870144&e||(i=t(e>>18&7|240),i+=o(e,12),i+=o(e,6)):(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),i=t(e>>12&15|224),i+=o(e,6)):i=t(e>>6&31|192),i+=t(63&e|128)}for(var r=function(e){var t=[];if(!e)return[];for(var o,i,r=e.length,n=0;n<r;)(o=e.charCodeAt(n++))>=55296&&o<=56319&&n<r?56320==(64512&(i=e.charCodeAt(n++)))?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--):t.push(o);return t}(e),n=r.length,s=-1,a="";++s<n;)a+=i(r[s]);return a},capitalise:ut,escapeString:ct,camelCaseToHumanText:pt});
98
+ /**
99
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
100
+ * @version v29.3.5
101
+ * @link https://www.ag-grid.com/
102
+ * @license MIT
103
+ */function ht(e){var t=new Map;return e.forEach(function(e){return t.set(e[0],e[1])}),t}var ft=Object.freeze({__proto__:null,convertToMap:ht,mapById:function(e,t){var o=new Map;return e.forEach(function(e){return o.set(t(e),e)}),o},keys:function(e){var t=[];return e.forEach(function(e,o){return t.push(o)}),t}}),gt=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),vt=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},yt=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},mt=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Ct=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mt(arguments[t]));return e},wt=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsHash="",t.headerViewportColumns=[],t.viewportColumnsCenter=[],t.headerViewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t}var a,l;return gt(r,e),r.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.is("suppressColumnVirtualisation");var t=this.gridOptionsService.is("pivotMode");this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsService.isTreeData(),this.addManagedPropertyListener("groupDisplayType",function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedPropertyListener("defaultColDef",function(t){return e.onSharedColDefChanged(t.source)}),this.addManagedPropertyListener("columnTypes",function(t){return e.onSharedColDefChanged(t.source)})},r.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},r.prototype.onSharedColDefChanged=function(e){void 0===e&&(e="api"),this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0,e)},r.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(o,t)},r.prototype.destroyOldColumns=function(e,t){var o={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(e){o[e.getInstanceId()]=e}),t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,function(e){o[e.getInstanceId()]=null});var i=Object.values(o).filter(function(e){return null!=e});this.destroyBeans(i)}},r.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},r.prototype.createColumnsFromColumnDefs=function(e,t){var o=this;void 0===t&&(t="api");var i=e?this.compareColumnStatesAndDispatchEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,n=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,n);this.destroyOldColumns(this.primaryColumnTree,s.columnTree),this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(e){return o.primaryColumnsMap[e.getId()]=e}),this.extractRowGroupColumns(t,r),this.extractPivotColumns(t,r),this.extractValueColumns(t,r),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a)&&(this.updateGridColumns(),e&&!this.gridOptionsService.is("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),i&&i(),this.dispatchNewColumnsLoaded()},r.prototype.dispatchNewColumnsLoaded=function(){var e={type:He.EVENT_NEW_COLUMNS_LOADED};this.eventService.dispatchEvent(e)},r.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:He.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)},r.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&(this.gridColumns.sort(function(o,i){var r=t.indexOf(o),n=t.indexOf(i),s=r>=0,a=n>=0;return s&&a?r-n:s?1:a?-1:e.gridColumns.indexOf(o)-e.gridColumns.indexOf(i)}),this.gridColumns=this.placeLockedColumns(this.gridColumns))},r.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},r.prototype.setViewport=function(){this.gridOptionsService.is("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},r.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,o=[];null!=t;)o.push(t),t=this.getDisplayedColAfter(t);return o},r.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter&&this.extractViewport()){var e={type:He.EVENT_VIRTUAL_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)}},r.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},r.prototype.isPivotMode=function(){return this.pivotMode},r.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsService.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},r.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var o={type:He.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},r.prototype.getSecondaryPivotColumn=function(e,t){if(o(this.secondaryColumns))return null;var i=this.getPrimaryColumn(t),r=null;return this.secondaryColumns.forEach(function(t){var o=t.getColDef().pivotKeys,n=t.getColDef().pivotValueColumn;le(o,e)&&n===i&&(r=t)}),r},r.prototype.setBeans=function(e){this.logger=e.create("columnModel")},r.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsService.is("enableRtl")?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?ae(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?ae(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(i){i.setLastLeftPinned(i===t,e),i.setFirstRightPinned(i===o,e)})},r.prototype.autoSizeColumns=function(e){var t=this,o=e.columns,i=e.skipHeader,r=e.skipHeaderGroups,n=e.stopAtGroup,s=e.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=i?i:this.gridOptionsService.is("skipHeaderOnAutoSize"),p=null!=r?r:c;0!==u;)u=0,this.actionOnGridColumns(o,function(e){if(l.indexOf(e)>=0)return!1;var o=t.autoWidthCalculator.getPreferredWidthForColumn(e,c);if(o>0){var i=t.normaliseColumnWidth(e,o);e.setActualWidth(i,a),l.push(e),u++}return!0},a);p||this.autoSizeColumnGroupsByColumns(o,a,n),this.dispatchColumnResizedEvent(l,!0,"autosizeColumns")},r.prototype.dispatchColumnResizedEvent=function(e,t,o,i){if(void 0===i&&(i=null),e&&e.length){var r={type:He.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:i,finished:t,source:o};this.eventService.dispatchEvent(r)}},r.prototype.dispatchColumnChangedEvent=function(e,t,o){var i={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:o};this.eventService.dispatchEvent(i)},r.prototype.dispatchColumnMovedEvent=function(e){var t=e.movedColumns,o=e.source,i=e.toIndex,r=e.finished,n={type:He.EVENT_COLUMN_MOVED,columns:t,column:t&&1===t.length?t[0]:null,toIndex:i,finished:r,source:o};this.eventService.dispatchEvent(n)},r.prototype.dispatchColumnPinnedEvent=function(e,t){if(e.length){var o=1===e.length?e[0]:null,i=this.getCommonValue(e,function(e){return e.getPinned()}),r={type:He.EVENT_COLUMN_PINNED,pinned:null!=i?i:null,columns:e,column:o,source:t};this.eventService.dispatchEvent(r)}},r.prototype.dispatchColumnVisibleEvent=function(e,t){if(e.length){var o=1===e.length?e[0]:null,i=this.getCommonValue(e,function(e){return e.isVisible()}),r={type:He.EVENT_COLUMN_VISIBLE,visible:i,columns:e,column:o,source:t};this.eventService.dispatchEvent(r)}},r.prototype.autoSizeColumn=function(e,t,o){void 0===o&&(o="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:o})},r.prototype.autoSizeColumnGroupsByColumns=function(e,t,o){var i,r,n,s,a,l=new Set;this.getGridColumns(e).forEach(function(e){for(var t=e.getParent();t&&t!=o;)t.isPadding()||l.add(t),t=t.getParent()});try{for(var u=yt(l),c=u.next();!c.done;c=u.next()){var p=c.value;try{for(var d=(n=void 0,yt(this.ctrlsService.getHeaderRowContainerCtrls())),h=d.next();!h.done;h=d.next()){if(a=h.value.getHeaderCtrlForColumn(p))break}}catch(e){n={error:e}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(n)throw n.error}}a&&a.resizeLeafColumnsToFit(t)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return[]},r.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns({columns:o,skipHeader:e,source:t})},r.prototype.getColumnsFromTree=function(e){var t=[],o=function(e){for(var i=0;i<e.length;i++){var r=e[i];r instanceof ie?t.push(r):r instanceof re&&o(r.getChildren())}};return o(e),t},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(e){return this.getAllDisplayedColumns().indexOf(e)>=0},r.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},r.prototype.getViewportColumns=function(){return this.viewportColumns},r.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},r.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},r.prototype.isColSpanActive=function(){return this.colSpanActive},r.prototype.getDisplayedColumnsForRow=function(e,t,o,i){for(var r,n=[],s=null,a=function(a){var l,u=t[a],c=t.length-a,p=Math.min(u.getColSpan(e),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(o?(l=!1,d.forEach(function(e){o(e)&&(l=!0)})):l=!0,l){if(0===n.length&&s)!!i&&i(u)&&n.push(s);n.push(u)}s=u,r=a},l=0;l<t.length;l++)a(l),l=r;return n},r.prototype.getViewportCenterColumnsForRow=function(e){var o=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var i=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,i,function(e){var i=e.getLeft();return t(i)&&i>o.viewportLeft})},r.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},r.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},r.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,o=t+e.getActualWidth(),i=this.viewportLeft-200,r=this.viewportRight+200;return!(t<i&&o<i)&&!(t>r&&o>r)},r.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},r.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},r.prototype.updatePrimaryColumnList=function(e,t,o,r,n,s){var a=this;if(void 0===s&&(s="api"),e&&!i(e)){var l=!1;if(e.forEach(function(e){var i=a.getPrimaryColumn(e);if(i){if(o){if(t.indexOf(i)>=0)return;t.push(i)}else{if(t.indexOf(i)<0)return;ce(t,i)}r(i),l=!0}}),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s);var u={type:n,columns:t,column:1===t.length?t[0]:null,source:s};this.eventService.dispatchEvent(u)}}},r.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},r.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(t,!1,o),e||this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(t,!0,o))},r.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},r.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),He.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},r.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),He.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},r.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},r.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(e){return e.setPivotActive(!0,t)},He.EVENT_COLUMN_PIVOT_CHANGED,t)},r.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,He.EVENT_COLUMN_PIVOT_CHANGED,function(e,o){o.setPivotActive(e,t)},t)},r.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},r.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(e){return e.setPivotActive(!1,t)},He.EVENT_COLUMN_PIVOT_CHANGED,t)},r.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},r.prototype.setPrimaryColumnList=function(e,o,i,r,n){var s=this;o.length=0,t(e)&&e.forEach(function(e){var t=s.getPrimaryColumn(e);t&&o.push(t)}),(this.primaryColumns||[]).forEach(function(e){var t=o.indexOf(e)>=0;r(t,e)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(n),this.dispatchColumnChangedEvent(i,o,n)},r.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,He.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},r.prototype.setValueActive=function(e,t,o){if(e!==t.isValueActive()&&(t.setValueActive(e,o),e&&!t.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(i)}},r.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),He.EVENT_COLUMN_VALUE_CHANGED,t)},r.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},r.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},r.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),He.EVENT_COLUMN_VALUE_CHANGED,t)},r.prototype.normaliseColumnWidth=function(e,o){var i=e.getMinWidth();t(i)&&o<i&&(o=i);var r=e.getMaxWidth();return t(r)&&e.isGreaterThanMax(o)&&(o=r),o},r.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},r.prototype.setColumnWidths=function(e,t,o,i){var r=this;void 0===i&&(i="api");var n=[];e.forEach(function(e){var o=r.getPrimaryOrGridColumn(e.key);if(o&&(n.push({width:e.newWidth,ratios:[1],columns:[o]}),"shift"===r.gridOptionsService.get("colResizeDefault")&&(t=!t),t)){var i=r.getDisplayedColAfter(o);if(!i)return;var s=o.getActualWidth()-e.newWidth,a=i.getActualWidth()+s;n.push({width:a,ratios:[1],columns:[i]})}}),0!==n.length&&this.resizeColumnSets({resizeSets:n,finished:o,source:i})},r.prototype.checkMinAndMaxWidthsForSet=function(e){var o=e.columns,i=e.width,r=0,n=0,s=!0;return o.forEach(function(e){var o=e.getMinWidth();r+=o||0;var i=e.getMaxWidth();t(i)&&i>0?n+=i:s=!1}),i>=r&&(!s||i<=n)},r.prototype.resizeColumnSets=function(e){var o=this,i=e.resizeSets,r=e.finished,n=e.source;if(!i||i.every(function(e){return o.checkMinAndMaxWidthsForSet(e)})){var s=[],a=[];i.forEach(function(e){var o=e.width,i=e.columns,r=e.ratios,l={},u={};i.forEach(function(e){return a.push(e)});for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],n=0,s=o;i.forEach(function(t,o){if(u[t.getId()])s-=l[t.getId()];else{e.push(t);var i=r[o];n+=i}});var a=1/n;e.forEach(function(i,n){var p;n===e.length-1?p=s:(p=Math.round(r[n]*o*a),s-=p);var d=i.getMinWidth(),h=i.getMaxWidth();t(d)&&p<d?(p=d,u[i.getId()]=!0,c=!0):t(h)&&h>0&&p>h&&(p=h,u[i.getId()]=!0,c=!0),l[i.getId()]=p})};c;){if("break"===d())break}i.forEach(function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),s.push(e))})});var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(n),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||r)&&this.dispatchColumnResizedEvent(c,r,n,u)}else if(r){var p=i&&i.length>0?i[0].columns:null;this.dispatchColumnResizedEvent(p,r,n)}},r.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){var i=this.getPrimaryColumn(e);i&&(i.setAggFunc(t),this.dispatchColumnChangedEvent(He.EVENT_COLUMN_VALUE_CHANGED,[i],o))}},r.prototype.moveRowGroupColumn=function(e,t,o){void 0===o&&(o="api");var i=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,i);var r={type:He.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:o};this.eventService.dispatchEvent(r)},r.prototype.moveColumns=function(e,t,o,i){if(void 0===o&&(o="api"),void 0===i&&(i=!0),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var r=this.getGridColumns(e);!this.doesMovePassRules(r,t)||(he(this.gridColumns,r,t),this.updateDisplayedColumns(o),this.dispatchColumnMovedEvent({movedColumns:r,source:o,toIndex:t,finished:i}),this.columnAnimationService.finish())},r.prototype.doesMovePassRules=function(e,t){var o=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(o)},r.prototype.doesOrderPassRules=function(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)},r.prototype.getProposedColumnOrder=function(e,t){var o=this.gridColumns.slice();return he(o,e,t),o},r.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter(function(e){return t.gridColumns.indexOf(e)<0}).length>0||e.sort(function(e,o){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)}))},r.prototype.doesMovePassLockedPositions=function(e){var t=0,o=!0;return e.forEach(function(e){var i,r=(i=e.getColDef().lockPosition)?!0===i||"left"===i?0:2:1;r<t&&(o=!1),t=r}),o},r.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){if(o instanceof re){var i=o,r=i.getColGroupDef();if(r&&r.marryChildren){var n=[];i.getLeafColumns().forEach(function(t){var o=e.indexOf(t);n.push(o)}),Math.max.apply(Math,n)-Math.min.apply(Math,n)>i.getLeafColumns().length-1&&(t=!1)}}}),t},r.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},r.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var i=this.gridColumns[e];this.moveColumn(i,t,o)},r.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort(function(t,o){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(o)}):this.lastPrimaryOrder&&t.sort(function(t,o){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(o)}),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},r.prototype.getBodyContainerWidth=function(){return this.bodyWidth},r.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},r.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var i={type:He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(i)}},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(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"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 i(this.gridColumns)},r.prototype.isRowGroupEmpty=function(){return i(this.rowGroupColumns)},r.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},r.prototype.setColumnsVisible=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o="api"),this.applyColumnState({state:e.map(function(e){return{colId:"string"==typeof e?e:e.getColId(),hide:!t}})},o)},r.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},r.prototype.setColumnsPinned=function(e,t,o){var i;(void 0===o&&(o="api"),this.gridOptionsService.isDomLayout("print"))?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),i=!0===t||"left"===t?"left":"right"===t?"right":null,this.actionOnGridColumns(e,function(e){return e.getPinned()!==i&&(e.setPinned(i),!0)},o,function(){return{type:He.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,source:o}}),this.columnAnimationService.finish())},r.prototype.actionOnGridColumns=function(e,o,r,n){var s=this;if(!i(e)){var a=[];if(e.forEach(function(e){var t=s.getGridColumn(e);t&&(!1!==o(t)&&a.push(t))}),a.length&&(this.updateDisplayedColumns(r),t(n)&&n)){var l=n();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},r.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},r.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},r.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},r.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},r.prototype.getDisplayedGroupAtDirection=function(e,t){for(var o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),i=e.getDisplayedLeafColumns(),r="After"===t?ae(i):i[0],n="getDisplayedCol"+t;;){var s=this[n](r);if(!s)return null;var a=this.getColumnGroupAtLevel(s,o);if(a!==e)return a}},r.prototype.getColumnGroupAtLevel=function(e,t){for(var o=e.getParent();;){if(o.getProvidedColumnGroup().getLevel()+o.getPaddingLevel()<=t)break;o=o.getParent()}return o},r.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},r.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},r.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,Ct([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},r.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,r=null!=e.getSort()?e.getSort():null,n=null!=e.getSortIndex()?e.getSortIndex():null,s=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:r,sortIndex:n,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:o,flex:s}},r.prototype.getColumnState=function(){if(o(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},r.prototype.orderColumnStateList=function(e){var t=ht(this.gridColumns.map(function(e,t){return[e.getColId(),t]}));e.sort(function(e,o){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(o.colId)?t.get(o.colId):-1)})},r.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),i=[],r=1e3,n=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach(function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},s=e.getColDef(),a=t(s.sort,s.initialSort),l=t(s.sortIndex,s.initialSortIndex),u=t(s.hide,s.initialHide),c=t(s.pinned,s.initialPinned),p=t(s.width,s.initialWidth),d=t(s.flex,s.initialFlex),h=t(s.rowGroupIndex,s.initialRowGroupIndex),f=t(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(s.pivotIndex,s.initialPivotIndex),v=t(s.pivot,s.initialPivot);null!=g||null!=v&&0!=v||(g=null,v=null);var y=t(s.aggFunc,s.initialAggFunc),m={colId:e.getColId(),sort:a,sortIndex:l,hide:u,pinned:c,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:v,pivotIndex:g,aggFunc:y};o(h)&&f&&(m.rowGroupIndex=r++),o(g)&&v&&(m.pivotIndex=n++),i.push(m)}),this.applyColumnState({state:i,applyOrder:!0},e)},r.prototype.applyColumnState=function(e,o){var r=this;if(i(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var n=function(t,i,n){var s=r.compareColumnStatesAndDispatchEvents(o);r.autoGroupsNeedBuilding=!0;var a=i.slice(),l={},u={},c=[],p=[],d=0,h=r.rowGroupColumns.slice(),f=r.pivotColumns.slice();t.forEach(function(t){var i=t.colId||"";if(i.startsWith(nt))return c.push(t),void p.push(t);var s=n(i);s?(r.syncColumnWithStateItem(s,t,e.defaultState,l,u,!1,o),ce(a,s)):(p.push(t),d+=1)});var g=function(t){return r.syncColumnWithStateItem(t,null,e.defaultState,l,u,!1,o)};a.forEach(g);var v=function(e,t,o,i){var r=e[o.getId()],n=e[i.getId()],s=null!=r,a=null!=n;if(s&&a)return r-n;if(s)return-1;if(a)return 1;var l=t.indexOf(o),u=t.indexOf(i),c=l>=0;return c&&u>=0?l-u:c?-1:1};r.rowGroupColumns.sort(v.bind(r,l,h)),r.pivotColumns.sort(v.bind(r,u,f)),r.updateGridColumns();var y=r.groupAutoColumns?r.groupAutoColumns.slice():[];return c.forEach(function(t){var i=r.getAutoColumn(t.colId);ce(y,i),r.syncColumnWithStateItem(i,t,e.defaultState,null,null,!0,o)}),y.forEach(g),r.applyOrderAfterApplyState(e),r.updateDisplayedColumns(o),r.dispatchEverythingChanged(o),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var s=n(e.state||[],this.primaryColumns||[],function(e){return r.getPrimaryColumn(e)}),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||t(e.defaultState))&&(l=n(a,this.secondaryColumns||[],function(e){return r.getSecondaryColumn(e)}).unmatchedCount),this.columnAnimationService.finish(),0===l},r.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var o=[],i={};e.state.forEach(function(e){if(e.colId&&!i[e.colId]){var r=t.gridColumnsMap[e.colId];r&&(o.push(r),i[e.colId]=!0)}});var r=0;this.gridColumns.forEach(function(e){var t=e.getColId();null!=i[t]||(t.startsWith(nt)?de(o,e,r++):o.push(e))}),o=this.placeLockedColumns(o),this.doesMovePassMarryChildren(o)?this.gridColumns=o:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},r.prototype.compareColumnStatesAndDispatchEvents=function(e){var t=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},i=this.getColumnState(),r={};return i.forEach(function(e){r[e.colId]=e}),function(){var n=t.getPrimaryAndSecondaryAndAutoColumns(),s=function(o,i,r,n){if(!le(i.map(n),r.map(n))){var s={type:o,columns:r,column:1===r.length?r[0]:null,source:e};t.eventService.dispatchEvent(s)}},a=function(e){var t=[];return n.forEach(function(o){var i=r[o.getColId()];i&&e(i,o)&&t.push(o)}),t},l=function(e){return e.getColId()};s(He.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,t.rowGroupColumns,l),s(He.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,t.pivotColumns,l);a(function(e,t){var o=null!=e.aggFunc,i=o!=t.isValueActive(),r=o&&e.aggFunc!=t.getAggFunc();return i||r}).length>0&&t.dispatchColumnChangedEvent(He.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.dispatchColumnResizedEvent(a(function(e,t){return e.width!=t.getActualWidth()}),!0,e);t.dispatchColumnPinnedEvent(a(function(e,t){return e.pinned!=t.getPinned()}),e);t.dispatchColumnVisibleEvent(a(function(e,t){return e.hide==t.isVisible()}),e);a(function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()}).length>0&&t.sortController.dispatchSortChangedEvents(e),t.normaliseColumnMovedEventForColumnState(i,e)}},r.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var o=t(e[0]),i=1;i<e.length;i++)if(o!==t(e[i]))return;return o}},r.prototype.normaliseColumnMovedEventForColumnState=function(e,t){var o=this,i=this.getColumnState(),r={};i.forEach(function(e){return r[e.colId]=e});var n={};e.forEach(function(e){r[e.colId]&&(n[e.colId]=!0)});var s=e.filter(function(e){return n[e.colId]}),a=i.filter(function(e){return n[e.colId]}),l=[];a.forEach(function(e,t){var i=s&&s[t];if(i&&i.colId!==e.colId){var r=o.getGridColumn(i.colId);r&&l.push(r)}}),l.length&&this.dispatchColumnMovedEvent({movedColumns:l,source:t,finished:!0})},r.prototype.syncColumnWithStateItem=function(e,o,i,r,n,s,a){if(e){var l=function(e,r){var n={value1:void 0,value2:void 0},s=!1;return o&&(void 0!==o[e]&&(n.value1=o[e],s=!0),t(r)&&void 0!==o[r]&&(n.value2=o[r],s=!0)),!s&&i&&(void 0!==i[e]&&(n.value1=i[e]),t(r)&&void 0!==i[r]&&(n.value2=i[r])),n},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&e.setPinned(c);var p=this.columnUtils.calculateColMinWidth(e.getColDef()),d=l("flex").value1;if(void 0!==d&&e.setFlex(d),e.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&("desc"===f||"asc"===f?e.setSort(f,a):e.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!s&&e.isPrimary()){var v=l("aggFunc").value1;void 0!==v&&("string"==typeof v?(e.setAggFunc(v),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(t(v)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,a),ce(this.valueColumns,e))));var y=l("rowGroup","rowGroupIndex"),m=y.value1,C=y.value2;void 0===m&&void 0===C||("number"==typeof C||m?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),r&&"number"==typeof C&&(r[e.getId()]=C)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),ce(this.rowGroupColumns,e)));var w=l("pivot","pivotIndex"),S=w.value1,E=w.value2;void 0===S&&void 0===E||("number"==typeof E||S?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),n&&"number"==typeof E&&(n[e.getId()]=E)):e.isPivotActive()&&(e.setPivotActive(!1,a),ce(this.pivotColumns,e)))}}},r.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},r.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach(function(e){var i=t(e);i&&o.push(i)}),o},r.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},r.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},r.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},r.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},r.prototype.getColumn=function(e,t,o){if(!e)return null;if("string"==typeof e&&o[e])return o[e];for(var i=0;i<t.length;i++)if(this.columnsMatch(t[i],e))return t[i];return this.getAutoColumn(e)},r.prototype.getSourceColumnsForGroupColumn=function(e){var t=e.getColDef().showRowGroup;if(!t)return null;if(!0===t)return this.rowGroupColumns.slice(0);var o=this.getPrimaryColumn(t);return o?[o]:null},r.prototype.getAutoColumn=function(e){var i=this;return this.groupAutoColumns&&t(this.groupAutoColumns)&&!o(this.groupAutoColumns)&&this.groupAutoColumns.find(function(t){return i.columnsMatch(t,e)})||null},r.prototype.columnsMatch=function(e,t){var o=e===t,i=e.getColDef()===t,r=e.getColId()==t;return o||i||r},r.prototype.getDisplayNameForColumn=function(e,t,o){if(void 0===o&&(o=!1),!e)return null;var i=this.getHeaderName(e.getColDef(),e,null,null,t);return o?this.wrapHeaderNameWithAggFunc(e,i):i},r.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,o){var i=t?t.getColGroupDef():null;return i?this.getHeaderName(i,null,e,t,o):null},r.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},r.prototype.getHeaderName=function(e,t,o,i,r){var n=e.headerValueGetter;if(n){var s={colDef:e,column:t,columnGroup:o,providedColumnGroup:i,location:r,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return"function"==typeof n?n(s):"string"==typeof n?this.expressionService.evaluate(n,s):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?pt(e.field):""},r.prototype.wrapHeaderNameWithAggFunc=function(e,o){if(this.gridOptionsService.is("suppressAggFuncInHeader"))return o;var i,r=e.getColDef().pivotValueColumn,n=null;if(t(r)){var s=this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn")&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(s&&!a)return o;n=r?r.getAggFunc():null,i=!0}else{var l=e.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(n=e.getAggFunc(),i=!0):i=!1}if(i){var c="string"==typeof n?n:"func";return this.localeService.getLocaleTextFunc()(c,c)+"("+o+")"}return o},r.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof tt)return e;var o=this.getAllDisplayedTrees(),i="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,function(o){if(o instanceof tt){var n=o;(i?e===n.getGroupId()&&t===n.getPartId():e===n.getGroupId())&&(r=n)}}),r},r.prototype.isReady=function(){return this.ready},r.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,function(t,o){return t.setValueActive(o,e)},function(){},function(){},function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0},function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc}),this.valueColumns.forEach(function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)})},r.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,function(t,o){return t.setRowGroupActive(o,e)},function(e){return e.rowGroupIndex},function(e){return e.initialRowGroupIndex},function(e){return e.rowGroup},function(e){return e.initialRowGroup})},r.prototype.extractColumns=function(e,t,o,i,r,a,l){void 0===e&&(e=[]),void 0===t&&(t=[]);var u=[],c=[];(this.primaryColumns||[]).forEach(function(o){var p=e.indexOf(o)<0,d=o.getColDef(),h=s(a(d)),f=s(l(d)),g=n(i(d)),v=n(r(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==v)&&(null!=v&&v>=0):t.indexOf(o)>=0)&&((p?null!=g||null!=v:null!=g)?u.push(o):c.push(o))});var p=function(e){var t=i(e.getColDef()),o=r(e.getColDef());return null!=t?t:o};u.sort(function(e,t){var o=p(e),i=p(t);return o===i?0:o<i?-1:1});var d=[].concat(u);return t.forEach(function(e){c.indexOf(e)>=0&&d.push(e)}),c.forEach(function(e){d.indexOf(e)<0&&d.push(e)}),t.forEach(function(e){d.indexOf(e)<0&&o(e,!1)}),d.forEach(function(e){t.indexOf(e)<0&&o(e,!0)}),d},r.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,function(t,o){return t.setPivotActive(o,e)},function(e){return e.pivotIndex},function(e){return e.initialPivotIndex},function(e){return e.pivot},function(e){return e.initialPivot})},r.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(e){if(e instanceof re){var o=e.getColGroupDef(),i={groupId:e.getGroupId(),open:o?o.openByDefault:void 0};t.push(i)}}),this.setColumnGroupState(t,e)},r.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(t){t instanceof re&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})}),e},r.prototype.setColumnGroupState=function(e,t){var o=this;void 0===t&&(t="api"),this.columnAnimationService.start();var i=[];e.forEach(function(e){var t=e.groupId,r=e.open,n=o.getProvidedColumnGroup(t);n&&n.isExpanded()!==r&&(o.logger.log("columnGroupOpened("+n.getGroupId()+","+r+")"),n.setExpanded(r),i.push(n))}),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),i.forEach(function(e){var t={type:He.EVENT_COLUMN_GROUP_OPENED,columnGroup:e};o.eventService.dispatchEvent(t)}),this.columnAnimationService.finish()},r.prototype.setColumnGroupOpened=function(e,t,o){var i;void 0===o&&(o="api"),i=e instanceof re?e.getId():e||"",this.setColumnGroupState([{groupId:i,open:t}],o)},r.prototype.getProvidedColumnGroup=function(e){"string"!=typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){o instanceof re&&o.getId()===e&&(t=o)}),t},r.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&o(this.secondaryColumns)?this.gridColumns.filter(function(t){var o=e.groupAutoColumns&&fe(e.groupAutoColumns,t),i=e.valueColumns&&fe(e.valueColumns,t);return o||i}):this.gridColumns.filter(function(t){return e.groupAutoColumns&&fe(e.groupAutoColumns,t)||t.isVisible()})},r.prototype.checkColSpanActiveInCols=function(e){var o=!1;return e.forEach(function(e){t(e.getColDef().colSpan)&&(o=!0)}),o},r.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var o=function(o){var i=o.getColDef(),r=i.showRowGroup;i&&t(r)&&(e.groupDisplayColumns.push(o),"string"==typeof r?e.groupDisplayColumnsMap[r]=o:!0===r&&e.getRowGroupColumns().forEach(function(t){e.groupDisplayColumnsMap[t.getId()]=o}))};this.gridColumns.forEach(o),this.groupAutoColumns&&this.groupAutoColumns.forEach(o)},r.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},r.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},r.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},r.prototype.isSecondaryColumnsPresent=function(){return t(this.secondaryColumns)},r.prototype.setSecondaryColumns=function(e,t){var i=this;void 0===t&&(t="api");var r=e&&e.length>0;if(r||!o(this.secondaryColumns)){if(r){this.processSecondaryColumnDefinitions(e);var n=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,n.columnTree),this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(e){return i.secondaryColumnsMap[e.getId()]=e}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},r.prototype.processSecondaryColumnDefinitions=function(e){var o=this.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),i=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(o||i){var r=function(e){e.forEach(function(e){if(t(e.children)){var n=e;i&&i(n),r(n.children)}else{o&&o(e)}})};e&&r(e)}},r.prototype.updateGridColumns=function(){var e,t=this,o=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var i=this.secondaryColumns.every(function(e){return void 0!==t.gridColumnsMap[e.getColId()]});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,i&&(e=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,e=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&e){var r=ht(this.groupAutoColumns.map(function(e){return[e,!0]}));e=e.filter(function(e){return!r.has(e)}),e=Ct(this.groupAutoColumns,e)}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(e),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(e){return t.gridColumnsMap[e.getId()]=e}),this.setAutoHeightActive(),!le(o,this.gridBalancedTree)){var n={type:He.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(n)}},r.prototype.setAutoHeightActive=function(){if((this.autoHeightActive=this.gridColumns.filter(function(e){return e.isAutoHeight()}).length>0,this.autoHeightActive)&&(this.autoHeightActiveAtLeastOnce=!0,!(this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide")))){b(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(e){if(!o(e)){var t=ht(e.map(function(e,t){return[e,t]})),i=!0;if(this.gridColumns.forEach(function(e){t.has(e)&&(i=!1)}),!i){var r=ht(this.gridColumns.map(function(e){return[e,!0]})),n=e.filter(function(e){return r.has(e)}),s=ht(n.map(function(e){return[e,!0]})),a=this.gridColumns.filter(function(e){return!s.has(e)}),l=n.slice();a.forEach(function(e){var t=e.getOriginalParent();if(t){for(var o=[];!o.length&&t;){t.getLeafColumns().forEach(function(e){var t=l.indexOf(e)>=0,i=o.indexOf(e)<0;t&&i&&o.push(e)}),t=t.getOriginalParent()}if(o.length){var i=o.map(function(e){return l.indexOf(e)}),r=Math.max.apply(Math,Ct(i));de(l,e,r+1)}else l.push(e)}else l.push(e)}),this.gridColumns=l}}},r.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},r.prototype.refreshQuickFilterColumns=function(){var e,t;this.groupAutoColumns?t=(null!==(e=this.primaryColumns)&&void 0!==e?e:[]).concat(this.groupAutoColumns):this.primaryColumns&&(t=this.primaryColumns),t=null!=t?t:[],this.columnsForQuickFilter=this.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter")?t.filter(function(e){return e.isVisible()||e.isRowGroupActive()}):t},r.prototype.placeLockedColumns=function(e){var t=[],o=[],i=[];return e.forEach(function(e){var r=e.getColDef().lockPosition;"right"===r?i.push(e):"left"===r||!0===r?t.push(e):o.push(e)}),Ct(t,o,i)},r.prototype.addAutoGroupToGridColumns=function(){if(o(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},r.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},r.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:He.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)},r.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(e){return e.isAutoHeight()})},r.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},r.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},r.prototype.joinDisplayedColumns=function(){this.gridOptionsService.is("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},r.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},r.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),i=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(r){if(i){var n=t.getWidthOfColsInList(r);r.forEach(function(t){n-=t.getActualWidth(),t.setLeft(n,e)})}else{var s=0;r.forEach(function(t){t.setLeft(s,e),s+=t.getActualWidth()})}pe(o,r)}),o.forEach(function(t){t.setLeft(null,e)})}},r.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(e){e instanceof tt&&e.checkLeft()})})},r.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(e){e instanceof ie&&t.push(e)})},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(e,t){var i;switch(e){case"left":i=this.viewportRowLeft[t];break;case"right":i=this.viewportRowRight[t];break;default:i=this.viewportRowCenter[t]}return o(i)&&(i=[]),i},r.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(t){return e[t.getId()]=!0});var t=function(o,i,r){for(var n=!1,s=0;s<o.length;s++){var a=o[s],l=!1;if(a instanceof ie)l=!0===e[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=t(u,i,r+1))}l&&(n=!0,i[r]||(i[r]=[]),i[r].push(a))}return n};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},r.prototype.extractViewport=function(){this.extractViewportColumns();var e=this.viewportColumns.map(function(e){return e.getId()+"-"+(e.getPinned()||"normal")}).join("#"),t=this.viewportColumnsHash!==e;return t&&(this.viewportColumnsHash=e,this.calculateHeaderRows()),t},r.prototype.refreshFlexedColumns=function(e){var o=this;void 0===e&&(e={});var i=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var r=-1;e.resizingCols&&e.resizingCols.forEach(function(e){var t=o.displayedColumnsCenter.indexOf(e);r<t&&(r=t)});var n=function(e){var t=o.displayedColumnsCenter.indexOf(e)>r;return e.getFlex()&&t},s=this.displayedColumnsCenter.filter(function(e){return!n(e)}),a=this.displayedColumnsCenter.filter(function(e){return n(e)}),l=[];if(!a.length)return[];var u,c=[];e:for(;;){var p=a.reduce(function(e,t){return e+t.getFlex()},0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,v=h.getMinWidth(),y=h.getMaxWidth();if(t(v)&&f<v?g=v:t(y)&&f>y&&(g=y),g){h.setActualWidth(g,i),ce(a,h),l.push(h),s.push(h);continue e}c[d]=Math.round(f)}break}var m=u;return a.forEach(function(e,t){e.setActualWidth(Math.min(c[t],m),i),l.push(e),m-=c[t]}),e.skipSetLeft||this.setLeftValues(i),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(l,!0,i,a),a},r.prototype.sizeColumnsToFit=function(e,o,i,r){var n,s,a,l,u;void 0===o&&(o="sizeColumnsToFit");var c={};r&&(null===(n=null==r?void 0:r.columnLimits)||void 0===n||n.forEach(function(e){var t=e.key,o=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o}(e,["key"]);c["string"==typeof t?t:t.getColId()]=o}));var p=this.getAllDisplayedColumns(),d=e===this.getWidthOfColsInList(p);if(!(e<=0||!p.length||d)){var h=[],f=[];p.forEach(function(e){!0===e.getColDef().suppressSizeToFit?f.push(e):h.push(e)});var g=h.slice(0),v=!1,y=function(e){ce(h,e),f.push(e)};for(h.forEach(function(e){return e.resetActualWidth(o)});!v;){v=!0;var m=e-this.getWidthOfColsInList(f);if(m<=0)h.forEach(function(e){var t,i,n=null!==(i=null===(t=null==c?void 0:c[e.getId()])||void 0===t?void 0:t.minWidth)&&void 0!==i?i:null==r?void 0:r.defaultMinWidth;"number"!=typeof n?e.setMinimum(o):e.setActualWidth(n)});else for(var C=m/this.getWidthOfColsInList(h),w=m,S=h.length-1;S>=0;S--){var E=h[S],R=null==c?void 0:c[E.getId()],b=null!==(s=null==R?void 0:R.minWidth)&&void 0!==s?s:null==r?void 0:r.defaultMinWidth,O=null!==(a=null==R?void 0:R.maxWidth)&&void 0!==a?a:null==r?void 0:r.defaultMaxWidth,T=null!==(l=E.getMinWidth())&&void 0!==l?l:0,D=null!==(u=E.getMaxWidth())&&void 0!==u?u:Number.MAX_VALUE,P="number"==typeof b&&b>T?b:E.getMinWidth(),_="number"==typeof O&&O<D?O:E.getMaxWidth(),A=Math.round(E.getActualWidth()*C);t(P)&&A<P?(A=P,y(E),v=!1):t(_)&&A>_?(A=_,y(E),v=!1):0===S&&(A=w),E.setActualWidth(A,o,!0),w-=A}}g.forEach(function(e){e.fireColumnWidthChangedEvent(o)}),this.setLeftValues(o),this.updateBodyWidths(),i||this.dispatchColumnResizedEvent(g,!0,o)}},r.prototype.buildDisplayedTrees=function(e){var t=[],o=[],i=[];e.forEach(function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":o.push(e);break;default:i.push(e)}});var r=new ot;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},r.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},r.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},r.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(e){e instanceof tt&&e.calculateDisplayedColumns()})},r.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},r.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e){var o=this.groupAutoColumns||[],i=this.autoGroupColService.createAutoGroupColumns(o,this.rowGroupColumns);if(!this.autoColsEqual(i,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=i,!0}else this.groupAutoColumns=null;return!1},r.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType");if(!!e&&et("custom",e))return!0;var t,o,i,r=this.gridOptionsService.get("treeDataDisplayType");return!!r&&(t="custom",(i=["auto","custom"]).indexOf(o=r)<0?(console.warn("AG Grid: '"+o+"' is not a valid treeDataDisplayType value - possible values are: '"+i.join("', '")+"'"),!1):o===t)},r.prototype.autoColsEqual=function(e,t){return le(e,t,function(e,t){return e.getColId()===t.getColId()})},r.prototype.getWidthOfColsInList=function(e){return e.reduce(function(e,t){return e+t.getActualWidth()},0)},r.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},r.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some(function(e){return e.getColDef().floatingFilter})},r.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.is("enableRtl"),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var o=0;o<t.length;o++){var i=this[t[o]]();if(i.length)return e?ae(i):i[0]}return null},r.prototype.setColumnHeaderHeight=function(e,t){if(e.setAutoHeaderHeight(t)){var o={type:He.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(o)}},r.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},r.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),t=this.getAllDisplayedColumns().filter(function(e){return e.isAutoHeaderHeight()}).map(function(e){return e.getAutoHeaderHeight()||0});return Math.max.apply(Math,Ct([e],t))},r.prototype.getHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("headerHeight"))&&void 0!==e?e:this.environment.getFromTheme(25,"headerHeight")},r.prototype.getFloatingFiltersHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("floatingFiltersHeight"))&&void 0!==e?e:this.getHeaderHeight()},r.prototype.getGroupHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("groupHeaderHeight"))&&void 0!==e?e:this.getHeaderHeight()},r.prototype.getPivotHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("pivotHeaderHeight"))&&void 0!==e?e:this.getHeaderHeight()},r.prototype.getPivotGroupHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("pivotGroupHeaderHeight"))&&void 0!==e?e:this.getGroupHeaderHeight()},vt([W("expressionService")],r.prototype,"expressionService",void 0),vt([W("columnFactory")],r.prototype,"columnFactory",void 0),vt([W("displayedGroupCreator")],r.prototype,"displayedGroupCreator",void 0),vt([W("ctrlsService")],r.prototype,"ctrlsService",void 0),vt([W("autoWidthCalculator")],r.prototype,"autoWidthCalculator",void 0),vt([W("columnUtils")],r.prototype,"columnUtils",void 0),vt([W("columnAnimationService")],r.prototype,"columnAnimationService",void 0),vt([W("autoGroupColService")],r.prototype,"autoGroupColService",void 0),vt([U("aggFuncService")],r.prototype,"aggFuncService",void 0),vt([U("valueCache")],r.prototype,"valueCache",void 0),vt([U("animationFrameService")],r.prototype,"animationFrameService",void 0),vt([W("sortController")],r.prototype,"sortController",void 0),vt([W("columnDefFactory")],r.prototype,"columnDefFactory",void 0),vt([k],r.prototype,"init",null),vt([B],r.prototype,"destroyColumns",null),vt([(a=0,l=K("loggerFactory"),function(e,t){l(e,t,a)})],r.prototype,"setBeans",null),r=vt([j("columnModel")],r)}(Fe),St=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return St(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.environment.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,o=this.calculateColMinWidth(e),i=this.calculateColMaxWidth(e),r=n(e.width),s=n(e.initialWidth);return t=null!=r?r:null!=s?s:200,Math.max(Math.min(t,i),o)},t.prototype.getOriginalPathForColumn=function(e,t){var o=[],i=!1,r=function(t,n){for(var s=0;s<t.length;s++){if(i)return;var a=t[s];if(a instanceof re)r(a.getChildren(),n+1),o[n]=a;else a===e&&(i=!0)}};return r(t,0),i?o:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var i=this;t&&t.forEach(function(t){t instanceof re&&i.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)})},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach(function(e){e instanceof tt&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)})},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach(function(e){e instanceof tt&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)})},t=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("columnUtils")],t),t}(Fe),Rt=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),bt=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Rt(o,e),o.prototype.createDisplayedGroups=function(e,t,o,i,r){var n,s,a=this,l=[],u=this.mapOldGroupsById(r);return e.forEach(function(e){for(var r=a.getOriginalPathForColumn(t,e),c=[],p=!s,d=0;d<r.length;d++)if(p||r[d]!==s[d]){var h=a.createColumnGroup(r[d],o,u,i);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=n[d];0===c.length?l.push(e):ae(c).addChild(e);n=c,s=r}),this.setupParentsIntoColumns(l,null),l},o.prototype.createColumnGroup=function(e,o,i,r){var n=e.getGroupId(),s=o.getInstanceIdForKey(n),a=i[tt.createUniqueId(n,s)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),t(a)?a.reset():(a=new tt(e,n,s,r),this.context.createBean(a)),a},o.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach(function(e){if(e instanceof tt){var i=e;t[e.getUniqueId()]=i,o(i.getChildren())}})};return e&&o(e),t},o.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach(function(e){if(e.setParent(t),e instanceof tt){var i=e;o.setupParentsIntoColumns(i.getChildren(),i)}})},o.prototype.getOriginalPathForColumn=function(e,t){var o=[],i=!1,r=function(e,n){for(var s=0;s<e.length;s++){if(i)return;var a=e[s];a instanceof re?(r(a.getChildren(),n+1),o[n]=a):a===t&&(i=!0)}};return r(e,0),i?o:(console.warn("AG Grid: could not get path"),null)},o=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("displayedGroupCreator")],o),o}(Fe),Ot=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Tt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Ot(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach(function(e){return t.addComponent(e)})},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("agStackComponentsRegistry")],t),t}(Fe);
104
+ /**
105
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
106
+ * @version v29.3.5
107
+ * @link https://www.ag-grid.com/
108
+ * @license MIT
109
+ */
110
+ /**
111
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
112
+ * @version v29.3.5
113
+ * @link https://www.ag-grid.com/
114
+ * @license MIT
115
+ */
116
+ function Dt(e,t,o){null==o||""==o?_t(e,t):Pt(e,t,o)}function Pt(e,t,o){e.setAttribute(At(t),o.toString())}function _t(e,t){e.removeAttribute(At(t))}function At(e){return"aria-"+e}function Nt(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Mt(e){return"asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none"}function Ft(e){return parseInt(e.getAttribute("aria-level"),10)}function Lt(e){return parseInt(e.getAttribute("aria-posinset"),10)}function xt(e,t){Dt(e,"label",t)}function It(e,t){Dt(e,"labelledby",t)}function Gt(e,t){Dt(e,"description",t)}function Ht(e,t){Dt(e,"describedby",t)}function Vt(e,t){Dt(e,"level",t)}function kt(e,t){Dt(e,"disabled",t)}function Bt(e,t){Dt(e,"hidden",t)}function jt(e,t){Pt(e,"expanded",t)}function Wt(e){_t(e,"expanded")}function Ut(e,t){Pt(e,"setsize",t)}function zt(e,t){Pt(e,"posinset",t)}function Kt(e,t){Pt(e,"multiselectable",t)}function Yt(e,t){Pt(e,"rowcount",t)}function qt(e,t){Pt(e,"rowindex",t)}function Qt(e,t){Pt(e,"colcount",t)}function Xt(e,t){Pt(e,"colindex",t)}function Jt(e,t){Pt(e,"colspan",t)}function Zt(e,t){Pt(e,"sort",t)}function $t(e){_t(e,"sort")}function eo(e,t){Dt(e,"selected",t)}function to(e,t){Pt(e,"checked",void 0===t?"mixed":t)}var oo,io,ro,no,so,ao,lo,uo,co=Object.freeze({__proto__:null,setAriaRole:Nt,getAriaSortState:Mt,getAriaLevel:Ft,getAriaPosInSet:Lt,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:xt,setAriaLabelledBy:It,setAriaDescription:Gt,setAriaDescribedBy:Ht,setAriaLive:function(e,t){Dt(e,"live",t)},setAriaLevel:Vt,setAriaDisabled:kt,setAriaHidden:Bt,setAriaExpanded:jt,removeAriaExpanded:Wt,setAriaSetSize:Ut,setAriaPosInSet:zt,setAriaMultiSelectable:Kt,setAriaRowCount:Yt,setAriaRowIndex:qt,setAriaColCount:Qt,setAriaColIndex:Xt,setAriaColSpan:Jt,setAriaSort:Zt,removeAriaSort:$t,setAriaSelected:eo,setAriaChecked:to});
117
+ /**
118
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
119
+ * @version v29.3.5
120
+ * @link https://www.ag-grid.com/
121
+ * @license MIT
122
+ */function po(){return void 0===oo&&(oo=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),oo}function ho(){if(void 0===io)if(po()){var e=navigator.userAgent.match(/version\/(\d+)/i);e&&(io=null!=e[1]?parseFloat(e[1]):0)}else io=0;return io}function fo(){if(void 0===ro){var e=window;ro=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return ro}function go(){return void 0===no&&(no=/(firefox)/i.test(navigator.userAgent)),no}function vo(){return void 0===so&&(so=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),so}function yo(){return void 0===ao&&(ao=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),ao}function mo(){return!po()||ho()>=15}function Co(e){if(!e)return null;var t=e.tabIndex,o=e.getAttribute("tabIndex");return-1!==t||null!==o&&(""!==o||go())?t.toString():null}function wo(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){var i=2*e;if(o.style.height=i+"px",i>t||o.clientHeight!==i)break;e=i}return document.body.removeChild(o),e}function So(){var e,t,o;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientWidth)||-1}function Eo(){var e,t,o;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientHeight)||-1}function Ro(){return null==uo&&bo(),uo}function bo(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var o=t.offsetWidth-t.clientWidth;0===o&&0===t.clientWidth&&(o=null),t.parentNode&&t.parentNode.removeChild(t),null!=o&&(uo=o,lo=0===o)}function Oo(){return null==lo&&bo(),lo}var To=Object.freeze({__proto__:null,isBrowserSafari:po,getSafariVersion:ho,isBrowserChrome:fo,isBrowserFirefox:go,isMacOsUserAgent:vo,isIOSUserAgent:yo,browserSupportsPreventScroll:mo,getTabIndex:Co,getMaxDivHeight:wo,getBodyWidth:So,getBodyHeight:Eo,getScrollbarWidth:Ro,isInvisibleScrollbar:Oo});
123
+ /**
124
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
125
+ * @version v29.3.5
126
+ * @link https://www.ag-grid.com/
127
+ * @license MIT
128
+ */function Do(e,t){return e.toString().padStart(t,"0")}function Po(e,t){for(var o=[],i=e;i<=t;i++)o.push(i);return o}function _o(e,t,o){return"number"!=typeof e?"":e.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var Ao=Object.freeze({__proto__:null,padStartWidthZeros:Do,createArrayOfNumbers:Po,cleanNumber:function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},decToHex:function(e,t){for(var o="",i=0;i<t;i++)o+=String.fromCharCode(255&e),e>>>=8;return o},formatNumberTwoDecimalPlacesAndCommas:function(e,t,o){return"number"!=typeof e?"":_o(Math.round(100*e)/100,t,o)},formatNumberCommas:_o,sum:function(e){return null==e?null:e.reduce(function(e,t){return e+t},0)},zeroOrGreater:function(e,t){return e>=0?e:t},oneOrGreater:function(e,t){var o=parseInt(e,10);return!isNaN(o)&&isFinite(o)&&o>0?o:t}}),No=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s};
129
+ /**
130
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
131
+ * @version v29.3.5
132
+ * @link https://www.ag-grid.com/
133
+ * @license MIT
134
+ */function Mo(e,t,o){if(void 0===t&&(t=!0),void 0===o&&(o="-"),!e)return null;var i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(function(e){return Do(e,2)}).join(o);return t&&(i+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(function(e){return Do(e,2)}).join(":")),i}var Fo=function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Lo(e,t){void 0===t&&(t="YYYY-MM-DD");var o=Do(e.getFullYear(),4),i=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n={YYYY:function(){return o.slice(o.length-4,o.length)},YY:function(){return o.slice(o.length-2,o.length)},Y:function(){return""+e.getFullYear()},MMMM:function(){return i[e.getMonth()]},MMM:function(){return i[e.getMonth()].slice(0,3)},MM:function(){return Do(e.getMonth()+1,2)},Mo:function(){return""+(e.getMonth()+1)+Fo(e.getMonth()+1)},M:function(){return""+(e.getMonth()+1)},Do:function(){return""+e.getDate()+Fo(e.getDate())},DD:function(){return Do(e.getDate(),2)},D:function(){return""+e.getDate()},dddd:function(){return r[e.getDay()]},ddd:function(){return r[e.getDay()].slice(0,3)},dd:function(){return r[e.getDay()].slice(0,2)},do:function(){return""+e.getDay()+Fo(e.getDay())},d:function(){return""+e.getDay()}},s=new RegExp(Object.keys(n).join("|"),"g");return t.replace(s,function(e){return e in n?n[e]():e})}function xo(e){if(!e)return null;var t=No(e.split(" "),2),o=t[0],i=t[1];if(!o)return null;var r=o.split("-").map(function(e){return parseInt(e,10)});if(3!==r.filter(function(e){return!isNaN(e)}).length)return null;var n=No(r,3),s=n[0],a=n[1],l=n[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!i||"00:00:00"===i)return u;var c=No(i.split(":").map(function(e){return parseInt(e,10)}),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var Io,Go=Object.freeze({__proto__:null,serialiseDate:Mo,dateToFormattedString:Lo,parseDateTimeFromString:xo}),Ho=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s};
135
+ /**
136
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
137
+ * @version v29.3.5
138
+ * @link https://www.ag-grid.com/
139
+ * @license MIT
140
+ */var Vo="[tabindex], input, select, button, textarea, [href]",ko=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *";function Bo(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),i=t.call(e,ko),r=oi(e);return o&&!i&&r}function jo(e,t,o){void 0===o&&(o={});var i=o.skipAriaHidden;e.classList.toggle("ag-hidden",!t),i||Bt(e,!t)}function Wo(e,t,o){void 0===o&&(o={});var i=o.skipAriaHidden;e.classList.toggle("ag-invisible",!t),i||Bt(e,!t)}function Uo(e,t){var o="disabled",i=t?function(e){return e.setAttribute(o,"")}:function(e){return e.removeAttribute(o)};i(e),wi(e.querySelectorAll("input"),function(e){return i(e)})}function zo(e,t,o){for(var i=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof o){if(++i>o)break}else if(e===o)break}return!1}function Ko(e){var t=window.getComputedStyle(e),o=t.height,i=t.width,r=t.borderTopWidth,n=t.borderRightWidth,s=t.borderBottomWidth,a=t.borderLeftWidth,l=t.paddingTop,u=t.paddingRight,c=t.paddingBottom,p=t.paddingLeft,d=t.marginTop,h=t.marginRight,f=t.marginBottom,g=t.marginLeft,v=t.boxSizing;return{height:parseFloat(o),width:parseFloat(i),borderTopWidth:parseFloat(r),borderRightWidth:parseFloat(n),borderBottomWidth:parseFloat(s),borderLeftWidth:parseFloat(a),paddingTop:parseFloat(l),paddingRight:parseFloat(u),paddingBottom:parseFloat(c),paddingLeft:parseFloat(p),marginTop:parseFloat(d),marginRight:parseFloat(h),marginBottom:parseFloat(f),marginLeft:parseFloat(g),boxSizing:v}}function Yo(e){var t=Ko(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function qo(e){var t=Ko(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function Qo(e){var t=Ko(e),o=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+o)}function Xo(e){var t=Ko(e),o=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+o)}function Jo(){if("boolean"==typeof Io)return Io;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='<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(e),e.scrollLeft=1,Io=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Io}function Zo(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),fo()&&!Jo()&&(o=e.scrollWidth-e.clientWidth-o)),o}function $o(e,t,o){o&&(Jo()?t*=-1:(po()||fo())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function ei(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function ti(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function oi(e){return null!==e.offsetParent}function ii(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function ri(e){return e&&e.clientHeight?e.clientHeight:0}function ni(e){return e&&e.clientWidth?e.clientWidth:0}function si(e,t,o){if(!o||o.nextSibling!==t){var i=document.activeElement,r=t.contains(i);o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t),r&&i&&mo()&&i.focus({preventScroll:!0})}}function ai(e,t){for(var o=0;o<t.length;o++){var i=t[o],r=e.children[o];r!==i&&e.insertBefore(i,r)}}function li(e,t,o){o?o.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function ui(e,t){var o,i;if(t)try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(t)),n=r.next();!n.done;n=r.next()){var s=Ho(n.value,2),a=s[0],l=s[1];if(a&&a.length&&null!=l){var u=a.replace(/[A-Z]/g,function(e){return"-"+e.toLocaleLowerCase()}),c=l.toString(),p=c.replace(/\s*!important/g,"").length!=c.length?"important":void 0;e.style.setProperty(u,l,p)}}}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}}function ci(e){return e.clientWidth<e.scrollWidth}function pi(e){return e.clientHeight<e.scrollHeight}function di(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):hi(e,t)}function hi(e,t){t=gi(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function fi(e,t){t=gi(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function gi(e){return"number"==typeof e?e+"px":e}function vi(e){return e instanceof Node||e instanceof HTMLElement}function yi(e){if(null==e)return[];var t=[];return wi(e,function(e){return t.push(e)}),t}function mi(e,t){if(e)for(var o=0;o<e.length;o++){var i=e[o];t(i.name,i.value)}}function Ci(e,t,o){null==o?e.removeAttribute(t):e.setAttribute(t,o.toString())}function wi(e,t){if(null!=e)for(var o=0;o<e.length;o++)t(e[o])}var Si=Object.freeze({__proto__:null,radioCssClass:function(e,t,o){for(var i=e.parentElement,r=i&&i.firstChild;r;)t&&r.classList.toggle(t,r===e),o&&r.classList.toggle(o,r!==e),r=r.nextSibling},FOCUSABLE_SELECTOR:Vo,FOCUSABLE_EXCLUDE:ko,isFocusableFormField:Bo,setDisplayed:jo,setVisible:Wo,setDisabled:Uo,isElementChildOfClass:zo,getElementSize:Ko,getInnerHeight:Yo,getInnerWidth:qo,getAbsoluteHeight:Qo,getAbsoluteWidth:Xo,isRtlNegativeScroll:Jo,getScrollLeft:Zo,setScrollLeft:$o,clearElement:ei,removeElement:function(e,t){ti(e.querySelector(t))},removeFromParent:ti,isVisible:oi,loadTemplate:ii,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:ri,offsetWidth:ni,ensureDomOrder:si,setDomChildOrder:ai,insertWithDomOrder:li,prependDC:function(e,o){t(e.firstChild)?e.insertBefore(o,e.firstChild):e.appendChild(o)},addStylesToElement:ui,isHorizontalScrollShowing:ci,isVerticalScrollShowing:pi,setElementWidth:di,setFixedWidth:hi,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):fi(e,t)},setFixedHeight:fi,formatSize:gi,isNodeOrElement:vi,copyNodeList:yi,iterateNamedNodeMap:mi,addOrRemoveAttribute:Ci,nodeListForEach:wi}),Ei={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};
141
+ /**
142
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
143
+ * @version v29.3.5
144
+ * @link https://www.ag-grid.com/
145
+ * @license MIT
146
+ */function Ri(e,t,o){var i=bi(e,t,o);if(i){var r=i.className;if("string"==typeof r&&r.indexOf("ag-icon")>-1||"object"==typeof r&&r["ag-icon"])return i}var n=document.createElement("span");return n.appendChild(i),n}function bi(e,t,o,i){var r=null,n=o&&o.getColDef().icons;if(n&&(r=n[e]),t&&!r){var s=t.get("icons");s&&(r=s[e])}if(!r){var a=document.createElement("span"),l=Ei[e];return l||(i?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),Nt(a,"presentation"),a}var u=void 0;if("function"==typeof r)u=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");u=r}return"string"==typeof u?ii(u):vi(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Oi=Object.freeze({__proto__:null,iconNameClassMap:Ei,createIcon:Ri,createIconNoSpan:bi}),Ti=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.D="KeyD",e.V="KeyV",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ",e}();
147
+ /**
148
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
149
+ * @version v29.3.5
150
+ * @link https://www.ag-grid.com/
151
+ * @license MIT
152
+ */function Di(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key.length}function Pi(e,t,o,i,r){var n=i?i.getColDef().suppressKeyboardEvent:void 0;if(!n)return!1;var s={event:t,editing:r,column:i,api:e.api,node:o,data:o.data,colDef:i.getColDef(),context:e.context,columnApi:e.columnApi};if(n&&n(s))return!0;return!1}function _i(e,o,i,r){var n=r.getDefinition(),s=n&&n.suppressHeaderKeyboardEvent;return!!t(s)&&!!s({api:e.api,columnApi:e.columnApi,context:e.context,colDef:n,column:r,headerRowIndex:i,event:o})}function Ai(e){var t;switch(e.keyCode){case 65:t=Ti.A;break;case 67:t=Ti.C;break;case 86:t=Ti.V;break;case 68:t=Ti.D;break;case 90:t=Ti.Z;break;case 89:t=Ti.Y;break;default:t=e.code}return t}function Ni(e,t){return void 0===t&&(t=!1),e===Ti.DELETE||!t&&e===Ti.BACKSPACE&&vo()}var Mi=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Di,isUserSuppressingKeyboardEvent:Pi,isUserSuppressingHeaderKeyboardEvent:_i,normaliseQwertyAzerty:Ai,isDeleteKey:Ni});
153
+ /**
154
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
155
+ * @version v29.3.5
156
+ * @link https://www.ag-grid.com/
157
+ * @license MIT
158
+ */function Fi(e,t,o){if(0===o)return!1;var i=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(i,r)<=o}var Li=Object.freeze({__proto__:null,areEventsNear:Fi});
159
+ /**
160
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
161
+ * @version v29.3.5
162
+ * @link https://www.ag-grid.com/
163
+ * @license MIT
164
+ */var xi=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(!e)return!1;for(var o=function(e,o){var i=t[e.id],r=t[o.id],n=void 0!==i,s=void 0!==r;return n&&s?i-r:!n&&!s?e.__objectId-o.__objectId:n?1:-1},i=!1,r=0;r<e.length-1;r++)if(o(e[r],e[r+1])>0){i=!0;break}return!!i&&(e.sort(o),!0)},traverseNodesWithKey:function(e,t){var o=[];!function e(i){if(!i)return;i.forEach(function(i){if(i.group||i.hasChildren()){o.push(i.key);var r=o.join("|");t(i,r),e(i.childrenAfterGroup),o.pop()}})}(e)}});
165
+ /**
166
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
167
+ * @version v29.3.5
168
+ * @link https://www.ag-grid.com/
169
+ * @license MIT
170
+ */function Ii(e){var t=new Set;return e.forEach(function(e){return t.add(e)}),t}var Gi,Hi=Object.freeze({__proto__:null,convertToSet:Ii}),Vi=function(){return Vi=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Vi.apply(this,arguments)},ki=Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi(Vi({},co),ye),To),Go),Si),Ne),I),qe),l),Oi),Mi),ft),Li),Ao),E),xi),Hi),dt),Bi=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();
171
+ /**
172
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
173
+ * @version v29.3.5
174
+ * @link https://www.ag-grid.com/
175
+ * @license MIT
176
+ */
177
+ /**
178
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
179
+ * @version v29.3.5
180
+ * @link https://www.ag-grid.com/
181
+ * @license MIT
182
+ */
183
+ exports.AgPromiseStatus=void 0,(Gi=exports.AgPromiseStatus||(exports.AgPromiseStatus={}))[Gi.IN_PROGRESS=0]="IN_PROGRESS",Gi[Gi.RESOLVED=1]="RESOLVED";var ji,Wi=function(){function e(e){var t=this;this.status=exports.AgPromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],e(function(e){return t.onDone(e)},function(e){return t.onReject(e)})}return e.all=function(t){return new e(function(e){var o=t.length,i=new Array(o);t.forEach(function(t,r){t.then(function(t){i[r]=t,0===--o&&e(i)})})})},e.resolve=function(t){return void 0===t&&(t=null),new e(function(e){return e(t)})},e.prototype.then=function(t){var o=this;return new e(function(e){o.status===exports.AgPromiseStatus.RESOLVED?e(t(o.resolution)):o.waiters.push(function(o){return e(t(o))})})},e.prototype.resolveNow=function(e,t){return this.status===exports.AgPromiseStatus.RESOLVED?t(this.resolution):e},e.prototype.onDone=function(e){this.status=exports.AgPromiseStatus.RESOLVED,this.resolution=e,this.waiters.forEach(function(t){return t(e)})},e.prototype.onReject=function(e){console.warn("TBI")},e}(),Ui=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),zi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ki=function(){return Ki=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ki.apply(this,arguments)},Yi=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
184
+ /**
185
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
186
+ * @version v29.3.5
187
+ * @link https://www.ag-grid.com/
188
+ * @license MIT
189
+ */!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(ji||(ji={}));var qi=function(e){function o(t){var o=e.call(this)||this;return o.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,o.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=ji.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=t,o}return zi(o,e),o.prototype.postConstruct=function(){this.tooltipShowDelay=this.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},o.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},o.prototype.onMouseEnter=function(e){if(!yo()&&this.state==ji.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=ji.WAITING_TO_SHOW}},o.prototype.onMouseLeave=function(){this.setToDoNothing()},o.prototype.onKeyDown=function(){this.setToDoNothing()},o.prototype.setToDoNothing=function(){this.state===ji.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=ji.NOTHING},o.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===ji.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},o.prototype.onMouseDown=function(){this.setToDoNothing()},o.prototype.getTooltipDelay=function(e){var o=this.gridOptionsService.getNum("tooltipShowDelay"),i=this.gridOptionsService.getNum("tooltipHideDelay"),r="show"===e?o:i,n=ut(e);return t(r)?(r<0&&b(function(){return console.warn("AG Grid: tooltip"+n+"Delay should not be lower than 0")},"tooltip"+n+"DelayWarn"),Math.max(200,r)):null},o.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),o.lastTooltipHideTime=(new Date).getTime()),this.state=ji.NOTHING},o.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,o=this.tooltipComp;window.setTimeout(function(){t(),e.getContext().destroyBean(o)},this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},o.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-o.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},o.prototype.showTooltip=function(){var e=Ki({},this.parentComp.getTooltipParams());if(t(e.value)){this.state=ji.SHOWING,this.tooltipInstanceCount++;var o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(o)}else this.setToDoNothing()},o.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==ji.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var o=t.getGui();this.tooltipComp=t,o.classList.contains("ag-tooltip")||o.classList.add("ag-tooltip-custom");var i=this.localeService.getLocaleTextFunc(),r=this.popupService.addPopup({eChild:o,ariaLabel:i("ariaLabelTooltip","Tooltip")});r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},o.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},o.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Yi([W("popupService")],o.prototype,"popupService",void 0),Yi([W("userComponentFactory")],o.prototype,"userComponentFactory",void 0),Yi([k],o.prototype,"postConstruct",null),o}(Fe),Qi=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,o=(e||"").split(" ");if(o.length>1)o.forEach(function(e){return t.addCssClass(e)});else if(!0!==this.cssClassStates[e]&&e.length){var i=this.getGui();i&&i.classList.add(e),this.cssClassStates[e]=!0}},e.prototype.removeCssClass=function(e){var t=this,o=(e||"").split(" ");if(o.length>1)o.forEach(function(e){return t.removeCssClass(e)});else if(!1!==this.cssClassStates[e]&&e.length){var i=this.getGui();i&&i.classList.remove(e),this.cssClassStates[e]=!1}},e.prototype.containsCssClass=function(e){var t=this.getGui();return!!t&&t.classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var o=this;if(e){if(e.indexOf(" ")>=0){var i=(e||"").split(" ");if(i.length>1)return void i.forEach(function(e){return o.addOrRemoveCssClass(e,t)})}if(this.cssClassStates[e]!==t&&e.length){var r=this.getGui();r&&r.classList.toggle(e,t),this.cssClassStates[e]=t}}},e}(),Xi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ji=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Zi=new Bi,$i=function(e){function t(t){var o=e.call(this)||this;return o.displayed=!0,o.visible=!0,o.compId=Zi.next(),o.cssClassManager=new Qi(function(){return o.eGui}),t&&o.setTemplate(t),o}return Xi(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new qi(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var o=this;yi(e.childNodes).forEach(function(i){if(i instanceof HTMLElement){var r=o.createComponentFromElement(i,function(e){e.getGui()&&o.copyAttributesFromNode(i,e.getGui())},t);if(r){if(r.addItems&&i.children.length){o.createChildComponentsFromTags(i,t);var n=Array.prototype.slice.call(i.children);r.addItems(n)}o.swapComponentForNode(r,e,i)}else i.childNodes&&o.createChildComponentsFromTags(i,t)}})},t.prototype.createComponentFromElement=function(e,o,i){var r=e.nodeName,n=i?i[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(r);if(s){t.elementGettingCreated=e;var a=new s(n);return a.setParentComponent(this),this.createBean(a,null,o),a}return null},t.prototype.copyAttributesFromNode=function(e,t){mi(e.attributes,function(e,o){return t.setAttribute(e,o)})},t.prototype.swapComponentForNode=function(e,t,o){var i=e.getGui();t.replaceChild(i,o),t.insertBefore(document.createComment(o.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var o=this;this.iterateOverQuerySelectors(function(i){o[i.attributeName]===t&&(o[i.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var o=t.__agComponentMetaData,i=O(t.constructor);o&&o[i]&&o[i].querySelectors&&o[i].querySelectors.forEach(function(t){return e(t)}),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var o=ii(e);this.setTemplateFromElement(o,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors(function(o){var i=function(e){return t[o.attributeName]=e};if(o.refSelector&&e.eGui.getAttribute("ref")===o.refSelector)i(e.eGui);else{var r=e.eGui.querySelector(o.querySelector);r&&i(r.__agComponent||r)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(null!=e)if(t||(t=this.eGui),vi(e))t.appendChild(e);else{var o=e;t.appendChild(o.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,t){if(void 0===t&&(t={}),e!==this.visible){this.visible=e;var o=t.skipAriaHidden;Wo(this.eGui,e,{skipAriaHidden:o})}},t.prototype.setDisplayed=function(e,o){if(void 0===o&&(o={}),e!==this.displayed){this.displayed=e;var i=o.skipAriaHidden;jo(this.eGui,e,{skipAriaHidden:i});var r={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(r)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var t=this.eGui;t&&t.__agComponent&&(t.__agComponent=void 0),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t,o){var i=this;this.eGui.addEventListener(e,t,o),this.addDestroyFunc(function(){return i.eGui.removeEventListener(e,t)})},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Ji([W("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Ji([V],t.prototype,"preConstructOnComponent",null),Ji([V],t.prototype,"createChildComponentsPreConstruct",null),t}(Fe);
190
+ /**
191
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
192
+ * @version v29.3.5
193
+ * @link https://www.ag-grid.com/
194
+ * @license MIT
195
+ */function er(e){return tr.bind(this,"[ref="+e+"]",e)}function tr(e,t,o,i,r){null!==e?"number"!=typeof r?function(e,t,o){var i=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}
196
+ /**
197
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
198
+ * @version v29.3.5
199
+ * @link https://www.ag-grid.com/
200
+ * @license MIT
201
+ */(e,O(e.constructor));i[t]||(i[t]=[]);i[t].push(o)}(o,"querySelectors",{attributeName:i,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var or=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ir=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},rr=function(e){function t(){return e.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 or(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+o("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance(function(o){if(o.getModelAsString){var i=o.getModelAsString(e);t.eFloatingFilterText.setValue(i)}}):this.eFloatingFilterText.setValue("")},ir([er("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),ir([W("columnModel")],t.prototype,"columnModel",void 0),t}($i),nr=function(){function e(e,t,o,i){var r=this;this.alive=!0,this.context=e,this.eParent=i,t.getDateCompDetails(o).newAgStackInstance().then(function(t){r.alive?(r.dateComp=t,t&&(i.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),r.tempValue&&t.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):e.destroyBean(t)})}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){jo(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),sr=function(){return sr=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},sr.apply(this,arguments)},ar=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some(function(e){return"string"!=typeof e&&null!=e.test})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some(function(e){return"string"!=typeof e&&null!=e.hideFilterInput})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach(function(t){if("string"!=typeof t){if([["displayKey"],["displayName"],["predicate","test"]].every(function(e){return!!e.some(function(e){return null!=t[e]})||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)})){var o=t.test,i=sr({},t);null!=o&&null==t.predicate&&(i.predicate=function(e,t){return o(e[0],t)},delete i.test),i.hideFilterInput&&null==i.numberOfInputs&&(i.numberOfInputs=0,delete i.hideFilterInput),e.customFilterOptions[t.displayKey]=i}else e.filterOptions=e.filterOptions.filter(function(e){return e===t})||[]}})},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),lr={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"},ur=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),cr=function(){return cr=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},cr.apply(this,arguments)},pr=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},dr=function(e){function t(t,o){void 0===o&&(o={});var i=e.call(this)||this;return i.eFocusableElement=t,i.callbacks=o,i.callbacks=cr({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=i.focusService.findNextFocusableElement(i.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},o),i}return ur(t,e),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.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)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",function(e){e.defaultPrevented||Ee(e)||(t.callbacks.shouldStopEventPropagation(e)?Se(e):e.key===Ti.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",pr([W("focusService")],t.prototype,"focusService",void 0),pr([k],t.prototype,"postConstruct",null),t}(Fe),hr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),fr=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},gr="ag-resizer-wrapper",vr='<div class="'+gr+'">\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>',yr=function(e){function t(t,o){var i=e.call(this)||this;return i.element=t,i.dragStartPosition={x:0,y:0},i.position={x:0,y:0},i.lastSize={width:-1,height:-1},i.positioned=!1,i.resizersAdded=!1,i.resizeListeners=[],i.boundaryEl=null,i.isResizing=!1,i.isMoving=!1,i.resizable={},i.movable=!1,i.currentResizer=null,i.config=Object.assign({},{popup:!1},o),i}return hr(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,o=e.clientWidth/2-this.getWidth()/2,i=t/2-this.getHeight()/2;this.offsetElement(o,i)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,t=e.centered,o=e.forcePopupParentAsOffsetParent,i=e.minWidth,r=e.width,n=e.minHeight,s=e.height,a=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=n||u,this.minWidth=i||c,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),t)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&o&&this.boundaryEl){var v=parseFloat(this.boundaryEl.style.top),y=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(y)?0:y,isNaN(v)?0:v)}this.positioned=!!this.offsetParent}},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var o=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(o){var i=!!e[o],r=t.getResizerElement(o),n={dragStartPixels:0,eElement:r,onDragStart:function(e){return t.onResizeStart(e,o)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,o)}};(i||!t.isAlive()&&!i)&&(i?(t.dragService.addDragSource(n),t.resizeListeners.push(n),r.style.pointerEvents="all"):r.style.pointerEvents="none",t.resizable[o]=i)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,t=e.height,o=e.width;-1!==o&&(this.element.style.width=o+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,o=this.element,i=!1;if("string"==typeof e&&-1!==e.indexOf("%"))fi(o,e),e=Qo(o),i=!0;else if(this.positioned){e=Math.max(this.minHeight,e);var r=this.getAvailableHeight();r&&e>r&&(e=r)}this.getHeight()!==e&&(i?(o.style.maxHeight="unset",o.style.minHeight="unset"):t?fi(o,e):(o.style.height=e+"px",o.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,t=e.popup,o=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var i=this.offsetParent.clientHeight;if(!i)return null;var r=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),s=t?this.position.y:r.top,a=t?0:n.top,l=0;if(o){var u=this.element.parentElement;if(u)l=u.getBoundingClientRect().bottom-r.bottom}return i+a-s-l},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,o=this.config.popup,i=!1;if("string"==typeof e&&-1!==e.indexOf("%"))hi(t,e),e=Xo(t),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var r=this.offsetParent.clientWidth,n=o?this.position.x:this.element.getBoundingClientRect().left;r&&e+n>r&&(e=r-n)}this.getWidth()!==e&&(i?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?hi(t,e):(t.style.width=e+"px",t.style.flex=" unset",this.lastSize.width="number"==typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:t}}}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top))},t.prototype.constrainSizeToAvailableHeight=function(e){var t=this;if(this.config.forcePopupParentAsOffsetParent){e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),function(){var e=t.getAvailableHeight();t.element.style.setProperty("max-height",e+"px")}):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,o=e.isLeft,i=e.isTop,r=e.anywhereWithin,n=e.topBuffer,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!o,!!r,s)?0:s,movementY:this.shouldSkipY(t,!!i,n,a)?0:a}},t.prototype.shouldSkipX=function(e,t,o,i){var r=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:r.left,l=a<=0&&n.left>=e.clientX||n.right<=e.clientX&&n.right<=s.right;return!!l||(l=t?i<0&&e.clientX>a+n.left||i>0&&e.clientX<a+n.left:o?i<0&&e.clientX>s.right||i>0&&e.clientX<a+n.left:i<0&&e.clientX>s.right||i>0&&e.clientX<s.right)},t.prototype.shouldSkipY=function(e,t,o,i){void 0===o&&(o=0);var r=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:r.top,l=a<=0&&n.top>=e.clientY||n.bottom<=e.clientY&&n.bottom<=s.bottom;return!!l||(l=t?i<0&&e.clientY>a+n.top+o||i>0&&e.clientY<a+n.top:i<0&&e.clientY>s.bottom||i>0&&e.clientY<s.bottom)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=(new DOMParser).parseFromString(vr,"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector("."+gr);e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var o=this.config,i=o.popup,r=o.forcePopupParentAsOffsetParent;i||r||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter(function(e){return!e.classList.contains("ag-hidden")}):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,o=0,i=0;i<e.length;i++){var r=e[i],n=!!r.style.flex&&"0 0 auto"!==r.style.flex;if(r!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(n){var l=window.getComputedStyle(r);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=r.offsetHeight,a=r.offsetWidth;t+=s,o+=a}}return{height:t,width:o}},t.prototype.applySizeToSiblings=function(e){var t=null,o=this.getSiblings();if(o){for(var i=0;i<o.length;i++){var r=o[i];r!==t&&(e?r.style.height=r.offsetHeight+"px":r.style.width=r.offsetWidth+"px",r.style.flex="0 0 auto",r===this.element&&(t=o[i+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.isResizable=function(){return Object.values(this.resizable).some(function(e){return e})},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,o=t.popup,i=t.forcePopupParentAsOffsetParent,r=this.currentResizer,n=r.isTop,s=r.isRight,a=r.isBottom,l=r.isLeft,u=s||l,c=a||n,p=this.calculateMouseMovement({e:e,isLeft:l,isTop:n}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,v=0,y=0;if(u&&d){var m=l?-1:1,C=this.getWidth(),w=C+d*m,S=!1;l&&(f+(v=C-w)<=0||w<=this.minWidth)&&(S=!0,v=0),S||this.setWidth(w)}if(c&&h){m=n?-1:1;var E=this.getHeight(),R=E+h*m,b=!1;n?(g+(y=E-R)<=0||R<=this.minHeight)&&(b=!0,y=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&E<R&&this.getMinSizeOfSiblings().height+R>this.element.parentElement.offsetHeight&&(b=!0),b||this.setHeight(R)}this.updateDragStartPosition(e.clientX,e.clientY),((o||i)&&v||y)&&this.offsetElement(f+v,g+y)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(o)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t,o=this.position,i=o.x,r=o.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var n=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),s=n.movementX,a=n.movementY;this.offsetElement(i+s,r+a),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},fr([W("popupService")],t.prototype,"popupService",void 0),fr([W("resizeObserverService")],t.prototype,"resizeObserverService",void 0),fr([W("dragService")],t.prototype,"dragService",void 0),t}(Fe),mr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Cr=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},wr=function(e){function t(t){var o=e.call(this)||this;return o.filterNameKey=t,o.applyActive=!1,o.hidePopup=null,o.debouncePending=!1,o.appliedModel=null,o}return mr(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new dr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new yr(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);var o='\n <form class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper" ref="eFilterBody">\n '+this.createBodyTemplate()+"\n </div>\n </form>";this.setTemplate(o,e),(t=this.getGui())&&t.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel");Ii(t).forEach(function(t){return function(t){var i,r;switch(t){case"apply":i=e.translate("applyFilter"),r=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":i=e.translate("clearFilter"),r=function(){return e.onBtClear()};break;case"reset":i=e.translate("resetFilter"),r=function(){return e.onBtReset()};break;case"cancel":i=e.translate("cancelFilter"),r=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var n=ii('<button\n type="'+("apply"===t?"submit":"button")+'"\n ref="'+t+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+i+"\n </button>");o.appendChild(n),e.addManagedListener(n,"click",r)}(t)}),this.getGui().appendChild(o)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,o=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),i=M(this.checkApplyDebounce.bind(this),o);this.onBtApplyDebounce=function(){e.debouncePending=!0,i()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then(function(){t.updateUiVisibility(),t.applyModel("api")})},t.prototype.onBtCancel=function(e){var t=this;this.resetUiToActiveModel(this.getModel(),function(){t.handleCancelEnd(e)})},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,t){var o=this,i=function(){o.onUiChanged(!1,"prevent"),null==t||t()};null!=e?this.setModelIntoUi(e).then(i):this.resetUiToDefaults().then(i)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var o=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(o,t)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,t,o){void 0===e&&(e=!1),void 0===t&&(t=!1),o&&o.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(o)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,o=e,i=o&&o.key;"Enter"!==i&&"Space"!==i||(t={keyboardEvent:o}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi());Uo(this.getRefElement("applyFilterButton"),!o)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(null==e?void 0:e.container)},t.prototype.refreshFilterResizer=function(e){if(this.positionableFeature&&"toolPanel"!==e){var t="floatingFilter"===e,o=this.positionableFeature,i=this.gridOptionsService;t?(o.restoreLastSize(),o.setResizable(i.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,o){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:o},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.localeService.getLocaleTextFunc()(e,lr[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,o=t.api,i=t.colDef,r=t.column,n=t.columnApi,s=t.context;return this.providedFilterParams.valueGetter({api:o,colDef:i,column:r,columnApi:n,context:s,data:e.data,getValue:function(t){return e.data[t]},node:e})},t.prototype.getPositionableElement=function(){return this.eFilterBody},Cr([W("rowModel")],t.prototype,"rowModel",void 0),Cr([er("eFilterBody")],t.prototype,"eFilterBody",void 0),Cr([k],t.prototype,"postConstruct",null),t}($i),Sr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Er=function(e){function t(t,o){var i=e.call(this,o)||this;return i.labelSeparator="",i.labelAlignment="left",i.disabled=!1,i.label="",i.config=t||{},i}return Sr(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,o=e.label,i=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=o&&this.setLabel(o),null!=i&&this.setLabelWidth(i),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){ei(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(jo(this.eLabel,!1),Nt(this.eLabel,"presentation")):(jo(this.eLabel,!0),Nt(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},t.prototype.setLabelWidth=function(e){return null==this.label||di(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return Uo(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"postConstruct",null),t}($i),Rr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),br=function(e){function t(t,o,i){var r=e.call(this,t,o)||this;return r.className=i,r}return Rr(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var o=this;return this.addManagedListener(this,t.EVENT_CHANGED,function(){return e(o.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return hi(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,o){return this.value===e||(this.previousValue=this.value,this.value=e,o||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.EVENT_CHANGED="valueChange",t}(Er),Or=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Tr=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Dr=function(e){function o(t,o,i,r){var n=e.call(this,t,'<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>',o)||this;return n.pickerIcon=i,n.isPickerDisplayed=!1,n.isDestroyingPicker=!1,n.skipClick=!1,n}return Or(o,e),o.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),Ht(this.eWrapper,o);var i=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&oi(t.pickerComponent.getGui())&&r.contains(e.target)&&(t.skipClick=!0)}),this.addManagedListener(r,"keydown",function(e){switch(e.key){case Ti.UP:case Ti.DOWN:case Ti.ENTER:case Ti.SPACE:i();case Ti.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}}),this.addManagedListener(this.eWrapper,"click",i),this.addManagedListener(this.eLabel,"click",i),this.pickerIcon){var n=bi(this.pickerIcon,this.gridOptionsService);n&&this.eIcon.appendChild(n)}},o.prototype.refreshLabel=function(){t(this.getLabel())?It(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},o.prototype.setAriaLabel=function(e){return xt(this.eWrapper,e),this},o.prototype.setInputWidth=function(e){return di(this.eWrapper,e),this},o.prototype.getFocusableElement=function(){return this.eWrapper},Tr([er("eLabel")],o.prototype,"eLabel",void 0),Tr([er("eWrapper")],o.prototype,"eWrapper",void 0),Tr([er("eDisplayField")],o.prototype,"eDisplayField",void 0),Tr([er("eIcon")],o.prototype,"eIcon",void 0),o}(br),Pr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),_r=function(e){function t(t){void 0===t&&(t="default");var o=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return o.cssIdentifier=t,o.options=[],o.itemEls=[],o}return Pr(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case Ti.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case Ti.DOWN:case Ti.UP:var i=t===Ti.DOWN,r=void 0;if(e.preventDefault(),this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl)+(i?1:-1);n=Math.min(Math.max(n,0),this.itemEls.length-1),r=this.itemEls[n]}else r=this.itemEls[i?0:this.itemEls.length-1];this.highlightItem(r)}},t.prototype.addOptions=function(e){var t=this;return e.forEach(function(e){return t.addOption(e)}),this},t.prototype.addOption=function(e){var t=e.value,o=ct(e.text||t);return this.options.push({value:t,text:o}),this.renderOption(t,o),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(t,o){zt(t,o+1),Ut(t,e.length)})},t.prototype.renderOption=function(e,t){var o=this,i=document.createElement("div");Nt(i,"option"),i.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),i.innerHTML="<span>"+t+"</span>",i.tabIndex=-1,this.itemEls.push(i),this.addManagedListener(i,"mouseover",function(){return o.highlightItem(i)}),this.addManagedListener(i,"mouseleave",function(){return o.clearHighlighted()}),this.addManagedListener(i,"click",function(){return o.setValue(e)}),this.getGui().appendChild(i)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var o=this.options.findIndex(function(t){return t.value===e});if(-1!==o){var i=this.options[o];this.value=i.value,this.displayValue=null!=i.text?i.text:i.value,this.highlightItem(this.itemEls[o]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex(function(t){return t.value===e.value});-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),eo(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),eo(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:br.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"init",null),t}($i),Ar=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Nr=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Mr=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return Ar(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new _r("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,_r.EVENT_ITEM_SELECTED,function(){e.hideList&&e.hideList(),e.dispatchEvent({type:t.EVENT_ITEM_SELECTED})}),this.listComponent.addManagedListener(this.listComponent,br.EVENT_CHANGED,function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()})},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),o=this.gridOptionsService.getDocument(),i=this.addManagedListener(o.body,"wheel",function(o){!t.contains(o.target)&&e.hideList&&e.hideList()}),r=this.addManagedListener(t,"focusout",function(o){!t.contains(o.relatedTarget)&&e.hideList&&e.hideList()}),n=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,r(),i(),e.isAlive()&&(jt(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:n("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,di(t,Xo(this.eWrapper)),jt(this.eWrapper,!0),t.style.maxHeight=Yo(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupByComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,position:"under",keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach(function(e){return t.addOption(e)}),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,o,i){return this.value===t?this:(i||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,o)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},t.EVENT_ITEM_SELECTED="selectedItem",Nr([W("popupService")],t.prototype,"popupService",void 0),Nr([k],t.prototype,"init",null),t}(Dr),Fr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Lr=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xr=function(e){function o(t,o,i,r){void 0===i&&(i="text"),void 0===r&&(r="input");var n=e.call(this,t,'\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>",o)||this;return n.inputType=i,n.displayFieldTag=r,n}return Fr(o,e),o.prototype.postConstruct=function(){e.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 t=this.config,o=t.width,i=t.value;null!=o&&this.setWidth(o),null!=i&&this.setValue(i),this.addInputListeners()},o.prototype.refreshLabel=function(){t(this.getLabel())?It(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},o.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(t){return e.setValue(t.target.value)})},o.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},o.prototype.getInputElement=function(){return this.eInput},o.prototype.setInputWidth=function(e){return di(this.eWrapper,e),this},o.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},o.prototype.getFocusableElement=function(){return this.eInput},o.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},o.prototype.setInputPlaceholder=function(e){return Ci(this.eInput,"placeholder",e),this},o.prototype.setInputAriaLabel=function(e){return xt(this.eInput,e),this},o.prototype.setDisabled=function(t){return Uo(this.eInput,t),e.prototype.setDisabled.call(this,t)},Lr([er("eLabel")],o.prototype,"eLabel",void 0),Lr([er("eWrapper")],o.prototype,"eWrapper",void 0),Lr([er("eInput")],o.prototype,"eInput",void 0),o}(br),Ir=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Gr=function(e){function t(t,o,i){void 0===o&&(o="ag-checkbox"),void 0===i&&(i="checkbox");var r=e.call(this,t,o,i)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return Ir(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,o,i){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:o,event:i});var r=this.getInputElement(),n={type:He.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:o};this.eventService.dispatchEvent(n)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(xr),Hr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Vr=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return Hr(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,He.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(Gr),kr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Br=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},jr=function(){function e(e,t){this.localeService=e,this.optionsFactory=t}return e.prototype.getModelAsString=function(e){var t=this;if(!e)return null;var o=null!=e.operator,i=this.localeService.getLocaleTextFunc();if(o){var r=e,n=r.conditions;if(!n)n=[r.condition1,r.condition2];var s=n.map(function(e){return t.getModelAsString(e)}),a="AND"===r.operator?"andCondition":"orCondition";return s.join(" "+i(a,lr[a])+" ")}if(e.type===Wr.BLANK||e.type===Wr.NOT_BLANK)return i(e.type,e.type);var l=e,u=this.optionsFactory.getCustomOption(l.type),c=u||{},p=c.displayKey,d=c.displayName,h=c.numberOfInputs;return p&&d&&0===h?(i(p,d),d):this.conditionToString(l,u)},e}(),Wr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.eTypes=[],t.eJoinOperatorPanels=[],t.eJoinOperatorsAnd=[],t.eJoinOperatorsOr=[],t.eConditionBodies=[],t.listener=function(){return t.onUiChanged()},t.lastUiCompletePosition=null,t.joinOperatorId=0,t}return kr(t,e),t.prototype.getNumberOfInputs=function(e){var o=this.optionsFactory.getCustomOption(e);if(o){var i=o.numberOfInputs;return null!=i?i:1}var r=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&r.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){var t=this;this.eTypes.forEach(function(o,i){0===i?o.setValue(e,!0):o.setValue(t.optionsFactory.getDefaultOption(),!0)})},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map(function(e){return e.getValue()})},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){var o=this;if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var i,r=!e.operator,n=!t.operator;if(!r&&n||r&&!n)return!1;if(r){var s=e,a=t;i=this.areSimpleModelsEqual(s,a)}else{var l=e,u=t;i=l.operator===u.operator&&le(l.conditions,u.conditions,function(e,t){return o.areSimpleModelsEqual(e,t)})}return i},t.prototype.setModelIntoUi=function(e){var t=this;if(e.operator){var o=e;o.conditions||(o.conditions=[o.condition1,o.condition2]);var i=this.validateAndUpdateConditions(o.conditions),r=this.getNumConditions();if(i<r)this.removeConditionsAndOperators(i);else if(i>r)for(var n=r;n<i;n++)this.createJoinOperatorPanel(),this.createOption();var s="OR"===o.operator;this.eJoinOperatorsAnd.forEach(function(e){return e.setValue(!s,!0)}),this.eJoinOperatorsOr.forEach(function(e){return e.setValue(s,!0)}),o.conditions.forEach(function(e,o){t.eTypes[o].setValue(e.type,!0),t.setConditionIntoUi(e,o)})}else{var a=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(a.type,!0),this.setConditionIntoUi(a,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),Wi.resolve()},t.prototype.validateAndUpdateConditions=function(e){var t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),b(function(){return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.')},"simpleFilterSetModelMaxNumConditions"),t=this.maxNumConditions),t},t.prototype.doesFilterPass=function(e){var t,o=this,i=this.getModel();if(null==i)return!0;var r=i.operator,n=[];if(r){var s=i;n.push.apply(n,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Br(arguments[t]));return e}(null!==(t=s.conditions)&&void 0!==t?t:[]))}else n.push(i);return n[r&&"OR"===r?"some":"every"](function(t){return o.individualConditionPasses(e,t)})},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.setNumConditions(t),this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.filterPlaceholder=t.filterPlaceholder,this.optionsFactory=new ar,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.createOption(),this.createMissingConditionsAndOperators()},t.prototype.setNumConditions=function(e){var t,o;null!=e.suppressAndOrCondition&&b(function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')},"simpleFilterSuppressAndOrCondition"),null!=e.alwaysShowBothConditions&&b(function(){return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.')},"simpleFilterAlwaysShowBothConditions"),this.maxNumConditions=null!==(t=e.maxNumConditions)&&void 0!==t?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(b(function(){return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.')},"simpleFilterMaxNumConditions"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(o=e.numAlwaysVisibleConditions)&&void 0!==o?o:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(b(function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')},"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(b(function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".')},"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,t=this.createManagedBean(new Mr);this.eTypes.push(t),t.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(t.getGui());var o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(t),this.resetType(t);var i=this.getNumConditions()-1;this.forEachPositionInput(i,function(t){return e.resetInput(t)}),this.addChangedListeners(t,i)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),o=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var i=this.eJoinOperatorPanels.length-1,r=this.joinOperatorId++;this.resetJoinOperatorAnd(t,i,r),this.resetJoinOperatorOr(o,i,r),this.isReadOnly()||(t.onValueChange(this.listener),o.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,t,o){var i=this.createManagedBean(new Vr);return e.push(i),i.addCssClass("ag-filter-condition-operator"),i.addCssClass("ag-filter-condition-operator-"+o),t.appendChild(i.getGui()),i},t.prototype.getDefaultJoinOperator=function(e){return"AND"===e||"OR"===e?e:"AND"},t.prototype.putOptionsIntoDropdown=function(e){var t=this,o=this.optionsFactory.getFilterOptions();o.forEach(function(o){var i="string"==typeof o?t.createBoilerplateListOption(o):t.createCustomListOption(o);e.addOption(i)}),e.setDisabled(o.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:o?this.localeService.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return""},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,t=-1,o=!0,i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)?t=i:o=!1;if(this.shouldAddNewConditionAtEnd(o))this.createJoinOperatorPanel(),this.createOption();else{var r=null!==(e=this.lastUiCompletePosition)&&void 0!==e?e:this.getNumConditions()-2;if(t<r){this.removeConditionsAndOperators(r+1);var n=t+1,s=r-n;s>0&&this.removeConditionsAndOperators(n,s),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t},t.prototype.updateConditionStatusesAndValues=function(e,t){var o=this;this.eTypes.forEach(function(t,i){var r=o.isConditionDisabled(i,e);(1===i?[t,o.eJoinOperatorPanels[0],o.eJoinOperatorsAnd[0],o.eJoinOperatorsOr[0]]:[t]).forEach(function(e){e instanceof xr||e instanceof Mr?e.setDisabled(r):Uo(e,r)})}),this.eConditionBodies.forEach(function(e,t){jo(e,o.isConditionBodyVisible(t))});var i="OR"===(null!=t?t:this.getJoinOperator());this.eJoinOperatorsAnd.forEach(function(e,t){e.setValue(!i,!0)}),this.eJoinOperatorsOr.forEach(function(e,t){e.setValue(i,!0)}),this.forEachInput(function(t,i,r,n){o.setElementDisplayed(t,i<n),o.setElementDisabled(t,o.isConditionDisabled(r,e))}),this.resetPlaceholder()},t.prototype.shouldAddNewConditionAtEnd=function(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},t.prototype.removeConditionsAndOperators=function(e,t){if(!(e>=this.getNumConditions())){this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);var o=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,o,t),this.removeComponents(this.eJoinOperatorsAnd,o,t),this.removeComponents(this.eJoinOperatorsOr,o,t)}},t.prototype.removeElements=function(e,t,o){this.removeItems(e,t,o).forEach(function(e){return ti(e)})},t.prototype.removeComponents=function(e,t,o){var i=this;this.removeItems(e,t,o).forEach(function(e){ti(e.getGui()),i.destroyBean(e)})},t.prototype.removeItems=function(e,t,o){return null==o?e.splice(t):e.splice(t,o)},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var o=this.getInputs(0)[0];if(!o)return;o instanceof xr&&o.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){e.prototype.afterGuiDetached.call(this);var t=this.getModel();this.areModelsEqual(t,this.getModelFromUi())||this.resetUiToActiveModel(t);for(var o=-1,i=-1,r=!1,n=this.getJoinOperator(),s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))-1===o&&(o=s,i=s);else{var a=s<o;(s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1)||a)&&(this.removeConditionsAndOperators(s,1),r=!0,a&&i--)}var l=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),l=!0),this.shouldAddNewConditionAtEnd(i===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),l=!0),l&&this.updateConditionStatusesAndValues(i,n),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=i},t.prototype.getPlaceholderText=function(e,t){var o=this.translate(e);if(T(this.filterPlaceholder)){var i=this.filterPlaceholder,r=this.eTypes[t].getValue();o=i({filterOptionKey:r,filterOption:this.translate(r),placeholder:o})}else"string"==typeof this.filterPlaceholder&&(o=this.filterPlaceholder);return o},t.prototype.resetPlaceholder=function(){var e=this,t=this.localeService.getLocaleTextFunc();this.forEachInput(function(o,i,r,n){if(o instanceof xr){var s=0===i&&n>1?"inRangeStart":0===i?"filterOoo":"inRangeEnd",a=0===i&&n>1?t("ariaFilterFromValue","Filter from value"):0===i?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(e.getPlaceholderText(s,r)),o.setInputAriaLabel(a)}})},t.prototype.setElementValue=function(e,t){e instanceof xr&&e.setValue(null!=t?String(t):null,!0)},t.prototype.setElementDisplayed=function(e,t){e instanceof $i&&jo(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof $i&&Uo(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof xr&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this;this.getConditionTypes().forEach(function(o,i){t.forEachPositionTypeInput(i,o,e)})},t.prototype.forEachPositionInput=function(e,t){var o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,t)},t.prototype.forEachPositionTypeInput=function(e,t,o){for(var i=this.getNumberOfInputs(t),r=this.getInputs(e),n=0;n<r.length;n++){var s=r[n];null!=s&&o(s,n,e,i)}},t.prototype.isConditionDisabled=function(e,t){return!!this.isReadOnly()||0!==e&&e>t+1},t.prototype.isConditionBodyVisible=function(e){var t=this.getConditionType(e);return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return!(e>=this.getNumConditions())&&(this.getConditionType(e)!==t.EMPTY&&!this.getValues(e).some(function(e){return null==e}))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e},t.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()},t.prototype.resetUiToDefaults=function(e){var t=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(function(e){return t.resetType(e)}),this.eJoinOperatorsAnd.forEach(function(e,o){return t.resetJoinOperatorAnd(e,o,t.joinOperatorId+o)}),this.eJoinOperatorsOr.forEach(function(e,o){return t.resetJoinOperatorOr(e,o,t.joinOperatorId+o)}),this.joinOperatorId++,this.forEachInput(function(e){return t.resetInput(e)}),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),Wi.resolve()},t.prototype.resetType=function(e){var t=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(t).setDisabled(this.isReadOnly())},t.prototype.resetJoinOperatorAnd=function(e,t,o){this.resetJoinOperator(e,t,this.isDefaultOperator("AND"),this.translate("andCondition"),o)},t.prototype.resetJoinOperatorOr=function(e,t,o){this.resetJoinOperator(e,t,this.isDefaultOperator("OR"),this.translate("orCondition"),o)},t.prototype.resetJoinOperator=function(e,t,o,i,r){this.updateJoinOperatorDisabled(e.setValue(o,!0).setName("ag-simple-filter-and-or-"+this.getCompId()+"-"+r).setLabel(i),t)},t.prototype.updateJoinOperatorsDisabled=function(){var e=this;this.eJoinOperatorsAnd.forEach(function(t,o){return e.updateJoinOperatorDisabled(t,o)}),this.eJoinOperatorsOr.forEach(function(t,o){return e.updateJoinOperatorDisabled(t,o)})},t.prototype.updateJoinOperatorDisabled=function(e,t){e.setDisabled(this.isReadOnly()||t>0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,t){var o=this,i=this.mapValuesFromModel(e);this.forEachInput(function(e,r,n,s){n===t&&o.setElementValue(e,null!=i[r]?i[r]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput(function(o,i,r,n){t.setElementValue(o,0===i&&0===r?e:null)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,t){var o=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,function(e){o.attachElementOnChange(e,o.listener)}))},t.prototype.individualConditionPasses=function(e,t){var o=this.getCellValue(e.node),i=this.mapValuesFromModel(t),r=this.optionsFactory.getCustomOption(t.type),n=this.evaluateCustomFilter(r,i,o);return null!=n?n:null==o?this.evaluateNullValue(t.type):this.evaluateNonNullValue(i,o,t,e)},t.prototype.evaluateCustomFilter=function(e,t,o){if(null!=e){var i=e.predicate;return null==i||t.some(function(e){return null==e})?void 0:i(t,o)}},t.prototype.isBlank=function(e){return null==e||"string"==typeof e&&0===e.trim().length},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",t}(wr),Ur=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ur(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,o,i){var r=this.comparator(),n=null!=e[0]?r(e[0],o):0;switch(i.type){case t.EQUALS:return 0===n;case t.NOT_EQUAL:return 0!==n;case t.GREATER_THAN:return n>0;case t.GREATER_THAN_OR_EQUAL:return n>=0;case t.LESS_THAN:return n<0;case t.LESS_THAN_OR_EQUAL:return n<=0;case t.IN_RANGE:var s=r(e[1],o);return this.scalarFilterParams.inRangeInclusive?n>=0&&s<=0:n>0&&s<0;case t.BLANK:return this.isBlank(o);case t.NOT_BLANK:return!this.isBlank(o);default:return console.warn('AG Grid: Unexpected type of filter "'+i.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Wr),Kr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Yr=function(){return Yr=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Yr.apply(this,arguments)},qr=1/0,Qr=function(e){function t(t,o,i){var r=e.call(this,o,i)||this;return r.dateFilterParams=t,r}return Kr(t,e),t.prototype.conditionToString=function(e,t){var o=e.type,i=(t||{}).numberOfInputs,r=o==Wr.IN_RANGE||2===i,n=xo(e.dateFrom),s=xo(e.dateTo),a=this.dateFilterParams.inRangeFloatingFilterDateFormat;return r?(null!==n?Lo(n,a):"null")+"-"+(null!==s?Lo(s,a):"null"):null!=n?Lo(n,a):""+o},t}(jr),Xr=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.eConditionPanelsFrom=[],t.eConditionPanelsTo=[],t.dateConditionFromComps=[],t.dateConditionToComps=[],t.minValidYear=1e3,t.maxValidYear=qr,t}return Kr(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateConditionFromComps[0].afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.dateFrom,i=t.dateTo,r=t.type;return[o&&xo(o)||null,i&&xo(i)||null].slice(0,this.getNumberOfInputs(r))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){this.dateFilterParams=t,e.prototype.setParams.call(this,t);var o=function(e,o){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?o:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return o};this.minValidYear=o("minValidYear",1e3),this.maxValidYear=o("maxValidYear",qr),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.filterModelFormatter=new Qr(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var t=this,o=new nr(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc(function(){return o.destroy()}),o},t.prototype.setElementValue=function(e,t){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},t.prototype.createFromToElement=function(e,t,o,i){var r=document.createElement("div");r.classList.add("ag-filter-"+i),r.classList.add("ag-filter-date-"+i),t.push(r),e.appendChild(r),o.push(this.createDateCompWrapper(r))},t.prototype.removeValueElements=function(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)},t.prototype.removeDateComps=function(e,t,o){this.removeItems(e,t,o).forEach(function(e){return e.destroy()})},t.prototype.isConditionUiComplete=function(t){var o=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var i=!0;return this.forEachInput(function(e,r,n,s){var a;n!==t||!i||r>=s||(i=i&&(null!=(a=e.getDate())&&a.getUTCFullYear()>=o.minValidYear&&a.getUTCFullYear()<=o.maxValidYear))}),i},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionType(e),o={},i=this.getValues(e);return i.length>0&&(o.dateFrom=Mo(i[0])),i.length>1&&(o.dateTo=Mo(i[1])),Yr({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},o)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput(function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(o)})},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var t=[];return this.forEachPositionInput(e,function(e,o,i,r){o<r&&t.push(e.getDate())}),t},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.DEFAULT_FILTER_OPTIONS=[zr.EQUALS,zr.GREATER_THAN,zr.LESS_THAN,zr.NOT_EQUAL,zr.IN_RANGE,zr.BLANK,zr.NOT_BLANK],function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([W("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(zr),Jr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jr(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.isEventFromDataChange=function(e){return null==e?void 0:e.afterDataChange},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.conditions[0];else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new ar,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==t||1==t},t.prototype.isTypeEditable=function(e){var t=[Wr.IN_RANGE,Wr.EMPTY,Wr.BLANK,Wr.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}($i),$r=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),en=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},tn=function(e){function t(){return e.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(t,e),t.prototype.getDefaultFilterOptions=function(){return Xr.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.filterParams=t.filterParams,this.createDateComponent();var o=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input")),this.filterModelFormatter=new Qr(this.filterParams,this.localeService,this.optionsFactory)},t.prototype.setEditable=function(e){jo(this.eDateWrapper,e),jo(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,o){if(!this.isEventFromFloatingFilter(o)&&!this.isEventFromDataChange(o)){e.prototype.setLastTypeFromModel.call(this,t);var i=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(i),i){if(t){var r=t;this.dateComp.setDate(xo(r.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=Mo(this.dateComp.getDate());this.params.parentFilterInstance(function(o){if(o){var i=xo(t);o.onFloatingFilterChanged(e.getLastType()||null,i)}})},t.prototype.createDateComponent=function(){var e=this,t=wr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:M(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new nr(this.getContext(),this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},en([W("userComponentFactory")],t.prototype,"userComponentFactory",void 0),en([er("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),en([er("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Zr),on=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),rn=function(e){function t(){return e.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 on(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,o=this.gridOptionsService.getDocument(),i=this.eDateInput.getInputElement(),r=this.shouldUseBrowserDatePicker(e);r&&(i.type="date");var n=r&&po();this.addManagedListener(i,"mousedown",function(){t.eDateInput.isDisabled()||n||i.focus()}),this.addManagedListener(i,"input",function(i){i.target===o.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())});var s=e.filterParams||{},a=s.minValidYear,l=s.maxValidYear;a&&(i.min=a+"-01-01"),l&&(i.max=l+"-12-31")},t.prototype.getDate=function(){return xo(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(Mo(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:fo()||go()||po()&&ho()>=14.1},function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([er("eDateInput")],t.prototype,"eDateInput",void 0),t}($i),nn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),sn=function(e){function o(t,o,i){return void 0===o&&(o="ag-text-field"),void 0===i&&(i="text"),e.call(this,t,o,i)||this}return nn(o,e),o.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},o.prototype.setValue=function(o,i){var r=e.prototype.setValue.call(this,o,i);return this.eInput.value!==o&&(this.eInput.value=t(o)?o:""),r},o.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",function(t){t.ctrlKey||t.metaKey||t.key&&!e.test(t.key)&&t.preventDefault()}),this.addManagedListener(this.eInput,"paste",function(t){var o,i=null===(o=t.clipboardData)||void 0===o?void 0:o.getData("text");i&&i.split("").some(function(t){return!e.test(t)})&&t.preventDefault()})},o}(xr),an=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ln=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return an(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var e=parseFloat(t.eInput.value),o=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==o&&t.setValue(o)}),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Ci(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Ci(this.eInput,"max",e)),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,Ci(this.eInput,"step",e)),this},t.prototype.setValue=function(t,o){if(null!=t&&(t=this.adjustPrecision(t))!=this.normalizeValue(t))return this;return e.prototype.setValue.call(this,t,o)},t}(sn),un=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return un(t,e),t.prototype.conditionToString=function(e,t){var o=(t||{}).numberOfInputs;return e.type==Wr.IN_RANGE||2===o?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(jr);function pn(e){var t=(null!=e?e:{}).allowedCharPattern;return t||(fo()?null:"\\d\\-\\.")}var dn,hn,fn,gn=function(t){function o(){var e=t.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return un(o,t),o.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.filter,i=t.filterTo,r=t.type;return[this.processValue(o),this.processValue(i)].slice(0,this.getNumberOfInputs(r))},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},o.prototype.setParams=function(e){this.numberFilterParams=e,t.prototype.setParams.call(this,e),this.filterModelFormatter=new cn(this.localeService,this.optionsFactory)},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueElement=function(){var e=pn(this.numberFilterParams),t=document.createElement("div");return t.classList.add("ag-filter-body"),Nt(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t},o.prototype.createFromToElement=function(e,t,o,i){var r=this.createManagedBean(i?new sn({allowedCharPattern:i}):new ln);r.addCssClass("ag-filter-"+o),r.addCssClass("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())},o.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},o.prototype.getValues=function(e){var t=this,o=[];return this.forEachPositionInput(e,function(e,i,r,n){i<n&&o.push(t.processValue(t.stringToFloat(e.getValue())))}),o},o.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},o.prototype.getFilterType=function(){return"number"},o.prototype.processValue=function(e){return null==e||isNaN(e)?null:e},o.prototype.stringToFloat=function(t){if("number"==typeof t)return t;var o=e(t);return null!=o&&""===o.trim()&&(o=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(o):null==o||"-"===o.trim()?null:parseFloat(o)},o.prototype.createCondition=function(e){var t=this.getConditionType(e),o={filterType:this.getFilterType(),type:t},i=this.getValues(e);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},o.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},o.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},o.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],o}(zr),vn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),yn=function(){return yn=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},yn.apply(this,arguments)},mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vn(t,e),t.prototype.conditionToString=function(e,t){var o=(t||{}).numberOfInputs;return e.type==Wr.IN_RANGE||2===o?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(jr),Cn=function(t){function o(){var e=t.call(this,"textFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return vn(o,t),o.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.setParams=function(e){this.textFilterParams=e,t.prototype.setParams.call(this,e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?o.DEFAULT_FORMATTER:o.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new mn(this.localeService,this.optionsFactory)},o.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(ki.doOnce(function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")},"textCustomComparator.deprecated"),function(t){var o=t.filterOption,i=t.value,r=t.filterText;return e(o,i,r)}):this.textFilterParams.textMatcher||o.DEFAULT_MATCHER},o.prototype.createCondition=function(e){var t=this.getConditionType(e),o={filterType:this.getFilterType(),type:t},i=this.getValues(e);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},o.prototype.getFilterType=function(){return"text"},o.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},o.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},o.prototype.getValues=function(t){var i=this,r=[];return this.forEachPositionInput(t,function(t,n,s,a){if(n<a){var l=e(t.getValue()),u=(i.textFilterParams.trimInput?o.trimInput(l):l)||null;r.push(u),t.setValue(u,!0)}}),r},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),Nt(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e},o.prototype.createFromToElement=function(e,t,o){var i=this.createManagedBean(new sn);i.addCssClass("ag-filter-"+o),i.addCssClass("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())},o.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},o.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.filter,i=t.filterTo,r=t.type;return[o||null,i||null].slice(0,this.getNumberOfInputs(r))},o.prototype.evaluateNullValue=function(e){var t=[Wr.NOT_EQUAL,Wr.NOT_CONTAINS,Wr.BLANK];return!!e&&t.indexOf(e)>=0},o.prototype.evaluateNonNullValue=function(e,t,o,i){var r=this,n=e.map(function(e){return r.formatter(e)})||[],s=this.formatter(t),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(o.type===Wr.BLANK)return this.isBlank(t);if(o.type===Wr.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:i.node,data:i.data,filterOption:o.type,value:s,textFormatter:h};return n.some(function(e){return r.matcher(yn(yn({},f),{filterText:e}))})},o.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},o.DEFAULT_FILTER_OPTIONS=[Wr.CONTAINS,Wr.NOT_CONTAINS,Wr.EQUALS,Wr.NOT_EQUAL,Wr.STARTS_WITH,Wr.ENDS_WITH,Wr.BLANK,Wr.NOT_BLANK],o.DEFAULT_FORMATTER=function(e){return e},o.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},o.DEFAULT_MATCHER=function(e){var t=e.filterOption,i=e.value,r=e.filterText;if(null==r)return!1;switch(t){case o.CONTAINS:return i.indexOf(r)>=0;case o.NOT_CONTAINS:return i.indexOf(r)<0;case o.EQUALS:return i===r;case o.NOT_EQUAL:return i!=r;case o.STARTS_WITH:return 0===i.indexOf(r);case o.ENDS_WITH:var n=i.lastIndexOf(r);return n>=0&&n===i.length-r.length;default:return!1}},o}(Wr),wn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sn=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},En=function(e){function t(t){var o=e.call(this)||this;return o.params=t,o}return wn(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterTextInput=this.createManagedBean(new sn(this.params.config)),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,t){this.eFloatingFilterTextInput.setValue(e,t)},t.prototype.addValueChangedListener=function(e){var t=this.eFloatingFilterTextInput.getGui();this.addManagedListener(t,"input",e),this.addManagedListener(t,"keypress",e),this.addManagedListener(t,"keydown",e)},t}(Fe),Rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wn(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>\n ')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(t){this.params=t;var o=this.columnModel.getDisplayNameForColumn(t.column,"header",!0)+" "+this.localeService.getLocaleTextFunc()("ariaFilterInput","Filter Input");if(this.floatingFilterInputService=this.createFloatingFilterInputService(o),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer),e.prototype.init.call(this,t),this.applyActive=wr.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var i=wr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=M(this.syncUpWithParentFilter.bind(this),i);this.floatingFilterInputService.addValueChangedListener(r)}},t.prototype.syncUpWithParentFilter=function(e){var t=this,o=e.key===Ti.ENTER;if(!this.applyActive||o){var i=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(i=Cn.trimInput(i),this.floatingFilterInputService.setValue(i,!0)),this.params.parentFilterInstance(function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,i||null)})}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Sn([W("columnModel")],t.prototype,"columnModel",void 0),Sn([er("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),Sn([k],t.prototype,"postConstruct",null),t}(Zr),bn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),On=function(e){function t(t){var o=e.call(this)||this;return o.params=t,o.numberInputActive=!0,o}return bn(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterNumberInput=this.createManagedBean(new ln),this.eFloatingFilterTextInput=this.createManagedBean(new sn),this.eFloatingFilterTextInput.setDisabled(!0),this.eFloatingFilterNumberInput.setInputAriaLabel(this.params.ariaLabel),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterNumberInput.getGui()),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,t){this.getActiveInputElement().setValue(e,t)},t.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},t.prototype.addValueChangedListener=function(e){this.setupListeners(this.eFloatingFilterNumberInput.getGui(),e),this.setupListeners(this.eFloatingFilterTextInput.getGui(),e)},t.prototype.setupListeners=function(e,t){this.addManagedListener(e,"input",t),this.addManagedListener(e,"keypress",t),this.addManagedListener(e,"keydown",t)},t}(Fe),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bn(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new cn(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return gn.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){var t=pn(this.params.filterParams);return t?this.createManagedBean(new En({config:{allowedCharPattern:t},ariaLabel:e})):this.createManagedBean(new On({ariaLabel:e}))},t}(Rn),Dn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Pn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dn(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new mn(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return Cn.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.createManagedBean(new En({ariaLabel:e}))},t}(Rn),_n=function(){function e(e,t){var o=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new J,this.eElement=e,this.preventMouseClick=t;var i=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),n=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",i,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",n,{passive:!1}),this.destroyFuncs.push(function(){o.eElement.removeEventListener("touchstart",i,{passive:!0}),o.eElement.removeEventListener("touchmove",r,{passive:!0}),o.eElement.removeEventListener("touchend",n,{passive:!1})})}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var i=this.touchStart;window.setTimeout(function(){var r=o.touchStart===i;if(o.touching&&r&&!o.moved){o.moved=!0;var n={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(n)}},500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!Fi(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&t.cancelable&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var o={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach(function(e){return e()})},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),An=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Nn=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Mn=function(e){function t(o){var i=e.call(this)||this;return o||i.setTemplate(t.TEMPLATE),i}return An(t,e),t.prototype.attachCustomElements=function(e,t,o,i,r){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=o,this.eSortMixed=i,this.eSortNone=r},t.prototype.setupSort=function(e,t){var o=this;void 0===t&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!!this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,function(){return o.onSortChanged()}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return o.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,t,o){if(null!=t){var i=bi(e,this.gridOptionsService,o);i&&t.appendChild(i)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var t="asc"===e;jo(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){var o="desc"===e;jo(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),r=null==e;jo(this.eSortNone,!i&&r,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var t=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&t&&(this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);jo(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e,t=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),i=null!==(e=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==e?e:-1,r=o.some(function(e){var o;return null!==(o=t.sortController.getDisplaySortIndexForColumn(e))&&void 0!==o&&o}),n=i>=0&&r;jo(this.eSortOrder,n,{skipAriaHidden:!0}),i>=0?this.eSortOrder.innerHTML=(i+1).toString():ei(this.eSortOrder)}},t.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>',Nn([er("eSortOrder")],t.prototype,"eSortOrder",void 0),Nn([er("eSortAsc")],t.prototype,"eSortAsc",void 0),Nn([er("eSortDesc")],t.prototype,"eSortDesc",void 0),Nn([er("eSortMixed")],t.prototype,"eSortMixed",void 0),Nn([er("eSortNone")],t.prototype,"eSortNone",void 0),Nn([W("columnModel")],t.prototype,"columnModel",void 0),Nn([W("sortController")],t.prototype,"sortController",void 0),t}($i),Fn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ln=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xn=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return Fn(o,e),o.prototype.destroy=function(){e.prototype.destroy.call(this)},o.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},o.prototype.workOutTemplate=function(){var e=se(this.params.template,o.TEMPLATE);return e=e&&e.trim?e.trim():e},o.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},o.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=ct(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},o.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},o.prototype.addInIcon=function(e,t,o){if(null!=t){var i=bi(e,this.gridOptionsService,o);i&&t.appendChild(i)}},o.prototype.setupTap=function(){var e=this,o=this.gridOptionsService;if(!o.is("suppressTouch")){var i=new _n(this.getGui(),!0),r=o.is("suppressMenuHide"),n=r&&t(this.eMenu),s=n?new _n(this.eMenu,!0):i;if(this.params.enableMenu){var a=n?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,_n[a],function(t){o.api.showColumnMenuAfterMouseClick(e.params.column,t.touchStart)})}if(this.params.enableSorting){this.addManagedListener(i,_n.EVENT_TAP,function(t){var o=t.touchStart.target;r&&e.eMenu.contains(o)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")})}this.addDestroyFunc(function(){return i.destroy()}),n&&this.addDestroyFunc(function(){return s.destroy()})}},o.prototype.workOutShowMenu=function(){var e=!this.gridOptionsService.is("suppressMenuHide"),t=yo()&&e;return this.params.enableMenu&&!t},o.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsService.is("suppressMenuHide");this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else ti(this.eMenu)},o.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},o.prototype.workOutSort=function(){return this.params.enableSorting},o.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new Mn(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var t="ctrl"===this.gridOptionsService.get("multiSortKey");this.addManagedListener(this.params.column,ie.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=(new Date).getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(o){var i=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!(i||r)){var n=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(n)}});var o=function(){if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var t=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),o=!(null==t?void 0:t.every(function(t){return e.params.column.getSort()==t.getSort()}));e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",o)}};this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},o.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ie.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},o.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();jo(this.eFilter,e,{skipAriaHidden:!0})},o.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n </div>\n </div>',Ln([W("sortController")],o.prototype,"sortController",void 0),Ln([W("menuFactory")],o.prototype,"menuFactory",void 0),Ln([W("columnModel")],o.prototype,"columnModel",void 0),Ln([er("eFilter")],o.prototype,"eFilter",void 0),Ln([er("eSortIndicator")],o.prototype,"eSortIndicator",void 0),Ln([er("eMenu")],o.prototype,"eMenu",void 0),Ln([er("eLabel")],o.prototype,"eLabel",void 0),Ln([er("eText")],o.prototype,"eText",void 0),Ln([er("eSortOrder")],o.prototype,"eSortOrder",void 0),Ln([er("eSortAsc")],o.prototype,"eSortAsc",void 0),Ln([er("eSortDesc")],o.prototype,"eSortDesc",void 0),Ln([er("eSortMixed")],o.prototype,"eSortMixed",void 0),Ln([er("eSortNone")],o.prototype,"eSortNone",void 0),o}($i),In=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Gn=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Hn=function(e){function o(){return e.call(this,o.TEMPLATE)||this}return In(o,e),o.prototype.destroy=function(){e.prototype.destroy.call(this)},o.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},o.prototype.checkWarnings=function(){if(this.params.template){b(function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},"HeaderGroupComp.templateNotSupported")}},o.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Ee(t)){var o=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){Se(e)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var i=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(i,re.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(i,re.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},o.prototype.addTouchAndClickListeners=function(e,t){var o=new _n(e,!0);this.addManagedListener(o,_n.EVENT_TAP,t),this.addDestroyFunc(function(){return o.destroy()}),this.addManagedListener(e,"click",t)},o.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();jo(this.eOpenIcon,e),jo(this.eCloseIcon,!e)}else jo(this.eOpenIcon,!1),jo(this.eCloseIcon,!1)},o.prototype.addInIcon=function(e,t){var o=bi(e,this.gridOptionsService,null);o&&this.getRefElement(t).appendChild(o)},o.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return jo(this.eOpenIcon,!1),void jo(this.eCloseIcon,!1)},o.prototype.setupLabel=function(){var e,o=this.params,i=o.displayName,r=o.columnGroup;if(t(i)){var n=ct(i);this.getRefElement("agLabel").innerHTML=n}this.addOrRemoveCssClass("ag-sticky-label",!!(null===(e=r.getColGroupDef())||void 0===e?void 0:e.stickyLabel))},o.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',Gn([W("columnModel")],o.prototype,"columnModel",void 0),Gn([er("agOpened")],o.prototype,"eOpenIcon",void 0),Gn([er("agClosed")],o.prototype,"eCloseIcon",void 0),o}($i),Vn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vn(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}($i),Bn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),jn=function(e){function o(){return e.call(this,o.TEMPLATE)||this}return Bn(o,e),o.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),t(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},o.prototype.onKeyDown=function(e){var t=e.key;(t===Ti.LEFT||t===Ti.UP||t===Ti.RIGHT||t===Ti.DOWN||e.shiftKey&&t===Ti.ENTER)&&e.stopPropagation()},o.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},o.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},o.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(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([er("eTextArea")],o.prototype,"eTextArea",void 0),o}(kn),Wn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Un=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},zn=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return Wn(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,o(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===Ti.ENTER;var i=!1;e.values.forEach(function(o){var r={value:o},n=t.valueFormatterService.formatValue(e.column,null,o),s=null!=n;r.text=s?n:o,t.eSelect.addOption(r),i=i||e.value===o}),i?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),"fullRow"!==this.gridOptionsService.get("editType")&&this.addManagedListener(this.eSelect,Mr.EVENT_ITEM_SELECTED,function(){return e.stopEditing()})}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Un([W("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Un([er("eSelect")],t.prototype,"eSelect",void 0),t}(kn),Kn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Yn=function(e){function o(){return e.call(this,o.TEMPLATE)||this}return Kn(o,e),o.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===Ti.BACKSPACE||e.eventKey===Ti.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==Ti.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&o.setValue(t,!0),null!=e.maxLength&&o.setMaxLength(e.maxLength),this.addManagedListener(o.getGui(),"keydown",function(e){var t=e.key;t!==Ti.PAGE_UP&&t!==Ti.PAGE_DOWN||e.preventDefault()})},o.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc(),o=this.eInput;if(o.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){po()||o.getFocusableElement().focus();var i=o.getInputElement();if(this.highlightAllOnFocus)i.select();else{var r=o.getValue(),n=t(r)&&r.length||0;n&&i.setSelectionRange(n,n)}}},o.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()},o.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},o.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},o.prototype.isPopup=function(){return!1},o.TEMPLATE='<div class="ag-cell-edit-wrapper">\n <ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>\n </div>',function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([er("eInput")],o.prototype,"eInput",void 0),o}(kn),qn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qn=function(e){function o(){var t=e.call(this,o.TEMPLATE)||this;return t.refreshCount=0,t}return qn(o,e),o.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},o.prototype.showDelta=function(e,o){var i=Math.abs(o),r=e.formatValue(i),n=t(r)?r:i,s=o>=0;this.eDelta.innerHTML=s?"↑"+n:"↓"+n,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},o.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout(function(){t===e.refreshCount&&e.hideDeltaValue()},2e3)},o.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),ei(this.eDelta)},o.prototype.refresh=function(e){var o=e.value;if(o===this.lastValue)return!1;if(t(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:t(e.value)?this.eValue.innerHTML=o:ei(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof o&&"number"==typeof this.lastValue){var i=o-this.lastValue;this.showDelta(e,i)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=o,!0},o.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([W("filterManager")],o.prototype,"filterManager",void 0),o}($i),Xn=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Jn=function(e){function i(){var t=e.call(this,i.TEMPLATE)||this;return t.refreshCount=0,t.eCurrent=t.queryForHtmlElement(".ag-value-slide-current"),t}return Xn(i,e),i.prototype.init=function(e){this.refresh(e)},i.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=ii('<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(){t===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},i.prototype.refresh=function(e){var i=e.value;return o(i)&&(i=""),i!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=i,t(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:t(e.value)?this.eCurrent.innerHTML=i:ei(this.eCurrent),!0))},i.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([W("filterManager")],i.prototype,"filterManager",void 0),i}($i),Zn=function(){return Zn=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Zn.apply(this,arguments)},$n=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var o=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();var i=this.createDataChangedEvent(e,o,t);this.dispatchLocalEvent(i)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,o,i){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:i}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return"top"===this.rowPinned?"t-"+this.rowIndex:"bottom"===this.rowPinned?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.__daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,o){var i=t(this.id)?this.createDaemonNode():null,r=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(o),this.beans.selectionService.syncInRowNode(this,i),this.checkRowSelectable();var n=this.createDataChangedEvent(e,r,!1);this.dispatchLocalEvent(n)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsService.is("groupSelectsChildren"))){var o=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:null!=o&&o,source:"selectableChanged"})}},e.prototype.setId=function(t){var o=this.beans.gridOptionsService.getRowIdFunc();if(o)if(this.data){var i=this.getGroupKeys(!0);this.id=o({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],o=this;for(e&&(o=o.parent);o&&o.level>=0;)t.push(o.key),o=o.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!t(this.rowTop)||!t(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setHovered=function(e){this.hovered!==e&&(this.hovered=e)},e.prototype.isHovered=function(){return this.hovered},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,o){void 0===o&&(o=!1),this.rowHeight=t,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=M(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=this,t=!1,o=!0,i=0,r=this.__autoHeights;if(null!=r&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach(function(n){var s=r[n.getId()];if(null==s){if(!e.beans.columnModel.isColSpanActive())return void(t=!0);var a=[];switch(n.getPinned()){case"left":a=e.beans.columnModel.getDisplayedLeftColumnsForRow(e);break;case"right":a=e.beans.columnModel.getDisplayedRightColumnsForRow(e);break;case null:a=e.beans.columnModel.getViewportCenterColumnsForRow(e)}if(a.includes(n))return void(t=!0);s=-1}else o=!1;s>i&&(i=s)}),!t&&((o||i<10)&&(i=this.beans.gridOptionsService.getRowHeightForNode(this).height),i!=this.rowHeight))){this.setRowHeight(i);var n=this.beans.rowModel;n.onRowHeightChangedDebounced&&n.onRowHeightChangedDebounced()}},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,o){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var i=Object.assign({},this.createGlobalRowEvent(He.EVENT_ROW_GROUP_OPENED),{expanded:t,event:o||null});this.beans.rowNodeEventThrottle.dispatchExpanded(i),this.beans.gridOptionsService.is("groupIncludeFooter")&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,o){var i,r=this,n="string"!=typeof e?e:null!==(i=r.beans.columnModel.getGridColumn(e))&&void 0!==i?i:r.beans.columnModel.getPrimaryColumn(e),s=this.getValueFromValueService(n);if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(n,s,t,o),!1;var a=this.beans.valueService.setValue(this,n,t,o);return this.dispatchCellChangedEvent(n,t,s),this.checkRowSelectable(),a},e.prototype.getValueFromValueService=function(e){var t=this.leafGroup&&this.beans.columnModel.isPivotMode(),o=this.group&&this.expanded&&!this.footer&&!t,i=this.beans.gridOptionsService.is("groupIncludeFooter"),r=this.beans.gridOptionsService.is("groupSuppressBlankHeader"),n=o&&i&&!r;return this.beans.valueService.getValue(e,this,!1,n)},e.prototype.dispatchEventForSaveValueReadOnly=function(e,t,o,i){var r={type:He.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:e,colDef:e.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:t,newValue:o,value:o,source:i};this.beans.eventService.dispatchEvent(r)},e.prototype.setGroupValue=function(e,t){var i=this.beans.columnModel.getGridColumn(e);o(this.groupData)&&(this.groupData={});var r=i.getColId(),n=this.groupData[r];n!==t&&(this.groupData[r]=t,this.dispatchCellChangedEvent(i,t,n))},e.prototype.setAggData=function(e){var t=this,o=v([this.aggData,e]),i=this.aggData;this.aggData=e,this.eventService&&o.forEach(function(e){var o=t.beans.columnModel.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,n=i?i[e]:void 0;t.dispatchCellChangedEvent(o,r,n)})},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var o=this.beans.gridOptionsService.isTreeData(),i=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(o?!!i&&i(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&i(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o,i){var r={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o,oldValue:i};this.dispatchLocalEvent(r)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(t){return t.depthFirstSearch(e)}),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,i=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var r=0;r<this.childrenAfterGroup.length;r++){var n=this.childrenAfterGroup[r],s=n.isSelected();if(!n.selectable){var a=n.calculateSelectedFromChildren();if(null===a)continue;s=a}switch(s){case!0:t=!0;break;case!1:o=!0;break;default:i=!0}}return i||t&&o?void 0:!!t||!o&&(this.selectable?this.selected:null)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.selectThisNode=function(t,o,i){void 0===i&&(i="api");var r=!this.selectable&&t,n=this.selected===t;if(r||n)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var s=Zn(Zn({},this.createGlobalRowEvent(He.EVENT_ROW_SELECTED)),{event:o||null,source:i});return this.beans.eventService.dispatchEvent(s),!0},e.prototype.setSelected=function(e,t,o,i){void 0===t&&(t=!1),void 0===o&&(o=!1),void 0===i&&(i="api"),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1,source:i})},e.prototype.setSelectedParams=function(e){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):void 0===this.id?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodeSelected(Zn(Zn({},e),{node:this.footer?this.sibling:this}))},e.prototype.isRowPinned=function(){return"top"===this.rowPinned||"bottom"===this.rowPinned},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new J),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var o=this,i=!0,r=!1,n=null;i&&!r;){var s=o.parent;t(s)&&o.firstChild?s.rowGroupColumn===e&&(r=!0,n=s):i=!1,o=s}return r?n:null},e.prototype.isFullWidthCell=function(){var e=this.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getIsFullWidthCellFunc=function(){var e=this.beans.gridOptionsService.getCallback("isFullWidthRow");if(e)return e;var t=this.beans.gridOptionsService.get("isFullWidthCell");return t?function(e){return t(e.rowNode)}:void 0},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.prototype.createFooter=function(){var t=this;if(!this.sibling){var o=new e(this.beans);Object.keys(this).forEach(function(e){o[e]=t[e]}),o.footer=!0,o.setRowTop(null),o.setRowIndex(null),o.oldRowTop=null,o.id="rowGroupFooter_"+this.id,o.sibling=this,this.sibling=o}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_GROUP_CHANGED="groupChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",e}(),es=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ts=function(){return ts=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ts.apply(this,arguments)},os=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},is=function(e){function t(){return e.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return es(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),o=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),i=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(i+" ("+o+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"checkboxSelected"})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"checkboxSelected"})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(e){Se(e)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(e){Se(e),t.eCheckbox.getValue()?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})}),this.addManagedListener(this.rowNode,$n.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"==typeof this.getIsVisible()){var o=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.rowNode,$n.EVENT_DATA_CHANGED,o),this.addManagedListener(this.rowNode,$n.EVENT_CELL_CHANGED,o),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,t,o,i,r=this.rowNode.selectable,n=this.getIsVisible();if(r)if("function"==typeof n){var s=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,a=null===(t=this.column)||void 0===t?void 0:t.createColumnFunctionCallbackParams(this.rowNode);r=!!a&&n(ts(ts({},s),a))}else r=null!=n&&n;if(null===(o=this.column)||void 0===o?void 0:o.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!r),this.setVisible(!0),void this.setDisplayed(!0);(null===(i=this.overrides)||void 0===i?void 0:i.removeHidden)?this.setDisplayed(r):this.setVisible(r)},t.prototype.getIsVisible=function(){var e,t;return this.overrides?this.overrides.isVisible:null===(t=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===t?void 0:t.checkboxSelection},os([er("eCheckbox")],t.prototype,"eCheckbox",void 0),os([k],t.prototype,"postConstruct",null),t}($i),rs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ns=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ss=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};
202
+ /**
203
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
204
+ * @version v29.3.5
205
+ * @link https://www.ag-grid.com/
206
+ * @license MIT
207
+ */exports.DragSourceType=void 0,(dn=exports.DragSourceType||(exports.DragSourceType={}))[dn.ToolPanel=0]="ToolPanel",dn[dn.HeaderCell=1]="HeaderCell",dn[dn.RowDrag=2]="RowDrag",dn[dn.ChartPanel=3]="ChartPanel",exports.VerticalDirection=void 0,(hn=exports.VerticalDirection||(exports.VerticalDirection={}))[hn.Up=0]="Up",hn[hn.Down=1]="Down",exports.HorizontalDirection=void 0,(fn=exports.HorizontalDirection||(exports.HorizontalDirection={}))[fn.Left=0]="Left",fn[fn.Right=1]="Right";var as,ls=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return rs(t,e),o=t,t.prototype.init=function(){this.ePinnedIcon=Ri("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Ri("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Ri("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Ri("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Ri("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Ri("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Ri("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Ri("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Ri("dropNotAllowed",this.gridOptionsService,null)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},t.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find(function(t){return t.dragSource===e});t&&(this.dragService.removeDragSource(t.params),ce(this.dragSourceAndParamsList,t))},t.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach(function(t){return e.dragService.removeDragSource(t.params)}),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(e,t){var o,i,r,n,s=this,a=this.getHorizontalDirection(e),l=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var u=this.dropTargets.filter(function(t){return s.isMouseOnDropTarget(e,t)}),c=this.findCurrentDropTarget(e,u);if(c!==this.lastDropTarget)this.leaveLastTargetIfExists(e,a,l,t),null!==this.lastDropTarget&&null===c&&(null===(i=(o=this.dragSource).onGridExit)||void 0===i||i.call(o,this.dragItem)),null===this.lastDropTarget&&null!==c&&(null===(n=(r=this.dragSource).onGridEnter)||void 0===n||n.call(r,this.dragItem)),this.enterDragTargetIfExists(c,e,a,l,t),this.lastDropTarget=c;else if(c&&c.onDragging){var p=this.createDropTargetEvent(c,e,a,l,t);c.onDragging(p)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,o=[[e.getContainer()]];return t?o.concat(t):o},t.prototype.allContainersIntersect=function(e,t){var o,i;try{for(var r=ss(t),n=r.next();!n.done;n=r.next()){var s=n.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=e.clientX>=s.left&&e.clientX<s.right,l=e.clientY>=s.top&&e.clientY<s.bottom;if(!a||!l)return!1}}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return!0},t.prototype.isMouseOnDropTarget=function(e,t){var o,i,r=this.getAllContainersFromDropTarget(t),n=!1;try{for(var s=ss(r),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(e,l)){n=!0;break}}}catch(e){o={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(n&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},t.prototype.findCurrentDropTarget=function(e,t){var o,i,r,n,s=t.length;if(0===s)return null;if(1===s)return t[0];var a=this.gridOptionsService.getRootNode().elementsFromPoint(e.clientX,e.clientY);try{for(var l=ss(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(r=void 0,ss(t)),d=p.next();!d.done;d=p.next()){var h=d.value;if(-1!==ge(this.getAllContainersFromDropTarget(h)).indexOf(c))return h}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}}}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return null},t.prototype.enterDragTargetIfExists=function(e,t,o,i,r){if(e){if(e.onDragEnter){var n=this.createDropTargetEvent(e,t,o,i,r);e.onDragEnter(n)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(e,t,o,i){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,o,i);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},t.prototype.addDropTarget=function(e){this.dropTargets.push(e)},t.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter(function(t){return t.getContainer()!==e.getContainer()})},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some(function(e){return e.external})},t.prototype.findExternalZone=function(e){return this.dropTargets.filter(function(e){return e.external}).find(function(t){return t.getContainer()===e.getContainer()})||null},t.prototype.getHorizontalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientX,o=e.clientX;return t===o?null:t>o?exports.HorizontalDirection.Left:exports.HorizontalDirection.Right},t.prototype.getVerticalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientY,o=e.clientY;return t===o?null:t>o?exports.VerticalDirection.Up:exports.VerticalDirection.Down},t.prototype.createDropTargetEvent=function(e,t,o,i,r){var n=e.getContainer(),s=n.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,c=a.dragItem,p=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:i,hDirection:o,dragSource:p,fromNudge:r,dragItem:c,api:l,columnApi:u,dropZoneTarget:n}},t.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var o=t.getBoundingClientRect().height,i=So()-2,r=Eo()-2,n=e.pageY-o/2,s=e.pageX-10,a=this.gridOptionsService.getDocument(),l=a.defaultView||window,u=l.pageYOffset||a.documentElement.scrollTop,c=l.pageXOffset||a.documentElement.scrollLeft;i>0&&s+t.clientWidth>i+c&&(s=i+c-t.clientWidth),s<0&&(s=0),r>0&&n+t.clientHeight>r+u&&(n=r+u-t.clientHeight),n<0&&(n=0),t.style.left=s+"px",t.style.top=n+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=ii(o.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),i=this.dragSource.dragItemName;T(i)&&(i=i()),t.innerHTML=ct(i)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsService.getDocument(),n=null;try{n=r.fullscreenElement}catch(e){}finally{if(!n){var s=this.gridOptionsService.getRootNode(),a=s.querySelector("body");n=a||(s instanceof ShadowRoot?s:null==s?void 0:s.documentElement)}}this.eGhostParent=n,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),ei(this.eGhostIcon);var i=null;switch(e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:i=this.ePinnedIcon;break;case o.ICON_MOVE:i=this.eMoveIcon;break;case o.ICON_LEFT:i=this.eLeftIcon;break;case o.ICON_RIGHT:i=this.eRightIcon;break;case o.ICON_GROUP:i=this.eGroupIcon;break;case o.ICON_AGGREGATE:i=this.eAggregateIcon;break;case o.ICON_PIVOT:i=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:i=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),i===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns")||i&&this.eGhostIcon.appendChild(i)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.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>',ns([W("dragService")],t.prototype,"dragService",void 0),ns([W("mouseEventService")],t.prototype,"mouseEventService",void 0),ns([W("columnApi")],t.prototype,"columnApi",void 0),ns([W("gridApi")],t.prototype,"gridApi",void 0),ns([k],t.prototype,"init",null),ns([B],t.prototype,"clearDragSourceParamsList",null),t=o=ns([j("dragAndDropService")],t)}(Fe),us=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),cs=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ps=function(e){function t(t,o,i,r,n,s){var a=e.call(this)||this;return a.cellValueFn=t,a.rowNode=o,a.column=i,a.customGui=r,a.dragStartPixels=n,a.suppressVisibilityChange=s,a.dragSource=null,a}return us(t,e),t.prototype.isCustomGui=function(){return null!=this.customGui},t.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(bi("rowDrag",this.beans.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsService.is("rowDragManaged")?new fs(this,this.beans,this.rowNode,this.column):new hs(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsService.is("rowDragMultiRow"))return[this.rowNode];var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsService.is("rowDragManaged");this.beans.gridOptionsService.isTreeData()&&e&&b(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var t=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o=this.getRowDragText(this.column),i=this.localeService.getLocaleTextFunc();this.dragSource={type:exports.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e,r=t.getDragItem(),n=(null===(e=r.rowNodes)||void 0===e?void 0:e.length)||1;return o?o(r,n):1===n?t.cellValueFn():n+" "+i("rowDragRows","rows")},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},cs([W("beans")],t.prototype,"beans",void 0),cs([k],t.prototype,"postConstruct",null),cs([B],t.prototype,"removeDragSource",null),t}($i),ds=function(e){function t(t,o,i){var r=e.call(this)||this;return r.parent=t,r.rowNode=o,r.column=i,r}return us(t,e),t.prototype.setDisplayedOrVisible=function(e){var t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{var o=!0,i=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),i=T(this.column.getColDef().rowDrag)),i?(this.parent.setDisplayed(!0,t),this.parent.setVisible(o,t)):(this.parent.setDisplayed(o,t),this.parent.setVisible(!0,t))}},t}(Fe),hs=function(e){function t(t,o,i,r){var n=e.call(this,t,i,r)||this;return n.beans=o,n}return us(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(e)},cs([k],t.prototype,"postConstruct",null),t}(ds),fs=function(e){function t(t,o,i,r){var n=e.call(this,t,i,r)||this;return n.beans=o,n}return us(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,He.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),o=this.beans.gridOptionsService.is("suppressRowDrag"),i=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!i||o;this.setDisplayedOrVisible(r)},cs([k],t.prototype,"postConstruct",null),t}(ds),gs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),vs=function(){return vs=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},vs.apply(this,arguments)},ys=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ms=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gs(t,e),t.prototype.init=function(e,t,o,i,r,n,s){this.params=s,this.eGui=t,this.eCheckbox=o,this.eExpanded=i,this.eContracted=r,this.comp=e,this.compClass=n;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value&&!s.node.master,c=!1;if(this.gridOptionsService.is("groupIncludeFooter")&&this.gridOptionsService.is("groupHideOpenParents")){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u&&!s.node.master||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,o=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var i=function(){jt(o,!!t.expanded)};this.expandListener=this.addManagedListener(t,$n.EVENT_EXPANDED_CHANGED,i)||null,i()}else Wt(o)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is("embedFullWidthRows"))return!1;var e="left"===this.params.pinned,t="right"===this.params.pinned,o=!e&&!t;return this.gridOptionsService.is("enableRtl")?this.columnModel.isPinningLeft()?!t:!o:this.columnModel.isPinningLeft()?!e:!o},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var i=t.parent;null!=i;){if(i.rowGroupColumn&&e.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroupNode=i;break}i=i.parent}o(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsService.is("groupHideOpenParents"))if(e.groupData){if(null!=e.rowGroupColumn){var o=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(o))return void(this.showingValueForOpenedParent=!1)}var i=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=i}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),o=e.valueFormatted,i=e.value,r=o;null==r&&(r=""===i&&this.params.node.group?this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):null!=i?i:null);this.comp.setInnerRenderer(t,r)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var o=this.params,i=this.params,r=i.value,n=i.node,s=this.valueFormatterService.formatValue(e,n,r);return vs(vs({},o),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var o=p(this.params);o.value=this.params.value,"function"==typeof e?t=e(o):"string"==typeof e?t=this.expressionService.evaluate(e,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var i=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(i,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var o=this.userComponentFactory.getInnerRendererDetails(e,e),i=function(e){return e&&e.componentClass==t.compClass};if(o&&!i(o))return o;var r=this.displayedGroupNode.rowGroupColumn,n=r?r.getColDef():void 0;if(n){var s=this.userComponentFactory.getCellRendererDetails(n,e);if(s&&!i(s))return s;if(i(s)&&n.cellRendererParams&&n.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(n.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,$n.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e,t=this.params,o=bi("groupExpanded",this.gridOptionsService,null),i=bi("groupContracted",this.gridOptionsService,null);o&&this.eExpanded.appendChild(o),i&&this.eContracted.appendChild(i);var r=t.eGridCell;(null===(e=this.params.column)||void 0===e?void 0:e.isCellEditable(t.node))&&this.gridOptionsService.is("enableGroupEdit")||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(r,"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(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,$n.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var n=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,$n.EVENT_ALL_CHILDREN_COUNT_CHANGED,n),this.addManagedListener(this.displayedGroupNode,$n.EVENT_MASTER_CHANGED,n),this.addManagedListener(this.displayedGroupNode,$n.EVENT_GROUP_CHANGED,n),this.addManagedListener(this.displayedGroupNode,$n.EVENT_HAS_CHILDREN_CHANGED,n)},t.prototype.onExpandClicked=function(e){Ee(e)||(Se(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,o=!t.expanded;!o&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(o,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var o=this.params.column;return null==o||"string"!=typeof o.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,o=e.displayedGroupNode,i=e.columnModel,r=t.node,n=this.isExpandable();if(n){var s=!!this.showingValueForOpenedParent||r.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=i.isPivotMode(),l=a&&o.leafGroup,u=n&&!l,c=r.footer&&-1===r.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),a?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,$n.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var e=this.params,t=e.node,o=!!e.colDef,i=this.gridOptionsService.isTreeData(),r=!o||i||!0===e.colDef.showRowGroup?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new ps(function(){return e.params.value},this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,o=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(o){var i=new is;this.getContext().createBean(i),i.init({rowNode:t,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(i.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(i)})}this.comp.setCheckboxVisible(o)},t.prototype.onKeyDown=function(e){e.key!==Ti.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Ee(e)||(Te(this.eExpanded,e)||Te(this.eContracted,e)||this.onExpandOrContract(e))},ys([W("expressionService")],t.prototype,"expressionService",void 0),ys([W("valueFormatterService")],t.prototype,"valueFormatterService",void 0),ys([W("columnModel")],t.prototype,"columnModel",void 0),ys([W("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ys([W("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(Fe),Cs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ws=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ss=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Cs(t,e),t.prototype.init=function(e){var t=this,o={setInnerRenderer:function(e,o){return t.setRenderDetails(e,o)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setContractedDisplayed:function(e){return jo(t.eContracted,e)},setExpandedDisplayed:function(e){return jo(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},i=this.createManagedBean(new ms),r=!e.colDef,n=this.getGui();i.init(o,n,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),r&&Nt(n,"gridcell")},t.prototype.setRenderDetails=function(e,t){var o=this;if(e){var i=e.newAgStackInstance();if(!i)return;i.then(function(e){if(e){var t=function(){return o.context.destroyBean(e)};o.isAlive()?(o.eValue.appendChild(e.getGui()),o.addDestroyFunc(t)):t()}})}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.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>',ws([er("eExpanded")],t.prototype,"eExpanded",void 0),ws([er("eContracted")],t.prototype,"eContracted",void 0),ws([er("eCheckbox")],t.prototype,"eCheckbox",void 0),ws([er("eValue")],t.prototype,"eValue",void 0),ws([er("eChildCount")],t.prototype,"eChildCount",void 0),t}($i),Es=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Rs=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},bs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Es(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=bi("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.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>',Rs([er("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),Rs([er("eLoadingText")],t.prototype,"eLoadingText",void 0),t}($i),Os=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ts=function(e){function t(){return e.call(this)||this}return Os(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var o,i=null!==(o=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==o?o:t.DEFAULT_LOADING_OVERLAY_TEMPLATE,r=this.localeService.getLocaleTextFunc(),n=i.replace("[LOADING...]",r("loadingOoo","Loading..."));this.setTemplate(n)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}($i),Ds=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ps=function(e){function t(){return e.call(this)||this}return Ds(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var o,i=null!==(o=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==o?o:t.DEFAULT_NO_ROWS_TEMPLATE,r=this.localeService.getLocaleTextFunc(),n=i.replace("[NO_ROWS_TO_SHOW]",r("noRowsToShow","No Rows To Show"));this.setTemplate(n)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}($i),_s=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),As=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return _s(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=ct(t)},t}(kn),Ns=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ms=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fs=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Ls=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:rn,agColumnHeader:xn,agColumnGroupHeader:Hn,agSortIndicator:Mn,agTextColumnFloatingFilter:Pn,agNumberColumnFloatingFilter:Tn,agDateColumnFloatingFilter:tn,agReadOnlyFloatingFilter:rr,agAnimateShowChangeCellRenderer:Qn,agAnimateSlideCellRenderer:Jn,agGroupCellRenderer:Ss,agGroupRowRenderer:Ss,agLoadingCellRenderer:bs,agCellEditor:Yn,agTextCellEditor:Yn,agSelectCellEditor:zn,agLargeTextCellEditor:jn,agTextColumnFilter:Cn,agNumberColumnFilter:gn,agDateColumnFilter:Xr,agLoadingOverlay:Ts,agNoRowsOverlay:Ps,agTooltipComponent:As},t.enterpriseAgDefaultCompsModule={agSetColumnFilter:exports.ModuleNames.SetFilterModule,agSetColumnFloatingFilter:exports.ModuleNames.SetFilterModule,agMultiColumnFilter:exports.ModuleNames.MultiFilterModule,agMultiColumnFloatingFilter:exports.ModuleNames.MultiFilterModule,agGroupColumnFilter:exports.ModuleNames.RowGroupingModule,agGroupColumnFloatingFilter:exports.ModuleNames.RowGroupingModule,agRichSelect:exports.ModuleNames.RichSelectModule,agRichSelectCellEditor:exports.ModuleNames.RichSelectModule,agDetailCellRenderer:exports.ModuleNames.MasterDetailModule,agSparklineCellRenderer:exports.ModuleNames.SparklinesModule},t.deprecatedAgGridDefaults={agPopupTextCellEditor:'AG Grid: Since v27.1 The agPopupTextCellEditor is deprecated. Instead use { cellEditor: "agTextCellEditor", cellEditorPopup: true }',agPopupSelectCellEditor:'AG Grid: Since v27.1 the agPopupSelectCellEditor is deprecated. Instead use { cellEditor: "agSelectCellEditor", cellEditorPopup: true }'},t.jsComps={},t.fwComps={},t}return Ns(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&c(this.gridOptions.components,function(t,o){return e.registerJsComponent(t,o)}),null!=this.gridOptions.frameworkComponents&&c(this.gridOptions.frameworkComponents,function(t,o){return e.registerFwComponent(t,o)})},t.prototype.registerDefaultComponent=function(e,t){this.agGridDefaults[e]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[e]=t},t.prototype.registerJsComponent=function(e,t){this.fwComps[e]?console.error("Trying to register a component that you have already registered for frameworks: "+e):this.jsComps[e]=t},t.prototype.registerFwComponent=function(e,t){b(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"),this.fwComps[e]=t},t.prototype.retrieve=function(e,t){var o=this,i=function(e,t){return{componentFromFramework:t,component:e}},r=this.getFrameworkOverrides().frameworkComponent(t,this.gridOptions.components);if(null!=r)return i(r,!0);var n=this.fwComps[t];if(n)return i(n,!0);var s=this.jsComps[t];if(s)return i(s,this.getFrameworkOverrides().isFrameworkComponent(s));var a=this.agGridDefaults[t];if(a)return i(a,!1);var l=this.enterpriseAgDefaultCompsModule[t];return l?Z.assertRegistered(l,"AG Grid '"+e+"' component: "+t):this.deprecatedAgGridDefaults[t]?b(function(){return console.warn(o.deprecatedAgGridDefaults[t])},t):b(function(){o.warnAboutMissingComponent(e,t)},"MissingComp"+t),null},t.prototype.warnAboutMissingComponent=function(e,t){var o=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Fs(arguments[t]));return e}(Object.keys(this.agGridDefaults).filter(function(e){return!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(e)}),Object.keys(this.jsComps),Object.keys(this.fwComps)),i=Ke(t,o,!0,.8);console.warn("AG Grid: Could not find '"+t+"' component. It was configured as \""+e+": '"+t+"'\" but it wasn't found in the list of registered components."),i.length>0&&console.warn(" Did you mean: ["+i.slice(0,3)+"]?"),console.warn("If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/")},Ms([W("gridOptions")],t.prototype,"gridOptions",void 0),Ms([k],t.prototype,"init",null),t=Ms([j("userComponentRegistry")],t)}(Fe),xs={propertyName:"dateComponent",cellRenderer:!1},Is={propertyName:"headerComponent",cellRenderer:!1},Gs={propertyName:"headerGroupComponent",cellRenderer:!1},Hs={propertyName:"cellRenderer",cellRenderer:!0},Vs={propertyName:"cellEditor",cellRenderer:!1},ks={propertyName:"innerRenderer",cellRenderer:!0},Bs={propertyName:"loadingOverlayComponent",cellRenderer:!1},js={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ws={propertyName:"tooltipComponent",cellRenderer:!1},Us={propertyName:"filter",cellRenderer:!1},zs={propertyName:"floatingFilterComponent",cellRenderer:!1},Ks={propertyName:"toolPanel",cellRenderer:!1},Ys={propertyName:"statusPanel",cellRenderer:!1},qs={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Qs={propertyName:"loadingCellRenderer",cellRenderer:!0},Xs={propertyName:"groupRowRenderer",cellRenderer:!0},Js={propertyName:"detailCellRenderer",cellRenderer:!0},Zs=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),$s=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ea=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $s(t,e),t.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Is,"agColumnHeader",t)},t.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,Gs,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,qs,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Qs,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Xs,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Js,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,ks,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,ks,null,t)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,Hs,null,t)},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,Vs,"agCellEditor",t,!0)},t.prototype.getFilterDetails=function(e,t,o){return this.getCompDetails(e,Us,o,t,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,xs,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Bs,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,js,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ws,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,Hs,null,t)},t.prototype.getFloatingFilterCompDetails=function(e,t,o){return this.getCompDetails(e,zs,o,t)},t.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,Ks,null,t,!0)},t.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Ys,null,t,!0)},t.prototype.getCompDetails=function(e,t,o,i,r){var n=this;void 0===r&&(r=!1);var s=t.propertyName,a=t.cellRenderer,l=this.getCompKeys(e,t,i),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=n.userComponentRegistry.retrieve(s,e);t&&(c=t.componentFromFramework?void 0:t.component,p=t.componentFromFramework?t.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=o&&g(o),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var v=this.mergeParamsWithApplicationProvidedParams(e,t,i,d),y=null==c,m=c||p;return{componentFromFramework:y,componentClass:m,params:v,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return n.newAgStackInstance(m,y,v,t)}}}r&&console.error("AG Grid: Could not find component "+u+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,t,o){var i,r,n,s,a,l,u=this,c=t.propertyName;if(e){var p=e,d=p[c+"Selector"],h=d?d(o):null,f=function(e,t){var o=function(){var e="AG Grid: As of v27, the property "+c+"Framework is deprecated. The property "+c+" can now be used for JavaScript AND Framework Components.";b(function(){return console.warn(e)},"UserComponentFactory."+c+"FrameworkDeprecated")};if("string"==typeof e)i=e;else if("string"==typeof t)o(),i=t;else if(null!=e&&!0!==e){u.getFrameworkOverrides().isFrameworkComponent(e)?n=e:r=e}else null!=t&&(o(),n=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+c+"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.";b(function(){return console.warn(g)},"UserComponentFactory."+c+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(p[c],p[c+"Framework"])}return{compName:i,jsComp:r,fwComp:n,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},t.prototype.newAgStackInstance=function(e,t,o,i){var r,n=i.propertyName;if(!t)r=new e;else{var s=this.componentMetadataProvider.retrieve(n);r=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,i)}var a=this.initComponent(r,o);return null==a?Wi.resolve(r):a.then(function(){return r})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,o,i){void 0===i&&(i=null);var r={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};m(r,o);var n=e&&e[t.propertyName+"Params"];"function"==typeof n?m(r,n(o)):"object"==typeof n&&m(r,n);return m(r,i),r},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var t=null,o=this.getCompKeys(e,Us),i=o.compName,r=o.jsComp,n=o.fwComp;i?t=Zs.getFloatingFilterType(i):null==r&&null==n&&!0===e.filter&&(t=Z.isRegistered(exports.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");return t},ea([W("gridOptions")],t.prototype,"gridOptions",void 0),ea([W("agComponentUtils")],t.prototype,"agComponentUtils",void 0),ea([W("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),ea([W("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),ea([U("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=ea([j("userComponentFactory")],t)}(Fe);
208
+ /**
209
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
210
+ * @version v29.3.5
211
+ * @link https://www.ag-grid.com/
212
+ * @license MIT
213
+ */
214
+ /**
215
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
216
+ * @version v29.3.5
217
+ * @link https://www.ag-grid.com/
218
+ * @license MIT
219
+ */
220
+ exports.ExcelFactoryMode=void 0,(as=exports.ExcelFactoryMode||(exports.ExcelFactoryMode={}))[as.SINGLE_SHEET=0]="SINGLE_SHEET",as[as.MULTI_SHEET=1]="MULTI_SHEET";
221
+ /**
222
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
223
+ * @version v29.3.5
224
+ * @link https://www.ag-grid.com/
225
+ * @license MIT
226
+ */
227
+ var oa,ia,ra=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),na=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sa=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return ra(o,e),o.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},o.prototype.removeListener=function(e){var t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var i=e.touchStartListener;t.removeEventListener("touchstart",i,{passive:!0})}},o.prototype.removeDragSource=function(e){var t=this.dragSources.find(function(t){return t.dragSource===e});t&&(this.removeListener(t),ce(this.dragSources,t))},o.prototype.isDragging=function(){return this.dragging},o.prototype.addDragSource=function(e,t){var o=this;void 0===t&&(t=!1);var i=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",i);var r=null,n=this.gridOptionsService.is("suppressTouch");t&&!n&&(r=function(t){Bo(t.target)||(t.cancelable&&(t.preventDefault(),t.stopPropagation()),o.onTouchStart(e,t))},e.eElement.addEventListener("touchstart",r,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:i,touchStartListener:r,touchEnabled:t})},o.prototype.getStartTarget=function(){return this.startTarget},o.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var i=t.touches[0];this.touchLastTime=i,this.touchStart=i;var r=function(t){return o.onTouchUp(t,e.eElement)},n=t.target,s=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:n,type:"touchmove",listener:function(t){return o.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:n,type:"touchend",listener:r,options:{passive:!0}},{target:n,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(i,this.touchStart,e.eElement)},o.prototype.onMouseDown=function(e,t){var o=this,i=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||i._alreadyProcessedByDragService||(i._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;var r=this.gridOptionsService.getRootNode(),n=[{target:r,type:"mousemove",listener:function(t){return o.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t){return o.onMouseUp(t,e.eElement)}},{target:r,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(n),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},o.prototype.addTemporaryEvents=function(e){e.forEach(function(e){var t=e.target,o=e.type,i=e.listener,r=e.options;t.addEventListener(o,i,r)}),this.dragEndFunctions.push(function(){e.forEach(function(e){var t=e.target,o=e.type,i=e.listener,r=e.options;t.removeEventListener(o,i,r)})})},o.prototype.isEventNearStartEvent=function(e,o){var i=this.currentDragParams.dragStartPixels;return Fi(e,o,t(i)?i:4)},o.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},o.prototype.onCommonMove=function(e,t,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var i={type:He.EVENT_DRAG_STARTED,target:o};this.eventService.dispatchEvent(i),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},o.prototype.onTouchMove=function(e,t){var o=this.getFirstActiveTouch(e.touches);o&&this.onCommonMove(o,this.touchStart,t)},o.prototype.onMouseMove=function(e,t){(this.gridOptionsService.is("enableCellTextSelection")||po())&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},o.prototype.isOverFormFieldElement=function(e){var t=e.target,o=null==t?void 0:t.tagName.toLocaleLowerCase();return!!(null==o?void 0:o.match("^a$|textarea|input|select|button"))},o.prototype.onTouchUp=function(e,t){var o=this.getFirstActiveTouch(e.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,t)},o.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},o.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var o={type:He.EVENT_DRAG_STOPPED,target:t};this.eventService.dispatchEvent(o)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(e){return e()}),this.dragEndFunctions.length=0},na([W("mouseEventService")],o.prototype,"mouseEventService",void 0),na([B],o.prototype,"removeAllListeners",null),o=na([j("dragService")],o)}(Fe);
228
+ /**
229
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
230
+ * @version v29.3.5
231
+ * @link https://www.ag-grid.com/
232
+ * @license MIT
233
+ */
234
+ exports.RowHighlightPosition=void 0,(oa=exports.RowHighlightPosition||(exports.RowHighlightPosition={}))[oa.Above=0]="Above",oa[oa.Below=1]="Below",
235
+ /**
236
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
237
+ * @version v29.3.5
238
+ * @link https://www.ag-grid.com/
239
+ * @license MIT
240
+ */
241
+ exports.ClientSideRowModelSteps=void 0,(ia=exports.ClientSideRowModelSteps||(exports.ClientSideRowModelSteps={})).EVERYTHING="group",ia.FILTER="filter",ia.SORT="sort",ia.MAP="map",ia.AGGREGATE="aggregate",ia.FILTER_AGGREGATES="filter_aggregates",ia.PIVOT="pivot",ia.NOTHING="nothing";
242
+ /**
243
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
244
+ * @version v29.3.5
245
+ * @link https://www.ag-grid.com/
246
+ * @license MIT
247
+ */
248
+ var aa=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};function la(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var ua,ca=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()})},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},e.prototype.getSetterMethod=function(e){return"set"+e.charAt(0).toUpperCase()+e.substring(1)},e.prototype.__setProperty=function(e,t){this.gridOptionsService.set(e,t);var o=this.getSetterMethod(e);this[o]&&this[o](t)},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var o=0;c(this.detailGridInfoMap,function(i,r){t(r)&&(e(r,o),o++)})},e.prototype.getDataAsCsv=function(e){if(Z.assertRegistered(exports.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){Z.assertRegistered(exports.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsService.get("defaultExcelExportParams");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.assertNotExcelMultiSheet=function(e,t){if(!Z.assertRegistered(exports.ModuleNames.ExcelExportModule,"api."+e))return!1;var o=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(o)!==exports.ExcelFactoryMode.MULTI_SHEET||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1)},e.prototype.getDataAsExcel=function(e){if(this.assertNotExcelMultiSheet("getDataAsExcel",e))return this.excelCreator.getDataAsExcel(e)},e.prototype.exportDataAsExcel=function(e){this.assertNotExcelMultiSheet("exportDataAsExcel",e)&&this.excelCreator.exportDataAsExcel(e)},e.prototype.getSheetDataForExcel=function(e){if(Z.assertRegistered(exports.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var t=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(exports.ExcelFactoryMode.MULTI_SHEET,t),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(Z.assertRegistered(exports.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(Z.assertRegistered(exports.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var o=this.ctrlsService.getGridBodyCtrl().getGui(),i="aria-"+e;null===t?o.removeAttribute(i):o.setAttribute(i,t)}},e.prototype.logMissingRowModel=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];console.error("AG Grid: api."+e+" can only be called when gridOptions.rowModelType is "+t.join(" or "))},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):this.logMissingRowModel("setServerSideDatasource","serverSide")},e.prototype.setCacheBlockSize=function(e){this.serverSideRowModel?(this.gridOptionsService.set("cacheBlockSize",e),this.serverSideRowModel.resetRootStore()):this.logMissingRowModel("setCacheBlockSize","serverSide")},e.prototype.setDatasource=function(e){this.gridOptionsService.isRowModelType("infinite")?this.rowModel.setDatasource(e):this.logMissingRowModel("setDatasource","infinite")},e.prototype.setViewportDatasource=function(e){this.gridOptionsService.isRowModelType("viewport")?this.rowModel.setViewportDatasource(e):this.logMissingRowModel("setViewportDatasource","viewport")},e.prototype.setRowData=function(e){null==this.immutableService?this.logMissingRowModel("setRowData","clientSide"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t),this.gridOptionsService.set("columnDefs",e,!0,{source:t})},e.prototype.setAutoGroupColumnDef=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("autoGroupColumnDef",e,!0,{source:t})},e.prototype.setDefaultColDef=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("defaultColDef",e,!0,{source:t})},e.prototype.setColumnTypes=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("columnTypes",e,!0,{source:t})},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsService.set("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsService.set("alwaysShowVerticalScroll",e)},e.prototype.refreshCells=function(e){void 0===e&&(e={}),this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsService.set("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(e){return e.refresh()})},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t,o){e&&(o&&e.parent&&-1!==e.parent.level&&this.setRowNodeExpanded(e.parent,t,o),e.setExpanded(t))},e.prototype.onGroupExpandedOrCollapsed=function(){o(this.clientSideRowModel)?this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide"):this.clientSideRowModel.refreshModel({step:exports.ClientSideRowModelSteps.MAP})},e.prototype.refreshClientSideRowModel=function(e){o(this.clientSideRowModel)?this.logMissingRowModel("refreshClientSideRowModel","clientSide"):this.clientSideRowModel.refreshModel(e)},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsService.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):this.logMissingRowModel("expandAll","clientSide","serverSide")},e.prototype.addRenderedRowListener=function(e,t,o){this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.getQuickFilter=function(){return this.gridOptionsService.get("quickFilterText")},e.prototype.setQuickFilter=function(e){this.gridOptionsService.set("quickFilterText",e)},e.prototype.setExcludeHiddenColumnsFromQuickFilter=function(e){this.gridOptionsService.set("excludeHiddenColumnsFromQuickFilter",e)},e.prototype.selectAll=function(e){void 0===e&&(e="apiSelectAll"),this.selectionService.selectAllRowNodes({source:e})},e.prototype.deselectAll=function(e){void 0===e&&(e="apiSelectAll"),this.selectionService.deselectAllRowNodes({source:e})},e.prototype.selectAllFiltered=function(e){void 0===e&&(e="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes({source:e,justFiltered:!0})},e.prototype.deselectAllFiltered=function(e){void 0===e&&(e="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes({source:e,justFiltered:!0})},e.prototype.getServerSideSelectionState=function(){return o(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getServerSideSelectionState()},e.prototype.setServerSideSelectionState=function(e){o(this.serverSideRowModel)?this.logMissingRowModel("setServerSideSelectionState","serverSide"):this.selectionService.setServerSideSelectionState(e)},e.prototype.selectAllOnCurrentPage=function(e){void 0===e&&(e="apiSelectAllCurrentPage"),this.selectionService.selectAllRowNodes({source:e,justCurrentPage:!0})},e.prototype.deselectAllOnCurrentPage=function(e){void 0===e&&(e="apiSelectAllCurrentPage"),this.selectionService.deselectAllRowNodes({source:e,justCurrentPage:!0})},e.prototype.sizeColumnsToFit=function(e){this.gridBodyCtrl.sizeColumnsToFit(e)},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){if(!o(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel("getBestCostNodeSelection","clientSide")},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){o(this.clientSideRowModel)?this.logMissingRowModel("forEachLeafNode","clientSide"):this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e,t){this.rowModel.forEachNode(e,t)},e.prototype.forEachNodeAfterFilter=function(e){o(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilter","clientSide"):this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){o(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var o=this.getFilterInstanceImpl(e,function(e){if(t){var o=la(e);t(o)}});return la(o)},e.prototype.getFilterInstanceImpl=function(e,t){var o=this.columnModel.getPrimaryColumn(e);if(o){var i=this.filterManager.getFilterComponent(o,"NO_UI"),r=i&&i.resolveNow(null,function(e){return e});return r?setTimeout(t,0,r):i&&i.then(function(e){t(e)}),r}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"api")},e.prototype.getStatusPanel=function(e){if(Z.assertRegistered(exports.ModuleNames.StatusBarModule,"api.getStatusPanel"))return la(this.statusBarService.getStatusPanel(e))},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusService.setFocusedCell({rowIndex:e,column:t,rowPinned:o,forceBrowserFocus:!0})},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsService.set("suppressRowDrag",e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsService.set("suppressMoveWhenRowDragging",e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsService.set("suppressRowClickSelection",e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsService.set("headerHeight",e)},e.prototype.setDomLayout=function(e){this.clientSideRowModel||"autoHeight"!==e||this.gridOptionsService.is("pagination")?this.gridOptionsService.set("domLayout",e):console.error("AG Grid: domLayout can only be set to 'autoHeight' when using the client side row model or when using pagination.")},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsService.set("fillHandleDirection",e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsService.set("groupHeaderHeight",e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsService.set("floatingFiltersHeight",e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsService.set("pivotHeaderHeight",e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsService.set("pivotGroupHeaderHeight",e)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.setAnimateRows=function(e){this.gridOptionsService.set("animateRows",e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsService.set("isExternalFilterPresent",e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsService.set("doesExternalFilterPass",e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsService.set("navigateToNextCell",e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsService.set("tabToNextCell",e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsService.set("tabToNextHeader",e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsService.set("navigateToNextHeader",e)},e.prototype.setRowGroupPanelShow=function(e){this.gridOptionsService.set("rowGroupPanelShow",e)},e.prototype.setGroupRowAggNodes=function(e){Ze("27.2","setGroupRowAggNodes","setGetGroupRowAgg"),this.gridOptionsService.set("groupRowAggNodes",e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsService.set("getGroupRowAgg",e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsService.set("getBusinessKeyForNode",e)},e.prototype.setGetChildCount=function(e){this.gridOptionsService.set("getChildCount",e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsService.set("processRowPostCreate",e)},e.prototype.setGetRowNodeId=function(e){Ze("27.1","setGetRowNodeId","setGetRowId"),this.gridOptionsService.set("getRowNodeId",e)},e.prototype.setGetRowId=function(e){this.gridOptionsService.set("getRowId",e)},e.prototype.setGetRowClass=function(e){this.gridOptionsService.set("getRowClass",e)},e.prototype.setIsFullWidthCell=function(e){Ze("27.2","setIsFullWidthCell","setIsFullWidthRow"),this.gridOptionsService.set("isFullWidthCell",e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsService.set("isFullWidthRow",e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsService.set("isRowSelectable",e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsService.set("isRowMaster",e)},e.prototype.setPostSort=function(e){Ze("27.2","setPostSort","setPostSortRows"),this.gridOptionsService.set("postSort",e)},e.prototype.setPostSortRows=function(e){this.gridOptionsService.set("postSortRows",e)},e.prototype.setGetDocument=function(e){this.gridOptionsService.set("getDocument",e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsService.set("getContextMenuItems",e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsService.set("getMainMenuItems",e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsService.set("processCellForClipboard",e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsService.set("sendToClipboard",e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsService.set("processCellFromClipboard",e)},e.prototype.setProcessSecondaryColDef=function(e){Ze("28.0","setProcessSecondaryColDef","setProcessPivotResultColDef"),this.setProcessPivotResultColDef(e)},e.prototype.setProcessSecondaryColGroupDef=function(e){Ze("28.0","setProcessSecondaryColGroupDef","setProcessPivotResultColGroupDef"),this.setProcessPivotResultColGroupDef(e)},e.prototype.setProcessPivotResultColDef=function(e){this.gridOptionsService.set("processPivotResultColDef",e)},e.prototype.setProcessPivotResultColGroupDef=function(e){this.gridOptionsService.set("processPivotResultColGroupDef",e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsService.set("postProcessPopup",e)},e.prototype.setDefaultGroupOrderComparator=function(e){Ze("27.2","setDefaultGroupOrderComparator","setInitialGroupOrderComparator"),this.gridOptionsService.set("defaultGroupOrderComparator",e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsService.set("initialGroupOrderComparator",e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsService.set("getChartToolbarItems",e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsService.set("paginationNumberFormatter",e)},e.prototype.setGetServerSideStoreParams=function(e){Ze("28.0","setGetServerSideStoreParams","setGetServerSideGroupLevelParams"),this.setGetServerSideGroupLevelParams(e)},e.prototype.setGetServerSideGroupLevelParams=function(e){this.gridOptionsService.set("getServerSideGroupLevelParams",e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsService.set("isServerSideGroupOpenByDefault",e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsService.set("isApplyServerSideTransaction",e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsService.set("isServerSideGroup",e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsService.set("getServerSideGroupKey",e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsService.set("getRowStyle",e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsService.set("getRowHeight",e)},e.prototype.assertSideBarLoaded=function(e){return Z.assertRegistered(exports.ModuleNames.SideBarModule,"api."+e)},e.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarComp.setDisplayed(e)},e.prototype.setSideBarPosition=function(e){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarComp.setSideBarPosition(e)},e.prototype.openToolPanel=function(e){this.assertSideBarLoaded("openToolPanel")&&this.sideBarComp.openToolPanel(e,"api")},e.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarComp.close("api")},e.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarComp.openedItem():null},e.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarComp.refresh()},e.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarComp.isToolPanelShowing()},e.prototype.getToolPanelInstance=function(e){if(this.assertSideBarLoaded("getToolPanelInstance"))return la(this.sideBarComp.getToolPanelInstance(e))},e.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarComp.getDef()},e.prototype.setSideBar=function(e){this.gridOptionsService.set("sideBar",e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsService.set("suppressClipboardPaste",e)},e.prototype.resetRowHeights=function(){if(t(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()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsService.set("groupRemoveSingleChildren",e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsService.set("groupRemoveLowestSingleChildren",e)},e.prototype.setGroupDisplayType=function(e){this.gridOptionsService.set("groupDisplayType",e)},e.prototype.setRowClass=function(e){this.gridOptionsService.set("rowClass",e)},e.prototype.setDeltaSort=function(e){this.gridOptionsService.set("deltaSort",e)},e.prototype.setRowCount=function(e,t){if(this.serverSideRowModel)return this.columnModel.isRowGroupEmpty()?void this.serverSideRowModel.setRowCount(e,t):void console.error("AG Grid: setRowCount cannot be used while using row grouping.");this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):this.logMissingRowModel("setRowCount","infinite","serverSide")},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var i=this.columnModel.getPrimaryColumn(e);return o(i)&&(i=this.columnModel.getGridColumn(e)),o(i)?null:this.valueService.getValue(i,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsService.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var o=this.gridOptionsService.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsService.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(w.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.filterManager.resetQuickFilterCache()},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(Z.assertRegistered(exports.ModuleNames.RangeSelectionModule,"api.getCellRanges"),null)},e.prototype.addCellRange=function(e){this.rangeService?this.rangeService.addCellRange(e):Z.assertRegistered(exports.ModuleNames.RangeSelectionModule,"api.addCellRange")},e.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),Z.assertRegistered(exports.ModuleNames.RangeSelectionModule,"gridApi.clearRangeSelection")},e.prototype.undoCellEditing=function(){this.undoRedoService.undo("api")},e.prototype.redoCellEditing=function(){this.undoRedoService.redo("api")},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.downloadChart=function(e){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(e)},e.prototype.openChartToolPanel=function(e){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(e)},e.prototype.closeChartToolPanel=function(e){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(e.chartId)},e.prototype.createRangeChart=function(e){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,t){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,t)},e.prototype.createPivotChart=function(e){if(Z.assertRegistered(exports.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copyToClipboard=function(e){Z.assertRegistered(exports.ModuleNames.ClipboardModule,"api.copyToClipboard")&&this.clipboardService.copyToClipboard(e)},e.prototype.cutToClipboard=function(e){Z.assertRegistered(exports.ModuleNames.ClipboardModule,"api.cutToClipboard")&&this.clipboardService.cutToClipboard(e)},e.prototype.copySelectedRowsToClipboard=function(e){Z.assertRegistered(exports.ModuleNames.ClipboardModule,"api.copySelectedRowsToClipboard")&&this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){Z.assertRegistered(exports.ModuleNames.ClipboardModule,"api.copySelectedRangeToClipboard")&&this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){Z.assertRegistered(exports.ModuleNames.ClipboardModule,"api.copySelectedRangeDown")&&this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnModel.getGridColumn(e);o||(o=this.columnModel.getPrimaryColumn(e)),o?this.menuFactory.showMenuAfterMouseEvent(o,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsService.set("popupParent",e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(la)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(la)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var i=this.navigationService.getCellByPosition(o);i&&i.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);this.logMissingRowModel("applyServerSideTransaction","serverSide")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);this.logMissingRowModel("applyServerSideTransactionAsync","serverSide")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.gridOptionsService.is("suppressChangeDetection")||this.rowRenderer.refreshCells(),t}this.logMissingRowModel("applyTransaction","clientSide")},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):this.logMissingRowModel("applyTransactionAsync","clientSide")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel("flushAsyncTransactions","clientSide")},e.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(e){this.gridOptionsService.set("suppressModelUpdateAfterUpdateTransaction",e)},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},e.prototype.refreshServerSide=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):this.logMissingRowModel("refreshServerSide","serverSide")},e.prototype.refreshServerSideStore=function(e){return Ze("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(e)},e.prototype.getServerSideStoreState=function(){return Ze("28.0","getServerSideStoreState","getServerSideGroupLevelState"),this.getServerSideGroupLevelState()},e.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.setPagination=function(e){this.clientSideRowModel||"autoHeight"!==this.gridOptionsService.get("domLayout")||e?this.gridOptionsService.set("pagination",e):console.error("AG Grid: Pagination cannot be disabled when using domLayout set to 'autoHeight' unless using the client-side row model.")},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsService.set("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},aa([U("immutableService")],e.prototype,"immutableService",void 0),aa([U("csvCreator")],e.prototype,"csvCreator",void 0),aa([U("excelCreator")],e.prototype,"excelCreator",void 0),aa([W("rowRenderer")],e.prototype,"rowRenderer",void 0),aa([W("navigationService")],e.prototype,"navigationService",void 0),aa([W("filterManager")],e.prototype,"filterManager",void 0),aa([W("columnModel")],e.prototype,"columnModel",void 0),aa([W("selectionService")],e.prototype,"selectionService",void 0),aa([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),aa([W("valueService")],e.prototype,"valueService",void 0),aa([W("alignedGridsService")],e.prototype,"alignedGridsService",void 0),aa([W("eventService")],e.prototype,"eventService",void 0),aa([W("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),aa([W("context")],e.prototype,"context",void 0),aa([W("rowModel")],e.prototype,"rowModel",void 0),aa([W("sortController")],e.prototype,"sortController",void 0),aa([W("paginationProxy")],e.prototype,"paginationProxy",void 0),aa([W("focusService")],e.prototype,"focusService",void 0),aa([W("dragAndDropService")],e.prototype,"dragAndDropService",void 0),aa([U("rangeService")],e.prototype,"rangeService",void 0),aa([U("clipboardService")],e.prototype,"clipboardService",void 0),aa([U("aggFuncService")],e.prototype,"aggFuncService",void 0),aa([W("menuFactory")],e.prototype,"menuFactory",void 0),aa([U("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),aa([W("valueCache")],e.prototype,"valueCache",void 0),aa([W("animationFrameService")],e.prototype,"animationFrameService",void 0),aa([U("statusBarService")],e.prototype,"statusBarService",void 0),aa([U("chartService")],e.prototype,"chartService",void 0),aa([U("undoRedoService")],e.prototype,"undoRedoService",void 0),aa([U("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),aa([U("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),aa([W("ctrlsService")],e.prototype,"ctrlsService",void 0),aa([k],e.prototype,"init",null),aa([B],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=aa([j("gridApi")],e)}(),pa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),da=function(){return da=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},da.apply(this,arguments)},ha=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},fa=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var i;return pa(o,e),i=o,o.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_GRID_COLUMNS_CHANGED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VALUE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){e.refreshFiltersForAggregations(),e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,function(){return e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VISIBLE,function(){e.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter")&&e.resetQuickFilterCache()}),this.addManagedPropertyListener("quickFilterText",function(t){return e.setQuickFilter(t.currentValue)}),this.addManagedPropertyListener("excludeHiddenColumnsFromQuickFilter",function(){return e.onExcludeHiddenColumnsFromQuickFilterChanged()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback()},o.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"==typeof e&&e({})},o.prototype.doesExternalFilterPass=function(e){var t=this.gridOptionsService.get("doesExternalFilterPass");return"function"==typeof t&&t(e)},o.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},o.prototype.setFilterModel=function(e){var t=this,o=[],i=this.getFilterModel();if(e){var r=Ii(Object.keys(e));this.allColumnFilters.forEach(function(i,n){var s=e[n];o.push(t.setModelOnFilterWrapper(i.filterPromise,s)),r.delete(n)}),r.forEach(function(i){var r=t.columnModel.getPrimaryColumn(i)||t.columnModel.getGridColumn(i);if(r)if(r.isFilterAllowed()){var n=t.getOrCreateFilterWrapper(r,"NO_UI");n?o.push(t.setModelOnFilterWrapper(n.filterPromise,e[i])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+i)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+i);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+i)})}else this.allColumnFilters.forEach(function(e){o.push(t.setModelOnFilterWrapper(e.filterPromise,null))});Wi.all(o).then(function(){var e=t.getFilterModel(),o=[];t.allColumnFilters.forEach(function(t,r){var n=i?i[r]:null,s=e?e[r]:null;ki.jsonEquals(n,s)||o.push(t.column)}),o.length>0&&t.onFilterChanged({columns:o})})},o.prototype.setModelOnFilterWrapper=function(e,t){return new Wi(function(o){e.then(function(e){"function"!=typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(e.setModel(t)||Wi.resolve()).then(function(){return o()})})})},o.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach(function(o,i){var r=o.filterPromise.resolveNow(null,function(e){return e});if(null==r)return null;if("function"==typeof r.getModel){var n=r.getModel();t(n)&&(e[i]=n)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")}),e},o.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},o.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},o.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},o.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},o.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},o=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach(function(i){if(i.filterPromise.resolveNow(!1,t)){var r=i.filterPromise.resolveNow(null,function(e){return e});!function(t){if(!t.isPrimary())return!0;var i=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!i)&&(!!e.columnModel.isPivotMode()||o)}(i.column)?e.activeColumnFilters.push(r):e.activeAggregateFilters.push(r)}})},o.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach(function(o){var i=o.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()});o.column.setFilterActive(i,e,t)})},o.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},o.prototype.doColumnFiltersPass=function(e,t,o){for(var i=e.data,r=e.aggData,n=o?this.activeAggregateFilters:this.activeColumnFilters,s=o?r:i,a=0;a<n.length;a++){var l=n[a];if(null!=l&&l!==t){if("function"!=typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0},o.prototype.parseQuickFilter=function(e){return t(e)?this.gridOptionsService.isRowModelType("clientSide")?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},o.prototype.setQuickFilter=function(e){if(null==e||"string"==typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof e)},o.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode(function(e){return e.quickFilterAggregateText=null})},o.prototype.onExcludeHiddenColumnsFromQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.onFilterChanged()},o.prototype.refreshFiltersForAggregations=function(){this.gridOptionsService.getGroupAggFiltering()&&this.onFilterChanged()},o.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var o=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(o,0):o()},o.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,o=e.additionalEventAttributes,i=e.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",o),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach(function(e){e.filterPromise&&e.filterPromise.then(function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()})});var r={type:He.EVENT_FILTER_CHANGED,columns:i||[]};o&&m(r,o),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},o.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},o.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},o.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},o.prototype.doesRowPassQuickFilterNoCache=function(e,o){var i=this;return this.columnModel.getAllColumnsForQuickFilter().some(function(r){var n=i.getQuickFilterTextForColumn(r,e);return t(n)&&n.indexOf(o)>=0})},o.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},o.prototype.doesRowPassQuickFilter=function(e){var t=this,o=this.gridOptionsService.is("cacheQuickFilter");return this.quickFilterParts.every(function(i){return o?t.doesRowPassQuickFilterCache(e,i):t.doesRowPassQuickFilterNoCache(e,i)})},o.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},o.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},o.prototype.getQuickFilterTextForColumn=function(e,o){var i=this.valueService.getValue(e,o,!0),r=e.getColDef();if(r.getQuickFilterText){var n={value:i,node:o,data:o.data,column:e,colDef:r,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};i=r.getQuickFilterText(n)}return t(i)?i.toString().toUpperCase():null},o.prototype.aggregateRowForQuickFilter=function(e){var o=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach(function(i){var n=o.getQuickFilterTextForColumn(i,e);t(n)&&r.push(n)}),e.quickFilterAggregateText=r.join(i.QUICK_FILTER_SEPARATOR)},o.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach(function(e){e.filterPromise.then(function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()},o.prototype.createValueGetter=function(e){var t=this;return function(o){var i=o.node;return t.valueService.getValue(e,i,!0)}},o.prototype.getFilterComponent=function(e,t,o){var i;if(void 0===o&&(o=!0),o)return(null===(i=this.getOrCreateFilterWrapper(e,t))||void 0===i?void 0:i.filterPromise)||null;var r=this.cachedFilter(e);return r?r.filterPromise:null},o.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()})},o.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),o)),o},o.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},o.prototype.createFilterInstance=function(e){var t,o=this,i=Z.isRegistered(exports.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",r=e.getColDef(),n=da(da({},this.createFilterParams(e,r)),{filterModifiedCallback:function(){var i={type:He.EVENT_FILTER_MODIFIED,column:e,filterInstance:t};o.eventService.dispatchEvent(i)},filterChangedCallback:function(i){var r={filterInstance:t,additionalEventAttributes:i,columns:[e]};o.callOnFilterChangedOutsideRenderCycle(r)},doesRowPassOtherFilter:function(e){return o.doesRowPassOtherFilters(t,e)}}),s=this.userComponentFactory.getFilterDetails(r,n,i);if(!s)return null;var a=s.newAgStackInstance();return a&&a.then(function(e){return t=e}),a},o.prototype.createFilterParams=function(e,t){return{column:e,colDef:p(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},o.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,compiledElement:null,guiPromise:Wi.resolve(null)};return o.filterPromise=this.createFilterInstance(e),o.filterPromise&&this.putIntoGui(o,t),o},o.prototype.putIntoGui=function(e,o){var i=this,r=document.createElement("div");r.className="ag-filter",e.guiPromise=new Wi(function(n){e.filterPromise.then(function(s){var a=s.getGui();t(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=ii(a)),r.appendChild(a),n(r);var l={type:He.EVENT_FILTER_OPENED,column:e.column,source:o,eGui:r};i.eventService.dispatchEvent(l)})})},o.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach(function(o,i){(o.column.isPrimary()?e.columnModel.getPrimaryColumn(i):e.columnModel.getGridColumn(i))||(t.push(o.column),e.disposeFilterWrapper(o,"columnChanged"))}),t.length>0?this.onFilterChanged({columns:t}):this.updateDependantFilters()},o.prototype.updateDependantFilters=function(){var e=this,t=this.columnModel.getGroupAutoColumns();null==t||t.forEach(function(t){"agGroupColumnFilter"===t.getColDef().filter&&e.getOrCreateFilterWrapper(t,"NO_UI")})},o.prototype.isFilterAllowed=function(e){var t,o;if(!e.isFilterAllowed())return!1;var i=this.allColumnFilters.get(e.getColId());return null===(o=null===(t=null==i?void 0:i.filterPromise)||void 0===t?void 0:t.resolveNow(!0,function(e){var t,o;return"function"!=typeof(null===(t=e)||void 0===t?void 0:t.isFilterAllowed)||(null===(o=e)||void 0===o?void 0:o.isFilterAllowed())}))||void 0===o||o},o.prototype.getFloatingFilterCompDetails=function(e,t){var o=this,i=e.getColDef(),r=this.createFilterParams(e,i),n=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,Us,r),s=this.userComponentFactory.getDefaultFloatingFilterType(i);null==s&&(s="agReadOnlyFloatingFilter");var a={column:e,filterParams:n,currentParentModel:function(){return o.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:function(t){var i=o.getFilterComponent(e,"NO_UI");null!=i&&i.then(function(e){t(la(e))})},showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(i,a,s)},o.prototype.getCurrentFloatingFilterParentModel=function(e){var t=this.getFilterComponent(e,"NO_UI",!1);return t?t.resolveNow(null,function(e){return e&&e.getModel()}):null},o.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allColumnFilters.get(e.getColId());o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged({columns:[e]}))},o.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then(function(i){(i.setModel(null)||Wi.resolve()).then(function(){o.getContext().destroyBean(i),e.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(e.column.getColId());var r={type:He.EVENT_FILTER_DESTROYED,source:t,column:e.column};o.eventService.dispatchEvent(r)})})},o.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach(function(e){return t.disposeFilterWrapper(e,"gridDestroyed")})},o.QUICK_FILTER_SEPARATOR="\n",ha([W("valueService")],o.prototype,"valueService",void 0),ha([W("columnModel")],o.prototype,"columnModel",void 0),ha([W("rowModel")],o.prototype,"rowModel",void 0),ha([W("userComponentFactory")],o.prototype,"userComponentFactory",void 0),ha([W("rowRenderer")],o.prototype,"rowRenderer",void 0),ha([k],o.prototype,"init",null),o=i=ha([j("filterManager")],o)}(Fe),ga=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),va=function(e){function t(t,o){var i=e.call(this,t)||this;return i.ctrl=o,i}return ga(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}($i),ya=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ma=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ca=function(e){function t(o){return e.call(this,t.TEMPLATE,o)||this}return ya(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},addOrRemoveBodyCssClass:function(t,o){return e.eFloatingFilterBody.classList.toggle(t,o)},setButtonWrapperDisplayed:function(t){return jo(e.eButtonWrapper,t)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(o,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(e){return t.afterCompCreated(e)})},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc(function(){return t.context.destroyBean(e)}),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.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>',ma([er("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ma([er("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ma([er("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ma([k],t.prototype,"postConstruct",null),t}(va),wa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();
249
+ /**
250
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
251
+ * @version v29.3.5
252
+ * @link https://www.ag-grid.com/
253
+ * @license MIT
254
+ */exports.LayoutCssClasses=void 0,(ua=exports.LayoutCssClasses||(exports.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",ua.NORMAL="ag-layout-normal",ua.PRINT="ag-layout-print";var Sa,Ea=function(e){function t(t){var o=e.call(this)||this;return o.view=t,o}return wa(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},o=t.autoHeight?exports.LayoutCssClasses.AUTO_HEIGHT:t.print?exports.LayoutCssClasses.PRINT:exports.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(o,t)},t.prototype.getDomLayout=function(){var e,t=null!==(e=this.gridOptionsService.get("domLayout"))&&void 0!==e?e:"normal";return-1===["normal","print","autoHeight"].indexOf(t)?(b(function(){return console.warn("AG Grid: "+t+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")},"warn about dom layout values"),"normal"):t},function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"postConstruct",null),t}(Fe),Ra=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ba=function(){return ba=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ba.apply(this,arguments)},Oa=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ta=function(e){function t(t){var o=e.call(this)||this;return o.scrollLeft=-1,o.nextScrollTop=-1,o.scrollTop=-1,o.eBodyViewport=t,o.resetLastHScrollDebounced=M(function(){return o.eLastHScroll=null},500),o.resetLastVScrollDebounced=M(function(){return o.eLastVScroll=null},500),o}return Ra(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),t=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHScroll.bind(this));var o=this.gridOptionsService.is("debounceVerticalScrollbar"),i=o?M(this.onVScroll.bind(this),100):this.onVScroll.bind(this),r=o?M(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i),this.addManagedListener(t.getViewport(),"scroll",r)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,o=this.ctrlsService.getTopCenterRowContainerCtrl(),i=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),r=this.ctrlsService.getBottomCenterRowContainerCtrl(),n=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-t),r.setContainerTranslateX(t),o.setContainerTranslateX(t),i.setContainerTranslateX(t);var s=this.centerRowContainerCtrl.getViewportElement();$o(this.eLastHScroll===s?n.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingHScroll=function(e){return this.eLastHScroll?e===this.eLastHScroll:(this.eLastHScroll=e,!0)},t.prototype.isControllingVScroll=function(e){return this.eLastVScroll?e===this.eLastVScroll:(this.eLastVScroll=e,!0)},t.prototype.onFakeHScroll=function(){var e=this.ctrlsService.getFakeHScrollComp().getViewport();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScrollCommon=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(Zo(e,this.enableRtl))),this.resetLastHScrollDebounced())},t.prototype.onFakeVScroll=function(){var e=this.ctrlsService.getFakeVScrollComp().getViewport();this.isControllingVScroll(e)&&this.onVScrollCommon(e)},t.prototype.onVScroll=function(){this.isControllingVScroll(this.eBodyViewport)&&this.onVScrollCommon(this.eBodyViewport)},t.prototype.onVScrollCommon=function(e){var t=e.scrollTop;if(!this.shouldBlockScrollUpdate("vertical",t,!0)){if(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e===this.eBodyViewport)this.ctrlsService.getFakeVScrollComp().getViewport().scrollTop=t;else this.eBodyViewport.scrollTop=t;this.gridOptionsService.is("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced()}},t.prototype.doHorizontalScroll=function(e){var t=Zo(this.ctrlsService.getFakeHScrollComp().getViewport(),this.enableRtl);this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,o={type:He.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var e=ba(ba({},o),{type:He.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)},100)},t.prototype.shouldBlockScrollUpdate=function(e,t,o){return void 0===o&&(o=!1),!(o&&!yo())&&("vertical"===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))},t.prototype.shouldBlockVerticalScroll=function(e){var t=Yo(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;return e<0||e+t>o},t.prototype.shouldBlockHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Jo()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>o},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(this.centerRowContainerCtrl.getViewportElement())},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Jo()?e>0?0:t:Math.min(Math.max(e,0),t)),$o(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var o=this.rowModel.getRowCount(),i=-1,r=0;r<o;r++){var n=this.rowModel.getRow(r);if("function"==typeof e){if(n&&e(n)){i=r;break}}else if(e===n||e===n.data){i=r;break}}i>=0&&this.ensureIndexVisible(i,t)},t.prototype.ensureIndexVisible=function(e,t){if(!this.gridOptionsService.isDomLayout("print")){var o=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=o)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(e);var i,r=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),n=this.paginationProxy.getRow(e);do{var s=n.rowTop,a=n.rowHeight,l=this.paginationProxy.getPixelOffset(),u=n.rowTop-l,c=u+n.rowHeight,p=this.getVScrollPosition(),d=this.heightScaler.getDivStretchOffset(),h=p.top+d,f=p.bottom+d,g=f-h,v=this.heightScaler.getScrollPositionForPixel(u),y=this.heightScaler.getScrollPositionForPixel(c-g),m=Math.min((v+y)/2,u),C=null;"top"===t?C=v:"bottom"===t?C=y:"middle"===t?C=m:h+r>u?C=v-r:f<c&&(C=y),null!==C&&(this.eBodyViewport.scrollTop=C,this.rowRenderer.redrawAfterScroll()),i=s!==n.rowTop||a!==n.rowHeight}while(i);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var o=this.columnModel.getGridColumn(e);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var i=this.getPositionedHorizontalScroll(o,t);null!==i&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(i),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var o=this.isColumnOutsideViewport(e),i=o.columnBeforeStart,r=o.columnAfterEnd,n=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?i:r)||n,u=a?r:i;"auto"!==t&&(l="start"===t,u="end"===t);var c="middle"===t;if(l||u||c){var p=this.getColumnBounds(e),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),o=t.start,i=t.end,r=this.getColumnBounds(e),n=r.colLeft,s=r.colRight,a=this.enableRtl;return{columnBeforeStart:a?o>s:i<s,columnAfterEnd:a?i<n:o>n}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),i=e.getActualWidth(),r=e.getLeft(),n=t?-1:1,s=t?o-r:r;return{colLeft:s,colMiddle:s+i/2*n,colRight:s+i*n}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},Oa([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Oa([W("animationFrameService")],t.prototype,"animationFrameService",void 0),Oa([W("paginationProxy")],t.prototype,"paginationProxy",void 0),Oa([W("rowModel")],t.prototype,"rowModel",void 0),Oa([W("rowContainerHeightService")],t.prototype,"heightScaler",void 0),Oa([W("rowRenderer")],t.prototype,"rowRenderer",void 0),Oa([W("columnModel")],t.prototype,"columnModel",void 0),Oa([k],t.prototype,"postConstruct",null),t}(Fe),Da=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var o=t||this.shouldSkipVerticalScroll();if(!o||!this.shouldSkipHorizontalScroll()){var i=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=e.clientX<i.left+r,this.tickRight=e.clientX>i.right-r,this.tickUp=e.clientY<i.top+r&&!o,this.tickDown=e.clientY>i.bottom-r&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-e),this.tickRight&&this.setHorizontalPosition(o+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Pa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),_a=function(){return _a=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},_a.apply(this,arguments)},Aa=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Na=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Ma=function(e){function t(t){var o=e.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=t,o}return Pa(t,e),t.prototype.postConstruct=function(){var e=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_MODEL_UPDATED,function(){t()}),t(),this.ctrlsService.whenReady(function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Da({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!i(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===exports.DragSourceType.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsService.is("rowDragManaged")&&this.shouldPreventRowMove()?ls.ICON_NOT_ALLOWED:ls.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var o=this.gridOptionsService.is("rowDragMultiRow"),i=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Na(arguments[t]));return e}(this.selectionService.getSelectedNodes()).sort(function(e,o){return null==e.rowIndex||null==o.rowIndex?0:t.getRowIndexNumber(e)-t.getRowIndexNumber(o)}),r=e.dragItem.rowNode;return o&&-1!==i.indexOf(r)?(this.isMultiRowDrag=!0,i):(this.isMultiRowDrag=!1,[r])},t.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(He.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach(function(e){e.setDragging(!0)}),this.onEnterOrDragging(e)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsService.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),o=e.dropZoneTarget;return!t.contains(o)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(He.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsService.is("rowDragManaged")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,t){var o=this.isFromThisGrid(e),i=this.gridOptionsService.is("rowDragManaged"),r=e.dragItem.rowNodes;i&&this.shouldPreventRowMove()||(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!o?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(r[0],t):this.moveRows(r,t))},t.prototype.getRowIndexNumber=function(e){return parseInt(ae(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var t=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),i=o&&o.highlighted===exports.RowHighlightPosition.Below,r=this.mouseEventService.getNormalisedPosition(e).y,n=e.dragItem.rowNodes,s=i?1:0;if(this.isFromThisGrid(e))n.forEach(function(e){e.rowTop<r&&(s-=1)}),this.moveRows(n,r,s);else{var a=this.gridOptionsService.getRowIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(r)+1;this.clientSideRowModel.getHighlightPosition(r)===exports.RowHighlightPosition.Above&&l--,this.clientSideRowModel.updateRowData({add:n.map(function(e){return e.data}).filter(function(e){return!t.clientSideRowModel.getRowNode(a?a({data:e,level:0}):e.id)}),addIndex:l})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,t,o){void 0===o&&(o=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,o)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},t.prototype.addRowDropZone=function(e){var t=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(o){e.onDragEnter(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_ENTER,o))}),e.onDragLeave&&(o.onDragLeave=function(o){e.onDragLeave(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_LEAVE,o))}),e.onDragging&&(o.onDragging=function(o){e.onDragging(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_MOVE,o))}),e.onDragStop&&(o.onDragStop=function(o){e.onDragStop(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(_a({isInterestedIn:function(e){return e===exports.DragSourceType.RowDrag},getIconName:function(){return ls.ICON_MOVE},external:!0},o))}else b(function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")},"add-drop-zone-empty-target")},t.prototype.getRowDropZone=function(e){var t=this,o=this.getContainer.bind(this),i=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),n=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:o,onDragEnter:e.onDragEnter?function(o){i(o),e.onDragEnter(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_ENTER,o))}:i,onDragLeave:e.onDragLeave?function(o){r(o),e.onDragLeave(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_LEAVE,o))}:r,onDragging:e.onDragging?function(o){n(o),e.onDragging(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_MOVE,o))}:n,onDragStop:e.onDragStop?function(o){s(o),e.onDragStop(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:i,onDragLeave:r,onDragging:n,onDragStop:s,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,t){var o,i,r=this.mouseEventService.getNormalisedPosition(t).y,n=-1;switch(r>this.paginationProxy.getCurrentPageHeight()||(n=this.rowModel.getRowIndexAtPixel(r),o=this.rowModel.getRow(n)),t.vDirection){case exports.VerticalDirection.Down:i="down";break;case exports.VerticalDirection.Up:i="up";break;default:i=null}return{type:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:n,overNode:o,y:r,vDirection:i}},t.prototype.dispatchGridEvent=function(e,t){var o=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(o)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(He.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(He.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsService.is("rowDragManaged")||!this.gridOptionsService.is("suppressMoveWhenRowDragging")&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(e){e.setDragging(!1)})},Aa([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Aa([W("rowModel")],t.prototype,"rowModel",void 0),Aa([W("paginationProxy")],t.prototype,"paginationProxy",void 0),Aa([W("columnModel")],t.prototype,"columnModel",void 0),Aa([W("focusService")],t.prototype,"focusService",void 0),Aa([W("sortController")],t.prototype,"sortController",void 0),Aa([W("filterManager")],t.prototype,"filterManager",void 0),Aa([W("selectionService")],t.prototype,"selectionService",void 0),Aa([W("mouseEventService")],t.prototype,"mouseEventService",void 0),Aa([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Aa([U("rangeService")],t.prototype,"rangeService",void 0),Aa([k],t.prototype,"postConstruct",null),t}(Fe),Fa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),La=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
255
+ /**
256
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
257
+ * @version v29.3.5
258
+ * @link https://www.ag-grid.com/
259
+ * @license MIT
260
+ */exports.RowAnimationCssClasses=void 0,(Sa=exports.RowAnimationCssClasses||(exports.RowAnimationCssClasses={})).ANIMATION_ON="ag-row-animation",Sa.ANIMATION_OFF="ag-row-no-animation";var xa,Ia,Ga="ag-selectable",Ha="ag-force-vertical-scroll",Va=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyTopHeight=0,t}return Fa(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,t,o,i,r,n){this.comp=e,this.eGridBody=t,this.eBodyViewport=o,this.eTop=i,this.eBottom=r,this.eStickyTop=n,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new Ea(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Ta(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,r,n]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,He.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var t=this;e.forEach(function(e){t.addManagedListener(e,"focusin",function(t){var o=zo(t.target,"ag-root",e);e.classList.toggle("ag-has-focus",!o)}),t.addManagedListener(e,"focusout",function(t){var o=t.target,i=t.relatedTarget,r=e.contains(i),n=zo(i,"ag-root",e);zo(o,"ag-root",e)||r&&!n||e.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?Ga:null;this.comp.setCellSelectableCss(t,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e);var t="calc(100% + "+((e&&this.gridOptionsService.getScrollbarWidth()||0)+(Oo()?16:0))+"px)";this.comp.setBodyViewportWidth(t)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var t=function(t){var i=t.relatedTarget;if(null!==Co(i)){var r=o.some(function(e){return e.contains(i)})&&e.mouseEventService.isElementInThisGrid(i);if(!r){var n=e.popupService;r=n.getActivePopups().some(function(e){return e.contains(i)})||n.isElementWithinCustomPopup(i)}r||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach(function(o){return e.addManagedListener(o,"focusout",t)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=-1===t?-1:e+t;this.comp.setRowCount(o)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.is("alwaysShowVerticalScroll"),t=e?Ha:null,o=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||o&&pi(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),o=t?exports.RowAnimationCssClasses.ANIMATION_ON:exports.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(o,t)};t(),this.addManagedListener(this.eventService,He.EVENT_HEIGHT_SCALE_CHANGED,t),this.addManagedPropertyListener("animateRows",t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,t=this.eBodyViewport.querySelector(".ag-full-width-container"),o=this.eBodyViewport.querySelector(".ag-center-cols-viewport");t&&o&&this.addManagedListener(t,"wheel",function(t){return e.onFullWidthContainerWheel(t,o)})},t.prototype.onFullWidthContainerWheel=function(e,t){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||(e.preventDefault(),t.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,t,o){if(e||o){if(this.gridOptionsService.is("preventDefaultOnContextMenu"))(e||o).preventDefault();var i=(e||t).target;if(i===this.eBodyViewport||i===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;e?this.contextMenuFactory.onContextMenu(e,null,null,null,null,this.eGridBody):o&&this.contextMenuFactory.onContextMenu(null,o,null,null,null,this.eGridBody)}}},t.prototype.mockContextMenuForIPad=function(e){if(yo()){var t=new _n(this.eBodyViewport);this.addManagedListener(t,_n.EVENT_LONG_TAP,function(t){e(void 0,t.touchStart,t.touchEvent)}),this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Ma(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var o=e.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(o),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var t=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+t+"px)")}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight(),o=0;e>0&&(o+=e+1),t>0&&(o+=t+1),this.comp.setStickyTopTop(o+"px")},t.prototype.sizeColumnsToFit=function(e,t){var o=this,i=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,r=qo(this.eGridBody)-i;r>0?this.columnModel.sizeColumnsToFit(r,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout(function(){o.sizeColumnsToFit(e,100)},0):100===t?window.setTimeout(function(){o.sizeColumnsToFit(e,500)},100):500===t?window.setTimeout(function(){o.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},La([W("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),La([W("ctrlsService")],t.prototype,"ctrlsService",void 0),La([W("columnModel")],t.prototype,"columnModel",void 0),La([W("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),La([U("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),La([W("headerNavigationService")],t.prototype,"headerNavigationService",void 0),La([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),La([W("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),La([W("rowRenderer")],t.prototype,"rowRenderer",void 0),La([W("popupService")],t.prototype,"popupService",void 0),La([W("mouseEventService")],t.prototype,"mouseEventService",void 0),La([W("rowModel")],t.prototype,"rowModel",void 0),t}(Fe);
261
+ /**
262
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
263
+ * @version v29.3.5
264
+ * @link https://www.ag-grid.com/
265
+ * @license MIT
266
+ */
267
+ exports.SelectionHandleType=void 0,(xa=exports.SelectionHandleType||(exports.SelectionHandleType={}))[xa.FILL=0]="FILL",xa[xa.RANGE=1]="RANGE",exports.CellRangeType=void 0,(Ia=exports.CellRangeType||(exports.CellRangeType={}))[Ia.VALUE=0]="VALUE",Ia[Ia.DIMENSION=1]="DIMENSION";
268
+ /**
269
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
270
+ * @version v29.3.5
271
+ * @link https://www.ag-grid.com/
272
+ * @license MIT
273
+ */
274
+ var ka,Ba,ja="ag-cell-range-selected",Wa=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(ja,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(ja+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(ja+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(ja+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(ja+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),eo(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),o=!t&&e.top,i=!t&&e.right,r=!t&&e.bottom,n=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",n)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var t=e.getCellRanges();return t.length>0&&t.every(function(e){return fe([exports.CellRangeType.DIMENSION,exports.CellRangeType.VALUE],e.type)})},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,o=this,i=this.beans.gridOptionsService.is("enableRtl"),r=!1,n=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;i?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter(function(e){return c.isCellInSpecificRange(o.cellCtrl.getCellPosition(),e)});e||(a=!0),t||(n=!0);for(var h=0;h<d.length&&!(r&&n&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),v=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(v,this.cellCtrl.getCellPosition())&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!n&&t&&f.columns.indexOf(t)<0&&(n=!0)}return{top:r,right:n,bottom:s,left:a}},e.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},e.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,t=e.gridOptionsService,o=e.rangeService,i=o.getCellRanges(),r=i.length;if(this.rangeCount<1||r<1)return!1;var n=ae(i),s=this.cellCtrl.getCellPosition(),a=t.is("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),l=t.is("enableRangeHandle"),u=1===r&&!this.cellCtrl.isEditing()&&(a||l);if(this.hasChartRange){var c=i[0].type===exports.CellRangeType.DIMENSION&&o.isCellInSpecificRange(s,i[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",c),u=n.type===exports.CellRangeType.VALUE}return u&&null!=n.endRow&&o.isContiguousRange(n)&&o.isBottomRightCell(n,s)},e.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsService,i=ae(e.rangeService.getCellRanges()).type,r=t.is("enableFillHandle")&&o(i)?exports.SelectionHandleType.FILL:exports.SelectionHandleType.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)},e.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},e}(),Ua=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),za=function(e){function t(t,o){var i=e.call(this)||this;return i.cellCtrl=t,i.beans=o,i.column=t.getColumn(),i.rowNode=t.getRowNode(),i.setupColSpan(),i.setupRowSpan(),i}return Ua(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();le(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce(function(e,t){return e+t.getActualWidth()},0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var i=this.column,r=this.column.getPinned(),n=0;i&&n<e&&(t.push(i),(i=this.beans.columnModel.getDisplayedColAfter(i))&&!o(i))&&r===i.getPinned();n++);return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ae(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||"left"===this.column.getPinned())return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===this.column.getPinned()?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsService.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Ka=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ya=function(e){function t(t,o){var i=e.call(this)||this;return i.staticClasses=[],i.cellCtrl=t,i.beans=o,i.column=t.getColumn(),i.rowNode=t.getRowNode(),i}return Ka(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.beans.stylingService.processClassRules(t.cellClassRules,o,function(t){return e.cellComp.addOrRemoveCssClass(t,!0)},function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if("function"==typeof e.cellStyle){var o={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};t=(0,e.cellStyle)(o)}else t=e.cellStyle;t&&this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.staticClasses.length&&this.staticClasses.forEach(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,o),this.staticClasses.length&&this.staticClasses.forEach(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)})},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),qa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qa=function(e){function t(t,o){var i=e.call(this)||this;return i.ctrl=t,i.beans=o,i}return qa(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.is("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new qi(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,o=e.getColDef?e.getColDef():void 0,i=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:o,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:i,data:i?i.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Xa=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ja=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.isMasterDetail(),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},Xa([W("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Xa([W("paginationProxy")],e.prototype,"paginationProxy",void 0),Xa([W("context")],e.prototype,"context",void 0),Xa([W("columnApi")],e.prototype,"columnApi",void 0),Xa([W("gridApi")],e.prototype,"gridApi",void 0),Xa([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Xa([W("expressionService")],e.prototype,"expressionService",void 0),Xa([W("environment")],e.prototype,"environment",void 0),Xa([W("rowRenderer")],e.prototype,"rowRenderer",void 0),Xa([W("templateService")],e.prototype,"templateService",void 0),Xa([W("valueService")],e.prototype,"valueService",void 0),Xa([W("eventService")],e.prototype,"eventService",void 0),Xa([W("columnModel")],e.prototype,"columnModel",void 0),Xa([W("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Xa([W("navigationService")],e.prototype,"navigationService",void 0),Xa([W("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Xa([U("rangeService")],e.prototype,"rangeService",void 0),Xa([W("focusService")],e.prototype,"focusService",void 0),Xa([U("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Xa([W("popupService")],e.prototype,"popupService",void 0),Xa([W("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Xa([W("stylingService")],e.prototype,"stylingService",void 0),Xa([W("columnHoverService")],e.prototype,"columnHoverService",void 0),Xa([W("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Xa([W("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Xa([W("animationFrameService")],e.prototype,"animationFrameService",void 0),Xa([W("dragService")],e.prototype,"dragService",void 0),Xa([W("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Xa([W("sortController")],e.prototype,"sortController",void 0),Xa([W("filterManager")],e.prototype,"filterManager",void 0),Xa([W("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Xa([W("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Xa([W("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Xa([W("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Xa([W("selectionService")],e.prototype,"selectionService",void 0),Xa([U("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Xa([W("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Xa([W("rowModel")],e.prototype,"rowModel",void 0),Xa([W("ctrlsService")],e.prototype,"ctrlsService",void 0),Xa([W("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),Xa([W("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Xa([W("valueCache")],e.prototype,"valueCache",void 0),Xa([W("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),Xa([W("localeService")],e.prototype,"localeService",void 0),Xa([k],e.prototype,"postConstruct",null),e=Xa([j("beans")],e)}(),Za=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),$a=function(e){function t(t,o,i){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=o,r.column=i,r}return Za(t,e),t.prototype.onMouseEvent=function(e,t){if(!Ee(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,o=t.eventService,i=t.rangeService,r=t.gridOptionsService,n=e.ctrlKey||e.metaKey;i&&n&&i.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&i.intersectLastRange(!0);var s=this.cellCtrl.createEvent(e,He.EVENT_CELL_CLICKED);o.dispatchEvent(s);var a=this.column.getColDef();a.onCellClicked&&window.setTimeout(function(){return a.onCellClicked(s)},0),(r.is("singleClickEdit")||a.singleClickEdit)&&!r.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!yo()||be("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),o=this.cellCtrl.createEvent(e,He.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&window.setTimeout(function(){return t.onCellDoubleClicked(o)},0),!this.beans.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,o=e.metaKey,i=e.shiftKey,r=e.target,n=this.beans,s=n.eventService,a=n.rangeService;if(!this.isRightClickInExistingRange(e)){var l=a&&0!=a.getCellRanges().length;if(!i||!l){var u=po()&&!this.cellCtrl.isEditing()&&!Bo(r);this.cellCtrl.focusCell(u)}if(i&&l&&e.preventDefault(),!this.containsWidget(r)){if(a){var c=this.cellCtrl.getCellPosition();if(i)a.extendLatestRangeToCell(c);else{var p=t||o;a.setRangeToCell(c,p)}}s.dispatchEvent(this.cellCtrl.createEvent(e,He.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return zo(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,He.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,He.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),o=t.contains(e.target),i=t.contains(e.relatedTarget);return o&&i},t.prototype.destroy=function(){},t}(Ja),el=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),tl=function(e){function t(t,o,i,r,n){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=o,s.rowNode=r,s.rowCtrl=n,s}return el(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case Ti.ENTER:this.onEnterKeyDown(e);break;case Ti.F2:this.onF2KeyDown(e);break;case Ti.ESCAPE:this.onEscapeKeyDown(e);break;case Ti.TAB:this.onTabKeyDown(e);break;case Ti.BACKSPACE:case Ti.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case Ti.DOWN:case Ti.UP:case Ti.RIGHT:case Ti.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,t){var o=this,i=o.cellCtrl,r=o.beans,n=o.rowNode,s=r.gridOptionsService,a=r.rangeService,l=r.eventService;i.isEditing()||(l.dispatchEvent({type:He.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Ni(e,s.is("enableCellEditingOnBackspace"))?a&&s.isEnableRangeSelection()?a.clearCellRangeCellValues():i.isCellEditable()&&n.setDataValue(i.getColumn(),null,"cellClear"):i.startRowOrCellEdit(e,void 0,t),l.dispatchEvent({type:He.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsService.is("enterMovesDown")?this.beans.navigationService.navigateToNextCell(null,Ti.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(Ti.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Ti.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):Di(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var o=this.rowNode.isSelected(),i=!o;if(i||!t.is("suppressRowDeselection")){var r=this.beans.gridOptionsService.is("groupSelectsFiltered"),n=this.rowNode.setSelectedParams({newValue:i,rangeSelect:e.shiftKey,groupSelectsFiltered:r,event:e,source:"spacePressed"});void 0===o&&0===n&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:r,event:e,source:"spacePressed"})}}e.preventDefault()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),ol=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),il=function(e){function t(t,o,i,r){var n=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return n.rowNode=t,n.column=o,n.beans=i,n.eCell=r,n}return ol(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(bi("rowDrag",this.beans.gridOptionsService,null)),this.addGuiEventListener("mousedown",function(e){e.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,o=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);o?o({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var o=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",o),e.dataTransfer.setData("text/plain",o)}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"postConstruct",null),t}($i),rl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),nl=function(){return nl=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},nl.apply(this,arguments)},sl=0,al=function(o){function i(e,t,i,r){var n=o.call(this)||this;return n.cellRangeFeature=null,n.cellPositionFeature=null,n.cellCustomStyleFeature=null,n.tooltipFeature=null,n.cellMouseListenerFeature=null,n.cellKeyboardListenerFeature=null,n.suppressRefreshCell=!1,n.onCellCompAttachedFuncs=[],n.column=e,n.rowNode=t,n.beans=i,n.rowCtrl=r,n.instanceId=e.getId()+"-"+sl++,n.createCellPosition(),n.addFeatures(),n}return rl(i,o),i.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new za(this,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.cellPositionFeature)||void 0===t||t.destroy(),e.cellPositionFeature=null}),this.cellCustomStyleFeature=new Ya(this,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.cellCustomStyleFeature)||void 0===t||t.destroy(),e.cellCustomStyleFeature=null}),this.cellMouseListenerFeature=new $a(this,this.beans,this.column),this.addDestroyFunc(function(){var t;null===(t=e.cellMouseListenerFeature)||void 0===t||t.destroy(),e.cellMouseListenerFeature=null}),this.cellKeyboardListenerFeature=new tl(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc(function(){var t;null===(t=e.cellKeyboardListenerFeature)||void 0===t||t.destroy(),e.cellKeyboardListenerFeature=null}),this.beans.rangeService&&this.beans.gridOptionsService.isEnableRangeSelection()&&(this.cellRangeFeature=new Wa(this.beans,this),this.addDestroyFunc(function(){var t;null===(t=e.cellRangeFeature)||void 0===t||t.destroy(),e.cellRangeFeature=null})),this.column.isTooltipEnabled()&&this.addTooltipFeature()},i.prototype.addTooltipFeature=function(){var e=this,o={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var o=e.column.getColDef(),i=e.rowNode.data;if(o.tooltipField&&t(i))return C(i,o.tooltipField,e.column.isTooltipFieldContainsDots());var r=o.tooltipValueGetter;return r?r({location:"cell",api:e.beans.gridOptionsService.api,columnApi:e.beans.gridOptionsService.columnApi,context:e.beans.gridOptionsService.context,colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Qa(o,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.tooltipFeature)||void 0===t||t.destroy(),e.tooltipFeature=null})},i.prototype.setComp=function(e,t,o,i,r){var n,s,a,l;this.cellComp=e,this.eGui=t,this.printLayout=i,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),o&&this.setupAutoHeight(o),this.setAriaColIndex(),this.beans.gridOptionsService.is("suppressCellFocus")||this.cellComp.setTabIndex(-1);var u=ct(this.column.getId());this.cellComp.setColId(u),this.cellComp.setRole("gridcell"),null===(n=this.cellPositionFeature)||void 0===n||n.setComp(t),null===(s=this.cellCustomStyleFeature)||void 0===s||s.setComp(e),null===(a=this.tooltipFeature)||void 0===a||a.setComp(e),null===(l=this.cellKeyboardListenerFeature)||void 0===l||l.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),r&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(function(e){return e()}),this.onCellCompAttachedFuncs=[])},i.prototype.setupAutoHeight=function(e){var t=this;if(this.column.isAutoHeight()){var o=e.parentElement,i=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,r=function(n){if(!t.editing&&t.isAlive()){var s=Ko(o),a=s.paddingTop+s.paddingBottom+s.borderBottomWidth+s.borderTopWidth,l=e.offsetHeight+a;if(n<5){var u=t.beans.gridOptionsService.getDocument();if(!u||!u.contains(e)||0==l)return void t.beans.frameworkOverrides.setTimeout(function(){return r(n+1)},0)}var c=Math.max(l,i);t.rowNode.setRowAutoHeight(c,t.column)}},n=function(){return r(0)};n();var s=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(function(){s(),t.rowNode.setRowAutoHeight(void 0,t.column)})}},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,o=this.createCellRendererParams(),i=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),o);this.cellComp.setRenderDetails(i,t,e),this.refreshHandle()},i.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},i.prototype.isForceWrapper=function(){return this.beans.gridOptionsService.is("enableCellTextSelection")||this.column.isAutoHeight()},i.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned)&&("function"==typeof e||!0===e)},i.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),i=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||o||i},i.prototype.startEditing=function(e,t,o,i){var r=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),void 0===i&&(i=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var n=this.createCellEditorParams(e,t,o),s=this.column.getColDef(),a=this.beans.userComponentFactory.getCellEditorDetails(s,n),l=null!=(null==a?void 0:a.popupFromSelector)?a.popupFromSelector:!!s.cellEditorPopup,u=null!=(null==a?void 0:a.popupPositionFromSelector)?a.popupPositionFromSelector:s.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(a,l,u);var c=this.createEvent(i,He.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(c)}else this.onCellCompAttachedFuncs.push(function(){r.startEditing(e,t,o,i)})},i.prototype.setEditing=function(e){this.editing!==e&&(this.editing=e,this.refreshHandle())},i.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),"fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},i.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},i.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var o=this.cellComp.getCellEditor();return o?o.isCancelAfterEnd&&o.isCancelAfterEnd()?t:{newValue:o.getValue(),newValueExists:!0}:t},i.prototype.saveNewValue=function(e,t){if(t===e)return!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,t,"edit");return this.suppressRefreshCell=!1,o},i.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),o=t.newValue,i=t.newValueExists,r=this.rowNode.getValueFromValueService(this.column),n=!1;return i&&(n=this.saveNewValue(r,o)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,o,!e&&!!n),n},i.prototype.dispatchEditingStoppedEvent=function(e,t,o){var i=nl(nl({},this.createEvent(null,He.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t,valueChanged:o});this.beans.eventService.dispatchEvent(i)},i.prototype.createCellEditorParams=function(e,t,o){return{value:this.rowNode.getValueFromValueService(this.column),eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsService.api,cellStartedEdit:o,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},i.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:function(){return e.rowNode.getValueFromValueService(e.column)},setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,o,i,r){return e.registerRowDragger(t,o,r)}}},i.prototype.parseValue=function(e){var o=this.column.getColDef(),i={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:o,column:this.column,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context},r=o.valueParser;return t(r)?"function"==typeof r?r(i):this.beans.expressionService.evaluate(r,i):e},i.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},i.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},i.prototype.onCellChanged=function(e){this.cellComp&&(e.column===this.column&&this.refreshCell({}))},i.prototype.refreshCell=function(e){var t,o,i;if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var r=this.column.getColDef(),n=null!=e&&!!e.newData,s=null!=e&&!!e.suppressFlash||!!r.suppressCellFlash,a=null==r.field&&null==r.valueGetter&&null==r.showRowGroup,l=e&&e.forceRefresh||a||n,u=this.updateAndFormatValue();if(l||u){this.showValue(n);var c=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!s&&!c&&(this.beans.gridOptionsService.is("enableCellChangeFlash")||r.enableCellChangeFlash)&&this.flashCell(),null===(t=this.cellCustomStyleFeature)||void 0===t||t.applyUserStyles(),null===(o=this.cellCustomStyleFeature)||void 0===o||o.applyClassesFromColDef()}this.refreshToolTip(),null===(i=this.cellCustomStyleFeature)||void 0===i||i.applyCellClassRules()}},i.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},i.prototype.navigateAfterEdit=function(){"fullRow"===this.beans.gridOptionsService.get("editType")||this.beans.gridOptionsService.is("enterMovesDownAfterEdit")&&this.beans.navigationService.navigateToNextCell(null,Ti.DOWN,this.getCellPosition(),!1)},i.prototype.flashCell=function(e){var t=e&&e.flashDelay,o=e&&e.fadeDelay;this.animateCell("data-changed",t,o)},i.prototype.animateCell=function(e,o,i){var r,n,s=this,a="ag-cell-"+e,l="ag-cell-"+e+"-animation",u=this.beans.gridOptionsService;o||(o=null!==(r=u.getNum("cellFlashDelay"))&&void 0!==r?r:500),t(i)||(i=null!==(n=u.getNum("cellFadeDelay"))&&void 0!==n?n:1e3),this.cellComp.addOrRemoveCssClass(a,!0),this.cellComp.addOrRemoveCssClass(l,!1),window.setTimeout(function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(a,!1),s.cellComp.addOrRemoveCssClass(l,!0),s.eGui.style.transition="background-color "+i+"ms",window.setTimeout(function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(l,!1),s.eGui.style.transition="")},i))},o)},i.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell("highlight")}},i.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},i.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},i.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},i.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},i.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,o=this.valueFormatted;return this.value=this.rowNode.getValueFromValueService(this.column),this.valueFormatted=this.callValueFormatter(this.value),!!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=o)},i.prototype.valuesAreEqual=function(e,t){var o=this.column.getColDef();return o.equals?o.equals(e,t):e===t},i.prototype.getComp=function(){return this.cellComp},i.prototype.getValue=function(){return this.value},i.prototype.getValueFormatted=function(){return this.valueFormatted},i.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsService.setDomData(t,i.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsService.setDomData(t,i.DOM_DATA_KEY_CELL_CTRL,null)})},i.prototype.createEvent=function(e,t){return{type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},i.prototype.onKeyPress=function(e){var t;null===(t=this.cellKeyboardListenerFeature)||void 0===t||t.onKeyPress(e)},i.prototype.onKeyDown=function(e){var t;null===(t=this.cellKeyboardListenerFeature)||void 0===t||t.onKeyDown(e)},i.prototype.onMouseEvent=function(e,t){var o;null===(o=this.cellMouseListenerFeature)||void 0===o||o.onMouseEvent(e,t)},i.prototype.getGui=function(){return this.eGui},i.prototype.refreshToolTip=function(){var e;null===(e=this.tooltipFeature)||void 0===e||e.refreshToolTip()},i.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},i.prototype.onLeftChanged=function(){var e;this.cellComp&&(null===(e=this.cellPositionFeature)||void 0===e||e.onLeftChanged())},i.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},i.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);Xt(this.getGui(),e)},i.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},i.prototype.onWidthChanged=function(){var e;return null===(e=this.cellPositionFeature)||void 0===e?void 0:e.onWidthChanged()},i.prototype.getColumn=function(){return this.column},i.prototype.getRowNode=function(){return this.rowNode},i.prototype.getBeans=function(){return this.beans},i.prototype.isPrintLayout=function(){return this.printLayout},i.prototype.appendChild=function(e){this.eGui.appendChild(e)},i.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},i.prototype.getCellPosition=function(){return this.cellPosition},i.prototype.isEditing=function(){return this.editing},i.prototype.startRowOrCellEdit=function(e,t,o){void 0===o&&(o=null),this.cellComp&&("fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,o))},i.prototype.getRowCtrl=function(){return this.rowCtrl},i.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},i.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},i.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},i.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},i.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})},i.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},i.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}},i.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}},i.prototype.onCellFocused=function(e){if(this.cellComp&&!this.beans.gridOptionsService.is("suppressCellFocus")){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus)this.cellComp.getFocusableElement().focus({preventScroll:!!e.preventScrollOnBrowserFocus});var o="fullRow"===this.beans.gridOptionsService.get("editType");t||o||!this.editing||this.stopRowOrCellEdit()}},i.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:e(this.rowNode.rowPinned),column:this.column}},i.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass("ag-cell-not-inline-editing",!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)},i.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.is("columnHoverHighlight")){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},i.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},i.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)},i.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),o=this.createEvent(e,He.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout(function(){return t.onCellContextMenu(o)},0)},i.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},i.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},i.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],o.prototype.destroy.call(this)},i.prototype.createSelectionCheckbox=function(){var e=new is;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},i.prototype.createDndSource=function(){var e=new il(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},i.prototype.registerRowDragger=function(e,t,o){var i=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var r=this.createRowDragComp(e,t,o);r&&(this.customRowDragComp=r,this.addDestroyFunc(function(){i.beans.context.destroyBean(r),i.customRowDragComp=null}))}},i.prototype.createRowDragComp=function(e,t,o){var i=this,r=this.beans.gridOptionsService.is("pagination"),n=this.beans.gridOptionsService.is("rowDragManaged"),s=this.beans.gridOptionsService.isRowModelType("clientSide");if(n){if(!s)return void b(function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")},"CellComp.addRowDragging");if(r)return void b(function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")},"CellComp.addRowDragging")}var a=new ps(function(){return i.value},this.rowNode,this.column,e,t,o);return this.beans.context.createBean(a),a},i.DOM_DATA_KEY_CELL_CTRL="cellCtrl",i}(Fe),ll=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ul=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s};(Ba=ka||(ka={})).Normal="Normal",Ba.FullWidth="FullWidth",Ba.FullWidthLoading="FullWidthLoading",Ba.FullWidthGroup="FullWidthGroup",Ba.FullWidthDetail="FullWidthDetail";var cl,pl,dl=0,hl=function(o){function i(e,t,i,r,n){var s=o.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.businessKeySanitised=null,s.beans=t,s.rowNode=e,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=r,s.printLayout=n,s.instanceId=e.id+"-"+dl++,s.setAnimateFlags(i),s.initRowBusinessKey(),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 ll(i,o),i.prototype.initRowBusinessKey=function(){var e=this.beans.gridOptionsService.get("getBusinessKeyForNode");if("function"==typeof e){var t=e(this.rowNode);this.businessKeySanitised=ct(t)}},i.prototype.isSticky=function(){return this.rowNode.sticky},i.prototype.getBeans=function(){return this.beans},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.setComp=function(e,t,o){var i={rowComp:e,element:t,containerType:o};this.allRowGuis.push(i),o===exports.RowContainerType.LEFT?this.leftGui=i:o===exports.RowContainerType.RIGHT?this.rightGui=i:o===exports.RowContainerType.FULL_WIDTH?this.fullWidthGui=i:this.centerGui=i,this.initialiseRowComp(i),"FullWidthLoading"===this.rowType||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},i.prototype.unsetComp=function(e){this.allRowGuis=this.allRowGuis.filter(function(t){return t.containerType!==e}),e===exports.RowContainerType.LEFT?this.leftGui=void 0:e===exports.RowContainerType.RIGHT?this.rightGui=void 0:e===exports.RowContainerType.FULL_WIDTH&&(this.fullWidthGui=void 0)},i.prototype.isCacheable=function(){return this.rowType===ka.FullWidthDetail&&this.beans.gridOptionsService.is("keepDetailRows")},i.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach(function(e){return e.element.style.display=t})},i.prototype.initialiseRowComp=function(e){var t=this,o=this.beans.gridOptionsService;this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(e),o.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);var r=e.rowComp;r.setRole("row"),this.getInitialRowClasses(e.containerType).forEach(function(e){return r.addOrRemoveCssClass(e,!0)}),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&jt(e.element,1==this.rowNode.expanded);var n=ct(this.rowNode.id);null!=n&&r.setRowId(n),null!=this.businessKeySanitised&&r.setRowBusinessKey(this.businessKeySanitised),this.isFullWidth()&&!this.beans.gridOptionsService.is("suppressCellFocus")&&r.setTabIndex(-1),o.setDomData(e.element,i.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc(function(){return o.setDomData(e.element,i.DOM_DATA_KEY_ROW_CTRL,null)}),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,e.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e.element),this.isFullWidth()&&this.setupFullWidth(e),o.is("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask(function(){t.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()},i.prototype.executeSlideAndFadeAnimations=function(e){var t=this,o=e.containerType;this.slideInAnimation[o]&&(A(function(){t.onTopChanged()}),this.slideInAnimation[o]=!1),this.fadeInAnimation[o]&&(A(function(){e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[o]=!1)},i.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsService.isEnableRangeSelection())b(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");else{var t=this.beans.localeService.getLocaleTextFunc(),o=new ps(function(){return"1 "+t("rowDragRow","row")},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(o,this.beans.context)}},i.prototype.setupFullWidth=function(e){var t=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,t);if(this.rowType!=ka.FullWidthDetail||Z.assertRegistered(exports.ModuleNames.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)")){var i;switch(this.rowType){case ka.FullWidthDetail:i=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case ka.FullWidthGroup:i=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case ka.FullWidthLoading:i=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:i=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}e.rowComp.showFullWidth(i)}},i.prototype.isPrintLayout=function(){return this.printLayout},i.prototype.getFullWidthCellRenderer=function(){var e,t;return null===(t=null===(e=this.fullWidthGui)||void 0===e?void 0:e.rowComp)||void 0===t?void 0:t.getFullWidthCellRenderer()},i.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},i.prototype.executeProcessRowPostCreateFunc=function(){var e,t=this.beans.gridOptionsService.getCallback("processRowPostCreate");t&&this.areAllContainersReady()&&t({eRow:null===(e=this.centerGui)||void 0===e?void 0:e.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},i.prototype.areAllContainersReady=function(){var e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),t=!!this.centerGui,o=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&t&&o},i.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),o=this.beans.doingMasterDetail&&this.rowNode.detail,i=this.beans.columnModel.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsService.isGroupUseEntireRow(i);this.rowType=e?ka.FullWidthLoading:o?ka.FullWidthDetail:t?ka.FullWidth:r?ka.FullWidthGroup:ka.Normal},i.prototype.updateColumnLists=function(e,t){var o=this;(void 0===e&&(e=!1),void 0===t&&(t=!1),this.isFullWidth())||(e||this.beans.gridOptionsService.is("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl(t):this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){o.active&&o.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},i.prototype.createCellCtrls=function(e,t,o){var i=this;void 0===o&&(o=null);var r={list:[],map:{}},n=function(e,t){r.list.push(t),r.map[e]=t};return t.forEach(function(t){var o=t.getInstanceId(),r=e.map[o];r||(r=new al(t,i.rowNode,i.beans,i)),n(o,r)}),e.list.forEach(function(e){null!=r.map[e.getColumn().getInstanceId()]||(!i.isCellEligibleToBeRemoved(e,o)?n(e.getColumn().getInstanceId(),e):e.destroy())}),r},i.prototype.updateColumnListsImpl=function(e){var t=this;void 0===e&&(e=!1),this.updateColumnListsPending=!1;var o=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var i=o.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i);var r=o.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");var n=o.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,"right")}this.allRowGuis.forEach(function(o){var i=o.containerType===exports.RowContainerType.LEFT?t.leftCellCtrls:o.containerType===exports.RowContainerType.RIGHT?t.rightCellCtrls:t.centerCellCtrls;o.rowComp.setCellCtrls(i.list,e)})},i.prototype.isCellEligibleToBeRemoved=function(e,t){var o=!0;if(e.getColumn().getPinned()!=t)return o;var i=e.isEditing(),r=this.beans.focusService.isCellFocused(e.getCellPosition());if(i||r){var n=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(n)>=0)&&o}return o},i.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var o=t(this.rowNode.oldRowTop),i=this.beans.columnModel.isPinningLeft(),r=this.beans.columnModel.isPinningRight();o?(this.slideInAnimation.center=!0,this.slideInAnimation.left=i,this.slideInAnimation.right=r):(this.fadeInAnimation.center=!0,this.fadeInAnimation.left=i,this.fadeInAnimation.right=r)}},i.prototype.isEditing=function(){return this.editingRow},i.prototype.stopRowEditing=function(e){this.stopEditing(e)},i.prototype.isFullWidth=function(){return this.rowType!==ka.Normal},i.prototype.getRowType=function(){return this.rowType},i.prototype.refreshFullWidth=function(){var e=this,t=function(t,o){if(!t)return!0;var i=t.rowComp.getFullWidthCellRenderer();if(!i)return!1;if(!i.refresh)return!1;var r=e.createFullWidthParams(t.element,o);return i.refresh(r)},o=t(this.fullWidthGui,null),i=t(this.centerGui,null),r=t(this.leftGui,"left"),n=t(this.rightGui,"right");return o&&i&&r&&n},i.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,$n.EVENT_HEIGHT_CHANGED,function(){return e.onRowHeightChanged()}),this.addManagedListener(this.rowNode,$n.EVENT_ROW_SELECTED,function(){return e.onRowSelected()}),this.addManagedListener(this.rowNode,$n.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,$n.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,He.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,He.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,He.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,He.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(t,He.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(t,He.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,He.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,He.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},i.prototype.onColumnMoved=function(){this.updateColumnLists()},i.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,$n.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,$n.EVENT_CELL_CHANGED,function(t){e.getAllCellCtrls().forEach(function(e){return e.onCellChanged(t)})})},i.prototype.onRowNodeDataChanged=function(e){this.rowNode.detailNode&&this.beans.rowRenderer.refreshFullWidthRow(this.rowNode.detailNode),this.isFullWidth()?this.beans.rowRenderer.refreshFullWidthRow(this.rowNode):(this.getAllCellCtrls().forEach(function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss())},i.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},i.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},i.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(t){var o=e===exports.RowHighlightPosition.Above,i=e===exports.RowHighlightPosition.Below;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",i)})},i.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},i.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},i.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",e),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),jt(o.element,e&&t)})},i.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},i.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},i.prototype.getRowPosition=function(){return{rowPinned:e(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},i.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find(function(t){return t.element.contains(e.target)});if((t?t.element:null)===e.target){var o=this.rowNode,i=this.beans.focusService.getFocusedCell(),r={rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:i&&i.column};this.beans.navigationService.navigateToNextCell(e,e.key,r,!0),e.preventDefault()}},i.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Ee(e)){var t=this.allRowGuis.find(function(t){return t.element.contains(e.target)}),o=t?t.element:null,i=o===e.target,r=null;i||(r=this.beans.focusService.findNextFocusableElement(o,!1,e.shiftKey)),(this.isFullWidth()&&i||!r)&&this.beans.navigationService.onTabKeyDown(this,e)}},i.prototype.onFullWidthRowFocused=function(e){var t,o=this.rowNode,i=!!e&&(this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned),r=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;r&&(r.classList.toggle("ag-full-width-focus",i),i&&r.focus({preventScroll:!0}))},i.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},i.prototype.removeCellCtrl=function(e,t){var o={list:[],map:{}};return e.list.forEach(function(e){e!==t&&(o.list.push(e),o.map[e.getInstanceId()]=e)}),o},i.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},i.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,event:t}},i.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},i.prototype.onRowDblClick=function(e){if(!Ee(e)){var t=this.createRowEventWithSource(He.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},i.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=zo(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},i.prototype.onRowClick=function(e){if(!(Ee(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(He.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,i=e.shiftKey;if(!(this.beans.gridOptionsService.is("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsService.isRowSelection()||this.beans.gridOptionsService.is("suppressRowClickSelection"))){var r=this.beans.gridOptionsService.is("rowMultiSelectWithClick"),n=!this.beans.gridOptionsService.is("suppressRowDeselection"),s="rowClicked";if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1,event:e,source:s}):o?n&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:s}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!i,rangeSelect:i,event:e,source:s});else{var a=!r&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:i,event:e,source:s})}}}},i.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===ka.FullWidthDetail&&this.beans.gridOptionsService.is("detailRowAutoHeight")){var o=function(){var o=e.clientHeight;if(null!=o&&o>0){t.beans.frameworkOverrides.setTimeout(function(){t.rowNode.setRowHeight(o),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()},0)}},i=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc(i),o()}},i.prototype.createFullWidthParams=function(e,t){var o=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,i,r){return o.addFullWidthRowDragging(e,t,i,r)}}},i.prototype.addFullWidthRowDragging=function(e,t,o,i){if(void 0===o&&(o=""),this.isFullWidth()){var r=new ps(function(){return o},this.rowNode,void 0,e,t,i);this.createManagedBean(r,this.beans.context)}},i.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(o,!1)})}this.rowLevel=e},i.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},i.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},i.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},i.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)}))},i.prototype.stopEditing=function(e){var t,o;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var i=this.getAllCellCtrls(),r=this.editingRow;this.stoppingRowEdit=!0;var n=!1;try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),a=s.next();!a.done;a=s.next()){var l=a.value.stopEditing(e);r&&!e&&!n&&l&&(n=!0)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(t)throw t.error}}if(n){var u=this.createRowEvent(He.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}r&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},i.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},i.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var t=e?this.createRowEvent(He.EVENT_ROW_EDITING_STARTED):this.createRowEvent(He.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},i.prototype.startRowEditing=function(e,t,o,i){(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),void 0===i&&(i=null),this.editingRow)||this.getAllCellCtrls().reduce(function(r,n){var s=n===o;return s?n.startEditing(e,t,s,i):n.startEditing(null,null,s,i),!!r||n.isEditing()},!1)&&this.setEditingRow(!0)},i.prototype.getAllCellCtrls=function(){if(0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length)return this.centerCellCtrls.list;var e=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ul(arguments[t]));return e}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list);return e},i.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach(function(t){e.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass(t,!0)})})},i.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,function(t){e.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass(t,!0)})},function(t){e.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass(t,!1)})})},i.prototype.setStylesFromGridOptions=function(e){var t=this.processStylesFromGridOptions();this.forEachGui(e,function(e){return e.rowComp.setUserStyles(t)})},i.prototype.getPinnedForContainer=function(e){return e===exports.RowContainerType.LEFT?"left":e===exports.RowContainerType.RIGHT?"right":null},i.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},i.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsService.get("rowStyle");if(!e||"function"!=typeof e){var t,o=this.beans.gridOptionsService.getCallback("getRowStyle");if(o)t=o({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},i.prototype.onRowSelected=function(e){var t=this,o=!!this.rowNode.isSelected();this.forEachGui(e,function(e){e.rowComp.addOrRemoveCssClass("ag-row-selected",o),eo(e.element,!!o||void 0);var i=t.createAriaLabel();xt(e.element,null==i?"":i)})},i.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsService.is("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},i.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},i.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return t.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return t.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,$n.EVENT_MOUSE_ENTER,function(){t.beans.dragService.isDragging()||t.beans.gridOptionsService.is("suppressRowHoverHighlight")||(e.classList.add("ag-row-hover"),t.rowNode.setHovered(!0))}),this.addManagedListener(this.rowNode,$n.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover"),t.rowNode.setHovered(!1)}))},i.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),i)},i.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},i.prototype.forEachGui=function(e,t){(e?[e]:this.allRowGuis).forEach(t)},i.prototype.onRowHeightChanged=function(e){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),i=this.beans.gridOptionsService.isGetRowHeightFunction()?this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,r=i?Math.min(o,i)-2+"px":void 0;this.forEachGui(e,function(e){e.element.style.height=t+"px",r&&e.element.style.setProperty("--ag-line-height",r)})}},i.prototype.addEventListener=function(e,t){o.prototype.addEventListener.call(this,e,t)},i.prototype.removeEventListener=function(e,t){o.prototype.removeEventListener.call(this,e,t)},i.prototype.destroyFirstPass=function(){this.active=!1,this.beans.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var e=this.createRowEvent(He.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),o.prototype.destroy.call(this)},i.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)})},i.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach(function(e){return e.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},i.prototype.setFocusedClasses=function(e){var t=this;this.forEachGui(e,function(e){e.rowComp.addOrRemoveCssClass("ag-row-focus",t.rowFocused),e.rowComp.addOrRemoveCssClass("ag-row-no-focus",!t.rowFocused)})},i.prototype.onCellFocused=function(){this.onCellFocusChanged()},i.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},i.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},i.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},i.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},i.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},i.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},i.prototype.setRowTop=function(e){if(!this.printLayout&&t(e)){var o=this.applyPaginationOffset(e),i=(this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o))+"px";this.setRowTopStyle(i)}},i.prototype.getInitialRowTop=function(e){return this.beans.gridOptionsService.is("suppressRowTransform")?this.getInitialRowTopShared(e):void 0},i.prototype.getInitialTransform=function(e){return this.beans.gridOptionsService.is("suppressRowTransform")?void 0:"translateY("+this.getInitialRowTopShared(e)+")"},i.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var o=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,i=this.applyPaginationOffset(o);t=this.rowNode.isRowPinned()?i:this.beans.rowContainerHeightService.getRealPixelPosition(i)}return t+"px"},i.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsService.is("suppressRowTransform");this.allRowGuis.forEach(function(o){return t?o.rowComp.setTop(e):o.rowComp.setTransform("translateY("+e+")")})},i.prototype.getRowNode=function(){return this.rowNode},i.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach(function(o){o.getColumn()==e&&(t=o)}),null!=t||this.getAllCellCtrls().forEach(function(o){o.getColSpanningList().indexOf(e)>=0&&(t=o)}),t},i.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},i.prototype.updateRowIndexes=function(e){var t=this.rowNode.getRowIndexString(),o=this.beans.headerNavigationService.getHeaderRowCount(),i=this.rowNode.rowIndex%2==0,r=o+this.rowNode.rowIndex+1;this.forEachGui(e,function(e){e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass("ag-row-even",i),e.rowComp.addOrRemoveCssClass("ag-row-odd",!i),qt(e.element,r)})},i.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},i.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},i.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},i.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},i.DOM_DATA_KEY_ROW_CTRL="renderedRow",i}(Fe),fl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gl=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},vl=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return fl(t,e),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(t){var o=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,o)})},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",be("touchstart")?"touchstart":"mousedown"].forEach(function(t){var o=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,o)})},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Ee(t)){var o=this.getRowForEvent(t),i=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,o,i):(i&&i.onMouseEvent(e,t),o&&o.onMouseEvent(e,t))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(yo()){var t=new _n(this.element);this.addManagedListener(t,_n.EVENT_LONG_TAP,function(t){var o=e.getRowForEvent(t.touchEvent),i=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,i)}),this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var o=this.gridOptionsService.getDomData(t,hl.DOM_DATA_KEY_ROW_CTRL);if(o)return o;t=t.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,t,o,i){var r=o?o.getRowNode():null,n=i?i.getColumn():null,s=null;if(n){var a=e||t;i.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(n,r)}var l=this.ctrlsService.getGridBodyCtrl(),u=i?i.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,r,n,s,u)},t.prototype.processKeyboardEvent=function(e,t){var o=Oe(this.gridOptionsService,t.target,al.DOM_DATA_KEY_CELL_CTRL),i=Oe(this.gridOptionsService,t.target,hl.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):i&&i.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,t))},t.prototype.processCellKeyboardEvent=function(e,t,o){var i=e.getRowNode(),r=e.getColumn(),n=e.isEditing();if(!Pi(this.gridOptionsService,o,i,r,n))switch(t){case"keydown":!n&&this.navigationService.handlePageScrollingKey(o)||e.onKeyDown(o),this.doGridOperations(o,e.isEditing());break;case"keypress":e.onKeyPress(o)}if("keydown"===t){var s=e.createEvent(o,He.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=e.createEvent(o,He.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,t,o){var i=e.getRowNode(),r=this.focusService.getFocusedCell(),n=r&&r.column;if(!Pi(this.gridOptionsService,o,i,n,!1)){var s=o.key;if("keydown"===t)switch(s){case Ti.PAGE_HOME:case Ti.PAGE_END:this.navigationService.handlePageScrollingKey(o);break;case Ti.UP:case Ti.DOWN:e.onKeyboardNavigate(o);break;case Ti.TAB:e.onTabKeyDown(o)}}if("keydown"===t){var a=e.createRowEvent(He.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createRowEvent(He.EVENT_CELL_KEY_PRESS,o);this.eventService.dispatchEvent(l)}},t.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var o=Ai(e);return o===Ti.A?this.onCtrlAndA(e):o===Ti.C?this.onCtrlAndC(e):o===Ti.X?this.onCtrlAndX(e):o===Ti.V?this.onCtrlAndV():o===Ti.D?this.onCtrlAndD(e):o===Ti.Z?this.onCtrlAndZ(e):o===Ti.Y?this.onCtrlAndY():void 0}},t.prototype.onCtrlAndA=function(e){var t=this,o=t.pinnedRowModel,r=t.paginationProxy,n=t.rangeService;if(n&&r.isRowsToRender()){var s=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s}([o.isEmpty("top"),o.isEmpty("bottom")],2),a=s[0]?null:"top",l=void 0,u=void 0;s[1]?(l=null,u=this.paginationProxy.getRowCount()-1):(l="bottom",u=o.getPinnedBottomRowData().length-1);var c=this.columnModel.getAllDisplayedColumns();if(i(c))return;n.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:u,rowEndPinned:l,columnStart:c[0],columnEnd:ae(c)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")&&(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndX=function(e){!this.clipboardService||this.gridOptionsService.is("enableCellTextSelection")||this.gridOptionsService.is("suppressCutToClipboard")||(this.clipboardService.cutToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){Z.isRegistered(exports.ModuleNames.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){Z.isRegistered(exports.ModuleNames.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.is("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},gl([W("mouseEventService")],t.prototype,"mouseEventService",void 0),gl([W("valueService")],t.prototype,"valueService",void 0),gl([U("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),gl([W("ctrlsService")],t.prototype,"ctrlsService",void 0),gl([W("navigationService")],t.prototype,"navigationService",void 0),gl([W("focusService")],t.prototype,"focusService",void 0),gl([W("undoRedoService")],t.prototype,"undoRedoService",void 0),gl([W("columnModel")],t.prototype,"columnModel",void 0),gl([W("paginationProxy")],t.prototype,"paginationProxy",void 0),gl([W("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),gl([U("rangeService")],t.prototype,"rangeService",void 0),gl([U("clipboardService")],t.prototype,"clipboardService",void 0),gl([k],t.prototype,"postConstruct",null),t}(Fe),yl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ml=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Cl=function(e){function t(t){var o=e.call(this)||this;return o.centerContainerCtrl=t,o}return yl(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,He.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=Yo(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:He.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(t)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},ml([W("ctrlsService")],t.prototype,"ctrlsService",void 0),ml([W("columnModel")],t.prototype,"columnModel",void 0),ml([W("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),ml([k],t.prototype,"postConstruct",null),t}(Fe),wl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sl=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},El=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return wl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;jo(this.element,t),hi(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},Sl([W("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Sl([k],t.prototype,"postConstruct",null),t}(Fe),Rl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),bl=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ol=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return Rl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;jo(this.element,t),hi(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},bl([W("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),bl([k],t.prototype,"postConstruct",null),t}(Fe),Tl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Dl=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Pl=function(e){function t(t,o){var i=e.call(this)||this;return i.eContainer=t,i.eWrapper=o,i}return Tl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},Dl([W("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),Dl([k],t.prototype,"postConstruct",null),t}(Fe),_l=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Al=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Nl=function(e){function t(t){var o=e.call(this)||this;return o.eContainer=t,o}return _l(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsService.isEnableRangeSelection()&&!o(this.rangeService)){var t={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(t),this.addDestroyFunc(function(){return e.dragService.removeDragSource(t)})}},Al([U("rangeService")],t.prototype,"rangeService",void 0),Al([W("dragService")],t.prototype,"dragService",void 0),Al([k],t.prototype,"postConstruct",null),t}(Fe),Ml=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Fl=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ll=function(e){function t(t,o){void 0===o&&(o=!1);var i=e.call(this)||this;return i.callback=t,i.addSpacer=o,i}return Ml(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,He.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e,t=this.columnModel,o=this.gridOptionsService.isDomLayout("print"),i=t.getBodyContainerWidth(),r=t.getDisplayedColumnsLeftWidth(),n=t.getDisplayedColumnsRightWidth();o?e=i+r+n:(e=i,this.addSpacer&&0===(this.gridOptionsService.is("enableRtl")?r:n)&&this.scrollVisibleService.isVerticalScrollShowing()&&(e+=this.gridOptionsService.getScrollbarWidth()));this.callback(e)},Fl([W("columnModel")],t.prototype,"columnModel",void 0),Fl([W("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Fl([k],t.prototype,"postConstruct",null),t}(Fe),xl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Il=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Gl=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s};function Hl(e){switch(e){case exports.RowContainerName.CENTER:case exports.RowContainerName.TOP_CENTER:case exports.RowContainerName.STICKY_TOP_CENTER:case exports.RowContainerName.BOTTOM_CENTER:return exports.RowContainerType.CENTER;case exports.RowContainerName.LEFT:case exports.RowContainerName.TOP_LEFT:case exports.RowContainerName.STICKY_TOP_LEFT:case exports.RowContainerName.BOTTOM_LEFT:return exports.RowContainerType.LEFT;case exports.RowContainerName.RIGHT:case exports.RowContainerName.TOP_RIGHT:case exports.RowContainerName.STICKY_TOP_RIGHT:case exports.RowContainerName.BOTTOM_RIGHT:return exports.RowContainerType.RIGHT;case exports.RowContainerName.FULL_WIDTH:case exports.RowContainerName.TOP_FULL_WIDTH:case exports.RowContainerName.STICKY_TOP_FULL_WIDTH:case exports.RowContainerName.BOTTOM_FULL_WIDTH:return exports.RowContainerType.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}exports.RowContainerName=void 0,(cl=exports.RowContainerName||(exports.RowContainerName={})).LEFT="left",cl.RIGHT="right",cl.CENTER="center",cl.FULL_WIDTH="fullWidth",cl.TOP_LEFT="topLeft",cl.TOP_RIGHT="topRight",cl.TOP_CENTER="topCenter",cl.TOP_FULL_WIDTH="topFullWidth",cl.STICKY_TOP_LEFT="stickyTopLeft",cl.STICKY_TOP_RIGHT="stickyTopRight",cl.STICKY_TOP_CENTER="stickyTopCenter",cl.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",cl.BOTTOM_LEFT="bottomLeft",cl.BOTTOM_RIGHT="bottomRight",cl.BOTTOM_CENTER="bottomCenter",cl.BOTTOM_FULL_WIDTH="bottomFullWidth",exports.RowContainerType=void 0,(pl=exports.RowContainerType||(exports.RowContainerType={})).LEFT="left",pl.RIGHT="right",pl.CENTER="center",pl.FULL_WIDTH="fullWidth";var Vl=ht([[exports.RowContainerName.CENTER,"ag-center-cols-container"],[exports.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[exports.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[exports.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[exports.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[exports.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[exports.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[exports.RowContainerName.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[exports.RowContainerName.STICKY_TOP_CENTER,"ag-sticky-top-container"],[exports.RowContainerName.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[exports.RowContainerName.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[exports.RowContainerName.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[exports.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[exports.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[exports.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[exports.RowContainerName.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),kl=ht([[exports.RowContainerName.CENTER,"ag-center-cols-viewport"],[exports.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[exports.RowContainerName.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[exports.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Bl=ht([[exports.RowContainerName.CENTER,"ag-center-cols-clipper"]]),jl=function(e){function t(t){var o=e.call(this)||this;return o.visible=!0,o.EMPTY_CTRLS=[],o.name=t,o.isFullWithContainer=o.name===exports.RowContainerName.TOP_FULL_WIDTH||o.name===exports.RowContainerName.STICKY_TOP_FULL_WIDTH||o.name===exports.RowContainerName.BOTTOM_FULL_WIDTH||o.name===exports.RowContainerName.FULL_WIDTH,o}return xl(t,e),t.getRowContainerCssClasses=function(e){return{container:Vl.get(e),viewport:kl.get(e),wrapper:Bl.get(e)}},t.getPinned=function(e){switch(e){case exports.RowContainerName.BOTTOM_LEFT:case exports.RowContainerName.TOP_LEFT:case exports.RowContainerName.STICKY_TOP_LEFT:case exports.RowContainerName.LEFT:return"left";case exports.RowContainerName.BOTTOM_RIGHT:case exports.RowContainerName.TOP_RIGHT:case exports.RowContainerName.STICKY_TOP_RIGHT:case exports.RowContainerName.RIGHT:return"right";default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.embedFullWidthRows=this.gridOptionsService.is("embedFullWidthRows"),this.forContainers([exports.RowContainerName.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new Cl(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case exports.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case exports.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case exports.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case exports.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case exports.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case exports.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case exports.RowContainerName.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case exports.RowContainerName.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case exports.RowContainerName.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case exports.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case exports.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case exports.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},t.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,t,o,i){var r=this;this.comp=e,this.eContainer=t,this.eViewport=o,this.eWrapper=i,this.createManagedBean(new vl(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var n=[exports.RowContainerName.TOP_CENTER,exports.RowContainerName.TOP_LEFT,exports.RowContainerName.TOP_RIGHT],s=[exports.RowContainerName.STICKY_TOP_CENTER,exports.RowContainerName.STICKY_TOP_LEFT,exports.RowContainerName.STICKY_TOP_RIGHT],a=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Gl(arguments[t]));return e}(n,[exports.RowContainerName.BOTTOM_CENTER,exports.RowContainerName.BOTTOM_LEFT,exports.RowContainerName.BOTTOM_RIGHT],[exports.RowContainerName.CENTER,exports.RowContainerName.LEFT,exports.RowContainerName.RIGHT],s),l=[exports.RowContainerName.CENTER,exports.RowContainerName.LEFT,exports.RowContainerName.RIGHT,exports.RowContainerName.FULL_WIDTH],u=[exports.RowContainerName.CENTER,exports.RowContainerName.TOP_CENTER,exports.RowContainerName.STICKY_TOP_CENTER,exports.RowContainerName.BOTTOM_CENTER],c=[exports.RowContainerName.LEFT,exports.RowContainerName.BOTTOM_LEFT,exports.RowContainerName.TOP_LEFT,exports.RowContainerName.STICKY_TOP_LEFT],p=[exports.RowContainerName.RIGHT,exports.RowContainerName.BOTTOM_RIGHT,exports.RowContainerName.TOP_RIGHT,exports.RowContainerName.STICKY_TOP_RIGHT];this.forContainers(c,function(){r.pinnedWidthFeature=r.createManagedBean(new El(r.eContainer)),r.addManagedListener(r.eventService,He.EVENT_LEFT_PINNED_WIDTH_CHANGED,function(){return r.onPinnedWidthChanged()})}),this.forContainers(p,function(){r.pinnedWidthFeature=r.createManagedBean(new Ol(r.eContainer)),r.addManagedListener(r.eventService,He.EVENT_RIGHT_PINNED_WIDTH_CHANGED,function(){return r.onPinnedWidthChanged()})}),this.forContainers(l,function(){return r.createManagedBean(new Pl(r.eContainer,r.eWrapper))}),this.forContainers(a,function(){return r.createManagedBean(new Nl(r.eContainer))}),this.forContainers(u,function(){return r.createManagedBean(new Ll(function(e){return r.comp.setContainerWidth(e+"px")}))}),Oo()&&(this.forContainers([exports.RowContainerName.CENTER],function(){var e=r.enableRtl?He.EVENT_LEFT_PINNED_WIDTH_CHANGED:He.EVENT_RIGHT_PINNED_WIDTH_CHANGED;r.addManagedListener(r.eventService,e,function(){return r.refreshPaddingForFakeScrollbar()})}),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},t.prototype.refreshPaddingForFakeScrollbar=function(){var e=this,t=e.enableRtl,o=e.columnModel,i=e.name,r=e.eWrapper,n=e.eContainer,s=t?exports.RowContainerName.LEFT:exports.RowContainerName.RIGHT;this.forContainers([exports.RowContainerName.CENTER,s],function(){var e=o.getContainerWidth(s),a=t?"marginLeft":"marginRight";i===exports.RowContainerName.CENTER?r.style[a]=e?"0px":"16px":n.style[a]=e?"16px":"0px"})},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,function(){return e.onScrollVisibilityChanged()}),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_ROWS_CHANGED,function(t){return e.onDisplayedRowsChanged(t.afterScroll)}),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this;if([exports.RowContainerName.STICKY_TOP_CENTER,exports.RowContainerName.STICKY_TOP_LEFT,exports.RowContainerName.STICKY_TOP_RIGHT,exports.RowContainerName.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var t=function(){var t=e.gridOptionsService.is("ensureDomOrder"),o=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(t||o)};this.addManagedPropertyListener("domLayout",t),t()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([exports.RowContainerName.TOP_CENTER,exports.RowContainerName.STICKY_TOP_CENTER,exports.RowContainerName.BOTTOM_CENTER],function(){e.addManagedListener(e.eViewport,"scroll",function(){return e.eViewport.scrollLeft=0})})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([exports.RowContainerName.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([exports.RowContainerName.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onScrollVisibilityChanged=function(){var e=this.gridOptionsService.getScrollbarWidth()||0;if(this.name===exports.RowContainerName.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing()?e:0,o=0==t?"100%":"calc(100% + "+t+"px)";this.comp.setViewportHeight(o)}if(this.name===exports.RowContainerName.FULL_WIDTH){o="calc(100% - "+(Oo()?16:0)+"px)";this.eContainer.style.setProperty("width",o)}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",t)})},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},t.prototype.getCenterWidth=function(){return qo(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return Zo(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return t()})},t.prototype.isViewportVisible=function(){return oi(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return Zo(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||ci(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){$o(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){return!t.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged()),Oo()&&this.refreshPaddingForFakeScrollbar()},t.prototype.onDisplayedRowsChanged=function(e){var t=this;if(void 0===e&&(e=!1),this.visible){var o=this.gridOptionsService.isDomLayout("print"),i=this.getRowCtrls().filter(function(e){var i=e.isFullWidth(),r=t.embedFullWidthRows||o;return t.isFullWithContainer?!r&&i:r||!i});this.comp.setRowCtrls(i,e)}else this.comp.setRowCtrls(this.EMPTY_CTRLS,!1)},t.prototype.getRowCtrls=function(){switch(this.name){case exports.RowContainerName.TOP_CENTER:case exports.RowContainerName.TOP_LEFT:case exports.RowContainerName.TOP_RIGHT:case exports.RowContainerName.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case exports.RowContainerName.STICKY_TOP_CENTER:case exports.RowContainerName.STICKY_TOP_LEFT:case exports.RowContainerName.STICKY_TOP_RIGHT:case exports.RowContainerName.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case exports.RowContainerName.BOTTOM_CENTER:case exports.RowContainerName.BOTTOM_LEFT:case exports.RowContainerName.BOTTOM_RIGHT:case exports.RowContainerName.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Il([W("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Il([W("dragService")],t.prototype,"dragService",void 0),Il([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Il([W("columnModel")],t.prototype,"columnModel",void 0),Il([W("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Il([W("rowRenderer")],t.prototype,"rowRenderer",void 0),Il([k],t.prototype,"postConstruct",null),t}(Fe),Wl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ul=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},zl='<div class="ag-root ag-unselectable" role="treegrid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="'+exports.RowContainerName.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+exports.RowContainerName.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+exports.RowContainerName.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+exports.RowContainerName.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body" ref="eBody" role="presentation">\n <div class="ag-body-clipper" ref="eBodyClipper" role="presentation">\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+exports.RowContainerName.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+exports.RowContainerName.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+exports.RowContainerName.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+exports.RowContainerName.FULL_WIDTH+'"></ag-row-container>\n </div>\n </div>\n <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\n </div>\n <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n <ag-row-container ref="stickyTopLeftContainer" name="'+exports.RowContainerName.STICKY_TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="stickyTopCenterContainer" name="'+exports.RowContainerName.STICKY_TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="stickyTopRightContainer" name="'+exports.RowContainerName.STICKY_TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="stickyTopFullWidthContainer" name="'+exports.RowContainerName.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="'+exports.RowContainerName.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+exports.RowContainerName.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+exports.RowContainerName.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+exports.RowContainerName.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>',Kl=function(e){function t(){return e.call(this,zl)||this}return Wl(t,e),t.prototype.init=function(){var e=this,t=function(e,t){var o=e+"px";t.style.minHeight=o,t.style.height=o},o={setRowAnimationCssOnBodyViewport:function(t,o){return e.setRowAnimationCssOnBodyViewport(t,o)},setColumnCount:function(t){return Qt(e.getGui(),t)},setRowCount:function(t){return Yt(e.getGui(),t)},setTopHeight:function(o){return t(o,e.eTop)},setBottomHeight:function(o){return t(o,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setStickyTopHeight:function(t){return e.eStickyTop.style.height=t},setStickyTopTop:function(t){return e.eStickyTop.style.top=t},setStickyTopWidth:function(t){return e.eStickyTop.style.width=t},setColumnMovingCss:function(t,o){return e.addOrRemoveCssClass(t,o)},updateLayoutClasses:function(t,o){[e.eBodyViewport.classList,e.eBodyClipper.classList,e.eBody.classList].forEach(function(e){e.toggle(exports.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),e.toggle(exports.LayoutCssClasses.NORMAL,o.normal),e.toggle(exports.LayoutCssClasses.PRINT,o.print)}),e.addOrRemoveCssClass(exports.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),e.addOrRemoveCssClass(exports.LayoutCssClasses.NORMAL,o.normal),e.addOrRemoveCssClass(exports.LayoutCssClasses.PRINT,o.print)},setAlwaysVerticalScrollClass:function(t,o){return e.eBodyViewport.classList.toggle(Ha,o)},registerBodyViewportResizeListener:function(t){var o=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc(function(){return o()})},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,o){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(e){return e.classList.toggle(Ga,o)})},setBodyViewportWidth:function(t){return e.eBodyViewport.style.width=t}};this.ctrl=this.createManagedBean(new Va),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&Kt(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,t){var o=this.eBodyViewport.classList;o.toggle(exports.RowAnimationCssClasses.ANIMATION_ON,t),o.toggle(exports.RowAnimationCssClasses.ANIMATION_OFF,!t)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Ul([W("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ul([U("rangeService")],t.prototype,"rangeService",void 0),Ul([er("eBodyViewport")],t.prototype,"eBodyViewport",void 0),Ul([er("eStickyTop")],t.prototype,"eStickyTop",void 0),Ul([er("eTop")],t.prototype,"eTop",void 0),Ul([er("eBottom")],t.prototype,"eBottom",void 0),Ul([er("gridHeader")],t.prototype,"headerRootComp",void 0),Ul([er("eBodyClipper")],t.prototype,"eBodyClipper",void 0),Ul([er("eBody")],t.prototype,"eBody",void 0),Ul([k],t.prototype,"init",null),t}($i),Yl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ql=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ql=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:He.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},ql([W("ctrlsService")],t.prototype,"ctrlsService",void 0),ql([k],t.prototype,"postConstruct",null),t=ql([j("scrollVisibleService")],t)}(Fe),Xl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Jl=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Zl=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=i.gridInstanceSequence.next(),t}var i;return Xl(o,e),i=o,o.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[i.GRID_DOM_KEY]=this.gridInstanceId},o.prototype.getRenderedCellForEvent=function(e){return Oe(this.gridOptionsService,e.target,al.DOM_DATA_KEY_CELL_CTRL)},o.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},o.prototype.isElementInThisGrid=function(e){for(var o=e;o;){var r=o[i.GRID_DOM_KEY];if(t(r))return r===this.gridInstanceId;o=o.parentElement}return!1},o.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},o.prototype.getNormalisedPosition=function(e){var t,o,i=this.gridOptionsService.isDomLayout("normal"),r=e;if(null!=r.clientX||null!=r.clientY?(t=r.clientX,o=r.clientY):(t=r.x,o=r.y),i){var n=this.ctrlsService.getGridBodyCtrl(),s=n.getScrollFeature().getVScrollPosition();t+=n.getScrollFeature().getHScrollPosition().left,o+=s.top}return{x:t,y:o}},o.gridInstanceSequence=new Bi,o.GRID_DOM_KEY="__ag_grid_instance",Jl([W("ctrlsService")],o.prototype,"ctrlsService",void 0),o=i=Jl([j("mouseEventService")],o)}(Fe),$l=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),eu=function(){return eu=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},eu.apply(this,arguments)},tu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ou=function(e){function i(){var t=e.call(this)||this;return t.onPageDown=F(t.onPageDown,100),t.onPageUp=F(t.onPageUp,100),t}return $l(i,e),i.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridBodyCon=t.gridBodyCtrl})},i.prototype.handlePageScrollingKey=function(e){var t=e.key,o=e.altKey,i=e.ctrlKey||e.metaKey,r=!!this.rangeService&&e.shiftKey,n=this.mouseEventService.getCellPositionForEvent(e),s=!1;switch(t){case Ti.PAGE_HOME:case Ti.PAGE_END:i||o||(this.onHomeOrEndKey(t),s=!0);break;case Ti.LEFT:case Ti.RIGHT:case Ti.UP:case Ti.DOWN:if(!n)return!1;!i||o||r||(this.onCtrlUpDownLeftRight(t,n),s=!0);break;case Ti.PAGE_DOWN:if(!n)return!1;i||o||(this.onPageDown(n),s=!0);break;case Ti.PAGE_UP:if(!n)return!1;i||o||(this.onPageUp(n),s=!0)}return s&&e.preventDefault(),s},i.prototype.navigateTo=function(e){var o=e.scrollIndex,i=e.scrollType,r=e.scrollColumn,n=e.focusIndex,s=e.focusColumn;if(t(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),t(o)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(o,i),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(n),this.focusService.setFocusedCell({rowIndex:n,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:n,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},i.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.getViewportHeight(),i=this.paginationProxy.getPixelOffset(),r=t.top+o,n=this.paginationProxy.getRowIndexAtPixel(r+i);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,n):this.navigateToNextPage(e,n)},i.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.paginationProxy.getPixelOffset(),i=t.top,r=this.paginationProxy.getRowIndexAtPixel(i+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,r,!0):this.navigateToNextPage(e,r,!0)},i.prototype.navigateToNextPage=function(e,t,o){void 0===o&&(o=!1);var i,r=this.getViewportHeight(),n=this.paginationProxy.getPageFirstRow(),s=this.paginationProxy.getPageLastRow(),a=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRow(e.rowIndex),u=o?(null==l?void 0:l.rowHeight)-r-a:r-a,c=(null==l?void 0:l.rowTop)+u,p=this.paginationProxy.getRowIndexAtPixel(c+a);if(p===e.rowIndex){var d=o?-1:1;t=p=e.rowIndex+d}o?(i="bottom",p<n&&(p=n),t<n&&(t=n)):(i="top",p>s&&(p=s),t>s&&(t=s)),this.isRowTallerThanView(p)&&(t=p,i="top"),this.navigateTo({scrollIndex:t,scrollType:i,scrollColumn:null,focusIndex:p,focusColumn:e.column})},i.prototype.navigateToNextPageWithAutoHeight=function(e,t,o){var i=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(function(){var r=i.getNextFocusIndexForAutoHeight(e,o);i.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})},50)},i.prototype.getNextFocusIndexForAutoHeight=function(e,t){var o;void 0===t&&(t=!1);for(var i=t?-1:1,r=this.getViewportHeight(),n=this.paginationProxy.getPageLastRow(),s=0,a=e.rowIndex;a>=0&&a<=n;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(o=l.rowHeight)&&void 0!==o?o:0;if(s+u>r)break;s+=u}a+=i}return Math.max(0,Math.min(a,n))},i.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsService.getScrollbarWidth(),o=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(o-=t),o},i.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var o=t.rowHeight;return"number"==typeof o&&o>this.getViewportHeight()},i.prototype.onCtrlUpDownLeftRight=function(e,t){var o=this.cellNavigationService.getNextCellToFocus(e,t,!0),i=o.rowIndex,r=o.column;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:r,focusIndex:i,focusColumn:r})},i.prototype.onHomeOrEndKey=function(e){var t=e===Ti.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),i=t?o[0]:ae(o),r=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:i,focusIndex:r,focusColumn:i})},i.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;if(this.tabToNextCellCommon(e,o,t))t.preventDefault();else if(o){var i=e.getRowPosition(),r=i.rowIndex;(i.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusLastHeader(t)))}else e instanceof al&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&t.preventDefault()},i.prototype.tabToNextCell=function(e,t){var o=this.focusService.getFocusedCell();if(!o)return!1;var i=this.getCellByPosition(o);return!!(i||(i=this.rowRenderer.getRowByPosition(o))&&i.isFullWidth())&&this.tabToNextCellCommon(i,e,t)},i.prototype.tabToNextCellCommon=function(e,t,o){var i=e.isEditing();if(!i&&e instanceof al){var r=e.getRowCtrl();r&&(i=r.isEditing())}return(i?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(e,t,o):this.moveToNextEditingCell(e,t,o):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},i.prototype.moveToNextEditingCell=function(e,t,o){void 0===o&&(o=null);var i=e.getCellPosition();e.getGui().focus(),e.stopEditing();var r=this.findNextCellToFocusOn(i,t,!0);return null!=r&&(r.startEditing(null,null,!0,o),r.focusCell(!1),!0)},i.prototype.moveToNextEditingRow=function(e,t,o){void 0===o&&(o=null);var i=e.getCellPosition(),r=this.findNextCellToFocusOn(i,t,!0);if(null==r)return!1;var n=r.getCellPosition(),s=this.isCellEditable(i),a=this.isCellEditable(n),l=n&&i.rowIndex===n.rowIndex&&i.rowPinned===n.rowPinned;(s&&e.setFocusOutOnEditor(),l)||(e.getRowCtrl().stopEditing(),r.getRowCtrl().startRowEditing(void 0,void 0,void 0,o));return a?(r.setFocusInOnEditor(),r.focusCell()):r.focusCell(!0),!0},i.prototype.moveToNextCellNotEditing=function(e,o){var i,r=this.columnModel.getAllDisplayedColumns();i=e instanceof hl?eu(eu({},e.getRowPosition()),{column:o?r[0]:ae(r)}):e.getCellPosition();var n=this.findNextCellToFocusOn(i,o,!1);if(n instanceof al)n.focusCell(!0);else if(n)return this.tryToFocusFullWidthRow(n.getRowPosition(),o);return t(n)},i.prototype.findNextCellToFocusOn=function(e,o,i){for(var r=e;;){e!==r&&(e=r),o||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,o);var n=this.gridOptionsService.getCallback("tabToNextCell");if(t(n)){var s=n({backwards:o,editing:i,previousCellPosition:e,nextCellPosition:r||null});t(s)?(s.floating&&(b(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 a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+r.rowIndex,column:r.column}}),null}var l="fullRow"===this.gridOptionsService.get("editType");if(i&&!l)if(!this.isCellEditable(r))continue;this.ensureCellVisible(r);var u=this.getCellByPosition(r);if(!u){var c=this.rowRenderer.getRowByPosition(r);if(!c||!c.isFullWidth()||i)continue;return c}if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),u}},i.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},i.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},i.prototype.lookupRowNodeForCell=function(e){return"top"===e.rowPinned?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):"bottom"===e.rowPinned?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},i.prototype.navigateToNextCell=function(e,i,r,n){for(var s=r,a=!1;s&&(s===r||!this.isValidNavigateCell(s));)this.gridOptionsService.is("enableRtl")?i===Ti.LEFT&&(s=this.getLastCellOfColSpan(s)):i===Ti.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=o(s=this.cellNavigationService.getNextCellToFocus(i,s));if(a&&e&&e.key===Ti.UP&&(s={rowIndex:-1,rowPinned:null,column:r.column}),n){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(t(l)){var u=l({key:i,previousCellPosition:r,nextCellPosition:s||null,event:e});t(u)?(u.floating&&(b(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:r.column},event:e||void 0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},i.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},i.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var o=this.columnModel.getAllDisplayedColumns(),i=this.rowRenderer.getRowByPosition(e);if(!i||!i.isFullWidth())return!1;var r=this.focusService.getFocusedCell(),n={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?ae(o):o[0])};this.focusPosition(n);var s=null!=r&&this.rowPositionUtils.before(n,r),a={type:He.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:n.column,isFullWidthCell:!0,floating:n.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},i.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},i.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},i.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var o=t.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:ae(o),rowPinned:e.rowPinned}},i.prototype.ensureCellVisible=function(e){var t=this.gridOptionsService.is("groupRowsSticky"),i=this.rowModel.getRow(e.rowIndex);!(t&&(null==i?void 0:i.sticky))&&o(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},tu([W("mouseEventService")],i.prototype,"mouseEventService",void 0),tu([W("paginationProxy")],i.prototype,"paginationProxy",void 0),tu([W("focusService")],i.prototype,"focusService",void 0),tu([U("rangeService")],i.prototype,"rangeService",void 0),tu([W("columnModel")],i.prototype,"columnModel",void 0),tu([W("rowModel")],i.prototype,"rowModel",void 0),tu([W("ctrlsService")],i.prototype,"ctrlsService",void 0),tu([W("rowRenderer")],i.prototype,"rowRenderer",void 0),tu([W("headerNavigationService")],i.prototype,"headerNavigationService",void 0),tu([W("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),tu([W("cellNavigationService")],i.prototype,"cellNavigationService",void 0),tu([W("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),tu([k],i.prototype,"postConstruct",null),i=tu([j("navigationService")],i)}(Fe),iu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ru=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.params=t,o}return iu(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),o=this.params;this.addManagedListener(t,"keydown",function(t){Pi(e.gridOptionsService,t,o.node,o.column,!0)||o.onKeyDown(t)})},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"postConstruct",null),t}(kn),nu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),su=function(e){function t(t,o,i,r,n){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=o.getColumn(),s.rowNode=o.getRowNode(),s.rowCtrl=o.getRowCtrl(),s.eRow=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=o.isForceWrapper(),s.refreshWrapper(!1);var l=function(e,t,o){var i=o||a;null!=t&&""!=t?i.setAttribute(e,t):i.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return ui(a,e)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return Nt(a,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=e},setRenderDetails:function(e,t,o){return s.setRenderDetails(e,t,o)},setEditDetails:function(e,t,o){return s.setEditDetails(e,t,o)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=o,o.setComp(u,s.getGui(),s.eCellWrapper,i,n),s}return nu(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,o){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var i=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e)!(o||i)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,o){e?this.createCellEditorInstance(e,t,o):this.destroyEditor()},t.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)},t.prototype.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=t||this.forceWrapper,i=o&&null==this.eCellWrapper;i&&(this.eCellWrapper=ii('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var r=!o&&null!=this.eCellWrapper;r&&(ti(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var n=!e&&o,s=n&&null==this.eCellValue;s&&(this.eCellValue=ii('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!n&&null!=this.eCellValue;a&&(ti(this.eCellValue),this.eCellValue=void 0);var l=i||r||s||a;return l&&this.removeControls(),e||t&&this.addControls(),l},t.prototype.addControls=function(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},t.prototype.createCellEditorInstance=function(e,t,i){var r=this,n=this.editorVersion,s=e.newAgStackInstance();if(s){var a=e.params;s.then(function(e){return r.afterCellEditorCreated(n,e,a,t,i)}),o(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();ei(t);var o=null!=e?ct(e):null;null!=o&&(t.innerHTML=o)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),ti(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),ti(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,o=!this.beans.gridOptionsService.is("suppressAnimationFrame"),i=this.rendererVersion,r=e.componentClass,n=function(){if(!(t.rendererVersion!==i||!t.isAlive())){var o=e.newAgStackInstance(),n=t.afterCellRendererCreated.bind(t,i,r);o&&o.then(n)}};o&&this.firstRender?this.beans.animationFrameService.createTask(n,this.rowNode.rowIndex,"createTasksP2"):n()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,t,o){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(o);else if(this.cellRenderer=o,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var i=this.getParentOfValue();ei(i),i.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,o,i,r){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing(!0);if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();var n=i||void 0!==t.isPopup&&t.isPopup();n?this.addPopupCellEditor(o,r):this.addInCellEditor(),this.refreshEditStyles(!0,n),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.refreshEditStyles=function(e,t){var o;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!t),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!t),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!t),null===(o=this.rowCtrl)||void 0===o||o.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var o=this;"fullRow"===this.beans.gridOptionsService.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new ru(e));var r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);var n=this.beans.popupService,s=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),a=null!=t?t:i.getPopupPosition?i.getPopupPosition():"over",l=this.beans.gridOptionsService.is("enableRtl"),u={ePopup:r,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:a,alignSide:l?"right":"left",keepWithinBounds:!0},c=n.positionPopupByComponent.bind(n,u),p=this.beans.localeService.getLocaleTextFunc(),d=n.addPopup({modal:s,eChild:r,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:p("ariaLabelCellEditor","Cell Editor")});d&&(this.hideEditorPopup=d.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();e.contains(t.activeElement)&&mo()&&e.focus({preventScroll:!0}),ei(this.getParentOfValue())},t}($i),au=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lu=function(e){function t(t,o,i){var r=e.call(this)||this;r.cellComps={},r.beans=o,r.rowCtrl=t,r.setTemplate('<div comp-id="'+r.getCompId()+'" style="'+r.getInitialStyle(i)+'"/>');var n=r.getGui(),s=n.style,a={setDomOrder:function(e){return r.domOrder=e},setCellCtrls:function(e){return r.setCellCtrls(e)},showFullWidth:function(e){return r.showFullWidth(e)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return r.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return ui(n,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return n.setAttribute("row-index",e)},setRole:function(e){return Nt(n,e)},setRowId:function(e){return n.setAttribute("row-id",e)},setRowBusinessKey:function(e){return n.setAttribute("row-business-key",e)},setTabIndex:function(e){return n.setAttribute("tabindex",e.toString())}};return t.setComp(a,r.getGui(),i),r.addDestroyFunc(function(){t.unsetComp(i)}),r}return au(t,e),t.prototype.getInitialStyle=function(e){var t=this.rowCtrl.getInitialTransform(e),o=this.rowCtrl.getInitialRowTop(e);return t?"transform: "+t:"top: "+o},t.prototype.showFullWidth=function(e){var t=this,o=e.newAgStackInstance();o&&o.then(function(e){if(t.isAlive()){var o=e.getGui();t.getGui().appendChild(o),t.rowCtrl.setupDetailRowAutoHeight(o),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)})},t.prototype.setCellCtrls=function(e){var t=this,o=Object.assign({},this.cellComps);e.forEach(function(e){var i=e.getInstanceId();null==t.cellComps[i]?t.newCellComp(e):o[i]=null});var i=y(o).filter(function(e){return null!=e});this.destroyCells(i),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var o=[];e.forEach(function(e){var i=t.cellComps[e.getInstanceId()];i&&o.push(i.getGui())}),ai(this.getGui(),o)}},t.prototype.newCellComp=function(e){var t=new su(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=y(this.cellComps).filter(function(e){return null!=e});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach(function(e){if(e){var o=e.getCtrl().getInstanceId();t.cellComps[o]===e&&(e.detach(),e.destroy(),t.cellComps[o]=null)}})},t}($i),uu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),cu=function(){return cu=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},cu.apply(this,arguments)},pu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};var du,hu=function(e){function t(){var t,o,i,r,n=e.call(this,(t=$i.elementGettingCreated.getAttribute("name"),o=jl.getRowContainerCssClasses(t),i=t===exports.RowContainerName.CENTER,r=t===exports.RowContainerName.TOP_CENTER||t===exports.RowContainerName.STICKY_TOP_CENTER||t===exports.RowContainerName.BOTTOM_CENTER,i?'<div class="'+o.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+o.viewport+'" ref="eViewport" role="presentation">\n <div class="'+o.container+'" ref="eContainer"></div>\n </div>\n </div>':r?'<div class="'+o.viewport+'" ref="eViewport" role="presentation">\n <div class="'+o.container+'" ref="eContainer"></div>\n </div>':'<div class="'+o.container+'" ref="eContainer"></div>'))||this;return n.rowComps={},n.name=$i.elementGettingCreated.getAttribute("name"),n.type=Hl(n.name),n}return uu(t,e),t.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}};this.createManagedBean(new jl(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var t=this,o=cu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach(function(e){var i=e.getInstanceId(),r=o[i];if(r)t.rowComps[i]=r,delete o[i],t.ensureDomOrder(r.getGui());else{var n=new lu(e,t.beans,t.type);t.rowComps[i]=n,t.appendRow(n.getGui())}}),y(o).forEach(function(e){t.eContainer.removeChild(e.getGui()),e.destroy()}),Nt(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?li(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(si(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},pu([W("beans")],t.prototype,"beans",void 0),pu([er("eViewport")],t.prototype,"eViewport",void 0),pu([er("eContainer")],t.prototype,"eContainer",void 0),pu([er("eWrapper")],t.prototype,"eWrapper",void 0),pu([k],t.prototype,"postConstruct",null),pu([B],t.prototype,"preDestroy",null),t}($i),fu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},gu=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var o=e.dragItem.columns;o&&o.forEach(function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))})}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?ls.ICON_PINNED:ls.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},fu([W("columnModel")],e.prototype,"columnModel",void 0),fu([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),vu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},yu=function(){function e(e,o){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.eContainer=o,this.centerContainer=!t(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()})},e.prototype.getIconName=function(){return this.pinned?ls.ICON_PINNED:ls.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===exports.DragSourceType.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,i=(t||[]).filter(function(e){return o[e.getId()]});this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0,!0)},e.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.setColumnsVisible=function(e,t,o){if(void 0===o&&(o="api"),e){var i=e.filter(function(e){return!e.getColDef().lockVisible});this.columnModel.setColumnsVisible(i,t,o)}},e.prototype.setColumnsPinned=function(e,t,o){if(void 0===o&&(o="api"),e){var i=e.filter(function(e){return!e.getColDef().lockPinned});this.columnModel.setColumnsPinned(i,t,o)}},e.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.normaliseX=function(e){this.gridOptionsService.is("enableRtl")&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.is("enableRtl")?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t,i,r){var n,s=this;if(void 0===e&&(e=this.lastDraggingEvent),void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===r&&(r=!1),r){if(this.lastMovedInfo){var a=this.lastMovedInfo,l=a.columns,u=a.toIndex;this.moveColumns(l,u,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=e,!o(e.hDirection)){var c=this.normaliseX(e.x);t||this.checkCenterForScrolling(c);var p=this.normaliseDirection(e.hDirection),d=e.dragSource.type,h=(null===(n=e.dragSource.getDragItem().columns)||void 0===n?void 0:n.filter(function(e){return!e.getColDef().lockPinned||e.getPinned()==s.pinned}))||[];this.attemptMoveColumns({dragSourceType:d,allMovingColumns:h,hDirection:p,mouseX:c,fromEnter:t,fakeEvent:i})}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsService.is("enableRtl"))return e;switch(e){case exports.HorizontalDirection.Left:return exports.HorizontalDirection.Right;case exports.HorizontalDirection.Right:return exports.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.attemptMoveColumns=function(e){var t=e.dragSourceType,o=e.hDirection,i=e.mouseX,r=e.fromEnter,n=e.fakeEvent,s=o===exports.HorizontalDirection.Left,a=o===exports.HorizontalDirection.Right,l=e.allMovingColumns;if(t===exports.DragSourceType.HeaderCell){var u=[];l.forEach(function(e){for(var t=null,o=e.getParent();null!=o&&1===o.getDisplayedLeafColumns().length;)t=o,o=o.getParent();null!=t?t.getLeafColumns().forEach(function(e){u.includes(e)||u.push(e)}):u.includes(e)||u.push(e)}),l=u}var c=l.slice();this.columnModel.sortColumnsLikeGridColumns(c);var p=this.calculateValidMoves(c,a,i),d=this.calculateOldIndex(c);if(0!==p.length){var h=p[0],f=null!==d&&!r;if(t==exports.DragSourceType.HeaderCell&&(f=null!==d),f&&!n){if(s&&h>=d)return;if(a&&h<=d)return}for(var g=this.columnModel.getAllDisplayedColumns(),v=[],y=null,m=0;m<p.length;m++){var C=p[m],w=this.columnModel.getProposedColumnOrder(c,C);if(this.columnModel.doesOrderPassRules(w)){var S=w.filter(function(e){return g.includes(e)});if(null===y)y=S;else if(!ki.areEqual(S,y))break;var E=this.groupFragCount(w);v.push({move:C,fragCount:E})}}0!==v.length&&(v.sort(function(e,t){return e.fragCount-t.fragCount}),this.moveColumns(l,v[0].move,"uiColumnMoved",!1))}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),o=ue(e.map(function(e){return t.indexOf(e)})),i=o[0];return ae(o)-i!==o.length-1?null:i},e.prototype.moveColumns=function(e,t,o,i){this.columnModel.moveColumns(e,t,o,i),this.lastMovedInfo=i?null:{columns:e,toIndex:t}},e.prototype.groupFragCount=function(e){function t(e){for(var t=[],o=e.getOriginalParent();null!=o;)t.push(o),o=o.getOriginalParent();return t}for(var o=0,i=function(i){var r,n=t(e[i]),s=t(e[i+1]);r=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s}(n.length>s.length?[n,s]:[s,n],2),n=r[0],s=r[1],n.forEach(function(e){-1===s.indexOf(e)&&o++})},r=0;r<e.length-1;r++)i(r);return o},e.prototype.calculateValidMoves=function(e,t,o){var i=this.gridOptionsService.is("suppressMovableColumns")||e.some(function(e){return e.getColDef().suppressMovable});if(i)return[];var r,n=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=n.filter(function(t){return fe(e,t)}),l=n.filter(function(t){return!fe(e,t)}),u=s.filter(function(t){return!fe(e,t)}),c=0,p=o;if(t){var d=0;a.forEach(function(e){return d+=e.getActualWidth()}),p-=d}if(p>0){for(var h=0;h<l.length;h++){if((p-=l[h].getActualWidth())<0)break;c++}t&&c++}if(c>0){var f=l[c-1];r=u.indexOf(f)+1}else-1===(r=u.indexOf(l[0]))&&(r=0);var g=[r],v=function(e,t){return e-t};if(t){for(var y=r+1,m=s.length-1;y<=m;)g.push(y),y++;g.sort(v)}else{y=r,m=s.length-1;for(var C=s[y];y<=m&&this.isColumnHidden(n,C);)y++,g.push(y),C=s[y];y=r-1;for(;y>=0;)g.push(y),y--;g.sort(v).reverse()}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(ls.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(ls.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ls.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=o.scrollHorizontally(-e):this.needToMoveRight&&(t=o.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var i=this.lastDraggingEvent.dragItem.columns.filter(function(e){return!e.getColDef().lockPinned});if(i.length>0&&(this.dragAndDropService.setGhostIcon(ls.ICON_PINNED),this.failedMoveAttempts>7)){var r=this.needToMoveLeft?"left":"right";this.setColumnsPinned(i,r,"uiColumnDragged"),this.dragAndDropService.nudge()}}},vu([W("columnModel")],e.prototype,"columnModel",void 0),vu([W("dragAndDropService")],e.prototype,"dragAndDropService",void 0),vu([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),vu([W("ctrlsService")],e.prototype,"ctrlsService",void 0),vu([k],e.prototype,"init",null),e}(),mu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Cu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},wu=function(e){function t(t,o){var i=e.call(this)||this;return i.pinned=t,i.eContainer=o,i}return mu(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){switch(e.pinned){case"left":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}})},t.prototype.isInterestedIn=function(e){return e===exports.DragSourceType.HeaderCell||e===exports.DragSourceType.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new yu(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new gu(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===exports.DragSourceType.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Cu([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Cu([W("columnModel")],t.prototype,"columnModel",void 0),Cu([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Cu([k],t.prototype,"postConstruct",null),Cu([k],t.prototype,"init",null),t}(Fe),Su=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Eu=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,i,r){return o(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,i,r)},e.getToolPanelClassesFromColDef=function(e,t,i,r){return o(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,i,r)},e.getClassParams=function(e,t,o,i){return{colDef:e,column:o,columnGroup:i,api:t.api,columnApi:t.columnApi,context:t.context}},e.getColumnClassesFromCollDef=function(e,t,i,r,n){if(o(e))return[];var s;"function"==typeof e?s=e(this.getClassParams(t,i,r,n)):s=e;return"string"==typeof s?[s]:Array.isArray(s)?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Su(arguments[t]));return e}(s):[]},e}(),Ru=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),bu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ou=function(e){function t(o){var i=e.call(this,t.TEMPLATE,o)||this;return i.headerCompVersion=0,i.column=o.getColumnGroupChild(),i.pinned=o.getPinned(),i}return Ru(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o=function(e,o,i){var r=i||t;null!=o&&""!=o?r.setAttribute(e,o):r.removeAttribute(e)},i={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setColId:function(e){return o("col-id",e)},setTitle:function(e){return o("title",e)},setAriaDescription:function(e){return Gt(t,e)},setAriaSort:function(e){return e?Zt(t,e):$t(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var r=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",r)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var o=this.headerCompVersion;e.newAgStackInstance().then(function(e){return t.afterCompCreated(o,e)})},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(t)},t.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>',bu([er("eResize")],t.prototype,"eResize",void 0),bu([er("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),bu([k],t.prototype,"postConstruct",null),bu([B],t.prototype,"destroyHeaderComp",null),t}(va),Tu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Du=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Pu=function(e){function t(o){return e.call(this,t.TEMPLATE,o)||this}return Tu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o=function(e,o){return null!=o?t.setAttribute(e,o):t.removeAttribute(e)},i={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setResizableDisplayed:function(t){return jo(e.eResize,t)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return o("aria-expanded",e)},setTitle:function(e){return o("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(i,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then(function(e){return t.afterHeaderCompCreated(e)})},t.prototype.afterHeaderCompCreated=function(e){var t=this,o=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(o),this.ctrl.setDragSource(e.getGui())):o()},t.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>',Du([W("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Du([er("eResize")],t.prototype,"eResize",void 0),Du([k],t.prototype,"postConstruct",null),t}(va),_u=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Au=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
275
+ /**
276
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
277
+ * @version v29.3.5
278
+ * @link https://www.ag-grid.com/
279
+ * @license MIT
280
+ */exports.HeaderRowType=void 0,(du=exports.HeaderRowType||(exports.HeaderRowType={})).COLUMN_GROUP="group",du.COLUMN="column",du.FLOATING_FILTER="filter";var Nu,Mu=function(e){function t(t){var o=e.call(this)||this;o.headerComps={};var i=t.getType()==exports.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":t.getType()==exports.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+i+'" role="row"></div>'),o.ctrl=t,o}return _u(t,e),t.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return qt(e.getGui(),t)}};this.ctrl.setComp(t)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var o=this.headerComps;this.headerComps={},e.forEach(function(e){var i=e.getInstanceId(),r=o[i];delete o[i],null==r&&(r=t.createHeaderComp(e),t.getGui().appendChild(r.getGui())),t.headerComps[i]=r}),c(o,function(e,o){t.getGui().removeChild(o.getGui()),t.destroyBean(o)});var i=this.gridOptionsService.is("ensureDomOrder"),r=this.gridOptionsService.isDomLayout("print");if(i||r){var n=y(this.headerComps);n.sort(function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()});var s=n.map(function(e){return e.getGui()});ai(this.getGui(),s)}}},t.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case exports.HeaderRowType.COLUMN_GROUP:t=new Pu(e);break;case exports.HeaderRowType.FLOATING_FILTER:t=new Ca(e);break;default:t=new Ou(e)}return this.createBean(t),t.setParentComponent(this),t},Au([k],t.prototype,"init",null),Au([B],t.prototype,"destroyHeaderCtrls",null),t}($i),Fu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Lu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xu=0,Iu=function(e){function t(t,o){var i=e.call(this)||this;return i.lastFocusEvent=null,i.columnGroupChild=t,i.parentRowCtrl=o,i.instanceId=t.getUniqueId()+"-"+xu++,i}return Fu(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),o=t.headerRowIndex,i=t.column;return _i(this.gridOptionsService,e,o,i)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var t=this.getWrapperHasFocus();switch(e.key){case Ti.PAGE_DOWN:case Ti.PAGE_UP:case Ti.PAGE_HOME:case Ti.PAGE_END:t&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,o=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,o,this),this.addDestroyFunc(function(){return e.gridOptionsService.setDomData(e.eGui,o,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Lu([W("focusService")],t.prototype,"focusService",void 0),Lu([W("beans")],t.prototype,"beans",void 0),Lu([W("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Fe),Gu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Hu=function(e){function o(t,o,i,r){var n=e.call(this)||this;return n.columnOrGroup=t,n.eCell=o,n.ariaEl=n.eCell.querySelector("[role=columnheader]")||n.eCell,n.colsSpanning=r,n.beans=i,n}return Gu(o,e),o.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},o.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ae(this.colsSpanning):this.columnOrGroup},o.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ie.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},o.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),o=t(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&o&&!e?this.animateInLeft():this.onLeftChanged()},o.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),o=t.getLeft(),i=t.getOldLeft(),r=this.modifyLeftForPrintLayout(t,i),n=this.modifyLeftForPrintLayout(t,o);this.setLeft(r),this.actualLeft=n,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===n&&e.setLeft(n)})},o.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},o.prototype.modifyLeftForPrintLayout=function(e,t){if(!this.beans.gridOptionsService.isDomLayout("print"))return t;if("left"===e.getPinned())return t;var o=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===e.getPinned()?o+this.beans.columnModel.getBodyContainerWidth()+t:o+t},o.prototype.setLeft=function(e){var o;if(t(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ie)o=this.columnOrGroup;else{var i=this.columnOrGroup.getLeafColumns();if(!i.length)return;i.length>1&&Jt(this.ariaEl,i.length),o=i[0]}var r=this.beans.columnModel.getAriaColumnIndex(o);Xt(this.ariaEl,r)},function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],o.prototype,"postConstruct",null),o}(Fe),Vu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ku=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Bu=function(e){function t(t,o){var i=e.call(this)||this;return i.columns=t,i.element=o,i}return Vu(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},ku([W("columnHoverService")],t.prototype,"columnHoverService",void 0),ku([k],t.prototype,"postConstruct",null),t}(Fe),ju=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Wu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Uu=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.column=t,i}return ju(t,e),t.prototype.setComp=function(t,o,i,r){e.prototype.setGui.call(this,o),this.comp=t,this.eButtonShowMainFilter=i,this.eFloatingFilterBody=r;var n=this.column.getColDef(),s=!!n.filter||!!n.filterFramework,a=!!n.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.active&&this.addManagedListener(this.column,ie.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this))},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=bi("filter",this.gridOptionsService,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new dr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsService.getDocument().activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:o},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,o=this.column;do{if(!(o=e?t.getDisplayedColBefore(o):t.getDisplayedColAfter(o)))break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var o=this.getWrapperHasFocus();switch(t.key){case Ti.UP:case Ti.DOWN:o||t.preventDefault();case Ti.LEFT:case Ti.RIGHT:if(o)return;t.stopPropagation();case Ti.ENTER:o&&this.focusService.focusInto(this.eGui)&&t.preventDefault();break;case Ti.ESCAPE:o||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),o=!!e.relatedTarget&&zo(e.relatedTarget,"ag-floating-filter");if(t&&o&&e.target===this.eGui){var i=this.lastFocusEvent,r=!(!i||i.key!==Ti.TAB);if(i&&r){var n=i.shiftKey;this.focusService.focusInto(this.eGui,n)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Bu([this.column],this.eGui));var t=function(){if(e.gridOptionsService.is("columnHoverHighlight")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,He.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new Hu(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef();this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var o=this.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()});o&&this.comp.setCompDetails(o)}},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var o=e.comp.getFloatingFilterComp();if(o){var i=e.filterManager.getCurrentFloatingFilterParentModel(e.column);o.then(function(e){e&&e.onParentModelChanged(i,t)})}};this.addManagedListener(this.column,ie.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,t),t()},t.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},Wu([W("filterManager")],t.prototype,"filterManager",void 0),Wu([W("columnHoverService")],t.prototype,"columnHoverService",void 0),Wu([W("menuFactory")],t.prototype,"menuFactory",void 0),t}(Iu),zu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ku=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Yu=function(e){function t(t,o,i,r,n){var s=e.call(this)||this;return s.pinned=t,s.column=o,s.eResize=i,s.comp=r,s.ctrl=n,s}return zu(t,e),t.prototype.postConstruct=function(){var e,t,o=this,i=this.column.getColDef(),r=[],n=function(){r.forEach(function(e){return e()}),r.length=0},s=function(){var s=o.column.isResizable(),a=!o.gridOptionsService.is("suppressAutoSize")&&!i.suppressAutoSize;(s!==e||a!==t)&&(e=s,t=a,n(),function(){if(jo(o.eResize,e),e){var i=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(r.push(i),t){var n=o.gridOptionsService.is("skipHeaderOnAutoSize"),s=function(){o.columnModel.autoSizeColumn(o.column,n,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new _n(o.eResize);a.addEventListener(_n.EVENT_DOUBLE_TAP,s),o.addDestroyFunc(function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(_n.EVENT_DOUBLE_TAP,s),a.destroy()})}}}())};s(),this.addDestroyFunc(n),this.ctrl.addRefreshFunction(s)},t.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),i=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnModel.setColumnWidths(i,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,o="left"!==this.pinned,i="right"===this.pinned;return this.gridOptionsService.is("enableRtl")?o&&(t*=-1):i&&(t*=-1),t},Ku([W("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Ku([W("columnModel")],t.prototype,"columnModel",void 0),Ku([k],t.prototype,"postConstruct",null),t}(Fe),qu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Xu=function(e){function t(t){var o=e.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.column=t;var i=t.getColDef();return o.filteredOnly=!!(null==i?void 0:i.headerCheckboxSelectionFilteredOnly),o.currentPageOnly=!!(null==i?void 0:i.headerCheckboxSelectionCurrentPageOnly),o}return qu(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,o=this.gridOptionsService.getDocument();t.isDisplayed()&&!t.getGui().contains(o.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Gr),this.cbSelectAll.addCssClass("ag-header-select-all"),Nt(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,He.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Gr.EVENT_CHANGED,this.onCbSelectAll.bind(this)),Bt(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.filteredOnly,this.currentPageOnly);this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.localeService.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",o+" ("+t+")"),this.cbSelectAll.setInputAriaLabel(o+" ("+t+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.checkRightRowModelType=function(e){var t=this.rowModel.getType();return!("clientSide"!==t&&"serverSide"!==t)||(console.warn("AG Grid: "+e+" is only available if using 'clientSide' or 'serverSide' rowModelType, you are using "+t+"."),!1)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),t="uiSelectAll";this.currentPageOnly?t="uiSelectAllCurrentPage":this.filteredOnly&&(t="uiSelectAllFiltered");var o={source:t,justFiltered:this.filteredOnly,justCurrentPage:this.currentPageOnly};e?this.selectionService.selectAllRowNodes(o):this.selectionService.deselectAllRowNodes(o)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.context}));return!!e&&this.checkRightRowModelType("headerCheckboxSelection")},Qu([W("gridApi")],t.prototype,"gridApi",void 0),Qu([W("columnApi")],t.prototype,"columnApi",void 0),Qu([W("rowModel")],t.prototype,"rowModel",void 0),Qu([W("selectionService")],t.prototype,"selectionService",void 0),t}(Fe),Ju=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Zu=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},$u=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.refreshFunctions=[],i.userHeaderClasses=new Set,i.ariaDescriptionProperties=new Map,i.column=t,i}return Ju(t,e),t.prototype.setComp=function(t,o,i,r){var n=this;e.prototype.setGui.call(this,o),this.comp=t,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Yu(this.getPinned(),this.column,i,t,this)),this.createManagedBean(new Bu([this.column],o)),this.createManagedBean(new Hu(this.column,o,this.beans)),this.createManagedBean(new dr(o,{shouldStopEventPropagation:function(e){return n.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,ie.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},t.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,o){e.sortController.setSortForColumn(e.column,t,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Xu(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t),t.key===Ti.SPACE&&this.selectAllFeature.onSpaceKeyPressed(t),t.key===Ti.ENTER&&this.onEnterKeyPressed(t)},t.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var o=e.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},o=this.createManagedBean(new Qa(t,this.beans));o.setComp(this.comp),this.refreshFunctions.push(function(){return o.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),o=Eu.getHeaderClassesFromColDef(t,e.gridOptionsService,e.column,null),i=e.userHeaderClasses;e.userHeaderClasses=new Set(o),o.forEach(function(t){i.has(t)?i.delete(t):e.comp.addOrRemoveCssClass(t,!0)}),i.forEach(function(t){return e.comp.addOrRemoveCssClass(t,!1)})};this.refreshFunctions.push(t),t()},t.prototype.setDragSource=function(e){var t=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var o=!this.gridOptionsService.is("suppressDragLeaveHidesColumns");this.moveDragSource={type:exports.DragSourceType.HeaderCell,eElement:e,defaultIconName:o?ls.ICON_HIDE:ls.ICON_NOT_ALLOWED,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return t.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return t.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(e){var i;if(o){var r=(null===(i=null==e?void 0:e.columns)||void 0===i?void 0:i.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(r,!0,"uiColumnMoved")}},onGridExit:function(e){var i;if(o){var r=(null===(i=null==e?void 0:e.columns)||void 0===i?void 0:i.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(r,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsService.is("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth();e.comp.setWidth(t+"px")};this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,t),t()},t.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,ie.EVENT_MOVING_CHANGED,t),t()},t.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,ie.EVENT_MENU_VISIBLE_CHANGED,t),t()},t.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.eventService,ie.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,t=function(){var t=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",t)};t(),this.addRefreshFunction(t)},t.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,t=e.eGui,o=e.column,i=e.comp,r=e.columnModel,n=e.gridOptionsService;if(o.isSpanHeaderHeight()){var s=this.getColumnGroupPaddingInfo(),a=s.numberOfParents,l=s.isSpanningTotal;if(i.addOrRemoveCssClass("ag-header-span-height",a>0),0!==a){i.addOrRemoveCssClass("ag-header-span-total",l);var u=n.is("pivotMode")?r.getPivotGroupHeaderHeight():r.getGroupHeaderHeight(),c=r.getColumnHeaderRowHeight(),p=a*u;t.style.setProperty("top",-p+"px"),t.style.setProperty("height",c+p+"px")}}},t.prototype.getColumnGroupPaddingInfo=function(){var e=this.column.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var t=e.getPaddingLevel()+1,o=!0;e;){if(!e.isPadding()){o=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:o}},t.prototype.setupAutoHeight=function(e){var t,o=this,i=function(t){if(o.isAlive()){var r=Ko(o.getGui()),n=r.paddingTop+r.paddingBottom+r.borderBottomWidth+r.borderTopWidth,s=e.offsetHeight+n;if(t<5){var a=o.beans.gridOptionsService.getDocument();if(!a||!a.contains(e)||0==s)return void o.beans.frameworkOverrides.setTimeout(function(){return i(t+1)},0)}o.columnModel.setColumnHeaderHeight(o.column,s)}},r=!1,n=function(){var e=o.column.isSpanHeaderHeight(),t=o.column.isAutoHeaderHeight();if(e){if(a(),t){b(function(){return console.warn("AG Grid: The properties `spanHeaderHeight` and `autoHeaderHeight` cannot be used together in the same column.")},"HeaderCellCtrl.spanHeaderHeightAndAutoHeaderHeight")}}else t&&!r&&s(),!t&&r&&a()},s=function(){r=!0,i(0),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),t=o.resizeObserverService.observeResize(e,function(){return i(0)})},a=function(){r=!1,t&&t(),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),t=void 0};n(),this.addDestroyFunc(function(){return a()}),this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,function(){return r&&i(0)}),this.addManagedListener(this.eventService,ie.EVENT_SORT_CHANGED,function(){r&&o.beans.frameworkOverrides.setTimeout(function(){return i(0)})}),this.addRefreshFunction(n)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),t=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Mt(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsService.is("columnHoverHighlight")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,He.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,ie.EVENT_FILTER_ACTIVE_CHANGED,t),t()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},Zu([W("columnModel")],t.prototype,"columnModel",void 0),Zu([W("columnHoverService")],t.prototype,"columnHoverService",void 0),Zu([W("sortController")],t.prototype,"sortController",void 0),Zu([W("menuFactory")],t.prototype,"menuFactory",void 0),Zu([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Zu([W("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Zu([W("gridApi")],t.prototype,"gridApi",void 0),Zu([W("columnApi")],t.prototype,"columnApi",void 0),Zu([B],t.prototype,"removeDragSource",null),t}(Iu),ec=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),tc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},oc=function(e){function t(t,o,i,r){var n=e.call(this)||this;return n.eResize=o,n.comp=t,n.pinned=i,n.columnGroup=r,n}return ec(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=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(t),!this.gridOptionsService.is("suppressAutoSize")){var o=this.gridOptionsService.is("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",function(){var t=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())}),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:o,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit("uiColumnResized")})}}else this.comp.setResizableDisplayed(!1)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var o=null;if(e&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var i=o.getDisplayedLeafColumns();this.resizeTakeFromCols=i.filter(function(e){return e.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t,o){void 0===o&&(o="uiColumnResized");var i=this.normaliseDragChange(t),r=this.resizeStartWidth+i;this.resizeColumns(r,o,e)},t.prototype.resizeLeafColumnsToFit=function(e){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),t>this.resizeStartWidth&&this.resizeColumns(t,e,!0)},t.prototype.resizeColumns=function(e,t,o){void 0===o&&(o=!0);var i=[];if(i.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var r=e-this.resizeStartWidth;i.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-r})}this.columnModel.resizeColumnSets({resizeSets:i,finished:o,source:t}),o&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter(function(e){return e.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(t){return e.resizeStartWidth+=t.getActualWidth()}),this.resizeRatios=[],this.resizeCols.forEach(function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)})},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsService.is("enableRtl")?"left"!==this.pinned&&(t*=-1):"right"===this.pinned&&(t*=-1),t},tc([W("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),tc([W("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),tc([W("columnModel")],t.prototype,"columnModel",void 0),tc([k],t.prototype,"postConstruct",null),t}(Fe),ic=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),rc=function(e){function t(t,o){var i=e.call(this)||this;return i.removeChildListenersFuncs=[],i.columnGroup=o,i.comp=t,i}return ic(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,tt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(o){o.addEventListener("widthChanged",t),o.addEventListener("visibleChanged",t),e.removeChildListenersFuncs.push(function(){o.removeEventListener("widthChanged",t),o.removeEventListener("visibleChanged",t)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth(e+"px"),this.comp.addOrRemoveCssClass("ag-hidden",0===e)},function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"postConstruct",null),t}(Fe),nc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),sc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ac=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.columnGroup=t,i}return nc(t,e),t.prototype.setComp=function(t,o,i){e.prototype.setGui.call(this,o),this.comp=t,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(),n=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Bu(n,o)),this.createManagedBean(new Hu(this.columnGroup,o,this.beans)),this.createManagedBean(new rc(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new oc(t,i,r,this.columnGroup)),this.createManagedBean(new dr(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(e){var t,o;null===(t=this.groupResizeFeature)||void 0===t||t.onResizeStart(!1),null===(o=this.groupResizeFeature)||void 0===o||o.resizeLeafColumnsToFit(e)},t.prototype.setupUserComp=function(){var e=this,t=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context};if(!t){for(var i=this.columnGroup,r=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===r.length;)i=i.getParent();var n=i.getColGroupDef();n&&(t=n.headerName),t||(t=r?this.columnModel.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(s)},t.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),o={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(o.getColDef=function(){return t}),this.createManagedBean(new Qa(o,this.beans)).setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,re.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,re.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),o=Eu.getHeaderClassesFromColDef(t,this.gridOptionsService,null,this.columnGroup);this.columnGroup.isPadding()?(o.push("ag-header-group-cell-no-group"),this.columnGroup.getLeafColumns().every(function(e){return e.isSpanHeaderHeight()})&&o.push("ag-header-span-height")):o.push("ag-header-group-cell-with-group");o.forEach(function(t){return e.comp.addOrRemoveCssClass(t,!0)})},t.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),o=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};t.forEach(function(t){e.addManagedListener(t,ie.EVENT_MOVING_CHANGED,o)}),o()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var o=this.getWrapperHasFocus();if(this.expandable&&o&&t.key===Ti.ENTER){var i=this.columnGroup,r=!i.isExpanded();this.columnModel.setColumnGroupOpened(i.getProvidedColumnGroup(),r,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var t=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),r={type:exports.DragSourceType.HeaderCell,eElement:e,defaultIconName:i?ls.ICON_HIDE:ls.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach(function(e){return e.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return o.forEach(function(e){return e.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(e){var o;if(i){var r=(null===(o=null==e?void 0:e.columns)||void 0===o?void 0:o.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(r,!0,"uiColumnMoved")}},onGridExit:function(e){var o;if(i){var r=(null===(o=null==e?void 0:e.columns)||void 0===o?void 0:o.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(r,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc(function(){return t.dragAndDropService.removeDragSource(r)})}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),t={};e.forEach(function(e){return t[e.getId()]=e.isVisible()});var o=[];return this.columnModel.getAllDisplayedColumns().forEach(function(t){e.indexOf(t)>=0&&(o.push(t),ce(e,t))}),e.forEach(function(e){return o.push(e)}),{columns:o,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsService.is("suppressMovableColumns")},sc([W("columnModel")],t.prototype,"columnModel",void 0),sc([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),sc([W("gridApi")],t.prototype,"gridApi",void 0),sc([W("columnApi")],t.prototype,"columnApi",void 0),t}(Iu),lc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),uc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},cc=0,pc=function(e){function t(t,o,i){var r=e.call(this)||this;return r.instanceId=cc++,r.headerCellCtrls={},r.rowIndex=t,r.pinned=o,r.type=i,r}return lc(t,e),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),po()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,He.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return a(this.headerCellCtrls).find(function(t){return t.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){return this.gridOptionsService.isDomLayout("print")?null!=this.pinned?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),t=[],o=0;this.columnModel.hasFloatingFilters()&&(e++,o=1);for(var i=this.columnModel.getColumnGroupHeaderRowHeight(),r=this.columnModel.getColumnHeaderRowHeight(),n=e-(1+o),s=0;s<n;s++)t.push(i);t.push(r);for(s=0;s<o;s++)t.push(this.columnModel.getFloatingFiltersHeight());var a=0;for(s=0;s<this.rowIndex;s++)a+=t[s];var l=t[this.rowIndex]+"px";this.comp.setTop(a+"px"),this.comp.setHeight(l)},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach(function(o){if(!o.isEmptyGroup()){var i=o.getUniqueId(),r=t[i];if(delete t[i],r&&r.getColumnGroupChild()!=o&&(e.destroyBean(r),r=void 0),null==r)switch(e.type){case exports.HeaderRowType.FLOATING_FILTER:r=e.createBean(new Uu(o,e));break;case exports.HeaderRowType.COLUMN_GROUP:r=e.createBean(new ac(o,e));break;default:r=e.createBean(new $u(o,e))}e.headerCellCtrls[i]=r}});c(t,function(t,o){var i;(i=o,!!e.focusService.isHeaderWrapperFocused(i)&&e.columnModel.isDisplayed(i.getColumnGroupChild()))?e.headerCellCtrls[t]=o:e.destroyBean(o)});var o=y(this.headerCellCtrls);this.comp.setHeaderCtrls(o)},t.prototype.getColumnsInViewport=function(){return this.gridOptionsService.isDomLayout("print")?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],o=this.getActualDepth();return["left",null,"right"].forEach(function(i){var r=e.columnModel.getVirtualHeaderGroupRow(i,o);t=t.concat(r)}),t},t.prototype.getActualDepth=function(){return this.type==exports.HeaderRowType.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},t.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},t.prototype.focusHeader=function(e,t){var o=y(this.headerCellCtrls).find(function(t){return t.getColumnGroupChild()==e});return!!o&&(o.focus(t),!0)},t.prototype.destroy=function(){var t=this;c(this.headerCellCtrls,function(e,o){t.destroyBean(o)}),this.headerCellCtrls={},e.prototype.destroy.call(this)},uc([W("columnModel")],t.prototype,"columnModel",void 0),uc([W("focusService")],t.prototype,"focusService",void 0),t}(Fe),dc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),hc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},fc=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},gc=function(e){function t(t){var o=e.call(this)||this;return o.hidden=!1,o.groupsRowCtrls=[],o.pinned=t,o}return dc(t,e),t.prototype.setComp=function(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,He.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var t=new wu(this.pinned,e);this.createManagedBean(t)},t.prototype.refresh=function(e){var t=this;void 0===e&&(e=!1);var o,i,r=new Bi,n=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var e=t.columnModel.getHeaderRowCount()-1;t.groupsRowCtrls=t.destroyBeans(t.groupsRowCtrls);for(var o=0;o<e;o++){var i=t.createBean(new pc(r.next(),t.pinned,exports.HeaderRowType.COLUMN_GROUP));t.groupsRowCtrls.push(i)}}(),o=r.next(),((i=!(t.hidden||null!=t.columnsRowCtrl&&e&&t.columnsRowCtrl.getRowIndex()===o))||t.hidden)&&(t.columnsRowCtrl=t.destroyBean(t.columnsRowCtrl)),i&&(t.columnsRowCtrl=t.createBean(new pc(o,t.pinned,exports.HeaderRowType.COLUMN))),function(){var o=function(){t.filtersRowCtrl=t.destroyBean(t.filtersRowCtrl)};if(t.columnModel.hasFloatingFilters()&&!t.hidden){var i=r.next();if(t.filtersRowCtrl){var n=t.filtersRowCtrl.getRowIndex()!==i;e&&!n||o()}t.filtersRowCtrl||(t.filtersRowCtrl=t.createBean(new pc(i,t.pinned,exports.HeaderRowType.FLOATING_FILTER)))}else o()}();var s=this.getAllCtrls();this.comp.setCtrls(s),this.restoreFocusOnHeader(n)},t.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(fc(arguments[t]));return e}(this.groupsRowCtrls);return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Ll(function(t){return e.comp.setCenterWidth(t+"px")},!0))},t.prototype.setHorizontalScroll=function(e){this.comp.setViewportScrollLeft(e)},t.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t="left"===this.pinned,o="right"===this.pinned;this.hidden=!0;var i=function(){var i=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=i){var r=0==i,n=e.hidden!==r,s=e.gridOptionsService.is("enableRtl"),a=e.gridOptionsService.getScrollbarWidth(),l=e.scrollVisibleService.isVerticalScrollShowing()&&(s&&t||!s&&o)?i+a:i;e.comp.setPinnedContainerWidth(l+"px"),e.comp.setDisplayed(!r),n&&(e.hidden=r,e.refresh())}};this.addManagedListener(this.eventService,He.EVENT_LEFT_PINNED_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,He.EVENT_RIGHT_PINNED_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,i),this.addManagedListener(this.eventService,He.EVENT_SCROLLBAR_WIDTH_CHANGED,i)}},t.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof ie){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var o=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(o)return o}},t.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},t.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},t.prototype.focusHeader=function(e,t,o){var i=this.getAllCtrls()[e];return!!i&&i.focusHeader(t,o)},t.prototype.getRowCount=function(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)},t.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),e.prototype.destroy.call(this)},hc([W("ctrlsService")],t.prototype,"ctrlsService",void 0),hc([W("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),hc([W("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),hc([W("columnModel")],t.prototype,"columnModel",void 0),hc([W("focusService")],t.prototype,"focusService",void 0),t}(Fe),vc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),yc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},mc=function(e){function t(t){var o=e.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=t,o}return vc(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={setDisplayed:function(t){return e.setDisplayed(t)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setViewportScrollLeft:function(t){return e.getGui().scrollLeft=t},setPinnedContainerWidth:function(t){var o=e.getGui();o.style.width=t,o.style.maxWidth=t,o.style.minWidth=t}};this.createManagedBean(new gc(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e="left"==this.pinned,o="right"==this.pinned,i=e?t.PINNED_LEFT_TEMPLATE:o?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(i),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,o=this,i=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach(function(e){var r=e.getInstanceId(),n=i[r];delete i[r];var s=n||o.createBean(new Mu(e));o.headerRowComps[r]=s,o.rowCompsList.push(s),function(e){var i=e.getGui();i.parentElement!=o.eRowContainer&&o.eRowContainer.appendChild(i),t&&si(o.eRowContainer,i,t),t=i}(s)}),y(i).forEach(function(e){return o.destroyRowComp(e)})},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"></div>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"></div>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',yc([er("eCenterContainer")],t.prototype,"eCenterContainer",void 0),yc([k],t.prototype,"init",null),yc([B],t.prototype,"destroyRowComps",null),t}($i),Cc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),wc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
281
+ /**
282
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
283
+ * @version v29.3.5
284
+ * @link https://www.ag-grid.com/
285
+ * @license MIT
286
+ */exports.HeaderNavigationDirection=void 0,(Nu=exports.HeaderNavigationDirection||(exports.HeaderNavigationDirection={}))[Nu.UP=0]="UP",Nu[Nu.DOWN=1]="DOWN",Nu[Nu.LEFT=2]="LEFT",Nu[Nu.RIGHT=3]="RIGHT";var Sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridBodyCon=t.gridBodyCtrl})},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.navigateVertically=function(e,t,o){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var i=t.headerRowIndex,r=t.column,n=this.getHeaderRowCount(),s=e===exports.HeaderNavigationDirection.UP?this.headerPositionUtils.getColumnVisibleParent(r,i):this.headerPositionUtils.getColumnVisibleChild(r,i),a=s.nextRow,l=s.nextFocusColumn,u=!1;return a<0&&(a=0,l=r,u=!0),a>=n&&(a=-1),!(!u&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a,column:l},allowUserOverride:!0,event:o})},t.prototype.navigateHorizontally=function(e,t,o){void 0===t&&(t=!1);var i,r,n=this.focusService.getFocusedHeader();return e===exports.HeaderNavigationDirection.LEFT!==this.gridOptionsService.is("enableRtl")?(r="Before",i=this.headerPositionUtils.findHeader(n,r)):(r="After",i=this.headerPositionUtils.findHeader(n,r)),i||!t?this.focusService.focusHeaderPosition({headerPosition:i,direction:r,fromTab:t,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(n,r,o)},t.prototype.focusNextHeaderRow=function(e,t,o){var i,r=e.headerRowIndex,n=null;return"Before"===t?r>0&&(i=r-1,n=this.headerPositionUtils.findColAtEdgeForHeaderRow(i,"end")):(i=r+1,n=this.headerPositionUtils.findColAtEdgeForHeaderRow(i,"start")),this.focusService.focusHeaderPosition({headerPosition:n,direction:t,fromTab:!0,allowUserOverride:!0,event:o})},t.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var o;if(e instanceof tt){var i=e.getDisplayedLeafColumns();o="Before"===t?ae(i):i[0]}else o=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},wc([W("focusService")],t.prototype,"focusService",void 0),wc([W("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),wc([W("ctrlsService")],t.prototype,"ctrlsService",void 0),wc([k],t.prototype,"postConstruct",null),t=wc([j("headerNavigationService")],t)}(Fe),Ec=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Rc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},bc=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Ec(o,e),o.prototype.setComp=function(e,t,o){this.comp=e,this.eGui=t,this.createManagedBean(new dr(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},o.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_GRID_STYLES_CHANGED,e)},o.prototype.getHeaderHeight=function(){return this.headerHeight},o.prototype.setHeaderHeight=function(){var e,t=this.columnModel,o=0,i=t.getHeaderRowCount();t.hasFloatingFilters()&&(i++,o=1);var r=this.columnModel.getColumnGroupHeaderRowHeight(),n=this.columnModel.getColumnHeaderRowHeight(),s=i-(1+o);if(e=o*t.getFloatingFiltersHeight(),e+=s*r,e+=n,this.headerHeight!==e){this.headerHeight=e;var a=e+1+"px";this.comp.setHeightAndMinHeight(a),this.eventService.dispatchEvent({type:He.EVENT_HEADER_HEIGHT_CHANGED})}},o.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},o.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns().some(function(e){return e.isSpanHeaderHeight()});this.comp.addOrRemoveCssClass("ag-header-allow-overflow",e)},o.prototype.onTabKeyDown=function(e){var t=this.gridOptionsService.is("enableRtl"),o=e.shiftKey!==t?exports.HeaderNavigationDirection.LEFT:exports.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},o.prototype.handleKeyDown=function(e){var o=null;switch(e.key){case Ti.LEFT:o=exports.HeaderNavigationDirection.LEFT;case Ti.RIGHT:t(o)||(o=exports.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(o,!1,e);break;case Ti.UP:o=exports.HeaderNavigationDirection.UP;case Ti.DOWN:t(o)||(o=exports.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(o,null,e)&&e.preventDefault();break;default:return}},o.prototype.onFocusOut=function(e){var t=this.gridOptionsService.getDocument(),o=e.relatedTarget;!o&&this.eGui.contains(t.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},Rc([W("headerNavigationService")],o.prototype,"headerNavigationService",void 0),Rc([W("focusService")],o.prototype,"focusService",void 0),Rc([W("columnModel")],o.prototype,"columnModel",void 0),Rc([W("ctrlsService")],o.prototype,"ctrlsService",void 0),o}(Fe),Oc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Tc=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Oc(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new bc).setComp(t,this.getGui(),this.getFocusableElement());var o=function(t){e.createManagedBean(t),e.appendChild(t)};o(new mc("left")),o(new mc(null)),o(new mc("right"))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"postConstruct",null),t}($i),Dc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Pc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},_c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dc(t,e),t.prototype.addResizeBar=function(e){var t=this,o={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(o,!0);return function(){return t.dragService.removeDragSource(o)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},Pc([W("dragService")],t.prototype,"dragService",void 0),Pc([W("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Pc([j("horizontalResizeService")],t)}(Fe),Ac=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Nc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ac(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,function(i){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:i})},"columnMenu",t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,o){var i=this;this.showPopup(e,function(r){i.popupService.positionPopupByComponent({type:o,eventSource:t,ePopup:r,keepWithinBounds:!0,position:"under",column:e})},o,t)},t.prototype.showPopup=function(e,t,o,i){var r=this,n=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!n)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var s,a=document.createElement("div");Nt(a,"presentation"),a.classList.add("ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",function(e){return r.trapFocusWithin(e,a)}),n.guiPromise.then(function(e){return a.appendChild(e)});var l=i||this.ctrlsService.getGridBodyCtrl().getGui(),u=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var o,s=t instanceof KeyboardEvent;if(r.tabListener&&(r.tabListener=r.tabListener()),s&&i&&oi(i)){var a=r.focusService.findTabbableParent(i);a&&a.focus()}null===(o=n.filterPromise)||void 0===o||o.then(function(e){var t;return null===(t=null==e?void 0:e.afterGuiDetached)||void 0===t?void 0:t.call(e)})},positionCallback:function(){return t(a)},anchorToElement:l,ariaLabel:u("ariaLabelColumnMenu","Column Menu")});c&&(this.hidePopup=s=c.hideFunc),n.filterPromise.then(function(e){t(a),e.afterGuiAttached&&e.afterGuiAttached({container:o,hidePopup:s})}),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==Ti.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()&&e.getMenuTabs(["filterMenuTab"]).includes("filterMenuTab")},Nc([W("filterManager")],t.prototype,"filterManager",void 0),Nc([W("popupService")],t.prototype,"popupService",void 0),Nc([W("focusService")],t.prototype,"focusService",void 0),Nc([W("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Nc([j("menuFactory")],t)}(Fe),Fc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Lc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xc=function(e){function t(o){var i=e.call(this,t.getTemplate(o.cssClass))||this;return i.items=[],i.tabbedItemScrollMap=new Map,i.params=o,o.items&&o.items.forEach(function(e){return i.addItem(e)}),i}return Fc(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new dr(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),this.addDestroyFunc(function(){var t,o,i;return null===(i=null===(o=null===(t=e.activeItem)||void 0===t?void 0:t.tabbedItem)||void 0===o?void 0:o.afterDetachedCallback)||void 0===i?void 0:i.call(o)})},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsService.getDocument();switch(e.key){case Ti.RIGHT:case Ti.LEFT:if(!this.eHeader.contains(t.activeElement))return;var o=e.key===Ti.RIGHT,i=this.gridOptionsService.is("enableRtl"),r=this.items.indexOf(this.activeItem),n=o!==i?Math.min(r+1,this.items.length-1):Math.max(r-1,0);if(r===n)return;e.preventDefault();var s=this.items[n];this.showItemWrapper(s),s.eHeaderButton.focus();break;case Ti.UP:case Ti.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,o=t.focusService,i=t.eHeader,r=t.eBody,n=t.activeItem,s=this.gridOptionsService.getDocument().activeElement,a=e.target;if(e.preventDefault(),i.contains(s))o.focusInto(r,e.shiftKey);else{var l=null;o.isTargetUnderManagedComponent(r,a)&&(e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(r,a)),l||(l=n.eHeaderButton)),!l&&r.contains(s)&&((l=o.findNextFocusableElement(r,!1,e.shiftKey))||(l=n.eHeaderButton)),l&&l.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");Nt(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),xt(t,e.titleLabel);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},t.prototype.showItem=function(e){var t=this.items.find(function(t){return t.tabbedItem===e});t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t,o,i=this,r=e.tabbedItem,n=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:r}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),ei(this.eBody),r.bodyPromise.then(function(e){i.eBody.appendChild(e);var t=!i.focusService.isKeyboardMode();if(i.focusService.focusInto(i.eBody,!1,t),r.afterAttachedCallback&&r.afterAttachedCallback(i.afterAttachedParams),i.params.keepScrollPosition){var o=r.getScrollableContainer&&r.getScrollableContainer()||e;i.lastScrollListener=i.addManagedListener(o,"scroll",function(){i.tabbedItemScrollMap.set(r.name,o.scrollTop)});var n=i.tabbedItemScrollMap.get(r.name);void 0!==n&&setTimeout(function(){o.scrollTop=n},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),null===(o=(t=this.activeItem.tabbedItem).afterDetachedCallback)||void 0===o||o.call(t)),n.classList.add("ag-tab-selected"),this.activeItem=e):x(this.params.onActiveItemClicked)},Lc([W("focusService")],t.prototype,"focusService",void 0),Lc([er("eHeader")],t.prototype,"eHeader",void 0),Lc([er("eBody")],t.prototype,"eBody",void 0),Lc([k],t.prototype,"postConstruct",null),t}($i);
287
+ /**
288
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
289
+ * @version v29.3.5
290
+ * @link https://www.ag-grid.com/
291
+ * @license MIT
292
+ */
293
+ /**
294
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
295
+ * @version v29.3.5
296
+ * @link https://www.ag-grid.com/
297
+ * @license MIT
298
+ */
299
+ var Ic,Gc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Gc(t,e),t.prototype.observeResize=function(e,t){var o,i,r,n,s,a=this,l=this.gridOptionsService.getDocument().defaultView||window,u=this.gridOptionsService.is("suppressBrowserResizeObserver");return!!l.ResizeObserver&&!u?((o=new l.ResizeObserver(t)).observe(e),function(){return o.disconnect()}):(i=ni(e),r=ri(e),n=!0,(s=function(){if(n){var o=ni(e),l=ri(e);(o!==i||l!==r)&&(i=o,r=l,t()),a.doNextPolyfillTurn(s)}})(),function(){return n=!1})},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout(function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach(function(e){return e()})},50)}},t=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("resizeObserverService")],t),t}(Fe),Vc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),kc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastPage=0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return Vc(t,e),t.prototype.setScrollTop=function(e){var t=this.gridOptionsService.is("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&0===e){var o=this.paginationProxy.getCurrentPage();o!==this.lastPage&&(this.lastPage=o,this.scrollGoingDown=!0)}this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.is("suppressAnimationFrame")},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,o){this.verifyAnimationFrameOn(o);var i={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[o],i),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort(function(e,o){return e.index!==o.index?t*(o.index-e.index):o.createOrder-e.createOrder}),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,o=t.list,i=this.createTasksP2,r=i.list,n=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<e;){if(!u.getScrollFeature().scrollGridIfNeeded()){var c=void 0;if(o.length)this.sortTaskList(t),c=o.pop().task;else if(r.length)this.sortTaskList(i),c=r.pop().task;else{if(!n.length){this.cancelledTasks.clear();break}c=n.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}o.length||r.length||n.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsService.getDocument().defaultView||window;t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,o=!1;return function(){t.isOn()?o||(o=!0,t.addDestroyTask(function(){o=!1,e()})):t.getFrameworkOverrides().setTimeout(e,0)}},kc([W("ctrlsService")],t.prototype,"ctrlsService",void 0),kc([W("paginationProxy")],t.prototype,"paginationProxy",void 0),kc([k],t.prototype,"init",null),t=kc([j("animationFrameService")],t)}(Fe),jc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Wc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Uc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl})},t.prototype.getPreferredWidthForColumn=function(e,t){var o=this.getHeaderCellForColumn(e);if(!o)return-1;var i=this.rowRenderer.getAllCellsForColumn(e);return t||i.push(o),this.addElementsToContainerAndGetWidth(i)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,o=document.createElement("form");o.style.position="fixed";var i=this.centerRowContainerCtrl.getContainerElement();i.appendChild(o),e.forEach(function(e){return t.cloneItemIntoDummy(e,o)});var r=o.offsetWidth;return i.removeChild(o),r+this.getAutoSizePadding()},t.prototype.getAutoSizePadding=function(){var e=this.gridOptionsService.getNum("autoSizePadding");return null!=e&&e>=0?e:20},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(o){var i=o.getHtmlElementForColumnHeader(e);null!=i&&(t=i)}),t},t.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var i=document.createElement("div"),r=i.classList;["ag-header-cell","ag-header-group-cell"].some(function(e){return o.classList.contains(e)})?(r.add("ag-header","ag-header-row"),i.style.position="static"):r.add("ag-row");for(var n=e.parentElement;n;){if(["ag-header-row","ag-row"].some(function(e){return n.classList.contains(e)})){for(var s=0;s<n.classList.length;s++){var a=n.classList[s];"ag-row-position-absolute"!=a&&r.add(a)}break}n=n.parentElement}i.appendChild(o),t.appendChild(i)},Wc([W("rowRenderer")],t.prototype,"rowRenderer",void 0),Wc([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Wc([W("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Wc([k],t.prototype,"postConstruct",null),t=Wc([j("autoWidthCalculator")],t)}(Fe),zc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Kc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Yc=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},qc=function(e){function t(t,o){var i=e.call(this)||this;return i.createRowCon=t,i.destroyRowCtrls=o,i.stickyRowCtrls=[],i.containerHeight=0,i}return zc(t,e),t.prototype.postConstruct=function(){var e=this;this.isClientSide="clientSide"===this.rowModel.getType(),this.ctrlsService.whenReady(function(t){e.gridBodyCtrl=t.gridBodyCtrl})},t.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},t.prototype.checkStickyRows=function(){var e=this,t=0;if(this.gridOptionsService.is("groupRowsSticky")){for(var o=[],i=this.rowRenderer.getFirstVisibleVerticalPixel(),r=function(r){var n,s,a,l;if(o.push(r),e.isClientSide){for(var u=r;u.expanded;)if(u.master)u=u.detailNode;else if(u.childrenAfterSort){if(0===u.childrenAfterSort.length)break;u=ae(u.childrenAfterSort)}l=u.rowTop+u.rowHeight}else{var c=null===(n=r.childStore)||void 0===n?void 0:n.getStoreBounds();l=(null!==(s=null==c?void 0:c.heightPx)&&void 0!==s?s:0)+(null!==(a=null==c?void 0:c.topPx)&&void 0!==a?a:0)}var p=i+t+r.rowHeight;r.stickyRowTop=l<p?t+(l-p):t,t=0,o.forEach(function(e){var o=e.stickyRowTop+e.rowHeight;t<o&&(t=o)})};;){var n=i+t,s=this.rowModel.getRowIndexAtPixel(n),a=this.rowModel.getRow(s);if(null==a)break;if(a.level<0)break;for(var l=[],u=a.parent;u.level>=0;)l.push(u),u=u.parent;var c=l.reverse().find(function(e){return o.indexOf(e)<0&&e.displayed});if(c)r(c);else{if(!(a.isExpandable()&&a.expanded&&a.rowTop<n))break;r(a)}}this.refreshNodesAndContainerHeight(o,t)}else this.refreshNodesAndContainerHeight([],t)},t.prototype.refreshStickyNode=function(e){for(var t=[],o=0;o<this.stickyRowCtrls.length;o++){var i=this.stickyRowCtrls[o].getRowNode();i!==e&&t.push(i)}this.refreshNodesAndContainerHeight(t,this.containerHeight),this.checkStickyRows()},t.prototype.refreshNodesAndContainerHeight=function(e,t){var o,i,r,n=this,s=this.stickyRowCtrls.filter(function(t){return-1===e.indexOf(t.getRowNode())}),a=e.filter(function(e){return-1===n.stickyRowCtrls.findIndex(function(t){return t.getRowNode()===e})}),l={};s.forEach(function(e){l[e.getRowNode().id]=e,n.stickyRowCtrls=n.stickyRowCtrls.filter(function(t){return t!==e})});try{for(var u=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(l)),c=u.next();!c.done;c=u.next()){c.value.getRowNode().sticky=!1}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}this.destroyRowCtrls(l,!1);var p=a.map(function(e){return e.sticky=!0,n.createRowCon(e,!1,!1)});(r=this.stickyRowCtrls).push.apply(r,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Yc(arguments[t]));return e}(p)),this.stickyRowCtrls.forEach(function(e){return e.setRowTop(e.getRowNode().stickyRowTop)}),this.stickyRowCtrls.sort(function(e,t){return t.getRowNode().rowIndex-e.getRowNode().rowIndex}),this.containerHeight!==t&&(this.containerHeight=t,this.gridBodyCtrl.setStickyTopHeight(t))},Kc([W("rowModel")],t.prototype,"rowModel",void 0),Kc([W("rowRenderer")],t.prototype,"rowRenderer",void 0),Kc([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Kc([k],t.prototype,"postConstruct",null),t}(Fe),Qc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Xc=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Jc=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Zc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Jc(arguments[t]));return e},$c=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t.dataFirstRenderedFired=!1,t}return Qc(i,e),i.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()})},i.prototype.initialise=function(){if(this.addManagedListener(this.eventService,He.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,He.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,He.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedPropertyListener("domLayout",this.onDomLayoutChanged.bind(this)),this.addManagedPropertyListener("rowClass",this.redrawRows.bind(this)),this.gridOptionsService.is("groupRowsSticky")){var e=this.rowModel.getType();"clientSide"!=e&&"serverSide"!=e?b(function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side or Server Side Row Model")},"rowRenderer.stickyWorksWithCsrmOnly"):this.stickyRowFeature=this.createManagedBean(new qc(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.is("embedFullWidthRows"),this.redrawAfterModelUpdate()},i.prototype.initialiseCache=function(){if(this.gridOptionsService.is("keepDetailRows")){var e=this.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new ep(t)}},i.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptionsService.getNum("keepDetailRowsCount");return t(e)&&e>0?e:10},i.prototype.getRowCtrls=function(){return this.allRowCtrls},i.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},i.prototype.updateAllRowCtrls=function(){var e=y(this.rowCtrlsByRowIndex),t=this.gridOptionsService.is("ensureDomOrder"),o=this.gridOptionsService.isDomLayout("print");(t||o)&&e.sort(function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex});var i=y(this.zombieRowCtrls),r=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=Zc(e,i,r)},i.prototype.onCellFocusChanged=function(e){this.getAllCellCtrls().forEach(function(t){return t.onCellFocused(e)}),this.getFullWidthRowCtrls().forEach(function(t){return t.onFullWidthRowFocused(e)})},i.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_CELL_FOCUSED,function(t){e.onCellFocusChanged(t)}),this.addManagedListener(this.eventService,He.EVENT_CELL_FOCUS_CLEARED,function(){e.onCellFocusChanged()}),this.addManagedListener(this.eventService,He.EVENT_FLASH_CELLS,function(t){e.getAllCellCtrls().forEach(function(e){return e.onFlashCells(t)})}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_HOVER_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onColumnHover()})}),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onDisplayedColumnsChanged()})}),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.getAllCellCtrls().forEach(function(e){return e.onLeftChanged()})}),this.gridOptionsService.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,He.EVENT_RANGE_SELECTION_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onRangeSelectionChanged()})}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_MOVED,function(){e.getAllCellCtrls().forEach(function(e){return e.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PINNED,function(){e.getAllCellCtrls().forEach(function(e){return e.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VISIBLE,function(){e.getAllCellCtrls().forEach(function(e){return e.updateRangeBordersIfRangeCount()})})),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,He.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},i.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach(function(e){return e()}),this.destroyFuncsForColumnListeners.length=0},i.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach(function(t){var o=function(o){e.getAllCellCtrls().forEach(function(e){e.getColumn()===t&&o(e)})},i=function(){o(function(e){return e.onLeftChanged()})},r=function(){o(function(e){return e.onWidthChanged()})},n=function(){o(function(e){return e.onFirstRightPinnedChanged()})},s=function(){o(function(e){return e.onLastLeftPinnedChanged()})},a=function(){o(function(e){return e.onColDefChanged()})};t.addEventListener("leftChanged",i),t.addEventListener("widthChanged",r),t.addEventListener("firstRightPinnedChanged",n),t.addEventListener("lastLeftPinnedChanged",s),t.addEventListener("colDefChanged",a),e.destroyFuncsForColumnListeners.push(function(){t.removeEventListener("leftChanged",i),t.removeEventListener("widthChanged",r),t.removeEventListener("firstRightPinnedChanged",n),t.removeEventListener("lastLeftPinnedChanged",s),t.removeEventListener("colDefChanged",a)})})},i.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsService.isDomLayout("print"),t=e||this.gridOptionsService.is("embedFullWidthRows"),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},i.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},i.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},i.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach(function(o){var i=o.getCellElement(e);i&&t.push(i)}),t},i.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},i.prototype.getTopRowCtrls=function(){return this.topRowCtrls},i.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},i.prototype.refreshFloatingRows=function(e,t){var o=this;e.forEach(function(e){e.destroyFirstPass(),e.destroySecondPass()}),e.length=0,t&&t.forEach(function(t){var i=new hl(t,o.beans,!1,!1,o.printLayout);e.push(i)})},i.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},i.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return o(e)||c(this.rowCtrlsByRowIndex,function(o,i){var r=i.getRowNode();e.indexOf(r)>=0&&t.push(o)}),t},i.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var o=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(o)}this.redrawAfterModelUpdate({recycleRows:t})},i.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=(null==e?void 0:e.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var o=this.gridOptionsService.getDocument().activeElement,i=this.gridOptionsService.getDomData(o,al.DOM_DATA_KEY_CELL_CTRL),r=this.gridOptionsService.getDomData(o,hl.DOM_DATA_KEY_ROW_CTRL);return i||r?t:null},i.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var o=!e.domLayoutChanged&&!!e.recycleRows,i=e.animate&&this.gridOptionsService.isAnimateRows(),r=o?this.recycleRows():null;o||this.removeAllRowComps(),this.redraw(r,i),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()},i.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsService.is("suppressScrollOnNewData");t&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},i.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},i.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},i.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},i.prototype.isRefreshInProgress=function(){return this.refreshInProgress},i.prototype.restoreFocusedCell=function(e){e&&this.onCellFocusChanged({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,api:this.beans.gridApi,columnApi:this.beans.columnApi,context:this.beans.gridOptionsService.context,type:"mock"})},i.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach(function(t){t.stopEditing(e)})},i.prototype.getAllCellCtrls=function(){for(var e=[],t=this.getAllRowCtrls(),o=t.length,i=0;i<o;i++)for(var r=t[i].getAllCellCtrls(),n=r.length,s=0;s<n;s++)e.push(r[s]);return e},i.prototype.getAllRowCtrls=function(){var e,t,o=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],i=Zc(this.topRowCtrls,this.bottomRowCtrls,o);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(this.rowCtrlsByRowIndex)),n=r.next();!n.done;n=r.next()){var s=n.value;i.push(this.rowCtrlsByRowIndex[s])}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return i},i.prototype.addRenderedRowListener=function(e,t,o){var i=this.rowCtrlsByRowIndex[t];i&&i.addEventListener(e,o)},i.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,o=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach(function(e){return e.flashCell({flashDelay:t,fadeDelay:o})})},i.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(e){if(e.refreshShouldDestroy()){var o=e.getRowCtrl();o&&o.refreshCell(e)}else e.refreshCell(t)}),this.getFullWidthRowCtrls(e.rowNodes).forEach(function(e){e.refreshFullWidth()})},i.prototype.getCellRendererInstances=function(e){var t,o=this,i=this.getCellCtrls(e.rowNodes,e.columns).map(function(e){return e.getCellRenderer()}).filter(function(e){return null!=e});if(null===(t=e.columns)||void 0===t?void 0:t.length)return i;var r=[],n=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach(function(e){if((!n||o.isRowInMap(e.getRowNode(),n))&&e.isFullWidth()){var t=e.getFullWidthCellRenderer();t&&r.push(t)}}),Zc(r,i)},i.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(function(e){var o=e.getCellEditor();o&&t.push(o)}),t},i.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach(function(t){if(t.isEditing()){var o=t.getCellPosition();e.push(o)}}),e},i.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach(function(e){var o=e.id;"top"===e.rowPinned?t.top[o]=e:"bottom"===e.rowPinned?t.bottom[o]=e:t.normal[o]=e}),t}},i.prototype.isRowInMap=function(e,t){var o=e.id,i=e.rowPinned;return"bottom"===i?null!=t.bottom[o]:"top"===i?null!=t.top[o]:null!=t.normal[o]},i.prototype.getCellCtrls=function(e,o){var i,r=this,n=this.mapRowNodes(e),s=[];t(o)&&(i={},o.forEach(function(e){var o=r.columnModel.getGridColumn(e);t(o)&&(i[o.getId()]=!0)}));return this.getAllRowCtrls().forEach(function(e){return o=(t=e).getRowNode(),void((null==n||r.isRowInMap(o,n))&&t.getAllCellCtrls().forEach(function(e){var t=e.getColumn().getId();i&&!i[t]||s.push(e)}));var t,o}),s},i.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},i.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},i.prototype.recycleRows=function(){var e=[];c(this.rowCtrlsByRowIndex,function(t,o){null==o.getRowNode().id&&e.push(t)}),this.removeRowCtrls(e);var t={};return c(this.rowCtrlsByRowIndex,function(e,o){var i=o.getRowNode();t[i.id]=o}),this.rowCtrlsByRowIndex={},t},i.prototype.removeRowCtrls=function(e){var t=this;e.forEach(function(e){var o=t.rowCtrlsByRowIndex[e];o&&(o.destroyFirstPass(),o.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]})},i.prototype.onBodyScroll=function(e){"vertical"===e.direction&&this.redrawAfterScroll()},i.prototype.redrawAfterScroll=function(){var e;if(this.stickyRowFeature&&mo()&&(e=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(!0),null!=e){var t=this.getCellToRestoreFocusToAfterRefresh();null!=e&&null==t&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(e))}},i.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach(function(e){return t[e]=!0});var o=Object.keys(this.rowCtrlsByRowIndex).filter(function(e){return!t[e]});this.removeRowCtrls(o)},i.prototype.calculateIndexesToDraw=function(e){var t=this,o=Po(this.firstRenderedRow,this.lastRenderedRow),i=function(e,i){var r=i.getRowNode().rowIndex;null!=r&&(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(i)&&o.push(r)};return c(this.rowCtrlsByRowIndex,i),c(e,i),o.sort(function(e,t){return e-t}),o=o.filter(function(e){var o=t.paginationProxy.getRow(e);return o&&!o.sticky})},i.prototype.redraw=function(e,o,i){var r=this;void 0===o&&(o=!1),void 0===i&&(i=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var n=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(n),this.printLayout&&(o=!1),n.forEach(function(n){t(r.createOrUpdateRowCtrl(n,e,o,i))}),e)&&(i&&!this.gridOptionsService.is("suppressAnimationFrame")&&!this.printLayout?this.beans.animationFrameService.addDestroyTask(function(){r.destroyRowCtrls(e,o),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,o));this.updateAllRowCtrls()},i.prototype.dispatchDisplayedRowsChanged=function(e){void 0===e&&(e=!1);var t={type:He.EVENT_DISPLAYED_ROWS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(t)},i.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},i.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach(function(t){var o=t.getRowNode().rowIndex;e.push(o.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},i.prototype.getFullWidthRowCtrls=function(e){var t=this,o=this.mapRowNodes(e);return this.getAllRowCtrls().filter(function(e){if(!e.isFullWidth())return!1;var i=e.getRowNode();return!(null!=o&&!t.isRowInMap(i,o))})},i.prototype.refreshFullWidthRow=function(e){var t=this.getFullWidthRowCtrls().find(function(t){return t.getRowNode()===e});t&&(t.refreshFullWidth()||(e.sticky?this.stickyRowFeature.refreshStickyNode(e):this.removeRowCtrls([e.rowIndex]),this.redrawAfterScroll()))},i.prototype.createOrUpdateRowCtrl=function(e,o,i,r){var n,s=this.rowCtrlsByRowIndex[e];if(s||t(n=this.paginationProxy.getRow(e))&&t(o)&&o[n.id]&&n.alreadyRendered&&(s=o[n.id],o[n.id]=null),!s){if(n||(n=this.paginationProxy.getRow(e)),!t(n))return;s=this.createRowCon(n,i,r)}return n&&(n.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},i.prototype.destroyRowCtrls=function(e,t){var o=this,i=[];c(e,function(e,r){r&&(o.cachedRowCtrls&&r.isCacheable()?o.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),t?(o.zombieRowCtrls[r.getInstanceId()]=r,i.push(function(){r.destroySecondPass(),delete o.zombieRowCtrls[r.getInstanceId()]})):r.destroySecondPass()))}),t&&(i.push(function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()}),D(i))},i.prototype.getRowBuffer=function(){var e=this.gridOptionsService.getNum("rowBuffer");return"number"==typeof e?e<0&&(b(function(){return console.warn("AG Grid: rowBuffer should not be negative")},"warn rowBuffer negative"),e=0,this.gridOptionsService.set("rowBuffer",0)):e=10,e},i.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.gridOptionsService.getRowHeightAsNumber()},i.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.getRowBufferInPixels(),i=this.ctrlsService.getGridBodyCtrl(),r=this.gridOptionsService.is("suppressRowVirtualisation"),n=!1,s=void 0,a=void 0;do{var l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getCurrentPagePixelRange(),c=u.pageFirstPixel,p=u.pageLastPixel,d=this.rowContainerHeightService.getDivStretchOffset(),h=i.getScrollFeature().getVScrollPosition(),f=h.top,g=h.bottom;r?(s=c+d,a=p+d):(s=Math.max(f+l-o,c)+d,a=Math.min(g+l+o,p)+d),this.firstVisibleVPixel=Math.max(f+l,c)+d,n=this.ensureAllRowsInRangeHaveHeightsCalculated(s,a)}while(n);var v=this.paginationProxy.getRowIndexAtPixel(s),y=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getPageFirstRow(),C=this.paginationProxy.getPageLastRow();v<m&&(v=m),y>C&&(y=C),e=v,t=y}else e=0,t=-1;var w=this.gridOptionsService.isDomLayout("normal"),S=this.gridOptionsService.is("suppressMaxRenderedRowRestriction"),E=Math.max(this.getRowBuffer(),500);w&&!S&&t-e>E&&(t=e+E);var R=e!==this.firstRenderedRow,b=t!==this.lastRenderedRow;if(R||b){this.firstRenderedRow=e,this.lastRenderedRow=t;var O={type:He.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t};this.eventService.dispatchEvent(O)}},i.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var t={type:He.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame(function(){e.beans.eventService.dispatchEvent(t)})}},i.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var o=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return o&&this.updateContainerHeights(),o},i.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},i.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},i.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},i.prototype.doNotUnVirtualiseRow=function(e){var t=!1,o=e.getRowNode(),i=this.focusService.isRowNodeFocused(o),r=e.isEditing(),n=o.detail;return(i||r||n)&&!!this.paginationProxy.isRowPresent(o)||t},i.prototype.createRowCon=function(e,t,o){var i=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(i)return i;var r=this.gridOptionsService.is("suppressAnimationFrame"),n=o&&!r&&!this.printLayout;return new hl(e,this.beans,t,n,this.printLayout)},i.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map(function(t){return e[t].getRowNode()})},i.prototype.getRowByPosition=function(e){var t,o=e.rowIndex;switch(e.rowPinned){case"top":t=this.topRowCtrls[o];break;case"bottom":t=this.bottomRowCtrls[o];break;default:(t=this.rowCtrlsByRowIndex[o])||(t=this.getStickyTopRowCtrls().find(function(e){return e.getRowNode().rowIndex===o})||null)}return t},i.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},i.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var o=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!o},Xc([W("animationFrameService")],i.prototype,"animationFrameService",void 0),Xc([W("paginationProxy")],i.prototype,"paginationProxy",void 0),Xc([W("columnModel")],i.prototype,"columnModel",void 0),Xc([W("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Xc([W("rowModel")],i.prototype,"rowModel",void 0),Xc([W("focusService")],i.prototype,"focusService",void 0),Xc([W("beans")],i.prototype,"beans",void 0),Xc([W("rowContainerHeightService")],i.prototype,"rowContainerHeightService",void 0),Xc([W("ctrlsService")],i.prototype,"ctrlsService",void 0),Xc([k],i.prototype,"postConstruct",null),i=Xc([j("rowRenderer")],i)}(Fe),ep=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],ce(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),tp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),op=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ip=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.formatValue=function(e,t,o,i,r){void 0===r&&(r=!0);var n,s=null,a=e.getColDef();if(i?n=i:r&&(n=a.valueFormatter),n){var l={value:o,node:t,data:t?t.data:null,colDef:a,column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};s="function"==typeof n?n(l):this.expressionService.evaluate(n,l)}else if(a.refData)return a.refData[o]||"";return null==s&&Array.isArray(o)&&(s=o.join(", ")),s},op([W("expressionService")],t.prototype,"expressionService",void 0),t=op([j("valueFormatterService")],t)}(Fe),rp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),np=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rp(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsService.get("pinnedTopRowData")),this.setPinnedBottomRowData(this.gridOptionsService.get("pinnedBottomRowData"))},t.prototype.isEmpty=function(e){return i("top"===e?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var o="top"===t?this.pinnedTopRows:this.pinnedBottomRows;if(i(o))return 0;for(var r=0;r<o.length;r++){var n=o[r];if(n.rowTop+n.rowHeight-1>=e)return r}return o.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:He.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:He.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var o=this,i=[];if(e){var r=0;e.forEach(function(e,n){var s=new $n(o.beans);s.data=e;var a=t?$n.ID_PREFIX_TOP_PINNED:$n.ID_PREFIX_BOTTOM_PINNED;s.id=a+n,s.rowPinned=t?"top":"bottom",s.setRowTop(r),s.setRowHeight(o.gridOptionsService.getRowHeightForNode(s).height),s.setRowIndex(n),r+=s.rowHeight,i.push(s)})}return i},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){i(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){i(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=ae(e);return t.rowTop+t.rowHeight},np([W("beans")],t.prototype,"beans",void 0),np([k],t.prototype,"init",null),t=np([j("pinnedRowModel")],t)}(Fe);
300
+ /**
301
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
302
+ * @version v29.3.5
303
+ * @link https://www.ag-grid.com/
304
+ * @license MIT
305
+ */
306
+ exports.ServerSideTransactionResultStatus=void 0,(Ic=exports.ServerSideTransactionResultStatus||(exports.ServerSideTransactionResultStatus={})).Applied="Applied",Ic.StoreNotFound="StoreNotFound",Ic.StoreLoading="StoreLoading",Ic.StoreWaitingToLoad="StoreWaitingToLoad",Ic.StoreLoadingFailed="StoreLoadingFailed",Ic.StoreWrongType="StoreWrongType",Ic.Cancelled="Cancelled";
307
+ /**
308
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
309
+ * @version v29.3.5
310
+ * @link https://www.ag-grid.com/
311
+ * @license MIT
312
+ */
313
+ var ap,lp=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var o=0;o<e.children.length;o++)this.depthFirstSearchChangedPath(e.children[o],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,o){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var r=e.childrenAfterGroup[i];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[i],t,o):o&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,o=0;!this.mapToItems[t.id];){var i={rowNode:t,children:null};this.mapToItems[t.id]=i,o++,t=t.parent}return o},e.prototype.populateColumnsMap=function(e,t){var o=this;if(this.keepingColumns&&t)for(var i=e;i;)this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),t.forEach(function(e){return o.nodeIdsToColumns[i.id][e.getId()]=!0}),i=i.parent},e.prototype.linkPathItems=function(e,t){for(var o=e,i=0;i<t;i++){var r=this.mapToItems[o.id],n=this.mapToItems[o.parent.id];n.children||(n.children=[]),n.children.push(r),o=o.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id];return t.filter(function(e){return o[e.getId()]})},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id];return t.filter(function(e){return!o[e.getId()]})},e}(),up=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),cp=function(e){function t(o){var i=e.call(this)||this;return i.state=t.STATE_WAITING_TO_LOAD,i.version=0,i.id=o,i}return up(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,o){this.successCommon(e,{rowData:t,rowCount:o})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,o=this.isAlive();return t&&o},t.prototype.successCommon=function(e,o){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(o))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var o={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(o)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Fe),pp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),dp=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},hp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var o,i,r;return pp(t,e),o=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsService.getNum("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=ki.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.getMaxConcurrentDatasourceRequests=function(){var e=this.gridOptionsService.getNum("maxConcurrentDatasourceRequests");return null==e?2:e<=0?void 0:e},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(cp.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){ki.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:o.BLOCK_LOADED_EVENT}),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:o.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.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 e=this.getAvailableLoadingCount(),t=this.blocks.filter(function(e){return e.getState()===cp.STATE_WAITING_TO_LOAD}).slice(0,e);this.registerLoads(t.length),t.forEach(function(e){return e.load()}),this.printCacheStatus()}},t.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType("serverSide"))return this.rowModel.getBlockStates();var e={};return this.blocks.forEach(function(t){var o=t.getBlockStateJson(),i=o.id,r=o.state;e[i]=r}),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.prototype.registerLoads=function(e){this.activeBlockLoadsCount+=e},t.prototype.getAvailableLoadingCount=function(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0},t.BLOCK_LOADED_EVENT="blockLoaded",t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",dp([W("rowModel")],t.prototype,"rowModel",void 0),dp([k],t.prototype,"postConstruct",null),dp([(i=0,r=K("loggerFactory"),function(e,t){r(e,t,i)})],t.prototype,"setBeans",null),t=o=dp([j("rowNodeBlockLoader")],t)}(Fe),fp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gp=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},vp=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return fp(i,e),i.prototype.postConstruct=function(){this.active=this.gridOptionsService.is("pagination"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,He.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationPageSizeChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},i.prototype.ensureRowHeightsValid=function(e,t,o,i){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},i.prototype.isPaginateChildRows=function(){return!(!this.gridOptionsService.is("groupRemoveSingleChildren")&&!this.gridOptionsService.is("groupRemoveLowestSingleChildren"))||this.gridOptionsService.is("paginateChildRows")},i.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:He.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows};this.eventService.dispatchEvent(t)},i.prototype.onPaginationPageSizeChanged=function(){this.active=this.gridOptionsService.is("pagination"),this.calculatePages();var e={type:He.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)},i.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e&&"number"==typeof this.currentPage){this.currentPage=e;var t={type:He.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};this.onModelUpdated(t)}},i.prototype.getPixelOffset=function(){return this.pixelOffset},i.prototype.getRow=function(e){return this.rowModel.getRow(e)},i.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},i.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},i.prototype.getCurrentPageHeight=function(){return o(this.topRowBounds)||o(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},i.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},i.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},i.prototype.isEmpty=function(){return this.rowModel.isEmpty()},i.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},i.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},i.prototype.forEachNodeOnPage=function(e){for(var t=this.getPageFirstRow(),o=this.getPageLastRow(),i=t;i<=o;i++){var r=this.getRow(i);r&&e(r)}},i.prototype.getType=function(){return this.rowModel.getType()},i.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},i.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},i.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},i.prototype.getRowCount=function(){return this.rowModel.getRowCount()},i.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},i.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},i.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},i.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},i.prototype.getCurrentPage=function(){return this.currentPage},i.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},i.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},i.prototype.goToFirstPage=function(){this.goToPage(0)},i.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},i.prototype.getPageSize=function(){return this.pageSize},i.prototype.getTotalPages=function(){return this.totalPages},i.prototype.setPageSize=function(){this.pageSize=this.gridOptionsService.getNum("paginationPageSize"),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},i.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(t(this.topRowBounds)?this.topRowBounds.rowTop:0)},i.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:He.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},i.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},i.prototype.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},i.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var t=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>e&&(o=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),o===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var i=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=i-1}}},i.prototype.getMasterRowCount=function(){return this.masterRowCount},i.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},i.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},gp([W("rowModel")],i.prototype,"rowModel",void 0),gp([k],i.prototype,"postConstruct",null),i=gp([j("paginationProxy")],i)}(Fe),yp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),mp=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Cp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yp(t,e),t.prototype.processAllCellClasses=function(e,t,o,i){this.processClassRules(e.cellClassRules,t,o,i),this.processStaticCellClasses(e,t,o)},t.prototype.processClassRules=function(e,t,o,i){if(null!=e){for(var r=Object.keys(e),n={},s={},a=function(o){var i,a=r[o],u=e[a];"string"==typeof u?i=l.expressionService.evaluate(u,t):"function"==typeof u&&(i=u(t)),a.split(" ").forEach(function(e){null!=e&&""!=e.trim()&&(i?n[e]=!0:s[e]=!0)})},l=this,u=0;u<r.length;u++)a(u);i&&Object.keys(s).forEach(i),Object.keys(n).forEach(o)}},t.prototype.getStaticCellClasses=function(e,t){var o,i=e.cellClass;if(!i)return[];"function"==typeof i?o=i(t):o=i;return"string"==typeof o&&(o=[o]),o||[]},t.prototype.processStaticCellClasses=function(e,t,o){this.getStaticCellClasses(e,t).forEach(function(e){o(e)})},mp([W("expressionService")],t.prototype,"expressionService",void 0),t=mp([j("stylingService")],t)}(Fe),wp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sp=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return wp(t,e),t.prototype.setValue=function(t,o){return e.prototype.setValue.call(this,t,o),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(Gr),Ep=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Rp=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return Ep(t,e),t.prototype.setValue=function(t,o){var i=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,i},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(xr),bp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Op=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return bp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,o=t.min,i=t.max,r=t.step;null!=o&&this.setMinValue(o),null!=i&&this.setMaxValue(i),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(t){var o=t.target.value;e.setValue(o)})},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,o){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var i=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,i},t}(xr),Tp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Dp=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Pp=function(e){function t(o){var i=e.call(this,o,t.TEMPLATE)||this;return i.labelAlignment="top",i}return Tp(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,o=br.EVENT_CHANGED;return this.addManagedListener(this.eText,o,function(){var o=parseFloat(t.eText.getValue());t.eSlider.setValue(o.toString(),!0),e(o||0)}),this.addManagedListener(this.eSlider,o,function(){var o=t.eSlider.getValue();t.eText.setValue(o,!0),e(parseFloat(o))}),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:br.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.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>',Dp([er("eLabel")],t.prototype,"eLabel",void 0),Dp([er("eSlider")],t.prototype,"eSlider",void 0),Dp([er("eText")],t.prototype,"eText",void 0),Dp([k],t.prototype,"init",null),t}(Er),_p=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ap=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Np=function(e){function t(o){void 0===o&&(o={});var i=e.call(this,t.getTemplate(o))||this;i.suppressEnabledCheckbox=!0,i.suppressOpenCloseIcons=!1;var r=o.title,n=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return i.title=r,i.cssIdentifier=o.cssIdentifier||"default",i.enabled=null==n||n,i.items=s||[],i.alignItems=o.alignItems||"center",null!=a&&(i.suppressEnabledCheckbox=a),null!=l&&(i.suppressOpenCloseIcons=l),i}return _p(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("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()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Ri("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Ri("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(t){switch(t.key){case Ti.ENTER:case Ti.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case Ti.RIGHT:case Ti.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===Ti.RIGHT)}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||jt(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;jo(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),jo(this.eGroupOpenedIcon,e&&this.expanded),jo(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var t="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),jo(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),jo(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach(function(e){return t.addItem(e)})},t.prototype.addItem=function(e){var t=this.eContainer,o=e instanceof $i?e.getGui():e;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),t.appendChild(o),this.items.push(o)},t.prototype.hideItem=function(e,t){jo(this.items[t],!e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange(function(o){t.setEnabled(o,!0),e(o)}),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.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)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",Ap([er("eTitleBar")],t.prototype,"eTitleBar",void 0),Ap([er("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Ap([er("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Ap([er("eToolbar")],t.prototype,"eToolbar",void 0),Ap([er("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Ap([er("eTitle")],t.prototype,"eTitle",void 0),Ap([er("eContainer")],t.prototype,"eContainer",void 0),Ap([k],t.prototype,"postConstruct",null),t}($i),Mp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Fp=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
314
+ /**
315
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
316
+ * @version v29.3.5
317
+ * @link https://www.ag-grid.com/
318
+ * @license MIT
319
+ */exports.TabGuardClassNames=void 0,(ap=exports.TabGuardClassNames||(exports.TabGuardClassNames={})).TAB_GUARD="ag-tab-guard",ap.TAB_GUARD_TOP="ag-tab-guard-top",ap.TAB_GUARD_BOTTOM="ag-tab-guard-bottom";var Lp,xp=function(e){function t(t){var o=e.call(this)||this;o.skipTabGuardFocus=!1;var i=t.comp,r=t.eTopGuard,n=t.eBottomGuard,s=t.focusInnerElement,a=t.onFocusIn,l=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,p=t.handleKeyDown,d=t.eFocusableElement;return o.comp=i,o.eTopGuard=r,o.eBottomGuard=n,o.providedFocusInnerElement=s,o.eFocusableElement=d,o.providedFocusIn=a,o.providedFocusOut=l,o.providedShouldStopEventPropagation=u,o.providedOnTabKeyDown=c,o.providedHandleKeyDown=p,o}return Mp(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new dr(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))})},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var i=this.getNextFocusableElement(e.shiftKey);o&&setTimeout(function(){return t.activateTabGuards()},0),i&&(i.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return(this.gridOptionsService.getNum("tabIndex")||0).toString()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},Fp([W("focusService")],t.prototype,"focusService",void 0),Fp([k],t.prototype,"postConstruct",null),t}(Fe),Ip=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Gp=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Hp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ip(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],o={setTabIndex:function(e){t.forEach(function(t){return null!=e?t.setAttribute("tabIndex",e):t.removeAttribute("tabIndex")})}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new xp({comp:o,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement("div"),o="top"===e?exports.TabGuardClassNames.TAB_GUARD_TOP:exports.TabGuardClassNames.TAB_GUARD_BOTTOM;return t.classList.add(exports.TabGuardClassNames.TAB_GUARD,o),Nt(t,"presentation"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];ei(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Gp(arguments[t]));return e}(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,o){vi(t)||(t=t.getGui());var i=this.eBottomGuard;i?i.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,o)},t}($i),Vp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),kp=function(){return kp=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},kp.apply(this,arguments)},Bp=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},jp=function(e){function t(t){void 0===t&&(t=1);var o=e.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return o.level=t,o.menuItems=[],o}return Vp(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),o=t&&t.getGui();o&&o.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case Ti.UP:case Ti.RIGHT:case Ti.DOWN:case Ti.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case Ti.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach(function(e){"separator"===e?t.addSeparator():"string"==typeof e?console.warn("AG Grid: unrecognised menu item "+e):t.addItem(e)})},t.prototype.addItem=function(e){var t=this,o=this.createManagedBean(new Yp(kp(kp({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some(function(e){return e.isSubMenuOpen()})}})));o.setParentComponent(this),Vt(o.getGui(),this.level),this.menuItems.push(o),this.appendChild(o.getGui()),this.addManagedListener(o,Yp.EVENT_MENU_ITEM_SELECTED,function(e){t.dispatchEvent(e)}),this.addManagedListener(o,Yp.EVENT_MENU_ITEM_ACTIVATED,function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem})},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter(function(e){return!e.isDisabled()})[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(ii('\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>'))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var o=e&&e.getParentComponent&&e.getParentComponent();if(!o||!(o instanceof t||o instanceof Yp))break;e=o}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case Ti.UP:case Ti.DOWN:var t=this.findNextItem(e===Ti.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsService.is("enableRtl")?Ti.RIGHT:Ti.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Yp&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter(function(e){return!e.isDisabled()});if(t.length){if(!this.activeMenuItem)return e?ae(t):t[0];var o;e&&t.reverse();for(var i=!1,r=0;r<t.length;r++){var n=t[r];if(i){o=n;break}n===this.activeMenuItem&&(i=!0)}return o||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Bp([W("focusService")],t.prototype,"focusService",void 0),Bp([k],t.prototype,"postConstruct",null),t}(Hp),Wp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Up=function(e){function t(t){var o=e.call(this)||this;return o.wrappedComponent=t,o.setTemplateFromElement(t.getGui()),o}return Wp(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===Ti.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"postConstruct",null),t}(Hp),zp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Kp=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Yp=function(e){function t(t){var o=e.call(this)||this;return o.params=t,o.isActive=!1,o.subMenuIsOpen=!1,o.setTemplate('<div class="'+o.getClassName()+'" tabindex="-1" role="treeitem"></div>'),o}return zp(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),kt(t,!0)):(this.addGuiEventListener("click",function(t){return e.onItemSelected(t)}),this.addGuiEventListener("keydown",function(t){t.key!==Ti.ENTER&&t.key!==Ti.SPACE||(t.preventDefault(),e.onItemSelected(t))}),this.addGuiEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),this.addGuiEventListener("mouseenter",function(){return e.onMouseEnter()}),this.addGuiEventListener("mouseleave",function(){return e.onMouseLeave()})),this.params.cssClasses&&this.params.cssClasses.forEach(function(t){return e.addCssClass(t)})},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var o=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var i,r=ii('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var n=Ft(this.getGui()),s=isNaN(n)?1:n+1,a=this.createBean(new jp(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),r.appendChild(a.getGui()),this.addManagedListener(a,t.EVENT_MENU_ITEM_SELECTED,function(e){return o.dispatchEvent(e)}),a.addGuiEventListener("mouseenter",function(){return o.cancelDeactivate()}),i=function(){return o.destroyBean(a)},e&&setTimeout(function(){return a.activateFirstItem()},0)}else{var l=this.params.subMenu,u=this.createBean(new Up(l));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",d=function(){return o.cancelDeactivate()};c.addEventListener(p,d),i=function(){return c.removeEventListener(p,d)},r.appendChild(c),l.afterGuiAttached&&setTimeout(function(){return l.afterGuiAttached()},0)}var h=this.getGui(),f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:r}),g=this.localeService.getLocaleTextFunc(),v=this.popupService.addPopup({modal:!0,eChild:r,positionCallback:f,anchorToElement:h,ariaLabel:g("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,jt(h,!0),this.hideSubMenu=function(){v&&v.hideFunc(),o.subMenuIsOpen=!1,jt(h,!1),i()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,jt(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout(function(){t.isAlive()&&t.isActive&&t.openSubMenu()},300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=ii('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(bi("check",this.gridOptionsService)):this.params.icon&&(vi(this.params.icon)?e.appendChild(this.params.icon):"string"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=ii('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsService.is("enableBrowserTooltips")?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new qi(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=ii('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=ii('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var o=this.gridOptionsService.is("enableRtl")?"smallLeft":"smallRight";jt(t,!1),e.appendChild(bi(o,this.gridOptionsService))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var o={type:t.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:e};this.dispatchEvent(o)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(function(){return e.activate(!0)},t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(function(){return e.deactivate()},t.ACTIVATION_DELAY):this.deactivate()},t.prototype.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,Kp([W("popupService")],t.prototype,"popupService",void 0),Kp([k],t.prototype,"init",null),t}($i),qp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qp=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Xp=function(e){function t(o){var i=e.call(this,t.getTemplate(o))||this;return i.closable=!0,i.config=o,i}return qp(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,o=t.component,i=t.closable,r=t.hideTitleBar,n=t.title,s=t.minWidth,a=void 0===s?250:s,l=t.width,u=t.minHeight,c=void 0===u?250:u,p=t.height,d=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new yr(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var v=this.getGui();o&&this.setBodyComponent(o),r?jo(this.eTitleBar,!1):(n&&this.setTitle(n),this.setClosable(null!=i?i:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(t){var o=e.gridOptionsService.getDocument();if(v.contains(t.relatedTarget)||v.contains(o.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var i=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");i&&i.focus()}}),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var o=this.closeButtonComp=new $i(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(o);var i=o.getGui(),r=bi("close",this.gridOptionsService);r.classList.add("ag-panel-title-bar-button-icon"),i.appendChild(r),this.addTitleBarButton(o),o.addManagedListener(i,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(i=this.closeButtonComp.getGui()).parentElement.removeChild(i),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var o=this.eTitleBarButtons,i=o.children,r=i.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r)),e.addCssClass("ag-panel-title-bar-button");var n=e.getGui();0===t?o.insertAdjacentElement("afterbegin",n):t===r?o.insertAdjacentElement("beforeend",n):i[t-1].insertAdjacentElement("afterend",n),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return Yo(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return qo(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Qp([er("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Qp([er("eTitleBar")],t.prototype,"eTitleBar",void 0),Qp([er("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Qp([er("eTitle")],t.prototype,"eTitle",void 0),Qp([k],t.prototype,"postConstruct",null),t}($i),Jp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Zp=function(){return Zp=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Zp.apply(this,arguments)},$p=function(e){function t(t){var o=e.call(this,Zp(Zp({},t),{popup:!0}))||this;return o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.lastPosition={x:0,y:0,width:0,height:0},o}return Jp(t,e),t.prototype.postConstruct=function(){var t=this,o=this.getGui(),i=this.config,r=i.movable,n=i.resizable,s=i.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(o,"focusin",function(e){o.contains(e.relatedTarget)||t.popupService.bringPopupToFront(o)}),r&&this.setMovable(r),s&&this.setMaximizable(s),n&&this.setResizable(n)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,o=t.alwaysOnTop,i=t.modal,r=t.title,n=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:i,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:r||n("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,o=t.x,i=t.y,r=t.width,n=t.height;this.setWidth(r),this.setHeight(n),this.positionableFeature.offsetElement(o,i)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){jo(this.maximizeIcon,!this.isMaximized),jo(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&e!==this.isMaximizable){var i=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),i.addManagedListener(i.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){t.isMaximized=!1,t.refreshMaximizeIcon()})}},t.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new $i('<div class="ag-dialog-button"></span>')),t=e.getGui();return this.maximizeIcon=bi("maximize",this.gridOptionsService),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=bi("minimize",this.gridOptionsService),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e},function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([W("popupService")],t.prototype,"popupService",void 0),t}(Xp),ed=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),td=function(){return td=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},td.apply(this,arguments)},od=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},id=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},rd=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}var i;return ed(o,t),i=o,o.addKeyboardModeEvents=function(e,t){var o=i.instancesMonitored.get(e);o&&o.length>0?-1===o.indexOf(t)&&o.push(t):(i.instancesMonitored.set(e,[t]),e.addEventListener("keydown",i.toggleKeyboardMode),e.addEventListener("mousedown",i.toggleKeyboardMode))},o.removeKeyboardModeEvents=function(e,t){var o=i.instancesMonitored.get(e),r=[];o&&o.length&&(r=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(id(arguments[t]));return e}(o).filter(function(e){return e!==t}),i.instancesMonitored.set(e,r)),0===r.length&&(e.removeEventListener("keydown",i.toggleKeyboardMode),e.removeEventListener("mousedown",i.toggleKeyboardMode))},o.toggleKeyboardMode=function(e){var t=i.keyboardModeActive,o="keydown"===e.type;if(!(o&&(e.ctrlKey||e.metaKey||e.altKey)||t&&o||!t&&!o)){i.keyboardModeActive=o;var r=e.target.ownerDocument;if(r){var n=i.instancesMonitored.get(r);n&&n.forEach(function(e){e.dispatchEvent({type:o?He.EVENT_KEYBOARD_FOCUS:He.EVENT_MOUSE_FOCUS})})}}},o.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady(function(t){e.gridCtrl=t.gridCtrl;var o=e.gridOptionsService.getDocument();i.addKeyboardModeEvents(o,e.gridCtrl),e.addDestroyFunc(function(){return e.unregisterGridCompController(e.gridCtrl)})})},o.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsService.getDocument();i.removeKeyboardModeEvents(t,e)},o.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},o.prototype.isKeyboardMode=function(){return i.keyboardModeActive},o.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,hl.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},o.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,Iu.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},o.prototype.isDomDataMissingInHierarchy=function(e,t){for(var o=e;o;){if(this.gridOptionsService.getDomData(o,t))return!1;o=o.parentNode}return!0},o.prototype.getFocusedCell=function(){return this.focusedCellPosition},o.prototype.getFocusEventParams=function(){var e=this.focusedCellPosition,t=e.rowIndex,o=e.rowPinned,i={rowIndex:t,rowPinned:o,column:e.column,isFullWidthCell:!1},r=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:o});return r&&(i.isFullWidthCell=r.isFullWidth()),i},o.prototype.clearFocusedCell=function(){if(null!=this.focusedCellPosition){var e=td({type:He.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(e)}},o.prototype.setFocusedCell=function(t){var o=t.column,i=t.rowIndex,r=t.rowPinned,n=t.forceBrowserFocus,s=void 0!==n&&n,a=t.preventScrollOnBrowserFocus,l=void 0!==a&&a,u=this.columnModel.getGridColumn(o);if(u){this.focusedCellPosition=u?{rowIndex:i,rowPinned:e(r),column:u}:null;var c=td(td({type:He.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:s,preventScrollOnBrowserFocus:l,floating:null});this.eventService.dispatchEvent(c)}else this.focusedCellPosition=null},o.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},o.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},o.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),o=e.getRowIndex(),i=e.getPinned(),r=this.focusedHeaderPosition,n=r.column,s=r.headerRowIndex;return t===n&&o===s&&i==n.getPinned()},o.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},o.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},o.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},o.prototype.focusHeaderPosition=function(e){var t=e.direction,o=e.fromTab,i=e.allowUserOverride,r=e.event,n=e.headerPosition;if(i){var s,a=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount();if(o){if(s=this.gridOptionsService.getCallback("tabToNextHeader"))n=s({backwards:"Before"===t,previousHeaderPosition:a,nextHeaderPosition:n,headerRowCount:l})}else if((s=this.gridOptionsService.getCallback("navigateToNextHeader"))&&r)n=s({key:r.key,previousHeaderPosition:a,nextHeaderPosition:n,headerRowCount:l,event:r})}return!!n&&(-1===n.headerRowIndex?this.focusGridView(n.column):(this.headerNavigationService.scrollToColumn(n.column,t),this.ctrlsService.getHeaderRowContainerCtrl(n.column.getPinned()).focusHeader(n.headerRowIndex,n.column,r)))},o.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},o.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,o=ae(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:o},event:e})},o.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},o.prototype.isRowFocused=function(t,o){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===e(o))},o.prototype.findFocusableElements=function(e,t,o){void 0===o&&(o=!1);var i=Vo,r=ko;t&&(r+=", "+t),o&&(r+=', [tabindex="-1"]');var n=Array.prototype.slice.apply(e.querySelectorAll(i)),s=Array.prototype.slice.apply(e.querySelectorAll(r));if(!s.length)return n;var a;return a=s,n.filter(function(e){return-1===a.indexOf(e)})},o.prototype.focusInto=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var i=this.findFocusableElements(e,null,o),r=t?ae(i):i[0];return!!r&&(r.focus({preventScroll:!0}),!0)},o.prototype.findFocusableElementBeforeTabGuard=function(e,t){if(!t)return null;var o=this.findFocusableElements(e),i=o.indexOf(t);if(-1===i)return null;for(var r=-1,n=i-1;n>=0;n--)if(o[n].classList.contains(exports.TabGuardClassNames.TAB_GUARD_TOP)){r=n;break}return r<=0?null:o[r-1]},o.prototype.findNextFocusableElement=function(e,t,o){void 0===e&&(e=this.eGridDiv);var i=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),r=this.gridOptionsService.getDocument().activeElement,n=(t?i.findIndex(function(e){return e.contains(r)}):i.indexOf(r))+(o?-1:1);return n<0||n>=i.length?null:i[n]},o.prototype.isTargetUnderManagedComponent=function(e,t){if(!t)return!1;var o=e.querySelectorAll("."+dr.FOCUS_MANAGED_CLASS);if(!o.length)return!1;for(var i=0;i<o.length;i++)if(o[i].contains(t))return!0;return!1},o.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var o=0;e&&null===Co(e)&&++o<=t;)e=e.parentElement;return null===Co(e)?null:e},o.prototype.focusGridView=function(t,o){if(this.gridOptionsService.is("suppressCellFocus"))return o?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var i=o?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!i)return!1;var r=i.rowIndex,n=i.rowPinned,s=this.getFocusedHeader();if(!t&&s&&(t=s.column),null==r||!t)return!1;if(this.navigationService.ensureCellVisible({rowIndex:r,column:t,rowPinned:n}),this.setFocusedCell({rowIndex:r,column:t,rowPinned:e(n),forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:r,rowPinned:n,column:t};this.rangeService.setRangeToCell(a)}return!0},o.prototype.focusNextGridCoreContainer=function(e,t){return void 0===t&&(t=!1),!(t||!this.gridCtrl.focusNextInnerContainer(e))||((t||!e&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(e),!1)},o.AG_KEYBOARD_FOCUS="ag-keyboard-focus",o.keyboardModeActive=!1,o.instancesMonitored=new Map,od([W("eGridDiv")],o.prototype,"eGridDiv",void 0),od([W("columnModel")],o.prototype,"columnModel",void 0),od([W("headerNavigationService")],o.prototype,"headerNavigationService",void 0),od([W("rowRenderer")],o.prototype,"rowRenderer",void 0),od([W("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),od([U("rangeService")],o.prototype,"rangeService",void 0),od([W("navigationService")],o.prototype,"navigationService",void 0),od([W("ctrlsService")],o.prototype,"ctrlsService",void 0),od([k],o.prototype,"init",null),o=i=od([j("focusService")],o)}(Fe),nd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),sd=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ad=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s};
320
+ /**
321
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
322
+ * @version v29.3.5
323
+ * @link https://www.ag-grid.com/
324
+ * @license MIT
325
+ */!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal"}(Lp||(Lp={}));var ld,ud=0,cd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}var o;return nd(t,e),o=t,t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,He.EVENT_KEYBOARD_FOCUS,function(){e.popupList.forEach(function(e){return e.element.classList.add(rd.AG_KEYBOARD_FOCUS)})}),e.addManagedListener(e.gridCtrl,He.EVENT_MOUSE_FOCUS,function(){e.popupList.forEach(function(e){return e.element.classList.remove(rd.AG_KEYBOARD_FOCUS)})})})},t.prototype.getPopupParent=function(){var e=this.gridOptionsService.get("popupParent");return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),o=this.getParentRect(),i=this.keepXYWithinBounds(e.ePopup,t.top-o.top,Lp.vertical),r=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=r+"px";var n,s=o.right-o.left-r;function a(){return t.right-o.left-2}function l(){return t.left-o.left-r}this.gridOptionsService.is("enableRtl")?((n=l())<0&&(n=a()),n>s&&(n=0)):((n=a())>s&&(n=l()),n<0&&(n=0)),e.ePopup.style.left=n+"px",e.ePopup.style.top=i+"px"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=this,o=e.ePopup,i=e.nudgeX,r=e.nudgeY,n=e.skipObserver;this.positionPopup({ePopup:o,nudgeX:i,nudgeY:r,keepWithinBounds:!0,skipObserver:n,updatePosition:function(){return t.calculatePointerAlign(e.mouseEvent)},postProcessCallback:function(){return t.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)}})},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupByComponent=function(e){var t=this,o=e.eventSource.getBoundingClientRect(),i=e.alignSide||"left",r=e.position||"over",n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,keepWithinBounds:e.keepWithinBounds,updatePosition:function(){var t=o.left-n.left;return"right"===i&&(t-=e.ePopup.offsetWidth-o.width),{x:t,y:"over"===r?o.top-n.top:o.top-n.top+o.height}},postProcessCallback:function(){return t.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)}})},t.prototype.callPostProcessPopup=function(e,t,o,i,r,n){var s=this.gridOptionsService.getCallback("postProcessPopup");s&&s({column:r,rowNode:n,ePopup:t,type:e,eventSource:o,mouseEvent:i})},t.prototype.positionPopup=function(e){var t=this,i=e.ePopup,r=e.keepWithinBounds,n=e.nudgeX,s=e.nudgeY,a=e.skipObserver,l=e.updatePosition,u={width:0,height:0},c=function(o){void 0===o&&(o=!1);var a=l(),c=a.x,p=a.y;o&&i.clientWidth===u.width&&i.clientHeight===u.height||(u.width=i.clientWidth,u.height=i.clientHeight,n&&(c+=n),s&&(p+=s),r&&(c=t.keepXYWithinBounds(i,c,Lp.horizontal),p=t.keepXYWithinBounds(i,p,Lp.vertical)),i.style.left=c+"px",i.style.top=p+"px",e.postProcessCallback&&e.postProcessCallback())};if(c(),!a){var p=this.resizeObserverService.observeResize(i,function(){return c(!0)});setTimeout(function(){return p()},o.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map(function(e){return e.element})},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsService.getDocument(),t=this.getPopupParent();t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent);var o=getComputedStyle(t),i=t.getBoundingClientRect();return{top:i.top+parseFloat(o.borderTopWidth)||0,left:i.left+parseFloat(o.borderLeftWidth)||0,right:i.right+parseFloat(o.borderRightWidth)||0,bottom:i.bottom+parseFloat(o.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,t,o){var i=o===Lp.vertical,r=i?"clientHeight":"clientWidth",n=i?"top":"left",s=i?"offsetHeight":"offsetWidth",a=i?"scrollTop":"scrollLeft",l=this.gridOptionsService.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=e[s],g=h?(i?Qo:Xo)(u)+u[a]:c[r];h&&(g-=Math.abs(d[n]-p[n]));var v=g-f;return Math.min(Math.max(t,0),Math.abs(v))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,o=this.getPopupParent(),i=o.getBoundingClientRect(),r=e.element.getBoundingClientRect(),n=i.top-r.top,s=i.left-r.left,a=n,l=s,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),p=e.ePopup.style.left,d=parseInt(p.substring(0,p.length-1),10);return new Wi(function(i){t.getFrameworkOverrides().setInterval(function(){var i=o.getBoundingClientRect(),r=e.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)e.hidePopup();else{var u=i.top-r.top;if(u!=a){var p=t.keepXYWithinBounds(e.ePopup,c+n-u,Lp.vertical);e.ePopup.style.top=p+"px"}a=u;var h=i.left-r.left;if(h!=l){var f=t.keepXYWithinBounds(e.ePopup,d+s-h,Lp.horizontal);e.ePopup.style.left=f+"px"}l=h}},200).then(function(e){i(function(){null!=e&&window.clearInterval(e)})})})},t.prototype.addPopup=function(e){var t,o=this,i=e.modal,r=e.eChild,n=e.closeOnEsc,s=e.closedCallback,a=e.click,l=e.alwaysOnTop,u=e.afterGuiAttached,c=e.positionCallback,p=e.anchorToElement,d=e.ariaLabel,h=this.gridOptionsService.getDocument(),f=new Wi(function(e){return e(function(){})});if(!h)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:f};var g=this.popupList.findIndex(function(e){return e.element===r});if(-1!==g){var v=this.popupList[g];return{hideFunc:v.hideFunc,stopAnchoringPromise:v.stopAnchoringPromise}}var y=this.getPopupParent();null==r.style.top&&(r.style.top="0px"),null==r.style.left&&(r.style.left="0px");var m=document.createElement("div"),C=this.environment.getTheme().allThemes;C.length&&(t=m.classList).add.apply(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ad(arguments[t]));return e}(C)),m.classList.add("ag-popup"),r.classList.add(this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),r.hasAttribute("role")||Nt(r,"dialog"),xt(r,d),this.focusService.isKeyboardMode()&&r.classList.add(rd.AG_KEYBOARD_FOCUS),m.appendChild(r),y.appendChild(m),l?this.setAlwaysOnTop(m,!0):this.bringPopupToFront(m);var w=!1,S=function(e){m.contains(h.activeElement)&&(e.key===Ti.ESCAPE&&b({keyboardEvent:e}))},E=function(e){return b({mouseEvent:e})},R=function(e){return b({touchEvent:e})},b=function(e){void 0===e&&(e={});var t=e.mouseEvent,i=e.touchEvent,n=e.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:t,touchEvent:i},r)||o.isEventSameChainAsOriginalEvent({originalMouseEvent:a,mouseEvent:t,touchEvent:i})||w||(w=!0,y.removeChild(m),h.removeEventListener("keydown",S),h.removeEventListener("mousedown",E),h.removeEventListener("touchstart",R),h.removeEventListener("contextmenu",E),o.eventService.removeEventListener(He.EVENT_DRAG_STARTED,E),s&&s(t||i||n),o.popupList=o.popupList.filter(function(e){return e.element!==r}),f&&f.then(function(e){return e&&e()}))};return u&&u({hidePopup:b}),window.setTimeout(function(){n&&h.addEventListener("keydown",S),i&&(h.addEventListener("mousedown",E),o.eventService.addEventListener(He.EVENT_DRAG_STARTED,E),h.addEventListener("touchstart",R),h.addEventListener("contextmenu",E))},0),c&&c(),p&&(f=this.keepPopupPositionedRelativeTo({element:p,ePopup:r,hidePopup:b})),this.popupList.push({element:r,wrapper:m,hideFunc:b,stopAnchoringPromise:f,instanceId:ud++,isAnchored:!!p}),{hideFunc:b,stopAnchoringPromise:f}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(e){return e.isAnchored})},t.prototype.isEventFromCurrentPopup=function(e,t){var o=e.mouseEvent,i=e.touchEvent,r=o||i;if(!r)return!1;var n=this.popupList.findIndex(function(e){return e.element===t});if(-1===n)return!1;for(var s=n;s<this.popupList.length;s++){if(Te(this.popupList[s].element,r))return!0}return this.isElementWithinCustomPopup(r.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsService.getDocument();e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,o=e.mouseEvent,i=e.touchEvent,r=null;if(o?r=o:i&&(r=i.touches[0]),r&&t){var n=o?o.screenX:0,s=o?o.screenY:0,a=Math.abs(t.screenX-n)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(o))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=o.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),n=r.length,s=this.getWrapper(e);if(s&&!(i<=1)&&t.contains(e)){var a=o.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach(function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])}),n)s.classList.contains("ag-always-on-top")?a!==i-1&&ae(r).insertAdjacentElement("afterend",s):a!==i-n-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==i-1&&ae(o).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,eWrapper:s};this.eventService.dispatchEvent(p)}},t.WAIT_FOR_POPUP_CONTENT_RESIZE=200,sd([W("focusService")],t.prototype,"focusService",void 0),sd([W("ctrlsService")],t.prototype,"ctrlsService",void 0),sd([W("resizeObserverService")],t.prototype,"resizeObserverService",void 0),sd([k],t.prototype,"postConstruct",null),t=o=sd([j("popupService")],t)}(Fe),pd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),dd=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},hd=function(e){function t(o,i,r){void 0===o&&(o="default"),void 0===i&&(i="listbox");var n=e.call(this,t.getTemplate(o))||this;return n.cssIdentifier=o,n.ariaRole=i,n.listName=r,n.renderedRows=new Map,n.rowHeight=20,n}return pd(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties(),this.addManagedListener(this.eventService,He.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},t.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},t.prototype.setAriaProperties=function(){var e=this.localeService.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;Nt(t,this.ariaRole),xt(t,e)},t.prototype.addResizeObserver=function(){var e=this,t=this.resizeObserverService.observeResize(this.getGui(),function(){return e.drawVirtualRows()});this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=Lt(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.key){case Ti.UP:case Ti.DOWN:this.navigate(e.key===Ti.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.forceFocusOutOfContainer(e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout(function(){if(t.isAlive()){var o=t.renderedRows.get(e);o&&o.eDiv.focus()}},10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach(function(t,o){return e(t.rowComponent,o)})},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n </div>'},t.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var o=e*this.rowHeight,i=o+this.rowHeight,r=this.getGui(),n=r.scrollTop,s=r.offsetHeight,a=n+s<i;if(n>o)r.scrollTop=o;else if(a){var l=i-s;r.scrollTop=l}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.setComponentUpdater=function(e){this.componentUpdater=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(e){var t=this;if(null!=this.model&&this.isAlive()){var o=this.model.getRowCount();this.eContainer.style.height=o*this.rowHeight+"px",L(function(){return t.eContainer.clientHeight>=o*t.rowHeight},function(){t.isAlive()&&(t.canSoftRefresh(e)?t.drawVirtualRows(!0):(t.clearVirtualRows(),t.drawVirtualRows()))})}},t.prototype.canSoftRefresh=function(e){return!!(e&&this.renderedRows.size&&"function"==typeof this.model.areRowsEqual&&this.componentUpdater)},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(t,o){return e.removeRow(o)})},t.prototype.drawVirtualRows=function(e){if(this.isAlive()){var t=this.getGui(),o=t.scrollTop,i=o+t.offsetHeight,r=Math.floor(o/this.rowHeight),n=Math.floor(i/this.rowHeight);this.ensureRowsRendered(r,n,e)}},t.prototype.ensureRowsRendered=function(e,t,o){var i=this;this.renderedRows.forEach(function(o,r){(r<e||r>t)&&r!==i.lastFocusedRowIndex&&i.removeRow(r)}),o&&this.refreshRows();for(var r=e;r<=t;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)},t.prototype.insertRow=function(e){var t=this,o=this.model.getRow(e),i=document.createElement("div");if(i.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Nt(i,"tree"===this.ariaRole?"treeitem":"option"),Ut(i,this.model.getRowCount()),zt(i,e+1),i.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var r=this.model.isRowSelected(e);eo(i,!!r),to(i,r)}i.style.height=this.rowHeight+"px",i.style.top=this.rowHeight*e+"px";var n=this.componentCreator(o,i);n.addGuiEventListener("focusin",function(){return t.lastFocusedRowIndex=e}),i.appendChild(n.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",i):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",i):this.eContainer.appendChild(i),this.renderedRows.set(e,{rowComponent:n,eDiv:i,value:o})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.refreshRows=function(){var e=this,t=this.model.getRowCount();this.renderedRows.forEach(function(o,i){var r,n;if(i>=t)e.removeRow(i);else{var s=e.model.getRow(i);(null===(n=(r=e.model).areRowsEqual)||void 0===n?void 0:n.call(r,o.value,s))?e.componentUpdater(s,o.rowComponent):e.removeRow(i)}})},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){return e.drawVirtualRows()},{passive:!0})},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),e.prototype.destroy.call(this))},dd([W("resizeObserverService")],t.prototype,"resizeObserverService",void 0),dd([er("eContainer")],t.prototype,"eContainer",void 0),dd([k],t.prototype,"postConstruct",null),t}(Hp),fd=["mouseover","mouseout","mouseenter","mouseleave"],gd=["touchstart","touchend","touchmove","touchcancel"],vd=function(){function e(){this.isOutsideAngular=function(e){return fe(fd,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new Wi(function(o){o(window.setInterval(e,t))})},e.prototype.addEventListener=function(e,t,o,i){var r=fe(gd,t);e.addEventListener(t,o,{capture:!!i,passive:r})},e.prototype.dispatchEvent=function(e,t,o){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),yd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),md=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Cd=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},wd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yd(t,e),t.prototype.getNextCellToFocus=function(e,t,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var o,i,r=e===Ti.UP,n=e===Ti.DOWN,s=e===Ti.LEFT;if(r||n)i=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=t.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsService.is("enableRtl");i=t.rowIndex,o=s!==l?a[0]:ae(a)}return{rowIndex:i,rowPinned:null,column:o}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var o=t,i=!1;!i;){switch(e){case Ti.UP:o=this.getCellAbove(o);break;case Ti.DOWN:o=this.getCellBelow(o);break;case Ti.RIGHT:o=this.gridOptionsService.is("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case Ti.LEFT:o=this.gridOptionsService.is("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+e)}i=!o||this.isCellGoodToFocusOn(o)}return o},t.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.rowPinned){case"top":t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"bottom":t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!o.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,o=e.rowPinned;if(this.isLastRowInContainer(e))switch(o){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var i=this.rowModel.getRow(e.rowIndex),r=this.getNextStickyPosition(i);return r||{rowIndex:t+1,rowPinned:o}},t.prototype.getNextStickyPosition=function(e,t){if(this.gridOptionsService.is("groupRowsSticky")&&e&&e.sticky){var o=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Cd(arguments[t]));return e}(this.rowRenderer.getStickyTopRowCtrls()).sort(function(e,t){return e.getRowNode().rowIndex-t.getRowNode().rowIndex}),i=t?-1:1,r=o.findIndex(function(t){return t.getRowNode().rowIndex===e.rowIndex}),n=o[r+i];return n?{rowIndex:n.getRowNode().rowIndex,rowPinned:null}:void 0}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,o=e.rowIndex;return"top"===t?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:"bottom"===t?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},t.prototype.getRowAbove=function(e){var t=e.rowIndex,o=e.rowPinned;if(o?0===t:t===this.paginationProxy.getPageFirstRow())return"top"===o?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var i=this.rowModel.getRow(e.rowIndex),r=this.getNextStickyPosition(i,!0);return r||{rowIndex:t-1,rowPinned:o}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:"top"}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),i=e.rowIndex,r=e.rowPinned,n=this.columnModel.getDisplayedColAfter(e.column);if(!n){n=t[0];var s=this.getRowBelow(e);if(o(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;i=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:i,column:n,rowPinned:r}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),i=e.rowIndex,r=e.rowPinned,n=this.columnModel.getDisplayedColBefore(e.column);if(!n){n=ae(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(o(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;i=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:i,column:n,rowPinned:r}},md([W("columnModel")],t.prototype,"columnModel",void 0),md([W("rowModel")],t.prototype,"rowModel",void 0),md([W("rowRenderer")],t.prototype,"rowRenderer",void 0),md([W("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),md([W("paginationProxy")],t.prototype,"paginationProxy",void 0),t=md([j("cellNavigationService")],t)}(Fe),Sd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ed=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Rd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}var o,i;return Sd(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,He.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsService.get("alignedGrids");t&&t.forEach(function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}})}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent(function(t){t.onColumnEvent(e)})},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent(function(t){t.onScrollEvent(e)})},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent(function(){t.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)})},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach(function(e){t.push(e)}):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach(function(e){t.push(e.getColId())}):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent(function(){switch(e.type){case He.EVENT_COLUMN_MOVED:case He.EVENT_COLUMN_VISIBLE:case He.EVENT_COLUMN_PINNED:case He.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case He.EVENT_COLUMN_GROUP_OPENED:var i=e;t.processGroupOpenedEvent(i);break;case He.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.")}})},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,o=null;if(t){var i=t.getGroupId();o=this.columnModel.getProvidedColumnGroup(i)}t&&!o||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(o,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t,o=this,i=e.column,r=null;if(i&&(r=this.columnModel.getPrimaryColumn(i.getColId())),!i||r){var n=this.getMasterColumns(e);switch(e.type){case He.EVENT_COLUMN_MOVED:var s=e,a=e.columnApi.getColumnState().map(function(e){return{colId:e.colId}});this.columnModel.applyColumnState({state:a,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex);break;case He.EVENT_COLUMN_VISIBLE:var l=e;a=e.columnApi.getColumnState().map(function(e){return{colId:e.colId,hide:e.hide}});this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+l.visible);break;case He.EVENT_COLUMN_PINNED:var u=e;a=e.columnApi.getColumnState().map(function(e){return{colId:e.colId,pinned:e.pinned}});this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+u.pinned);break;case He.EVENT_COLUMN_RESIZED:var c=e,p={};n.forEach(function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),p[t.getId()]={key:t.getColId(),newWidth:t.getActualWidth()}}),null===(t=c.flexColumns)||void 0===t||t.forEach(function(e){p[e.getId()]&&delete p[e.getId()]}),this.columnModel.setColumnWidths(Object.values(p),!1,c.finished,"alignedGridChanged")}var d=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),h=this.gridOptionsService.get("alignedGrids");h&&h.forEach(function(e){e.api&&e.api.setAlwaysShowVerticalScroll(d)})}},Ed([W("columnModel")],t.prototype,"columnModel",void 0),Ed([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Ed([(o=0,i=K("loggerFactory"),function(e,t){i(e,t,o)})],t.prototype,"setBeans",null),Ed([k],t.prototype,"init",null),t=Ed([j("alignedGridsService")],t)}(Fe),bd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Od=function(){return Od=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Od.apply(this,arguments)},Td=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Dd=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}var i,r;return bd(o,e),o.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},o.prototype.init=function(){var e=this;this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.addManagedPropertyListener("groupSelectsChildren",function(t){return e.groupSelectsChildren=t.currentValue}),this.rowSelection=this.gridOptionsService.get("rowSelection"),this.addManagedPropertyListener("rowSelection",function(t){return e.rowSelection=t.currentValue}),this.addManagedListener(this.eventService,He.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},o.prototype.isMultiselect=function(){return"multiple"===this.rowSelection},o.prototype.setNodeSelected=function(e){var t,o=e.newValue,i=e.clearSelection,r=e.suppressFinishActions,n=e.rangeSelect;e.event;var s=e.node,a=e.source,l=void 0===a?"api":a,u=this.groupSelectsChildren&&!0===e.groupSelectsFiltered;if(void 0===s.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(s.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(s.footer)return this.setNodeSelected(Od(Od({},e),{node:s.sibling}));var c=this.getLastSelectedNode();if(n&&c&&(c!==s&&this.isMultiselect())){var p=this.selectRange(s,c,e.newValue,l);return this.setLastSelectedNode(s),p}var d=0;u&&s.group||s.selectThisNode(o,e.event,l)&&d++;if(this.groupSelectsChildren&&(null===(t=s.childrenAfterGroup)||void 0===t?void 0:t.length)&&(d+=this.selectChildren(s,o,u,l)),!r){if(o&&(i||!this.isMultiselect())&&(d+=this.clearOtherNodes(s,l)),d>0){this.updateGroupsFromChildrenSelections(l);var h={type:He.EVENT_SELECTION_CHANGED,source:l};this.eventService.dispatchEvent(h)}o&&this.setLastSelectedNode(s)}return d},o.prototype.selectRange=function(e,t,o,i){var r=this;void 0===o&&(o=!0);var n=this.rowModel.getNodesInRangeForSelection(e,t),s=0;n.forEach(function(t){t.group&&r.groupSelectsChildren||!1===o&&e===t||t.selectThisNode(o,void 0,i)&&s++}),this.updateGroupsFromChildrenSelections(i);var a={type:He.EVENT_SELECTION_CHANGED,source:i};return this.eventService.dispatchEvent(a),s},o.prototype.selectChildren=function(e,t,o,i){var r=o?e.childrenAfterAggFilter:e.childrenAfterGroup;if(ki.missing(r))return 0;for(var n=0,s=0;s<r.length;s++)n+=r[s].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:o,source:i});return n},o.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},o.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},o.prototype.getSelectedNodes=function(){var e=[];return c(this.selectedNodes,function(t,o){o&&e.push(o)}),e},o.prototype.getSelectedRows=function(){var e=[];return c(this.selectedNodes,function(t,o){o&&o.data&&e.push(o.data)}),e},o.prototype.getSelectionCount=function(){return Object.values(this.selectedNodes).length},o.prototype.filterFromSelection=function(e){var t={};Object.entries(this.selectedNodes).forEach(function(o){var i=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s}(o,2),r=i[0],n=i[1];n&&e(n)&&(t[r]=n)}),this.selectedNodes=t},o.prototype.updateGroupsFromChildrenSelections=function(e,t){if(!this.groupSelectsChildren)return!1;if("clientSide"!==this.rowModel.getType())return!1;var o=this.rowModel.getRootNode();t||(t=new lp(!0,o)).setInactive();var i=!1;return t.forEachChangedNodeDepthFirst(function(t){if(t!==o){var r=t.calculateSelectedFromChildren();i=t.selectThisNode(null!==r&&r,void 0,e)||i}}),i},o.prototype.clearOtherNodes=function(e,t){var o=this,i={},r=0;return c(this.selectedNodes,function(n,s){if(s&&s.id!==e.id){var a=o.selectedNodes[s.id];r+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),o.groupSelectsChildren&&s.parent&&(i[s.parent.id]=s.parent)}}),c(i,function(e,o){var i=o.calculateSelectedFromChildren();o.selectThisNode(null!==i&&i,void 0,t)}),r},o.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:delete this.selectedNodes[t.id])},o.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},o.prototype.syncInOldRowNode=function(e,o){if(t(o)&&e.id!==o.id&&o){var i=o.id;this.selectedNodes[i]==e&&(this.selectedNodes[o.id]=o)}},o.prototype.syncInNewRowNode=function(e){t(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},o.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},o.prototype.getBestCostNodeSelection=function(){if("clientSide"===this.rowModel.getType()){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(o){for(var i=0,r=o.length;i<r;i++){var n=o[i];if(n.isSelected())t.push(n);else{var s=n;s.group&&s.children&&e(s.children)}}}(e),t}}},o.prototype.isEmpty=function(){var e=0;return c(this.selectedNodes,function(t,o){o&&e++}),0===e},o.prototype.deselectAllRowNodes=function(e){var t=function(e){return e.selectThisNode(!1,void 0,i)},o="clientSide"===this.rowModel.getType(),i=e.source,r=e.justFiltered,n=e.justCurrentPage;if(n||r){if(!o)return void console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");this.getNodesToSelect(r,n).forEach(t)}else c(this.selectedNodes,function(e,o){o&&t(o)}),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(i);var s={type:He.EVENT_SELECTION_CHANGED,source:i};this.eventService.dispatchEvent(s)},o.prototype.getSelectAllState=function(e,t){var o=this,i=0,r=0;return this.getNodesToSelect(e,t).forEach(function(e){o.groupSelectsChildren&&e.group||(e.isSelected()?i++:e.selectable&&r++)}),(0!==i||0!==r)&&(i>0&&r>0?null:i>0)},o.prototype.getNodesToSelect=function(e,t){var o=this;if(void 0===e&&(e=!1),void 0===t&&(t=!1),"clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var i=[];if(t)return this.paginationProxy.forEachNodeOnPage(function(e){if(e.group)if(e.expanded)o.groupSelectsChildren||i.push(e);else{var t=function(e){var o;i.push(e),(null===(o=e.childrenAfterFilter)||void 0===o?void 0:o.length)&&e.childrenAfterFilter.forEach(t)};t(e)}else i.push(e)}),i;var r=this.rowModel;return e?(r.forEachNodeAfterFilter(function(e){i.push(e)}),i):(r.forEachNode(function(e){i.push(e)}),i)},o.prototype.selectAllRowNodes=function(e){if("clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var t=e.source,o=e.justFiltered,i=e.justCurrentPage;this.getNodesToSelect(o,i).forEach(function(e){return e.selectThisNode(!0,void 0,t)}),"clientSide"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t);var r={type:He.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(r)},o.prototype.getServerSideSelectionState=function(){return null},o.prototype.setServerSideSelectionState=function(e){},Td([W("rowModel")],o.prototype,"rowModel",void 0),Td([W("paginationProxy")],o.prototype,"paginationProxy",void 0),Td([(i=0,r=K("loggerFactory"),function(e,t){r(e,t,i)})],o.prototype,"setBeans",null),Td([k],o.prototype,"init",null),o=Td([j("selectionService")],o)}(Fe),Pd=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},_d=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,t){this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o,i){void 0===o&&(o=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,o,i)},e.prototype.setColumnWidths=function(e,t,o){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,o)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getPivotResultColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setPivotResultColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(ki.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.getAllColumns=function(){return Ze("28.0","getAllColumns","getColumns"),this.getColumns()},e.prototype.getOriginalColumnGroup=function(e){return Ze("27.0","getOriginalColumnGroup","getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},e.prototype.getPrimaryColumns=function(){return Ze("28.0","getPrimaryColumns","getColumns"),this.getColumns()},e.prototype.getSecondaryColumns=function(){return Ze("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},e.prototype.setSecondaryColumns=function(e){Ze("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(e)},e.prototype.getSecondaryPivotColumn=function(e,t){return Ze("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(e,t)},Pd([W("columnModel")],e.prototype,"columnModel",void 0),Pd([B],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Pd([j("columnApi")],e)}(),Ad=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Nd=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Md=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return Ad(i,e),i.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsService.is("enableCellExpressions"),this.isTreeData=this.gridOptionsService.is("treeData"),this.initialised=!0,this.eventService.addEventListener(He.EVENT_CELL_VALUE_CHANGED,function(t){return e.callColumnCellValueChangedHandler(t)},this.gridOptionsService.useAsyncEvents()),this.addManagedPropertyListener("treeData",function(t){return e.isTreeData=t.currentValue})},i.prototype.getValue=function(e,t,o,i){if(void 0===o&&(o=!1),void 0===i&&(i=!1),this.initialised||this.init(),t){var r,n=e.getColDef(),s=n.field,a=e.getColId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],c=!i&&t.aggData&&void 0!==t.aggData[a];if(o&&n.filterValueGetter?r=this.executeFilterValueGetter(n.filterValueGetter,l,e,t):this.isTreeData&&c?r=t.aggData[a]:this.isTreeData&&n.valueGetter?r=this.executeValueGetter(n.valueGetter,l,e,t):this.isTreeData&&s&&l?r=C(l,s,e.isFieldContainsDots()):u?r=t.groupData[a]:c?r=t.aggData[a]:n.valueGetter?r=this.executeValueGetter(n.valueGetter,l,e,t):s&&l&&(r=C(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}if(null==r){var d=this.getOpenedGroup(t,e);if(null!=d)return d}return r}},i.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsService.is("showOpenedGroup")&&t.getColDef().showRowGroup)for(var o=t.getColDef().showRowGroup,i=e.parent;null!=i;){if(i.rowGroupColumn&&(!0===o||o===i.rowGroupColumn.getColId()))return i.key;i=i.parent}},i.prototype.setValue=function(e,i,r,n){var s=this.columnModel.getPrimaryColumn(i);if(!e||!s)return!1;o(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.valueSetter;if(o(l)&&o(u))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var c,p={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:r,colDef:s.getColDef(),column:s,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};if(p.newValue=r,void 0===(c=t(u)?"function"==typeof u?u(p):this.expressionService.evaluate(u,p):this.setValueUsingField(e.data,l,r,s.isFieldContainsDots()))&&(c=!0),!c)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),p.newValue=this.getValue(s,e);var d={type:He.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:p.column,api:p.api,columnApi:p.columnApi,colDef:p.colDef,context:p.context,data:e.data,node:e,oldValue:p.oldValue,newValue:p.newValue,value:p.newValue,source:n};return this.eventService.dispatchEvent(d),!0},i.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"==typeof t&&t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},i.prototype.setValueUsingField=function(e,t,o,i){if(!t)return!1;var r=!1;if(i)for(var n=t.split("."),s=e;n.length>0&&s;){var a=n.shift();0===n.length?(r=s[a]==o)||(s[a]=o):s=s[a]}else(r=e[t]==o)||(e[t]=o);return!r},i.prototype.executeFilterValueGetter=function(e,t,o,i){var r={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,i)};return"function"==typeof e?e(r):this.expressionService.evaluate(e,r)},i.prototype.executeValueGetter=function(e,t,o,i){var r=o.getColId(),n=this.valueCache.getValue(i,r);if(void 0!==n)return n;var s,a={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,i)};return s="function"==typeof e?e(a):this.expressionService.evaluate(e,a),this.valueCache.setValue(i,r,s),s},i.prototype.getValueCallback=function(e,t){var o=this.columnModel.getPrimaryColumn(t);return o?this.getValue(o,e):null},i.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),i=e.getColDef().keyCreator,r=o;i&&(r=i({value:o,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}));return"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&b(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},Nd([W("expressionService")],i.prototype,"expressionService",void 0),Nd([W("columnModel")],i.prototype,"columnModel",void 0),Nd([W("valueCache")],i.prototype,"valueCache",void 0),Nd([k],i.prototype,"init",null),i=Nd([j("valueService")],i)}(Fe),Fd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ld=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}var o,i;return Fd(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("string"==typeof e)return this.evaluateExpression(e,t);console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(o){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+o),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Ld([(o=0,i=K("loggerFactory"),function(e,t){i(e,t,o)})],t.prototype,"setBeans",null),t=Ld([j("expressionService")],t)}(Fe),Id=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Gd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return Id(t,e),t.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var i=this.waitingCallbacks[e],r=this;if(!i){i=[],this.waitingCallbacks[e]=i;var n=new XMLHttpRequest;n.onload=function(){r.handleHttpResult(this,e)},n.open("GET",e),n.send()}return t&&i.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],i=0;i<o.length;i++){(0,o[i])()}}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},t=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("templateService")],t),t}(Fe),Hd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Vd=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},kd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o,i;return Hd(t,e),t.prototype.setBeans=function(e){this.logging=e.is("debug")},t.prototype.create=function(e){return new Bd(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Vd([(o=0,i=K("gridOptionsService"),function(e,t){i(e,t,o)})],t.prototype,"setBeans",null),t=Vd([j("loggerFactory")],t)}(Fe),Bd=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+e)},e}(),jd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Wd=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ud=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jd(t,e),t.prototype.setComp=function(e,t,o){var i=this;this.view=e,this.eGridHostDiv=t,this.eGui=o,this.dragAndDropService.addDropTarget({getContainer:function(){return i.eGui},isInterestedIn:function(e){return e===exports.DragSourceType.HeaderCell||e===exports.DragSourceType.ToolPanel},getIconName:function(){return ls.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new Ea(this.view)),this.addRtlSupport(),this.addManagedListener(this,He.EVENT_KEYBOARD_FOCUS,function(){i.view.addOrRemoveKeyboardFocusClass(!0)}),this.addManagedListener(this,He.EVENT_MOUSE_FOCUS,function(){i.view.addOrRemoveKeyboardFocusClass(!1)});var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return r()}),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,t=this.focusService.findTabbableParent(this.getGui());return(null===(e=null==t?void 0:t.getAttribute("row-id"))||void 0===e?void 0:e.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return Z.isRegistered(exports.ModuleNames.RowGroupingModule)},t.prototype.showSideBar=function(){return Z.isRegistered(exports.ModuleNames.SideBarModule)},t.prototype.showStatusBar=function(){return Z.isRegistered(exports.ModuleNames.StatusBarModule)},t.prototype.showWatermark=function(){return Z.isRegistered(exports.ModuleNames.EnterpriseCoreModule)},t.prototype.onGridSizeChanged=function(){var e={type:He.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsService.getDocument(),o=this.view.getFocusableContainers(),i=o.findIndex(function(e){return e.contains(t.activeElement)})+(e?-1:1);return!(i<=0||i>=o.length)&&this.focusService.focusInto(o[i])},t.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers(),o=this.columnModel.getAllDisplayedColumns();if(e){if(t.length>1)return this.focusService.focusInto(ae(t),!0);var i=ae(o);if(this.focusService.focusGridView(i,!0))return!0}return 0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusGridView(o[0]):this.focusService.focusFirstHeader()},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Wd([W("focusService")],t.prototype,"focusService",void 0),Wd([W("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Wd([W("columnModel")],t.prototype,"columnModel",void 0),Wd([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Wd([W("mouseEventService")],t.prototype,"mouseEventService",void 0),Wd([W("dragAndDropService")],t.prototype,"dragAndDropService",void 0),t}(Fe),zd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Kd=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Yd=function(e){function t(t){var o=e.call(this)||this;return o.eGridDiv=t,o}return zd(t,e),t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(rd.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:"",e.getGui().style.webkitUserSelect=null!=t?t:""},setCursor:function(t){e.getGui().style.cursor=null!=t?t:""}};this.ctrl=this.createManagedBean(new Ud);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},t.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc(function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")})},t.prototype.updateLayoutClasses=function(e,t){var o=this.eRootWrapperBody.classList;o.toggle(exports.LayoutCssClasses.AUTO_HEIGHT,t.autoHeight),o.toggle(exports.LayoutCssClasses.NORMAL,t.normal),o.toggle(exports.LayoutCssClasses.PRINT,t.print),this.addOrRemoveCssClass(exports.LayoutCssClasses.AUTO_HEIGHT,t.autoHeight),this.addOrRemoveCssClass(exports.LayoutCssClasses.NORMAL,t.normal),this.addOrRemoveCssClass(exports.LayoutCssClasses.PRINT,t.print)},t.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>"},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(e){return oi(e)})},Kd([W("loggerFactory")],t.prototype,"loggerFactory",void 0),Kd([er("gridBody")],t.prototype,"gridBodyComp",void 0),Kd([er("sideBar")],t.prototype,"sideBarComp",void 0),Kd([er("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),Kd([k],t.prototype,"postConstruct",null),t}(Hp),qd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Qd=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Xd=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Jd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xd(arguments[t]));return e},Zd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return qd(t,e),o=t,t.prototype.progressSort=function(e,t,o){var i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,o)},t.prototype.setSortForColumn=function(e,t,o,i){"asc"!==t&&"desc"!==t&&(t=null);var r=[e];if(this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e.getColDef().showRowGroup){e.getColDef().field||(r=[]);var n=this.columnModel.getSourceColumnsForGroupColumn(e),s=null==n?void 0:n.filter(function(e){return e.getColDef().sortable});s&&(r=Jd(r,s))}r.forEach(function(e){return e.setSort(t,i)}),(o||this.gridOptionsService.is("alwaysMultiSort"))&&!this.gridOptionsService.is("suppressMultiSort")||this.clearSortBarTheseColumns(r,i),this.updateSortIndex(e),this.dispatchSortChangedEvents(i)},t.prototype.updateSortIndex=function(e){var t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=this.columnModel.getGroupDisplayColumnForGroup(e.getId()),i=t&&o||e,r=this.getColumnsWithSortingOrdered(!0);this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(e){return e.setSortIndex(null)});var n=r.filter(function(e){return e!==i});(i.getSort()?Jd(n,[i]):n).forEach(function(e,t){return e.setSortIndex(t)})},t.prototype.onSortChanged=function(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(e){return!!e.getSort()});return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:He.EVENT_SORT_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarTheseColumns=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(o){e.includes(o)||o.setSort(void 0,t)})},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?this.gridOptionsService.get("sortingOrder"):o.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var i=e.getColDef().field?e.getSort():this.getDisplaySortForColumn(e),r=t[0];if("mixed"!==i){var n=t.indexOf(i),s=n<0,a=n==t.length-1;r=s||a?t[0]:t[n+1]}return o.DEFAULT_SORTING_ORDER.indexOf(r)<0?(console.warn("AG Grid: invalid sort type "+r),null):r},t.prototype.getIndexedSortMap=function(e){var t=this;void 0===e&&(e=!1);var o=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(e){return!!e.getSort()});!e&&this.columnModel.isPivotMode()&&(o=o.filter(function(e){return!!e.getAggFunc()||!e.isPrimary()||t.columnModel.getGroupDisplayColumnForGroup(e.getId())}));var i=this.columnModel.getRowGroupColumns().filter(function(e){return!!e.getSort()}),r=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!i.length;r&&(o=Jd(new Set(o.map(function(e){var o;return null!==(o=t.columnModel.getGroupDisplayColumnForGroup(e.getId()))&&void 0!==o?o:e}))));var n={};o.forEach(function(e,t){return n[e.getId()]=t}),o.sort(function(e,t){var o=e.getSortIndex(),i=t.getSortIndex();return null!=o&&null!=i?o-i:null==o&&null==i?n[e.getId()]>n[t.getId()]?1:-1:null==i?-1:1});var s=new Map;return o.forEach(function(e,t){return s.set(e,t)}),r&&i.forEach(function(e){var o=t.columnModel.getGroupDisplayColumnForGroup(e.getId());s.set(e,s.get(o))}),s},t.prototype.getColumnsWithSortingOrdered=function(e){return void 0===e&&(e=!1),Jd(this.getIndexedSortMap(e).entries()).sort(function(e,t){var o=Xd(e,2);o[0];var i=o[1],r=Xd(t,2);return r[0],i-r[1]}).map(function(e){return Xd(e,1)[0]})},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered(!0).map(function(e){return{sort:e.getSort(),colId:e.getId()}})},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map(function(e){return{sort:e.getSort(),column:e}})},t.prototype.canColumnDisplayMixedSort=function(e){var t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=!!e.getColDef().showRowGroup;return t&&o},t.prototype.getDisplaySortForColumn=function(e){var t=this.columnModel.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!(null==t?void 0:t.length))return e.getSort();var o=!!e.getColDef().field?Jd([e],t):t,i=o[0].getSort();return o.every(function(e){return e.getSort()==i})?i:"mixed"},t.prototype.getDisplaySortIndexForColumn=function(e){return this.getIndexedSortMap().get(e)},t.DEFAULT_SORTING_ORDER=["asc","desc",null],Qd([W("columnModel")],t.prototype,"columnModel",void 0),t=o=Qd([j("sortController")],t)}(Fe),$d=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),eh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $d(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:He.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:He.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},t=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("columnHoverService")],t),t}(Fe),th=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),oh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ih=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return th(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){return e.gridBodyCtrl=t.gridBodyCtrl})},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsService.is("suppressColumnMoveAnimation")||this.gridOptionsService.is("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)})},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout(function(){return e.forEach(function(e){return e()})},0),window.setTimeout(function(){return t.forEach(function(e){return e()})},300))},oh([W("ctrlsService")],t.prototype,"ctrlsService",void 0),oh([k],t.prototype,"postConstruct",null),t=oh([j("columnAnimationService")],t)}(Fe),rh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),nh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,He.EVENT_BODY_HEIGHT_CHANGED,e.checkPageSize.bind(e)),e.addManagedListener(e.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,e.checkPageSize.bind(e)),e.checkPageSize()})},t.prototype.notActive=function(){return!this.gridOptionsService.is("paginationAutoPageSize")||null==this.centerRowContainerCon},t.prototype.checkPageSize=function(){var e=this;if(!this.notActive()){var t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var o=function(){var o=e.gridOptionsService.getRowHeightAsNumber(),i=Math.floor(t/o);e.gridOptionsService.set("paginationPageSize",i)};this.isBodyRendered?M(function(){return o()},50)():(o(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},nh([W("ctrlsService")],t.prototype,"ctrlsService",void 0),nh([k],t.prototype,"postConstruct",null),t=nh([j("paginationAutoPageSizeService")],t)}(Fe),ah=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},uh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return ah(t,e),t.prototype.init=function(){this.active=this.gridOptionsService.is("valueCache"),this.neverExpires=this.gridOptionsService.is("valueCacheNeverExpires")},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},lh([k],t.prototype,"init",null),t=lh([j("valueCache")],t)}(Fe),ch=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ph=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},dh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ch(t,e),t.prototype.init=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,He.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){"paste"!==e.source&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsService.is("suppressChangeDetection")){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsService.is("aggregateOnlyChangedColumns"),i=new lp(o,this.clientSideRowModel.getRootNode());i.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(i)}this.rowRenderer.refreshCells()}},ph([W("rowModel")],t.prototype,"rowModel",void 0),ph([W("rowRenderer")],t.prototype,"rowRenderer",void 0),ph([k],t.prototype,"init",null),t=ph([j("changeDetectionService")],t)}(Fe),hh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),fh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},gh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hh(t,e),t.prototype.adaptFunction=function(e,t){var o=this.componentMetadataProvider.retrieve(e);return o&&o.functionAdapter?o.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var o=e(t),i=typeof o;this.eGui="string"!==i&&"number"!==i&&"boolean"!==i?null!=o?o:ii("<span></span>"):ii("<span>"+o+"</span>")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},fh([W("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=fh([j("agComponentUtils")],t)}(Fe),vh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),yh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vh(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},yh([W("agComponentUtils")],t.prototype,"agComponentUtils",void 0),yh([k],t.prototype,"postConstruct",null),t=yh([j("componentMetadataProvider")],t)}(Fe),Ch=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),wh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Sh=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Eh={"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}},Rh={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},bh=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.calculatedSizes={},t}return Ch(o,e),o.prototype.postConstruct=function(){var e,t=this,o=null!==(e=this.getTheme().el)&&void 0!==e?e:this.eGridDiv;this.mutationObserver=new MutationObserver(function(){t.calculatedSizes={},t.fireGridStylesChangedEvent()}),this.mutationObserver.observe(o||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},o.prototype.fireGridStylesChangedEvent=function(){var e={type:He.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)},o.prototype.getSassVariable=function(e){var t=this.getTheme(),o=t.themeFamily,i=t.el;if(o&&0===o.indexOf("ag-theme")){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[o]||(this.calculatedSizes[o]={});var r=this.calculatedSizes[o][e];return null!=r?r:(this.calculatedSizes[o][e]=this.calculateValueForSassProperty(e,o,i),this.calculatedSizes[o][e])}},o.prototype.calculateValueForSassProperty=function(e,t,o){var i,r="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),n=Eh[r][e],s=this.gridOptionsService.getDocument();if(o||(o=this.eGridDiv),!Rh[e])return n;var a=Rh[e],l=s.createElement("div"),u=Array.from(o.classList);(i=l.classList).add.apply(i,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Sh(arguments[t]));return e}([t],u)),l.style.position="absolute";var c=a.reduce(function(e,t){var o=s.createElement("div");return o.style.position="static",o.classList.add(t),e.appendChild(o),o},l),p=0;if(s.body){s.body.appendChild(l);var d=-1!==e.toLowerCase().indexOf("height")?"height":"width";p=parseInt(window.getComputedStyle(c)[d],10),s.body.removeChild(l)}return p||n},o.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},o.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("chartMenuPanelWidth")},o.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/g,t=this.eGridDiv,o=null,i=[];t;){if(o=e.exec(t.className)){var r=t.className.match(e);r&&(i=r);break}t=t.parentElement||void 0}if(!o)return{allThemes:i};var n=o[0];return{theme:n,el:t,themeFamily:n.replace(/-dark$/,""),allThemes:i}},o.prototype.getFromTheme=function(e,t){var o;return null!==(o=this.getSassVariable(t))&&void 0!==o?o:e},o.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},o.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},o.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},o.prototype.getMinColWidth=function(){var e=this.getFromTheme(null,"headerCellMinWidth");return t(e)?Math.max(e,10):10},o.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),e.prototype.destroy.call(this)},wh([W("eGridDiv")],o.prototype,"eGridDiv",void 0),wh([k],o.prototype,"postConstruct",null),o=wh([j("environment")],o)}(Fe),Oh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Th=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}var o,i;return Oh(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=wo(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:He.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:He.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},Th([W("ctrlsService")],t.prototype,"ctrlsService",void 0),Th([(o=0,i=K("loggerFactory"),function(e,t){i(e,t,o)})],t.prototype,"agWire",null),Th([k],t.prototype,"postConstruct",null),t=Th([j("rowContainerHeightService")],t)}(Fe),Ph=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),_h=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ah=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Ph(o,e),o.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.isRowSelectableFunc=this.gridOptionsService.get("isRowSelectable")},o.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,function(e){return e.childrenAfterGroup})}},o.prototype.recurseDown=function(e,o){var i=this;e&&e.forEach(function(e){if(e.group){var r;if(e.hasChildren()&&i.recurseDown(o(e),o),i.groupSelectsChildren)r=t((o(e)||[]).find(function(e){return!0===e.selectable}));else r=!!i.isRowSelectableFunc&&i.isRowSelectableFunc(e);e.setRowSelectable(r)}})},_h([k],o.prototype,"init",null),o=_h([j("selectableService")],o)}(Fe),Nh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Mh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fh=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t.areListenersSetup=!1,t}return Nh(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsService.is("enableRtl");this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",bi(e?"last":"first",this.gridOptionsService)),this.btPrevious.insertAdjacentElement("afterbegin",bi(e?"next":"previous",this.gridOptionsService)),this.btNext.insertAdjacentElement("afterbegin",bi(e?"previous":"next",this.gridOptionsService)),this.btLast.insertAdjacentElement("afterbegin",bi(e?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},t.prototype.onPaginationChanged=function(){var e=this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel");this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},t.prototype.setupListeners=function(){var e=this;this.areListenersSetup||(this.addManagedListener(this.eventService,He.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(t){var o=t.el,i=t.fn;e.addManagedListener(o,"click",i),e.addManagedListener(o,"keydown",function(e){e.key!==Ti.ENTER&&e.key!==Ti.SPACE||(e.preventDefault(),i())})}),this.areListenersSetup=!0)},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),o=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var t=this.gridOptionsService.getCallback("paginationNumberFormatter");if(t)return t({value:e});var o=this.localeService.getLocaleTextFunc();return _o(e,o("thousandSeparator",","),o("decimalSeparator","."))},t.prototype.getTemplate=function(){var e=this.localeService.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),i=e("of","of"),r=e("firstPage","First Page"),n=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-to">'+o+'</span>\n <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-of">'+i+'</span>\n <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+r+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+n+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+l+'-start-page">'+t+'</span>\n <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+l+'-of-page">'+i+'</span>\n <span id="ag-'+l+'-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="'+a+'"></div>\n </span>\n </div>'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var i=this.isZeroPagesToDisplay(),r=t&&e===o-1;this.nextButtonDisabled=r||i,this.lastButtonDisabled=!t||i||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){kt(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(this.isZeroPagesToDisplay()?e=t=0:(t=(e=i*o+1)+i-1,r&&t>n&&(t=n)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()){var s=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=s("pageLastRowUnknown","?")}else this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=e?this.paginationProxy.getMasterRowCount():null;if(1===o){var i=this.paginationProxy.getRow(0);if(i&&i.group&&!(i.groupData||i.aggData))return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var r=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},t.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)},Mh([W("paginationProxy")],t.prototype,"paginationProxy",void 0),Mh([W("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Mh([er("btFirst")],t.prototype,"btFirst",void 0),Mh([er("btPrevious")],t.prototype,"btPrevious",void 0),Mh([er("btNext")],t.prototype,"btNext",void 0),Mh([er("btLast")],t.prototype,"btLast",void 0),Mh([er("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Mh([er("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Mh([er("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Mh([er("lbCurrent")],t.prototype,"lbCurrent",void 0),Mh([er("lbTotal")],t.prototype,"lbTotal",void 0),Mh([k],t.prototype,"postConstruct",null),t}($i),Lh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),xh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(ld||(ld={}));var Ih=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o.manuallyDisplayed=!1,o}return Lh(t,e),t.prototype.updateLayoutClasses=function(e,t){var o=this.eOverlayWrapper.classList;o.toggle(exports.LayoutCssClasses.AUTO_HEIGHT,t.autoHeight),o.toggle(exports.LayoutCssClasses.NORMAL,t.normal),o.toggle(exports.LayoutCssClasses.PRINT,t.print)},t.prototype.postConstruct=function(){this.createManagedBean(new Ea(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,He.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===ld.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===ld.NoRows)},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,ld.Loading)}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,ld.NoRows)}},t.prototype.showOverlay=function(e,t){var o=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then(function(e){o.inProgress=!1,o.eOverlayWrapper.appendChild(e.getGui()),o.activeOverlay=e,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())}),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0,{skipAriaHidden:!0}))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),ei(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},t.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsService.is("suppressNoRowsOverlay");e&&!t?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},t.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>',xh([W("userComponentFactory")],t.prototype,"userComponentFactory",void 0),xh([W("paginationProxy")],t.prototype,"paginationProxy",void 0),xh([W("gridApi")],t.prototype,"gridApi",void 0),xh([W("columnModel")],t.prototype,"columnModel",void 0),xh([er("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),xh([k],t.prototype,"postConstruct",null),t}($i),Gh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Hh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Vh=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Gh(o,e),o.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e="top":this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e="bottom"),void 0===e?null:{rowIndex:t,rowPinned:e}},o.prototype.getLastRow=function(){var e,t=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),i=this.pinnedRowModel.getPinnedTopRowCount();return o?(t="bottom",e=o-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):i&&(t="top",e=i-1),void 0===e?null:{rowIndex:e,rowPinned:t}},o.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},o.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},o.prototype.before=function(e,o){switch(e.rowPinned){case"top":if("top"!==o.rowPinned)return!0;break;case"bottom":if("bottom"!==o.rowPinned)return!1;break;default:if(t(o.rowPinned))return"top"!==o.rowPinned}return e.rowIndex<o.rowIndex},o.prototype.rowMax=function(e){var t,o=this;return e.forEach(function(e){(void 0===t||o.before(t,e))&&(t=e)}),t},o.prototype.rowMin=function(e){var t,o=this;return e.forEach(function(e){(void 0===t||o.before(e,t))&&(t=e)}),t},Hh([W("rowModel")],o.prototype,"rowModel",void 0),Hh([W("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),Hh([W("paginationProxy")],o.prototype,"paginationProxy",void 0),o=Hh([j("rowPositionUtils")],o)}(Fe),kh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kh(t,e),t.prototype.createId=function(e){var t=e.rowIndex,o=e.rowPinned,i=e.column;return this.createIdFromValues({rowIndex:t,column:i,rowPinned:o})},t.prototype.createIdFromValues=function(e){var t=e.rowIndex,o=e.rowPinned;return t+"."+(null==o?"null":o)+"."+e.column.getId()},t.prototype.equals=function(e,t){var o=e.column===t.column,i=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return o&&i&&r},t=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("cellPositionUtils")],t),t}(Fe),jh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Wh=function(e){this.cellValueChanges=e},Uh=function(e){function t(t,o,i,r){var n=e.call(this,t)||this;return n.initialRange=o,n.finalRange=i,n.ranges=r,n}return jh(t,e),t}(Wh),zh=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),Kh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Yh=function(){return Yh=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Yh.apply(this,arguments)},qh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Qh=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Xh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isRangeInAction=!1,t.onCellValueChanged=function(e){var o={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},i=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,o),r=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,o);if(i||r||t.isPasting||t.isRangeInAction){var n=e.rowPinned,s=e.rowIndex,a=e.column,l=e.oldValue,u=e.value,c={rowPinned:n,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Kh(t,e),t.prototype.init=function(){var e=this;if(this.gridOptionsService.is("undoRedoCellEditing")){var t=this.gridOptionsService.getNum("undoRedoCellEditingLimit");t<=0||(this.undoStack=new zh(t),this.redoStack=new zh(t),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,He.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,He.EVENT_MODEL_UPDATED,function(t){t.keepUndoRedoStack||e.clearStacks()}),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))}},t.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},t.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},t.prototype.undo=function(e){var t={type:He.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(t);var o=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),i={type:He.EVENT_UNDO_ENDED,source:e,operationPerformed:o};this.eventService.dispatchEvent(i)},t.prototype.redo=function(e){var t={type:He.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(t);var o=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),i={type:He.EVENT_REDO_ENDED,source:e,operationPerformed:o};this.eventService.dispatchEvent(i)},t.prototype.undoRedo=function(e,t,o,i,r){if(!e)return!1;var n=e.pop();return!(!n||!n.cellValueChanges)&&(this.processAction(n,function(e){return e[i]},r),n instanceof Uh?this.processRange(n.ranges||[n[o]]):this.processCell(n.cellValueChanges),t.push(n),!0)},t.prototype.processAction=function(e,t,o){var i=this;e.cellValueChanges.forEach(function(e){var r=e.rowIndex,n=e.rowPinned,s=e.columnId,a={rowIndex:r,rowPinned:n},l=i.getRowNode(a);l.displayed&&l.setDataValue(s,t(e),o)})},t.prototype.processRange=function(e){var t,o=this;this.rangeService.removeAllCellRanges(!0),e.forEach(function(i,r){if(i){var n=i.startRow,s=i.endRow;r===e.length-1&&(t={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:i.startColumn.getColId()},o.setLastFocusedCell(t));var a={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:i.startColumn,columns:i.columns};o.rangeService.addCellRange(a)}})},t.prototype.processCell=function(e){var t=e[0],o={rowIndex:t.rowIndex,rowPinned:t.rowPinned},i=this.getRowNode(o),r={rowPinned:t.rowPinned,rowIndex:i.rowIndex,columnId:t.columnId};this.setLastFocusedCell(r,!!this.rangeService)},t.prototype.setLastFocusedCell=function(e,t){var o=e.rowIndex,i=e.columnId,r=e.rowPinned,n=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getGridColumn(i);if(s){n.ensureIndexVisible(o),n.ensureColumnVisible(s);var a={rowIndex:o,column:s,rowPinned:r};this.focusService.setFocusedCell(Yh(Yh({},a),{forceBrowserFocus:!0})),t&&this.rangeService.setRangeToCell(a)}},t.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_ROW_EDITING_STARTED,function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}}),this.addManagedListener(this.eventService,He.EVENT_ROW_EDITING_STOPPED,function(){var t=new Wh(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null})},t.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_CELL_EDITING_STARTED,function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}}),this.addManagedListener(this.eventService,He.EVENT_CELL_EDITING_STOPPED,function(t){if(e.activeCellEdit=null,t.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction){var o=new Wh(e.cellValueChanges);e.pushActionsToUndoStack(o)}})},t.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_PASTE_START,function(){e.isPasting=!0}),this.addManagedListener(this.eventService,He.EVENT_PASTE_END,function(){var t=new Wh(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1})},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_FILL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,He.EVENT_FILL_END,function(t){var o=new Uh(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(o),e.isRangeInAction=!1})},t.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,He.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,function(){var t;t=e.rangeService&&e.gridOptionsService.isEnableRangeSelection()?new Uh(e.cellValueChanges,void 0,void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Qh(arguments[t]));return e}(e.rangeService.getCellRanges())):new Wh(e.cellValueChanges),e.pushActionsToUndoStack(t),e.isRangeInAction=!1})},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},qh([W("focusService")],t.prototype,"focusService",void 0),qh([W("ctrlsService")],t.prototype,"ctrlsService",void 0),qh([W("rowModel")],t.prototype,"rowModel",void 0),qh([W("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),qh([W("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),qh([W("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),qh([W("columnModel")],t.prototype,"columnModel",void 0),qh([U("rangeService")],t.prototype,"rangeService",void 0),qh([k],t.prototype,"init",null),t=qh([j("undoRedoService")],t)}(Fe),Jh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Zh=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},$h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jh(t,e),t.prototype.findHeader=function(e,t){var o,i,r;if(e.column instanceof tt?(i="getDisplayedGroup"+t,o=this.columnModel[i](e.column)):(r="getDisplayedCol"+t,o=this.columnModel[r](e.column)),o){var n=e.headerRowIndex;if(this.getHeaderRowType(n)===exports.HeaderRowType.COLUMN_GROUP){var s=o;if(s.isPadding()&&this.isAnyChildSpanningHeaderHeight(s)){var a=this.getColumnVisibleChild(s,n,t),l=a.nextFocusColumn,u=a.nextRow;l&&(o=l,n=u)}}return{column:o,headerRowIndex:n}}},t.prototype.isAnyChildSpanningHeaderHeight=function(e){return!!e&&e.getLeafColumns().some(function(e){return e.isSpanHeaderHeight()})},t.prototype.getColumnVisibleParent=function(e,t){var o=this.getHeaderRowType(t),i=o===exports.HeaderRowType.FLOATING_FILTER,r=o===exports.HeaderRowType.COLUMN,n=i?e:e.getParent(),s=t-1;if(r&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;n&&n.isPadding();)n=n.getParent(),s--;s<0&&(n=e,s=t)}return{nextFocusColumn:n,nextRow:s}},t.prototype.getColumnVisibleChild=function(e,t,o){void 0===o&&(o="After");var i=e,r=t+1;if(this.getHeaderRowType(t)===exports.HeaderRowType.COLUMN_GROUP){var n=e.getLeafColumns(),s="After"===o?n[0]:ae(n);if(this.isAnyChildSpanningHeaderHeight(s.getParent())){i=s;for(var a=s.getParent();a&&a!==e;)a=a.getParent(),r++}else i=e.getDisplayedChildren()[0]}return{nextFocusColumn:i,nextRow:r}},t.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},t.prototype.findColAtEdgeForHeaderRow=function(e,t){var o=this.columnModel.getAllDisplayedColumns(),i=o["start"===t?0:o.length-1];if(i){var r=this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()).getRowType(e);return r==exports.HeaderRowType.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(i,e)}:{headerRowIndex:null==r?-1:e,column:i}}},Zh([W("columnModel")],t.prototype,"columnModel",void 0),Zh([W("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Zh([j("headerPositionUtils")],t)}(Fe),ef=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,o){var i=this,r=[],n={};return e.forEach(function(e){for(var s=!0,a=i.createDefFromColumn(e,t,o),l=e.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=n[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=i.createDefFromGroup(l))&&(u.children=[a],n[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&r.push(a)}),r},e.prototype.createDefFromGroup=function(e){var t=d(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,o){var i=d(e.getColDef());return i.colId=e.getColId(),i.width=e.getActualWidth(),i.rowGroup=e.isRowGroupActive(),i.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,i.pivot=e.isPivotActive(),i.pivotIndex=e.isPivotActive()?o.indexOf(e):null,i.aggFunc=e.isValueActive()?e.getAggFunc():null,i.hide=!e.isVisible()||void 0,i.pinned=e.isPinned()?e.getPinned():null,i.sort=e.getSort()?e.getSort():null,i.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,i},e=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("columnDefFactory")],e),e}(),tf=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},of=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var o=[];return t(e.extraCssClass)&&o.push(e.extraCssClass),o.push("ag-row"),o.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&o.push("ag-opacity-zero"),o.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&o.push("ag-row-pinned"),e.rowNode.isSelected()&&o.push("ag-row-selected"),e.rowNode.footer&&o.push("ag-row-footer"),o.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&o.push("ag-row-loading"),e.fullWidthRow&&o.push("ag-full-width-row"),e.expandable&&(o.push("ag-row-group"),o.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&o.push("ag-row-dragging"),ve(o,this.processClassesFromGridOptions(e.rowNode)),ve(o,this.preProcessRowClassRules(e.rowNode)),o.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&o.push("ag-row-first"),e.lastRowOnPage&&o.push("ag-row-last"),e.fullWidthRow&&("left"===e.pinned&&o.push("ag-cell-last-left-pinned"),"right"===e.pinned&&o.push("ag-cell-first-right-pinned")),o},e.prototype.processClassesFromGridOptions=function(e){var t=[],o=function(e){"string"==typeof e?t.push(e):Array.isArray(e)&&e.forEach(function(e){return t.push(e)})},i=this.gridOptionsService.get("rowClass");if(i){if("function"==typeof i)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];o(i)}var r=this.gridOptionsService.getCallback("getRowClass");r&&o(r({data:e.data,node:e,rowIndex:e.rowIndex}));return t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,function(e){t.push(e)},function(e){}),t},e.prototype.processRowClassRules=function(e,t,o){var i={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"),i,t,o)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},tf([W("stylingService")],e.prototype,"stylingService",void 0),tf([W("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e=tf([j("rowCssClassCalculator")],e)}(),rf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),nf=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.is("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",function(t){return e.isAccentedSort=t.currentValue}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()})},t.prototype.doFullSort=function(e,t){var o=e.map(function(e,t){return{currentPos:t,rowNode:e}});return o.sort(this.compareRowNodes.bind(this,t)),o.map(function(e){return e.rowNode})},t.prototype.compareRowNodes=function(e,t,o){for(var i=t.rowNode,r=o.rowNode,n=0,s=e.length;n<s;n++){var a=e[n],l="desc"===a.sort,u=this.getValue(i,a.column),c=this.getValue(r,a.column),p=void 0,d=this.getComparator(a,i);if(p=d?d(u,c,i,r,l):ki.defaultComparator(u,c,this.isAccentedSort),!isNaN(p)&&0!==p)return"asc"===a.sort?p:-1*p}return t.currentPos-o.currentPos},t.prototype.getComparator=function(e,t){var o=e.column,i=o.getColDef().comparator;if(null!=i)return i;if(o.getColDef().showRowGroup){var r=!t.group&&o.getColDef().field;if(r){var n=this.columnModel.getPrimaryColumn(r);if(n)return n.getColDef().comparator}}},t.prototype.getValue=function(e,t){var o,i;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);if(e.rowGroupColumn===t){if(this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(t.getColDef().keyCreator)return e.key;var r=null===(o=e.allLeafChildren)||void 0===o?void 0:o[0];return r?this.valueService.getValue(t,r,!1,!1):void 0}var n=this.columnModel.getGroupDisplayColumnForGroup(t.getId());if(!n)return;return null===(i=e.groupData)||void 0===i?void 0:i[n.getId()]}return e.group&&t.getColDef().showRowGroup?void 0:this.valueService.getValue(t,e,!1,!1)},nf([W("valueService")],t.prototype,"valueService",void 0),nf([W("columnModel")],t.prototype,"columnModel",void 0),nf([k],t.prototype,"init",null),t=nf([j("rowNodeSorter")],t)}(Fe),af=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var o;return af(t,e),o=t,t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollComp&&null!=this.fakeVScrollComp&&null!=this.gridHeaderCtrl,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach(function(t){return t(e)}),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollComp=function(e){this.fakeHScrollComp=e,this.checkReady()},t.prototype.registerFakeVScrollComp=function(e){this.fakeVScrollComp=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(e){this.stickyTopCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(e){this.stickyTopLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(e){this.stickyTopRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,t){switch(t){case"left":this.leftHeaderRowContainerCtrl=e;break;case"right":this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},t.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=o=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j(o.NAME)],t),t}(Fe),uf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return uf(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},t=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("ctrlsFactory")],t),t}(Fe),pf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),df=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},hf=function(e){function t(t,o){var i=e.call(this,t)||this;return i.direction=o,i.hideTimeout=null,i}return pf(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",vo()||yo())},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=Oo(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},t.prototype.addActiveListenerToggles=function(){var e=this,t=this.getGui();["mouseenter","mousedown","touchstart"].forEach(function(o){return e.addManagedListener(t,o,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),["mouseleave","touchend"].forEach(function(o){return e.addManagedListener(t,o,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},t.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_BODY_SCROLL,function(t){t.direction===e.direction&&(null!==e.hideTimeout&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))}),this.addManagedListener(this.eventService,He.EVENT_BODY_SCROLL_END,function(){e.hideTimeout=window.setTimeout(function(){e.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),e.hideTimeout=null},400)})},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},df([er("eViewport")],t.prototype,"eViewport",void 0),df([er("eContainer")],t.prototype,"eContainer",void 0),df([W("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),df([W("ctrlsService")],t.prototype,"ctrlsService",void 0),t}($i),ff=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gf=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},vf=function(e){function t(){return e.call(this,t.TEMPLATE,"horizontal")||this}return ff(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var o=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,He.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",o),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new Ll(function(e){return t.eContainer.style.width=e+"px"}))},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.is("enableRtl"),e.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=e+"px"}},t.prototype.onScrollVisibilityChanged=function(){e.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&e,i=this.gridOptionsService.getScrollbarWidth();o&&(t+=i),hi(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=i);var r=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(r+=i),hi(this.eLeftSpacer,r),this.eLeftSpacer.classList.toggle("ag-scroller-corner",r<=i)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,o=this.gridOptionsService.is("suppressHorizontalScroll"),i=e&&this.gridOptionsService.getScrollbarWidth()||0,r=o?0:0===i&&t?16:i;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),fi(this.getGui(),r),fi(this.eViewport,r),fi(this.eContainer,r),this.setDisplayed(e,{skipAriaHidden:!0})},t.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>',gf([er("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),gf([er("eRightSpacer")],t.prototype,"eRightSpacer",void 0),gf([W("columnModel")],t.prototype,"columnModel",void 0),gf([W("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),gf([k],t.prototype,"postConstruct",null),t}(hf),yf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),mf=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Cf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yf(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("print"),t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:He.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:He.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},mf([W("columnModel")],t.prototype,"columnModel",void 0),mf([k],t.prototype,"postConstruct",null),t=mf([j("pinnedWidthService")],t)}(Fe),wf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sf=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return wf(t,e),t.prototype.postConstruct=function(){"clientSide"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;if(null!=this.clientSideRowModel){this.events.push(e);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach(function(e){return t.eventService.dispatchEvent(e)}),t.events=[]})),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(e)},Sf([W("animationFrameService")],t.prototype,"animationFrameService",void 0),Sf([W("rowModel")],t.prototype,"rowModel",void 0),Sf([k],t.prototype,"postConstruct",null),t=Sf([j("rowNodeEventThrottle")],t)}(Fe),Rf=function(){return Rf=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Rf.apply(this,arguments)},bf=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Of=function(e,t){return function(o,i){t(o,i,e)}},Tf=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s};
326
+ /**
327
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
328
+ * @version v29.3.5
329
+ * @link https://www.ag-grid.com/
330
+ * @license MIT
331
+ */function Df(e){return!0===e||"true"===e}var Pf,_f=function(){function e(){this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new J}return Object.defineProperty(e.prototype,"context",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.api=e,this.columnApi=t},e.prototype.init=function(){this.gridOptionLookup=new Set(function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Tf(arguments[t]));return e}(Ue.ALL_PROPERTIES,Ue.EVENT_CALLBACKS));var e=!this.is("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.getScrollbarWidth()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.is=function(e){return Df(this.gridOptions[e])},e.prototype.get=function(e){return this.gridOptions[e]},e.prototype.getNum=function(e){return"number"==typeof(t=this.gridOptions[e])?t:"string"==typeof t?parseInt(t,10):void 0;var t},e.prototype.getCallback=function(e){return this.mergeGridCommonParams(this.gridOptions[e])},e.prototype.exists=function(e){return t(this.gridOptions[e])},e.prototype.mergeGridCommonParams=function(e){var t=this;if(e){return function(o){var i=o;return i.api=t.api,i.columnApi=t.columnApi,i.context=t.context,e(i)}}return e},e.prototype.set=function(e,t,o,i){if(void 0===o&&(o=!1),void 0===i&&(i={}),this.gridOptionLookup.has(e)){var r=this.gridOptions[e];if(o||r!==t){this.gridOptions[e]=t;var n=Rf({type:e,currentValue:t,previousValue:r},i);this.propertyEventService.dispatchEvent(n)}}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var o=Ue.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)}},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Ro();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:He.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||"clientSide"===e&&o(this.gridOptions.rowModelType)},e.prototype.isDomLayout=function(e){var t;return(null!==(t=this.gridOptions.domLayout)&&void 0!==t?t:"normal")===e},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.useAsyncEvents=function(){return!this.is("suppressAsyncEvents")},e.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,o){if(void 0===t&&(t=!1),null==o&&(o=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:o,estimated:!0};var i={node:e,data:e.data},r=this.getCallback("getRowHeight")(i);if(this.isNumeric(r))return 0===r&&b(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 e.detail&&this.is("masterDetail")?this.getMasterDetailRowHeight():{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o,estimated:!1}},e.prototype.getMasterDetailRowHeight=function(){return this.is("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||o(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.environment.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var o=e[this.getDomDataKey()];return o?o[t]:void 0},e.prototype.setDomData=function(e,t,i){var r=this.getDomDataKey(),n=e[r];o(n)&&(n={},e[r]=n),n[t]=i},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&t(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&t(e)?e:document},e.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},e.prototype.getRowIdFunc=function(){var e=this.getCallback("getRowId");if(e)return e;var t=this.gridOptions.getRowNodeId;return t?function(e){return t(e.data)}:void 0},e.prototype.getAsyncTransactionWaitMillis=function(){return t(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},e.prototype.isAnimateRows=function(){return!this.is("ensureDomOrder")&&this.is("animateRows")},e.prototype.isTreeData=function(){return this.is("treeData")&&Z.assertRegistered(exports.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isMasterDetail=function(){return this.is("masterDetail")&&Z.assertRegistered(exports.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isEnableRangeSelection=function(){return this.is("enableRangeSelection")&&Z.isRegistered(exports.ModuleNames.RangeSelectionModule)},e.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef;return this.isRowModelType("clientSide")&&!(null==e?void 0:e.comparator)&&!this.isTreeData()},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.getCallback("groupAggFiltering"):Df(e)?function(){return!0}:void 0},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?et("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&et("groupRows",this.gridOptions.groupDisplayType))},bf([W("gridOptions")],e.prototype,"gridOptions",void 0),bf([W("eventService")],e.prototype,"eventService",void 0),bf([W("environment")],e.prototype,"environment",void 0),bf([W("eGridDiv")],e.prototype,"eGridDiv",void 0),bf([Of(0,K("gridApi")),Of(1,K("columnApi"))],e.prototype,"agWire",null),bf([k],e.prototype,"init",null),bf([B],e.prototype,"destroy",null),e=bf([j("gridOptionsService")],e)}(),Af=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Af(t,e),t.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback("getLocaleText");if(e)return function(t,o,i){return e({key:t,defaultValue:o,variableValues:i})};var t=this.gridOptionsService.get("localeTextFunc");if(t)return t;var o=this.gridOptionsService.get("localeText");return function(e,t,i){var r=o&&o[e];if(r&&i&&i.length)for(var n=0;!(n>=i.length);){if(-1===r.indexOf("${variable}"))break;r=r.replace("${variable}",i[n++])}return null!=r?r:t}},t=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s}([j("localeService")],t),t}(Fe),Mf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ff=function(e){function t(){return e.call(this,t.TEMPLATE,"vertical")||this}return Mf(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.createManagedBean(new Pl(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,o=e&&this.gridOptionsService.getScrollbarWidth()||0,i=0===o&&t?16:o;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),hi(this.getGui(),i),hi(this.eViewport,i),hi(this.eContainer,i),this.setDisplayed(e,{skipAriaHidden:!0})},t.TEMPLATE='<div class="ag-body-vertical-scroll" aria-hidden="true">\n <div class="ag-body-vertical-scroll-viewport" ref="eViewport">\n <div class="ag-body-vertical-scroll-container" ref="eContainer"></div>\n </div>\n </div>',function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);n>3&&s&&Object.defineProperty(t,o,s)}([k],t.prototype,"postConstruct",null),t}(hf),Lf=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},xf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Lf(arguments[t]));return e},If=function(){function e(e,t,o){t?(this.gridOptions=t,(new Gf).create(e,t,function(t){var o=new Yd(e);t.createBean(o)},void 0,o)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),Gf=function(){function e(){}return e.prototype.create=function(e,t,o,i,r){var n=this,s=!!t.debug,a=this.getRegisteredModules(r),l=this.createBeansList(t.rowModelType,a),u=this.createProvidedBeans(e,t,r);if(l){var c={providedBeanInstances:u,beanClasses:l,debug:s},p=new Bd("AG Grid",function(){return t.debug}),d=new Bd("Context",function(){return c.debug}),h=new H(c,d),f=h.getBean("beans");this.registerModuleUserComponents(f,a),this.registerStackComponents(f,a),this.registerControllers(f,a),o(h),f.ctrlsService.whenReady(function(){n.setColumnsAndData(f),n.dispatchGridReadyEvent(f);var e=Z.isRegistered(exports.ModuleNames.EnterpriseCoreModule);p.log("initialised successfully, enterprise = "+e)}),i&&i(h)}},e.prototype.registerControllers=function(e,t){t.forEach(function(t){t.controllers&&t.controllers.forEach(function(t){return e.ctrlsFactory.register(t)})})},e.prototype.registerStackComponents=function(e,t){var o=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(o)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,o=Z.getRegisteredModules(),i=[],r={};function n(e,t){var o;r[(o=t).moduleName]||(r[o.moduleName]=!0,i.push(o),Z.register(o,e)),t.dependantModules&&t.dependantModules.forEach(n.bind(null,e))}return t&&t.forEach(n.bind(null,!0)),o&&o.forEach(n.bind(null,!Z.isPackageBased())),i},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,function(e){return e.userComponents?e.userComponents:[]}).forEach(function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)})},e.prototype.createProvidedBeans=function(e,t,i){var r=i?i.frameworkOverrides:null;o(r)&&(r=new vd);var n={gridOptions:t,eGridDiv:e,globalEventListener:i?i.globalEventListener:null,frameworkOverrides:r};return i&&i.providedBeanInstances&&Object.assign(n,i.providedBeanInstances),n},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Gr},{componentName:"AgRadioButton",componentClass:Vr},{componentName:"AgToggleButton",componentClass:Sp},{componentName:"AgInputTextField",componentClass:sn},{componentName:"AgInputTextArea",componentClass:Rp},{componentName:"AgInputNumberField",componentClass:ln},{componentName:"AgInputRange",componentClass:Op},{componentName:"AgSelect",componentClass:Mr},{componentName:"AgSlider",componentClass:Pp},{componentName:"AgGridBody",componentClass:Kl},{componentName:"AgHeaderRoot",componentClass:Tc},{componentName:"AgSortIndicator",componentClass:Mn},{componentName:"AgPagination",componentClass:Fh},{componentName:"AgOverlayWrapper",componentClass:Ih},{componentName:"AgGroupComponent",componentClass:Np},{componentName:"AgPanel",componentClass:Xp},{componentName:"AgDialog",componentClass:$p},{componentName:"AgRowContainer",componentClass:hu},{componentName:"AgFakeHorizontalScroll",componentClass:vf},{componentName:"AgFakeVerticalScroll",componentClass:Ff}],o=this.extractModuleEntity(e,function(e){return e.agStackComponents?e.agStackComponents:[]});return t=t.concat(o)},e.prototype.createBeansList=function(e,t){void 0===e&&(e="clientSide");var o=t.filter(function(t){return!t.rowModel||t.rowModel===e}),i={clientSide:exports.ModuleNames.ClientSideRowModelModule,infinite:exports.ModuleNames.InfiniteRowModelModule,serverSide:exports.ModuleNames.ServerSideRowModelModule,viewport:exports.ModuleNames.ViewportRowModelModule};if(i[e]){if(Z.assertRegistered(i[e],"rowModelType = '"+e+"'")){var r=[Ja,Vh,Bh,$h,sh,ca,Ls,gh,mh,Hc,ta,Dh,_c,Nf,$e,sp,sa,bt,J,_f,cd,Dd,fa,wt,Sc,vp,$c,xd,Ie,Gd,Rd,ou,uh,Md,kd,Et,Uc,Mc,ls,_d,rd,Zl,bh,wd,ip,Cp,Ql,Zd,eh,ih,Ah,st,dh,Bc,Xh,Tt,ef,of,hp,sf,lf,Cf,Ef,cf],n=this.extractModuleEntity(o,function(e){return e.beans?e.beans:[]});r.push.apply(r,xf(n));var s=[];return r.forEach(function(e){s.indexOf(e)<0&&s.push(e)}),s}}else console.error("AG Grid: could not find row model for rowModelType = "+e)},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],xf(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsService.get("columnDefs");e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e){var t={type:He.EVENT_GRID_READY};e.eventService.dispatchEvent(t)},e}(),Hf=function(){function e(){}return e.prototype.wrap=function(e,t,o,i){var r=this;void 0===o&&(o=[]);var n=this.createWrapper(e,i);return t.forEach(function(e){r.createMethod(n,e,!0)}),o.forEach(function(e){r.createMethod(n,e,!1)}),n},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}();
332
+ /**
333
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
334
+ * @version v29.3.5
335
+ * @link https://www.ag-grid.com/
336
+ * @license MIT
337
+ */
338
+ /**
339
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
340
+ * @version v29.3.5
341
+ * @link https://www.ag-grid.com/
342
+ * @license MIT
343
+ */
344
+ exports.BarColumnLabelPlacement=void 0,(Pf=exports.BarColumnLabelPlacement||(exports.BarColumnLabelPlacement={})).InsideBase="insideBase",Pf.InsideEnd="insideEnd",Pf.Center="center",Pf.OutsideEnd="outsideEnd";
345
+ /**
346
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
347
+ * @version v29.3.5
348
+ * @link https://www.ag-grid.com/
349
+ * @license MIT
350
+ */
351
+ var Vf="undefined"==typeof global?{}:global;Vf.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Vf.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Vf.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Vf.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Vf.Node="undefined"==typeof Node?{}:Node,Vf.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var kf,Bf=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},jf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bf(arguments[t]));return e},Wf=function(){function e(t,o,i,r,n,s){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsService=o,this.eventService=i,this.columnModel=r,this.beans=s,this.selectionService=n,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsService.is("suppressParentsInRowNodes"),this.isRowMasterFunc=this.gridOptionsService.get("isRowMaster"),this.doingTreeData=this.gridOptionsService.isTreeData(),this.doingMasterDetail=this.gridOptionsService.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return ki.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var o=this;if("string"!=typeof t){var i=this.rootNode,r=this.rootNode.sibling;i.childrenAfterFilter=null,i.childrenAfterGroup=null,i.childrenAfterAggFilter=null,i.childrenAfterSort=null,i.childrenMapped=null,i.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?i.allLeafChildren=t.map(function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)}):(i.allLeafChildren=[],i.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=i.childrenAfterFilter,r.childrenAfterGroup=i.childrenAfterGroup,r.childrenAfterAggFilter=i.childrenAfterAggFilter,r.childrenAfterSort=i.childrenAfterSort,r.childrenMapped=i.childrenMapped,r.allLeafChildren=i.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")},e.prototype.updateRowData=function(e,t){var o={remove:[],update:[],add:[]},i=[];return this.executeRemove(e,o,i),this.executeUpdate(e,o,i),this.executeAdd(e,o),this.updateSelection(i,"rowDataChanged"),t&&ki.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),o},e.prototype.updateSelection=function(e,t){var o=e.length>0;if(o&&e.forEach(function(e){e.setSelected(!1,!1,!0,t)}),this.selectionService.updateGroupsFromChildrenSelections(t),o){var i={type:He.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(i)}},e.prototype.executeAdd=function(t,o){var i,r=this,n=t.add,s=t.addIndex;if(!ki.missingOrEmpty(n)){var a=n.map(function(t){return r.createNode(t,r.rootNode,e.TOP_LEVEL)});if("number"==typeof s&&s>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=s;if(this.doingTreeData&&s>0&&u>0)for(var p=0;p<u;p++)if((null===(i=l[p])||void 0===i?void 0:i.rowIndex)==s-1){c=p+1;break}var d=l.slice(0,c),h=l.slice(c,l.length);this.rootNode.allLeafChildren=jf(d,a,h)}else this.rootNode.allLeafChildren=jf(this.rootNode.allLeafChildren,a);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),o.add=a}},e.prototype.executeRemove=function(e,t,o){var i=this,r=e.remove;if(!ki.missingOrEmpty(r)){var n={};r.forEach(function(e){var r=i.lookupRowNode(e);r&&(r.isSelected()&&o.push(r),r.clearRowTopAndRowIndex(),n[r.id]=!0,delete i.allNodesMap[r.id],t.remove.push(r))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(e){return!n[e.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,o,i){var r=this,n=t.update;ki.missingOrEmpty(n)||n.forEach(function(t){var n=r.lookupRowNode(t);n&&(n.updateData(t),!n.selectable&&n.isSelected()&&i.push(n),r.setMasterForRow(n,t,e.TOP_LEVEL,!1),o.update.push(n))})},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsService.getRowIdFunc();if(o){var i=o({data:e,level:0});if(!(t=this.allNodesMap[i]))return console.error("AG Grid: could not find row id="+i+", data item was not found for this id"),null}else if(!(t=this.rootNode.allLeafChildren.find(function(t){return t.data===e})))return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,o){var i=new $n(this.beans);return i.group=!1,this.setMasterForRow(i,e,o,!0),t&&!this.suppressParentsInRowNodes&&(i.parent=t),i.level=o,i.setDataAndId(e,this.nextId.toString()),this.allNodesMap[i.id]&&console.warn("AG Grid: duplicate node id '"+i.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[i.id]=i,this.nextId++,i},e.prototype.setMasterForRow=function(e,t,o,i){if(this.doingTreeData)e.setMaster(!1),i&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),i){var r=this.columnModel.getRowGroupColumns(),n=o+(r?r.length:0);e.expanded=!!e.master&&this.isExpanded(n)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsService.getNum("groupDefaultExpanded");return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Uf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),zf=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Kf=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s},Yf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Kf(arguments[t]));return e};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(kf||(kf={}));var qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRowHeightChanged_debounced=ki.debounce(t.onRowHeightChanged.bind(t),100),t.rowsToDisplay=[],t}return Uf(t,e),t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:exports.ClientSideRowModelSteps.EVERYTHING}),t=!this.gridOptionsService.is("suppressAnimationFrame"),o=this.refreshModel.bind(this,{step:exports.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:exports.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,He.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this));var i=this.refreshModel.bind(this,{step:exports.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:t});this.addManagedPropertyListener("groupRemoveSingleChildren",i),this.addManagedPropertyListener("groupRemoveLowestSingleChildren",i),this.rootNode=new $n(this.beans),this.nodeManager=new Wf(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsService.get("rowData");e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,t,o,i){var r,n=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,o),u=Math.min(a,i),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsService.getRowHeightForNode(p);p.setRowHeight(d.height),r=!0,n=!0}}r&&this.setRowTopAndRowIndex()}while(r);return n},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.environment.getDefaultRowHeight(),t=0,o=new Set,i=this.gridOptionsService.isDomLayout("normal"),r=0;r<this.rowsToDisplay.length;r++){var n=this.rowsToDisplay[r];if(null!=n.id&&o.add(n.id),null==n.rowHeight){var s=this.gridOptionsService.getRowHeightForNode(n,i,e);n.setRowHeight(s.height,s.estimated)}n.setRowTop(t),n.setRowIndex(r),t+=n.rowHeight}return o},t.prototype.clearRowTopAndRowIndex=function(e,t){var o=e.isActive(),i=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},r=function(e){if(i(e),i(e.detailNode),i(e.sibling),e.hasChildren()&&e.childrenAfterGroup){var t=-1==e.level;o&&!t&&!e.expanded||e.childrenAfterGroup.forEach(r)}};r(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,t,o){var i=this;void 0===o&&(o=0);var r=this.getRowIndexAtPixel(t),n=this.getRow(r),s=!this.gridOptionsService.is("suppressAnimationFrame");return n!==e[0]&&(e.forEach(function(e){ki.removeFromArray(i.rootNode.allLeafChildren,e)}),e.forEach(function(e,t){ki.insertIntoArray(i.rootNode.allLeafChildren,e,Math.max(r+o,0)+t)}),this.refreshModel({step:exports.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:s}),!0)},t.prototype.highlightRowAtPixel=function(e,t){var o=null!=t?this.getRowIndexAtPixel(t):null,i=null!=o?this.getRow(o):null;if(i&&e&&i!==e&&null!=t){var r=this.getHighlightPosition(t,i);this.lastHighlightedRow&&this.lastHighlightedRow!==i&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),i.setHighlighted(r),this.lastHighlightedRow=i}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},t.prototype.getHighlightPosition=function(e,t){if(!t){var o=this.getRowIndexAtPixel(e);if(!(t=this.getRow(o||0)))return exports.RowHighlightPosition.Below}return e-t.rowTop<t.rowHeight/2?exports.RowHighlightPosition.Above:exports.RowHighlightPosition.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsService.is("groupHideOpenParents"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},t.prototype.getRowBounds=function(e){if(ki.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:exports.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsService.isAnimateRows(),o=0===e.columns.length||e.columns.some(function(e){return e.isPrimary()})?exports.ClientSideRowModelSteps.FILTER:exports.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:t})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:exports.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return"clientSide"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:exports.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:exports.ClientSideRowModelSteps.AGGREGATE})},t.prototype.createChangePath=function(e){var t=ki.missingOrEmpty(e),o=new lp(!1,this.rootNode);return(t||this.gridOptionsService.isTreeData())&&o.setInactive(),o},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction"))return!1;if(null==e.rowNodeTransactions)return!1;var t=e.rowNodeTransactions.filter(function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0});return null==t||0==t.length},t.prototype.buildRefreshModelParams=function(e){var t=exports.ClientSideRowModelSteps.EVERYTHING,o={everything:exports.ClientSideRowModelSteps.EVERYTHING,group:exports.ClientSideRowModelSteps.EVERYTHING,filter:exports.ClientSideRowModelSteps.FILTER,map:exports.ClientSideRowModelSteps.MAP,aggregate:exports.ClientSideRowModelSteps.AGGREGATE,sort:exports.ClientSideRowModelSteps.SORT,pivot:exports.ClientSideRowModelSteps.PIVOT};if(ki.exists(e)&&(t=o[e]),!ki.missing(t))return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.is("suppressAnimationFrame")};console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "))},t.prototype.refreshModel=function(e){var t="object"==typeof e&&"step"in e?e:this.buildRefreshModelParams(e);if(t&&!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var o=this.createChangePath(t.rowNodeTransactions);switch(t.step){case exports.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,o,!!t.afterColumnsChanged);case exports.ClientSideRowModelSteps.FILTER:this.doFilter(o);case exports.ClientSideRowModelSteps.PIVOT:this.doPivot(o);case exports.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(o);case exports.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(o);case exports.ClientSideRowModelSteps.SORT:this.doSort(t.rowNodeTransactions,o);case exports.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var i=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,i);var r={type:He.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(r)}},t.prototype.isEmpty=function(){var e=ki.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return ki.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return ki.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,t){var o,i=!t,r=!1,n=[],s=this.gridOptionsService.is("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort(function(a){var l=i&&!r;if(i||a!==t&&a!==e||(i=!0),!(a.group&&s)){var u=i&&!r,c=a.isParentOfNode(o);(u||c)&&n.push(a)}l&&(a!==t&&a!==e||(r=!0,o=a===t?t:e))}),n},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(ki.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(var i=-1,r=-1;;){var n=Math.floor((t+o)/2),s=this.rowsToDisplay[n];if(this.isRowInPixel(s,e))return n;if(s.rowTop<e?t=n+1:s.rowTop>e&&(o=n-1),i===t&&r===o)return n;i=t,r=o}},t.prototype.isRowInPixel=function(e,t){var o=e.rowTop,i=e.rowTop+e.rowHeight;return o<=t&&i>t},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(t,o){return e(t,o)})},t.prototype.forEachNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:Yf(this.rootNode.childrenAfterGroup||[]),callback:e,recursionType:kf.Normal,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilter=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:Yf(this.rootNode.childrenAfterAggFilter||[]),callback:e,recursionType:kf.AfterFilter,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilterAndSort=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:Yf(this.rootNode.childrenAfterSort||[]),callback:e,recursionType:kf.AfterFilterAndSort,index:0,includeFooterNodes:t})},t.prototype.forEachPivotNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:kf.PivotNodes,index:0,includeFooterNodes:t})},t.prototype.recursivelyWalkNodesAndCallback=function(e){var t,o=e.nodes,i=e.callback,r=e.recursionType,n=e.includeFooterNodes,s=e.index,a=o[0];n&&(null===(t=null==a?void 0:a.parent)||void 0===t?void 0:t.sibling)&&o.push(a.parent.sibling);for(var l=0;l<o.length;l++){var u=o[l];if(i(u,s++),u.hasChildren()&&!u.footer){var c=null;switch(r){case kf.Normal:c=u.childrenAfterGroup;break;case kf.AfterFilter:c=u.childrenAfterAggFilter;break;case kf.AfterFilterAndSort:c=u.childrenAfterSort;break;case kf.PivotNodes:c=u.leafGroup?null:u.childrenAfterSort}c&&(s=this.recursivelyWalkNodesAndCallback({nodes:Yf(c),callback:i,recursionType:r,index:s,includeFooterNodes:n}))}}return s},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},t.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsService.isTreeData(),o=this.columnModel.isPivotActive(),i=function(r){r&&r.forEach(function(r){var n=function(){r.expanded=e,i(r.childrenAfterGroup)};t?ki.exists(r.childrenAfterGroup)&&n():o?!r.leafGroup&&n():r.group&&n()})};this.rootNode&&i(this.rootNode.childrenAfterGroup),this.refreshModel({step:exports.ClientSideRowModelSteps.MAP});var r=e?"expandAll":"collapseAll",n={type:He.EVENT_EXPAND_COLLAPSE_ALL,source:r};this.eventService.dispatchEvent(n)},t.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},t.prototype.doRowGrouping=function(e,t,o,i,r){if(this.groupStage){if(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:o,changedPath:i}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsService.is("groupSelectsChildren")&&this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",i)){var n={type:He.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(n)}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren()},t.prototype.restoreGroupState=function(e){e&&ki.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])})},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsService.is("rememberGroupStateWhenNewData"))return null;var e={};return ki.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(t,o){return e[o]=t.expanded}),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf($n.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode(function(o){o.id===e&&(t=o)}),t}return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:He.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o),this.refreshModel({step:exports.ClientSideRowModelSteps.EVERYTHING,groupState:t,newData:!0})},t.prototype.batchUpdateRowData=function(e,t){var o=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var i=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){o.executeBatchUpdateRowData()},i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},t.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[],i=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(r){var n=e.nodeManager.updateRowData(r.rowDataTransaction,void 0);o.push(n),r.callback&&t.push(r.callback.bind(null,n)),"number"==typeof r.rowDataTransaction.addIndex&&(i=!0)}),this.commonUpdateRowData(o,void 0,i),t.length>0&&window.setTimeout(function(){t.forEach(function(e){return e()})},0),o.length>0){var r={type:He.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(r)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t),i="number"==typeof e.addIndex;return this.commonUpdateRowData([o],t,i),o},t.prototype.createRowNodeOrder=function(){if(!this.gridOptionsService.is("suppressMaintainUnsortedOrder")){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}},t.prototype.commonUpdateRowData=function(e,t,o){var i=!this.gridOptionsService.is("suppressAnimationFrame");o&&(t=this.createRowNodeOrder()),this.refreshModel({step:exports.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,keepEditingRows:!0,animate:i}),this.filterManager.onNewRowsLoaded("rowDataUpdated");var r={type:He.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(r)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:exports.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.resetRowHeights=function(){var e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),e&&this.onRowHeightChanged()},t.prototype.resetRowHeightsForAllRowNodes=function(){var e=!1;return this.forEachNode(function(t){t.setRowHeight(t.rowHeight,!0);var o=t.detailNode;o&&o.setRowHeight(o.rowHeight,!0),e=!0}),e},t.prototype.onGridStylesChanges=function(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()},zf([W("columnModel")],t.prototype,"columnModel",void 0),zf([W("selectionService")],t.prototype,"selectionService",void 0),zf([W("filterManager")],t.prototype,"filterManager",void 0),zf([W("valueCache")],t.prototype,"valueCache",void 0),zf([W("beans")],t.prototype,"beans",void 0),zf([W("filterStage")],t.prototype,"filterStage",void 0),zf([W("sortStage")],t.prototype,"sortStage",void 0),zf([W("flattenStage")],t.prototype,"flattenStage",void 0),zf([U("groupStage")],t.prototype,"groupStage",void 0),zf([U("aggregationStage")],t.prototype,"aggregationStage",void 0),zf([U("pivotStage")],t.prototype,"pivotStage",void 0),zf([U("filterAggregatesStage")],t.prototype,"filterAggregatesStage",void 0),zf([k],t.prototype,"init",null),t=zf([j("rowModel")],t)}(Fe),Qf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Xf=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Jf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qf(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},Xf([W("filterService")],t.prototype,"filterService",void 0),t=Xf([j("filterStage")],t)}(Fe),Zf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),$f=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},eg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zf(t,e),t.prototype.execute=function(e){var t=this,o=this.sortController.getSortOptions(),i=ki.exists(o)&&o.length>0,r=i&&ki.exists(e.rowNodeTransactions)&&this.gridOptionsService.is("deltaSort"),n=o.some(function(e){return!!t.columnModel.getGroupDisplayColumnForGroup(e.column.getId())});this.sortService.sort(o,i,r,e.rowNodeTransactions,e.changedPath,n)},$f([W("sortService")],t.prototype,"sortService",void 0),$f([W("sortController")],t.prototype,"sortController",void 0),$f([W("columnModel")],t.prototype,"columnModel",void 0),t=$f([j("sortStage")],t)}(Fe),tg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),og=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ig=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tg(t,e),t.prototype.execute=function(e){var t=e.rowNode,o=[],i={value:0},r=this.columnModel.isPivotMode(),n=r&&t.leafGroup,s=n?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,i,r,0),!n&&o.length>0&&this.gridOptionsService.is("groupIncludeTotalFooter")&&(t.createFooter(),this.addRowNodeToRowsToDisplay(t.sibling,o,i,0)),o},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,i,r){if(!ki.missingOrEmpty(e))for(var n=this.gridOptionsService.is("groupHideOpenParents"),s=this.gridOptionsService.is("groupRemoveSingleChildren"),a=!s&&this.gridOptionsService.is("groupRemoveLowestSingleChildren"),l=0;l<e.length;l++){var u=e[l],c=u.hasChildren(),p=i&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=i&&u.leafGroup,g=n&&u.expanded&&!u.master&&!f;if(!(p||g||d||h)&&this.addRowNodeToRowsToDisplay(u,t,o,r),!i||!u.leafGroup)if(c){var v=d||h;if(u.expanded||v){var y=v?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,i,y),this.gridOptionsService.is("groupIncludeFooter")&&this.addRowNodeToRowsToDisplay(u.sibling,t,o,r)}}else if(u.master&&u.expanded){var m=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(m,t,o,r)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,o,i){var r=this.gridOptionsService.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:i)},t.prototype.createDetailNode=function(e){if(ki.exists(e.detailNode))return e.detailNode;var t=new $n(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,ki.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},og([W("columnModel")],t.prototype,"columnModel",void 0),og([W("beans")],t.prototype,"beans",void 0),t=og([j("flattenStage")],t)}(Fe),rg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ng=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rg(t,e),t.prototype.init=function(){this.postSortFunc=this.getPostSortFunc()},t.prototype.sort=function(e,t,o,i,r,n){var s=this,a=this.gridOptionsService.is("groupMaintainOrder"),l=this.columnModel.getAllGridColumns().some(function(e){return e.isRowGroupActive()}),u={};o&&i&&(u=this.calculateDirtyNodes(i));var c=this.columnModel.isPivotMode();r&&r.forEachChangedNodeDepthFirst(function(i){s.pullDownGroupDataForHideOpenParents(i.childrenAfterAggFilter,!0);var p=c&&i.leafGroup;if(a&&l&&!i.leafGroup&&!n){var d=i.childrenAfterAggFilter.slice(0);if(i.childrenAfterSort){var h={};i.childrenAfterSort.forEach(function(e,t){h[e.id]=t}),d.sort(function(e,t){var o,i;return(null!==(o=h[e.id])&&void 0!==o?o:0)-(null!==(i=h[t.id])&&void 0!==i?i:0)})}i.childrenAfterSort=d}else i.childrenAfterSort=!t||p?i.childrenAfterAggFilter.slice(0):o?s.doDeltaSort(i,u,r,e):s.rowNodeSorter.doFullSort(i.childrenAfterAggFilter,e);if(i.sibling&&(i.sibling.childrenAfterSort=i.childrenAfterSort),s.updateChildIndexes(i),s.postSortFunc){var f={nodes:i.childrenAfterSort};s.postSortFunc(f)}}),this.updateGroupDataForHideOpenParents(r)},t.prototype.getPostSortFunc=function(){var e=this.gridOptionsService.getCallback("postSortRows");if(e)return e;var t=this.gridOptionsService.get("postSort");return t?function(e){return t(e.nodes)}:void 0},t.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach(function(e){return t[e.id]=!0})};return e&&e.forEach(function(e){o(e.add),o(e.update),o(e.remove)}),t},t.prototype.doDeltaSort=function(e,t,o,i){var r=this,n=e.childrenAfterAggFilter,s=e.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(n,i);var a={},l=[];n.forEach(function(e){t[e.id]||!o.canSkip(e)?l.push(e):a[e.id]=!0});var u=s.filter(function(e){return a[e.id]}),c=function(e,t){return{currentPos:t,rowNode:e}},p=l.map(c).sort(function(e,t){return r.rowNodeSorter.compareRowNodes(i,e,t)});return this.mergeSortedArrays(i,p,u.map(c)).map(function(e){return e.rowNode})},t.prototype.mergeSortedArrays=function(e,t,o){for(var i=[],r=0,n=0;r<t.length&&n<o.length;){this.rowNodeSorter.compareRowNodes(e,t[r],o[n])<0?i.push(t[r++]):i.push(o[n++])}for(;r<t.length;)i.push(t[r++]);for(;n<o.length;)i.push(o[n++]);return i},t.prototype.updateChildIndexes=function(e){if(!ki.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,o=0;o<t.length;o++){var i=t[o],r=0===o,n=o===e.childrenAfterSort.length-1;i.setFirstChild(r),i.setLastChild(n),i.setChildIndex(o)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsService.is("groupHideOpenParents")){if(this.gridOptionsService.isTreeData()){return ki.doOnce(function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")},"sortService.hideOpenParentsWithTreeData"),!1}var o=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach(function(e){e.hasChildren()&&o(e)})};e&&e.executeFromRootNode(function(e){return o(e)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;this.gridOptionsService.is("groupHideOpenParents")&&!ki.missing(e)&&e.forEach(function(e){o.columnModel.getGroupDisplayColumns().forEach(function(i){var r=i.getColDef().showRowGroup;if("string"==typeof r){var n=r,s=o.columnModel.getPrimaryColumn(n);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(i.getId(),void 0);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(i.getId(),a.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")})})},ng([W("columnModel")],t.prototype,"columnModel",void 0),ng([W("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),ng([k],t.prototype,"init",null),t=ng([j("sortService")],t)}(Fe),ag=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),lg=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ug=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ag(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var o=this,i=function(t,i){t.hasChildren()?t.childrenAfterFilter=e&&!i?t.childrenAfterGroup.filter(function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,i=e.data&&o.filterManager.doesRowPassFilter({rowNode:e});return t||i}):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var r=function(e,t){if(e.childrenAfterGroup)for(var n=0;n<e.childrenAfterGroup.length;n++){var s=e.childrenAfterGroup[n],a=t||o.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?r(e.childrenAfterGroup[n],a):i(s,a)}i(e,t)};t.executeFromRootNode(function(e){return r(e,!1)})}else{t.forEachChangedNodeDepthFirst(function(e){return i(e,!1)},!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.isTreeData()&&!this.gridOptionsService.is("excludeChildrenWhenTreeDataFiltering")},lg([W("filterManager")],t.prototype,"filterManager",void 0),t=lg([j("filterService")],t)}(Fe),cg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),pg=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},dg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cg(t,e),t.prototype.postConstruct=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId"),t=this.gridOptionsService.is("immutableData");return!this.gridOptionsService.is("resetRowDataOnUpdate")&&(e||t)},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var o=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return s}(t,2),i=o[0],r=o[1];this.clientSideRowModel.updateRowData(i,r)}},t.prototype.createTransactionForRowData=function(e){if(ki.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsService.getRowIdFunc();if(null!=t){var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsService.is("suppressMaintainUnsortedOrder")?void 0:{};return ki.exists(e)&&e.forEach(function(e,n){var s=t({data:e,level:0}),a=i[s];(r&&(r[s]=n),a)?(a.data!==e&&o.update.push(e),i[s]=void 0):o.add.push(e)}),ki.iterateObject(i,function(e,t){t&&o.remove.push(t.data)}),[o,r]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},pg([W("rowModel")],t.prototype,"rowModel",void 0),pg([W("rowRenderer")],t.prototype,"rowRenderer",void 0),pg([k],t.prototype,"postConstruct",null),t=pg([j("immutableService")],t)}(Fe),hg={version:"29.3.5",moduleName:exports.ModuleNames.ClientSideRowModelModule,rowModel:"clientSide",beans:[qf,Jf,eg,ig,sg,ug,dg]},fg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gg=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},vg=function(e){function t(t,o,i){var r=e.call(this,t)||this;return r.parentCache=o,r.params=i,r.startRow=t*i.blockSize,r.endRow=r.startRow+i.blockSize,r}return fg(t,e),t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,t,o){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),ki.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();ki.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout(function(){e.params.datasource.getRows(t)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.context}},t.prototype.forEachNode=function(e,t,o){var i=this;this.rowNodes.forEach(function(r,n){i.startRow+n<o&&e(r,t.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,o=new $n(this.beans);o.setRowHeight(this.params.rowHeight),o.uiLevel=0,o.setRowIndex(t),o.setRowTop(this.params.rowHeight*t),this.rowNodes.push(o)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach(function(o,i){var r=e.rowData?e.rowData[i]:void 0;t.setDataAndId(o,r,t.startRow+i)});var o=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,o)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},gg([W("beans")],t.prototype,"beans",void 0),gg([k],t.prototype,"postConstruct",null),gg([B],t.prototype,"destroyRowNodes",null),t}(cp),yg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),mg=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Cg=function(e){function t(t){var o=e.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=t.initialRowCount,o.params=t,o}var o,i;return yg(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.params.blockSize),i=this.blocks[o];if(!i){if(t)return;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new vg(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach(function(e){return e.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(t){return e.destroyBlock(t)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,i=this.getBlocksInOrder().filter(function(t){return t!=e});i.sort(function(e,t){return t.getLastAccessed()-e.getLastAccessed()});var r=this.params.maxBlocksInCache>0,n=r?this.params.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;i.forEach(function(e,t){if(e.getState()===vg.STATE_WAITING_TO_LOAD&&t>=s||!!r&&t>=n){if(o.isBlockCurrentlyDisplayed(e))return;if(o.isBlockFocused(e))return;o.removeBlockFromCache(e)}})},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var o=e.getStartRow(),i=e.getEndRow();return t.rowIndex>=o&&t.rowIndex<i},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),o=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,o)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<o&&(this.rowCount=o)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,ki.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,o=new Bi;this.getBlocksInOrder().forEach(function(i){return i.forEachNode(e,o,t.rowCount)})},t.prototype.getBlocksInOrder=function(){return ki.getAllValuesInObject(this.blocks).sort(function(e,t){return e.getId()-t.getId()})},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:He.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach(function(o){o.getId()*e.params.blockSize>=e.rowCount&&t.push(o)}),t.length>0&&t.forEach(function(t){return e.destroyBlock(t)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(t){return e.removeBlockFromCache(t)}),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,i=[],r=-1,n=!1,s=new Bi;ki.missing(e)&&(n=!0);var a=!1;return this.getBlocksInOrder().forEach(function(l){a||(n&&r+1!==l.getId()?a=!0:(r=l.getId(),l.forEachNode(function(o){var r=o===e||o===t;(n||r)&&i.push(o),r&&(n=!n)},s,o.rowCount)))}),a||n?[]:i},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,mg([W("rowRenderer")],t.prototype,"rowRenderer",void 0),mg([W("focusService")],t.prototype,"focusService",void 0),mg([(o=0,i=K("loggerFactory"),function(e,t){i(e,t,o)})],t.prototype,"setBeans",null),mg([B],t.prototype,"destroyAllBlocks",null),t}(Fe),wg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Sg=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Eg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wg(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,o,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){if(this.gridOptionsService.exists("initialGroupOrderComparator")||this.gridOptionsService.exists("defaultGroupOrderComparator")){ki.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")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,He.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,He.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!ki.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return"infinite"},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsService.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:He.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsService.getNum("infiniteInitialRowCount"),1),maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"),100),lastAccessedSequence:new Bi},this.infiniteCache=this.createBean(new Cg(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var t;return this.forEachNode(function(o){o.id===e&&(t=o)}),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return t>o?o:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},Sg([W("filterManager")],t.prototype,"filterManager",void 0),Sg([W("sortController")],t.prototype,"sortController",void 0),Sg([W("selectionService")],t.prototype,"selectionService",void 0),Sg([W("rowRenderer")],t.prototype,"rowRenderer",void 0),Sg([W("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Sg([k],t.prototype,"init",null),Sg([B],t.prototype,"destroyDatasource",null),t=Sg([j("rowModel")],t)}(Fe),Rg={version:"29.3.5",moduleName:exports.ModuleNames.InfiniteRowModelModule,rowModel:"infinite",beans:[Eg]},bg=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),Og=function(){function e(e){this.groupColumns=[];var t=e.columnModel,o=e.valueService,i=e.gridOptionsService,r=e.processCellCallback,n=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnModel=t,this.valueService=o,this.gridOptionsService=i,this.processCellCallback=r,this.processHeaderCallback=n,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.groupColumns=e.filter(function(e){return!!e.getColDef().showRowGroup})},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,o,i,r){var n=this.gridOptionsService.is("groupHideOpenParents")&&!r.footer||!this.shouldRenderGroupSummaryCell(r,e,t)?this.valueService.getValue(e,r):this.createValueForGroupNode(r),s=this.processCell({accumulatedRowIndex:o,rowNode:r,column:e,value:n,processCellCallback:this.processCellCallback,type:i});return null!=s?s:""},e.prototype.shouldRenderGroupSummaryCell=function(e,t,o){var i;if(!(e&&e.group))return!1;if(-1!==this.groupColumns.indexOf(t)){if(null===(i=e.groupData)||void 0===i?void 0:i[t.getId()])return!0;if(e.footer&&-1===e.level){var r=t.getColDef();return null==r||!0===r.showRowGroup||r.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var n=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&n},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var t=e.footer,o=[e.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,o.push(e.key);var i=o.reverse().join(" -> ");return t?"Total "+i:i},e.prototype.processCell=function(e){var t=e.accumulatedRowIndex,o=e.rowNode,i=e.column,r=e.value,n=e.processCellCallback,s=e.type;return n?n({accumulatedRowIndex:t,column:i,node:o,value:r,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:s}):null!=r?r:""},e}(),Tg=function(){function e(){}return e.download=function(e,t){var o=document.defaultView||window;if(o){var i=document.createElement("a"),r=o.URL.createObjectURL(t);i.setAttribute("href",r),i.setAttribute("download",e),i.style.display="none",document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(i),o.setTimeout(function(){o.URL.revokeObjectURL(r)},0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),Dg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Pg=function(e){function t(t){var o=e.call(this,t)||this;o.isFirstLine=!0,o.result="";var i=t.suppressQuotes,r=t.columnSeparator;return o.suppressQuotes=i,o.columnSeparator=r,o}return Dg(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach(function(e){t.beginNewLine(),e.forEach(function(e,o){0!==o&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o,i){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(i)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,"csv",o))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(Og),_g=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ag=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ng=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _g(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),o=this.getData(t),i=new Blob(["\ufeff",o],{type:"text/plain"});return Tg.download(this.getFileName(t.fileName),i),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var o=t?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,o=t.columnModel,i=t.valueService,r=t.gridOptionsService,n=e,s=n.processCellCallback,a=n.processHeaderCallback,l=n.processGroupHeaderCallback,u=n.processRowGroupCallback,c=n.suppressQuotes,p=n.columnSeparator;return new Pg({columnModel:o,valueService:i,gridOptionsService:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressCsvExport")},Ag([W("columnModel")],t.prototype,"columnModel",void 0),Ag([W("valueService")],t.prototype,"valueService",void 0),Ag([W("gridSerializer")],t.prototype,"gridSerializer",void 0),Ag([W("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Ag([k],t.prototype,"postConstruct",null),t=Ag([j("csvCreator")],t)}(bg),Mg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Fg=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};exports.RowType=void 0,function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(exports.RowType||(exports.RowType={}));var Lg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mg(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var o=this.getColumnsToExport(t.allColumns,t.columnKeys);return ki.compose(this.prepareSession(o),this.prependContent(t),this.exportColumnGroups(t,o),this.exportHeaders(t,o),this.processPinnedTopRows(t,o),this.processRows(t,o),this.processPinnedBottomRows(t,o),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,o,i){var r=t.shouldRowBeSkipped||function(){return!1},n=this.gridOptionsService.context,s=this.gridOptionsService.api,a=this.gridOptionsService.columnApi,l=this.gridOptionsService.is("groupRemoveSingleChildren"),u=this.gridOptionsService.is("groupRemoveLowestSingleChildren"),c=null!=t.rowPositions||!!t.onlySelected,p=this.gridOptionsService.is("groupHideOpenParents")&&!c,d=this.columnModel.isPivotMode()?i.leafGroup:!i.group,h=!!i.footer,f=t.skipGroups||t.skipRowGroups,g=u&&i.leafGroup,v=1===i.allChildrenCount&&(l||g);if((f&&t.skipGroups&&ki.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups"),!(!d&&!h&&(t.skipRowGroups||v||p)||t.onlySelected&&!i.isSelected()||t.skipPinnedTop&&"top"===i.rowPinned||t.skipPinnedBottom&&"bottom"===i.rowPinned))&&((!(-1===i.level)||d||h)&&!r({node:i,api:s,columnApi:a,context:n}))){var y=e.onNewBodyRow();if(o.forEach(function(e,t){y.onColumn(e,t,i)}),t.getCustomContentBelowRow){var m=t.getCustomContentBelowRow({node:i,api:s,columnApi:a,context:n});m&&e.addCustomContent(m)}}},t.prototype.appendContent=function(e){return function(t){var o=e.customFooter||e.appendContent;return o&&(e.customFooter&&ki.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")},"gridSerializer-customFooter"),t.addCustomContent(o)),t}},t.prototype.prependContent=function(e){return function(t){var o=e.customHeader||e.prependContent;return o&&(e.customHeader&&ki.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")},"gridSerializer-customHeader"),t.addCustomContent(o)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var o=this;return function(i){if(e.skipColumnGroupHeaders)e.columnGroups&&ki.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 ot,n=o.displayedGroupCreator.createDisplayedGroups(t,o.columnModel.getGridBalancedTree(),r,null);o.recursivelyAddHeaderGroups(n,i,e.processGroupHeaderCallback)}return i}},t.prototype.exportHeaders=function(e,t){return function(o){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&ki.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");else{var i=o.onNewHeaderRow();t.forEach(function(e,t){i.onColumn(e,t,void 0)})}return o}},t.prototype.processPinnedTopRows=function(e,t){var o=this;return function(i){var r=o.processRow.bind(o,i,e,t);return e.rowPositions?e.rowPositions.filter(function(e){return"top"===e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return o.pinnedRowModel.getPinnedTopRow(e.rowIndex)}).forEach(r):o.pinnedRowModel.forEachPinnedTopRow(r),i}},t.prototype.processRows=function(e,t){var o=this;return function(i){var r=o.rowModel,n=r.getType(),s="clientSide"===n,a="serverSide"===n,l=!s&&e.onlySelected,u=o.processRow.bind(o,i,e,t),c=e.exportedRows,p=void 0===c?"filteredAndSorted":c;if(e.rowPositions)e.rowPositions.filter(function(e){return null==e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return r.getRow(e.rowIndex)}).forEach(u);else if(o.columnModel.isPivotMode())s?r.forEachPivotNode(u,!0):r.forEachNode(u);else if(e.onlySelectedAllPages||l){var d=o.selectionService.getSelectedNodes();o.replicateSortedOrder(d),d.forEach(u)}else"all"===p?r.forEachNode(u):s?r.forEachNodeAfterFilterAndSort(u,!0):a?r.forEachNodeAfterFilterAndSort(u):r.forEachNode(u);return i}},t.prototype.replicateSortedOrder=function(e){var t=this,o=this.sortController.getSortOptions(),i=function(e,r){var n,s,a,l;return null!=e.rowIndex&&null!=r.rowIndex?e.rowIndex-r.rowIndex:e.level===r.level?(null===(n=e.parent)||void 0===n?void 0:n.id)===(null===(s=r.parent)||void 0===s?void 0:s.id)?t.rowNodeSorter.compareRowNodes(o,{rowNode:e,currentPos:null!==(a=e.rowIndex)&&void 0!==a?a:-1},{rowNode:r,currentPos:null!==(l=r.rowIndex)&&void 0!==l?l:-1}):i(e.parent,r.parent):e.level>r.level?i(e.parent,r):i(e,r.parent)};e.sort(i)},t.prototype.processPinnedBottomRows=function(e,t){var o=this;return function(i){var r=o.processRow.bind(o,i,e,t);return e.rowPositions?e.rowPositions.filter(function(e){return"bottom"===e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return o.pinnedRowModel.getPinnedBottomRow(e.rowIndex)}).forEach(r):o.pinnedRowModel.forEachPinnedBottomRow(r),i}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var o=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!o?(this.gridOptionsService.isTreeData()?this.columnModel.getGridColumns([nt]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,o){var i=[];e.forEach(function(e){var t=e;t.getChildren&&t.getChildren().forEach(function(e){return i.push(e)})}),e.length>0&&e[0]instanceof tt&&this.doAddHeaderHeader(t,e,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,t,o)},t.prototype.doAddHeaderHeader=function(e,t,o){var i=this,r=e.onNewHeaderGroupingRow(),n=0;t.forEach(function(e){var t,s=e;t=o?o({columnGroup:s,api:i.gridOptionsService.api,columnApi:i.gridOptionsService.columnApi,context:i.gridOptionsService.context}):i.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce(function(e,t,o,i){var r=ki.last(e);return"open"===t.getColumnGroupShow()?r&&null==r[1]||(r=[o],e.push(r)):r&&null==r[1]&&(r[1]=o-1),o===i.length-1&&r&&null==r[1]&&(r[1]=o),e},[]);r.onColumn(s,t||"",n++,s.getLeafColumns().length-1,a)})},Fg([W("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Fg([W("columnModel")],t.prototype,"columnModel",void 0),Fg([W("rowModel")],t.prototype,"rowModel",void 0),Fg([W("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Fg([W("selectionService")],t.prototype,"selectionService",void 0),Fg([W("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Fg([W("sortController")],t.prototype,"sortController",void 0),t=Fg([j("gridSerializer")],t)}(Fe),xg={version:"29.3.5",moduleName:exports.ModuleNames.CsvExportModule,beans:[Ng,Lg]},Ig="\r\n",Gg=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map(function(t){return t+'="'+e[t]+'"'}).join(" ")+" ?>"},e.createXml=function(e,t){var o=this,i="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(function(e){Object.keys(e.map).forEach(function(r){i+=o.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(function(r){i+=o.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)}));var r="<"+e.name+i;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">"+Ig:(r+=">\r\n",e.children&&e.children.forEach(function(e){r+=o.createXml(e,t)}),r+"</"+e.name+">"+Ig):r+"/>"+Ig},e.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var i=t;return"boolean"==typeof t&&o&&(i=o(t))," "+e+'="'+i+'"'},e}(),Hg=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),Vg=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,o){void 0===o&&(o=!1),this.files.push({path:e,created:new Date,content:t,isBase64:o})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,o;void 0===e&&(e="");var i=this.folders.concat(this.files),r=i.length,n="",s=0,a=0;try{for(var l=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,e+=d+f,n+=h}}catch(e){t={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(t)throw t.error}}return e+n+this.buildFolderEnd(r,a,s)},e.getHeader=function(e,t){var o=e.content,i=e.path,r=e.created,n=e.isBase64,s=ki.utf8_encode,a=ki.decToHex,l=s(i),u=l!==i,c=this.convertTime(r),p=this.convertDate(r),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=o?this.getConvertedContent(o,n):{size:0,content:""},g=f.size,v=f.content,y="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(v):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK"+y+l+d,folderHeader:"PK\0"+y+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+a(t,4)+l+d,content:v||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,o){var i=ki.decToHex;return"PK\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(o,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,o=new Uint8Array(t),i=0;i<t;i++)o[i]=e.charCodeAt(i);var r=~0,n=0;for(i=0;i<t;i++)n=o[i],r=r>>>8^Hg[255&(r^n)];return-1^r},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}(),kg=[hg,Rg,xg];Z.registerModules(kg),exports.AbstractHeaderCellCtrl=Iu,exports.AgAbstractField=br,exports.AgAbstractLabel=Er,exports.AgCheckbox=Gr,exports.AgDialog=$p,exports.AgGroupComponent=Np,exports.AgInputNumberField=ln,exports.AgInputRange=Op,exports.AgInputTextArea=Rp,exports.AgInputTextField=sn,exports.AgMenuItemComponent=Yp,exports.AgMenuList=jp,exports.AgMenuPanel=Up,exports.AgPanel=Xp,exports.AgPickerField=Dr,exports.AgPromise=Wi,exports.AgRadioButton=Vr,exports.AgSelect=Mr,exports.AgSlider=Pp,exports.AgStackComponentsRegistry=Tt,exports.AgToggleButton=Sp,exports.AlignedGridsService=Rd,exports.AllCommunityModules=kg,exports.AnimateShowChangeCellRenderer=Qn,exports.AnimateSlideCellRenderer=Jn,exports.AnimationFrameService=Bc,exports.AutoScrollService=Da,exports.AutoWidthCalculator=Uc,exports.Autowired=W,exports.BaseComponentWrapper=Hf,exports.BaseCreator=bg,exports.BaseGridSerializingSession=Og,exports.Bean=j,exports.BeanStub=Fe,exports.Beans=Ja,exports.BodyDropPivotTarget=gu,exports.BodyDropTarget=wu,exports.CHART_TOOLBAR_ALLOW_LIST=["chartUnlink","chartLink","chartDownload"],exports.CHART_TOOL_PANEL_ALLOW_LIST=["chartSettings","chartData","chartFormat"],exports.CHART_TOOL_PANEL_MENU_OPTIONS={settings:"chartSettings",data:"chartData",format:"chartFormat"},exports.CellComp=su,exports.CellCtrl=al,exports.CellNavigationService=wd,exports.CellPositionUtils=Bh,exports.ChangedPath=lp,exports.CheckboxSelectionComponent=is,exports.ClientSideRowModelModule=hg,exports.ColDefUtil=Ge,exports.Column=ie,exports.ColumnApi=_d,exports.ColumnFactory=Ie,exports.ColumnGroup=tt,exports.ColumnKeyCreator=u,exports.ColumnModel=wt,exports.ColumnUtils=Et,exports.Component=$i,exports.ComponentUtil=Ue,exports.Context=H,exports.CssClassApplier=Eu,exports.CssClassManager=Qi,exports.CsvCreator=Ng,exports.CsvExportModule=xg,exports.CtrlsService=lf,exports.CustomTooltipFeature=qi,exports.DEFAULT_CHART_GROUPS={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","doughnut"],lineGroup:["line"],scatterGroup:["scatter","bubble"],areaGroup:["area","stackedArea","normalizedArea"],histogramGroup:["histogram"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]},exports.DateFilter=Xr,exports.DisplayedGroupCreator=bt,exports.Downloader=Tg,exports.DragAndDropService=ls,exports.DragService=sa,exports.Environment=bh,exports.EventService=J,exports.Events=He,exports.ExpressionService=xd,exports.FilterManager=fa,exports.FloatingFilterMapper=Zs,exports.FocusService=rd,exports.GROUP_AUTO_COLUMN_ID=nt,exports.Grid=If,exports.GridApi=ca,exports.GridBodyComp=Kl,exports.GridBodyCtrl=Va,exports.GridComp=Yd,exports.GridCoreCreator=Gf,exports.GridCtrl=Ud,exports.GridHeaderComp=Tc,exports.GridHeaderCtrl=bc,exports.GridOptionsService=_f,exports.GridSerializer=Lg,exports.GroupCellRenderer=Ss,exports.GroupCellRendererCtrl=ms,exports.GroupInstanceIdCreator=ot,exports.HeaderCellCtrl=$u,exports.HeaderFilterCellComp=Ca,exports.HeaderFilterCellCtrl=Uu,exports.HeaderGroupCellCtrl=ac,exports.HeaderNavigationService=Sc,exports.HeaderPositionUtils=$h,exports.HeaderRowComp=Mu,exports.HeaderRowContainerComp=mc,exports.HeaderRowContainerCtrl=gc,exports.HeaderRowCtrl=pc,exports.HorizontalResizeService=_c,exports.InfiniteRowModelModule=Rg,exports.KeyCode=Ti,exports.LargeTextCellEditor=jn,exports.LocaleService=Nf,exports.Logger=Bd,exports.LoggerFactory=kd,exports.ManagedFocusFeature=dr,exports.ModuleRegistry=Z,exports.MouseEventService=Zl,exports.MoveColumnFeature=yu,exports.NavigationService=ou,exports.NumberFilter=gn,exports.NumberSequence=Bi,exports.Optional=U,exports.PaginationProxy=vp,exports.PinnedRowModel=sp,exports.PopupComponent=kn,exports.PopupEditorWrapper=ru,exports.PopupService=cd,exports.PositionableFeature=yr,exports.PostConstruct=k,exports.PreConstruct=V,exports.PreDestroy=B,exports.PropertyKeys=Be,exports.ProvidedColumnGroup=re,exports.ProvidedFilter=wr,exports.Qualifier=K,exports.QuerySelector=
352
+ /**
353
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
354
+ * @version v29.3.5
355
+ * @link https://www.ag-grid.com/
356
+ * @license MIT
357
+ */
358
+ function(e){return tr.bind(this,e,void 0)},exports.RefSelector=er,exports.ResizeObserverService=Hc,exports.RowContainerComp=hu,exports.RowContainerCtrl=jl,exports.RowCtrl=hl,exports.RowNode=$n,exports.RowNodeBlock=cp,exports.RowNodeBlockLoader=hp,exports.RowNodeSorter=sf,exports.RowPositionUtils=Vh,exports.RowRenderer=$c,exports.ScalarFilter=zr,exports.ScrollVisibleService=Ql,exports.SelectCellEditor=zn,exports.SelectableService=Ah,exports.SetLeftFeature=Hu,exports.SimpleFilter=Wr,exports.SortController=Zd,exports.SortIndicatorComp=Mn,exports.StandardMenuFactory=Mc,exports.StylingService=Cp,exports.TabGuardComp=Hp,exports.TabGuardCtrl=xp,exports.TabbedLayout=xc,exports.TemplateService=Gd,exports.TextCellEditor=Yn,exports.TextFilter=Cn,exports.TextFloatingFilter=Pn,exports.Timer=Ui,exports.TouchListener=_n,exports.UserComponentFactory=ta,exports.UserComponentRegistry=Ls,exports.ValueCache=uh,exports.ValueFormatterService=ip,exports.ValueService=Md,exports.VanillaFrameworkOverrides=vd,exports.VirtualList=hd,exports.XmlFactory=Gg,exports.ZipContainer=Vg,exports._=ki,exports.__FORCE_MODULE_DETECTION=0,exports.getRowContainerTypeForName=Hl,exports.simpleHttpRequest=
359
+ /**
360
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
361
+ * @version v29.3.5
362
+ * @link https://www.ag-grid.com/
363
+ * @license MIT
364
+ */
365
+ function(e){return b(function(){return console.warn("AG Grid: Since v29 simpleHttpRequest has been deprecated as it was only meant for use in internal AG Grid documentation examples. Please use the browser fetch api directly.")},"simpleHttpRequest"),new Wi(function(t){var o=new XMLHttpRequest;o.open("GET",e.url),o.send(),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&t(JSON.parse(o.responseText))}})};