ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
77 lines (76 loc) • 1.08 MB
JavaScript
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.2.0
* @link https://www.ag-grid.com/
' * @license MIT
*/
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.2.0
* @link https://www.ag-grid.com/
' * @license MIT
*/
"use strict";
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
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 r(e){return null==e||0===e.length}function i(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({makeNull:e,exists:t,missing:o,missingOrEmpty:r,toStringOrNull:i,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 r=null==e,i=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&i)return 0;if(r)return-1;if(i)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=i(e);for(var o=0;;){var r=void 0;if(e?(r=e,0!==o&&(r+="_"+o)):t?(r=t,0!==o&&(r+="_"+o)):r=""+o,!this.existingKeys[r])return this.existingKeys[r]=!0,r;o++}},e}();
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
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),r=0;r<o.length;r++){var i=o[r],n=e[i];t[i]=n}return t}function d(e,t){if(e){var o=e,r={};return Object.keys(o).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var i=o[e],n=S(i)&&i.constructor===Object;r[e]=n?d(i):i}})),r}}function h(e,t){return e[t]}function f(e,t,o){e[t]=o}function g(e,t,o,r){var i=h(e,o);void 0!==i&&f(t,o,r?r(i):i)}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 r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&o.push(e[r]);return o}function m(e,o,r,i){void 0===r&&(r=!0),void 0===i&&(i=!1),t(o)&&c(o,(function(t,o){var n=e[t];if(n!==o){if(i)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,r,i):(r||void 0!==o)&&(e[t]=o)}}))}function C(e,t,o){if(t&&e){if(!o)return e[t];for(var r=t.split("."),i=e,n=0;n<r.length;n++){if(null==i)return;i=i[r[n]]}return i}}function w(e,t){Object.keys(e).forEach((function(t){"object"==typeof e[t]&&(e[t]=void 0)}));var o=Object.getPrototypeOf(e),r={};Object.keys(o).forEach((function(e){if("function"==typeof o[e]){r[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,r)}function S(e){return"object"==typeof e&&null!==e}var E=Object.freeze({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=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];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 r=t.split("."),i=e;r.length>1;)if(null==(i=i[r.shift()]))return o;var n=i[r[0]];return null!=n?n:o},set:function(e,t,o){if(null!=e){var r=t.split("."),i=e;r.forEach((function(e,t){i[e]||(i[e]={}),t<r.length-1&&(i=i[e])})),i[r[r.length-1]]=o}},getValueUsingField:C,removeAllReferences:w,isNonNullObject:S}),R={};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/function O(e,t){R[t]||(e(),R[t]=!0)}function b(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 P(e){N(e,400)}var D=[],_=!1;function A(e){D.push(e),_||(_=!0,window.setTimeout((function(){var e=D.slice();D.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 r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=this;window.clearTimeout(o),o=window.setTimeout((function(){e.apply(n,r)}),t)}}function F(e,t){var o=0;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=this,s=(new Date).getTime();s-o<t||(o=s,e.apply(n,r))}}function L(e,t,o,r){void 0===o&&(o=100);var i=(new Date).getTime(),n=null,s=!1,a=function(){var a=(new Date).getTime()-i>o;(e()||a)&&(t(),s=!0,null!=n&&(window.clearInterval(n),n=null),a&&r&&console.warn(r))};a(),s||(n=window.setInterval(a,10))}function x(e){e&&e()}var I=Object.freeze({doOnce:O,getFunctionName:b,isFunction:T,executeInAWhile:P,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 r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},H=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(G(arguments[t]));return e},V=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 r;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var i=e.getBeansForParameters(r,o.bean.name),n=new(o.bean.bind.apply(o.bean,H([null],i)));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?b(e.prototype.constructor):""+e,void console.error("Context item "+o+" is not a bean")}var r={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=r},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,r){var i=o.agClassAttributes;i&&i.forEach((function(o){var i=t.lookupBeanInstance(r,o.beanName,o.optional);e[o.attributeName]=i}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,r){c(o.autowireMethods,(function(o,i){if("agConstructor"!==o){var n=t.getBeansForParameters(i,r);e[o].apply(e,n)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var r=o.constructor;if(r.hasOwnProperty("__agBeanMetaData"))t(r.__agBeanMetaData,this.getBeanName(r));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,r=[];return e&&c(e,(function(e,i){var n=o.lookupBeanInstance(t,i);r[Number(e)]=n})),r},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 r=this.beanWrappers[t];return r?r.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 r={};this.forEachMetaDataInHierarchy(e,(function(e){var i=e[t];i&&i.forEach((function(e){e!=o&&(r[e]=!0)}))})),Object.keys(r).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 k(e,t,o){var r=q(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function B(e,t,o){var r=q(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function j(e,t,o){var r=q(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function W(e){return function(t){q(t).beanName=e}}function U(e){return function(t,o,r){K(t,e,!1,t,o,null)}}function z(e){return function(t,o,r){K(t,e,!0,t,o,null)}}function K(e,t,o,r,i,n){if(null!==t)if("number"!=typeof n){var s=q(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:i,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 Y(e){return function(t,o,r){var i,n="function"==typeof t?t:t.constructor;if("number"==typeof r){var s=void 0;o?(i=q(n),s=o):(i=q(n),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][r]=e}}}function q(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/var Q,X=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},J=function(e,t){return function(o,r){t(o,r,e)}},Z=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,r){if(void 0===r&&(r=null),this.frameworkOverrides=o,this.gridOptionsService=t,r){var i=t.useAsyncEvents();this.addGlobalListener(r,i)}},e.prototype.getListeners=function(e,t,o){var r=t?this.allAsyncListeners:this.allSyncListeners,i=r.get(e);return!i&&o&&(i=new Set,r.set(e,i)),i},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,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 r=this.getListeners(e,o,!1);r&&(r.delete(t),0===r.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,r=o.api,i=o.columnApi,n=o.context;t.api=r,t.columnApi=i,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,r=e.type;if(t&&"event"in e){var i=e.event;i instanceof Event&&(e.eventPath=i.composedPath())}var n=this.getListeners(r,t,!1);n&&function(r){r.forEach((function(r){t?o.dispatchAsync((function(){return r(e)})):r(e)}))}(n),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(i){t?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(r,(function(){return i(r,e)}),!0)})):o.frameworkOverrides.dispatchEvent(r,(function(){return i(r,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()}))},X([J(0,Y("loggerFactory")),J(1,Y("gridOptionsService")),J(2,Y("frameworkOverrides")),J(3,Y("globalEventListener"))],e.prototype,"setBeans",null),e=X([W("eventService")],e)}();(
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
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";
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
var $=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},ee=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 r=o;console.error("AG Grid: "+r.message)}}},e.setModuleBased=function(t){void 0===e.moduleBased?e.moduleBased=t:e.moduleBased!==t&&O((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},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 r;if(this.isRegistered(t))return!0;var i,n=o+t;if(e.isBundled)i="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===(r=Object.entries(exports.ModuleNames).find((function(e){var o=$(e,2);o[0];return o[1]===t})))||void 0===r?void 0:r[0];i="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 i="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 O((function(){console.warn(i)}),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}(),te=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},oe=0;function re(){return oe++}var ie=function(){function e(e,t,o,r){this.instanceId=re(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Z,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=r,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 r=s(e.hide),i=s(e.initialHide);this.visible=void 0!==r?!r:!i,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.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.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,r=this.colDef.showRowGroup===e;return t||r},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.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function o(e,t,o){O((function(){o?console.warn(e,o):O((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsService.isRowModelType("clientSide")&&!ee.isRegistered(exports.ModuleNames.RowGroupingModule)){(r=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter((function(o){return t(e[o])}))).length>0&&ee.assertRegistered(exports.ModuleNames.RowGroupingModule,r.map((function(e){return"colDef."+e})).join(", "))}if("agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||ee.assertRegistered(exports.ModuleNames.RichSelectModule,this.colDef.cellEditor),this.gridOptionsService.isTreeData()){var r;(r=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter((function(o){return t(e[o])}))).length>0&&o("AG Grid: "+r.join()+" is not possible when doing tree data, your column definition should not have "+r.join(),"TreeDataCannotRowGroup")}t(e.menuTabs)&&ee.assertRegistered(exports.ModuleNames.MenuModule,"menuTabs"),t(e.columnsMenuParams)&&ee.assertRegistered(exports.ModuleNames.MenuModule,"columnsMenuParams"),t(e.columnsMenuParams)&&ee.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 r=this.createColumnEvent("filterChanged",t);o&&m(r,o),this.eventService.dispatchEvent(r)},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.getColId()},e.prototype.getUniqueId=function(){return this.getId()},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),r=this.colDef.colSpan(t);return Math.max(r,1)},e.prototype.getRowSpan=function(e){if(o(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),r=this.colDef.rowSpan(t);return Math.max(r,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",te([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),te([U("columnUtils")],e.prototype,"columnUtils",void 0),te([B],e.prototype,"initialise",null),e}(),ne=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},se=function(){function e(e,t,o,r){this.localEventService=new Z,this.expandable=!1,this.instanceId=re(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=o,this.level=r}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,r=!1,i=this.findChildrenRemovingPadding(),n=0,s=i.length;n<s;n++){var a=i[n];if(a.isVisible()){var l=a.getColumnGroupShow();"open"===l?(t=!0,r=!0):"closed"===l?(o=!0,r=!0):(t=!0,o=!0)}}var u=t&&o&&r;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(r){r.forEach((function(r){r instanceof e&&r.isPadding()?o(r.children):t.push(r)}))};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",ne([j],e.prototype,"destroy",null),e}(),ae={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/
function le(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];for(var r=0;r<e.length;r++){var i=e[r];if(t(i))return i}return null}function ue(e){if(e&&e.length)return e[e.length-1]}function ce(e,t,o){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,r){return o?o(e,t[r]):t[r]===e}))}function pe(e){return e.sort((function(e,t){return e-t}))}function de(e,t){var o=e.indexOf(t);o>=0&&e.splice(o,1)}function he(e,t){t.forEach((function(t){return de(e,t)}))}function fe(e,t,o){e.splice(o,0,t)}function ge(e,t,o){he(e,t),t.slice().reverse().forEach((function(t){return fe(e,t,o)}))}function ve(e,t){return e.indexOf(t)>-1}function ye(e){return[].concat.apply([],e)}function me(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}var Ce=Object.freeze({firstExistingValue:le,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ue,areEqual:ce,shallowCompare:function(e,t){return ce(e,t)},sortNumerically:pe,removeRepeatsFromArray:function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var r=e[o]===t,i=e[o+1]===t;r&&i&&e.splice(o+1,1)}},removeFromArray:de,removeAllFromArray:he,insertIntoArray:fe,insertArrayIntoArray:function(e,t,o){if(null!=e&&null!=t)for(var r=t.length-1;r>=0;r--){fe(e,t[r],o)}},moveInArray:ge,includes:ve,flatten:ye,pushAll:me,toStrings:function(e){return e.map(i)},forEachReverse:function(e,t){if(null!=e)for(var o=e.length-1;o>=0;o--)t(e[o],o)}}),we=["touchstart","touchend","touchmove","touchcancel","scroll"],Se={};
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v29.2.0
* @link https://www.ag-grid.com/
* @license MIT
*/function Ee(e){e.__ag_Grid_Stop_Propagation=!0}function Re(e){return!0===e.__ag_Grid_Stop_Propagation}var Oe,be=(Oe={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof Se[e])return Se[e];var t=document.createElement(Oe[e]||"div");return Se[e="on"+e]=e in t});function Te(e,t,o){for(var r=t.target;r;){var i=e.getDomData(r,o);if(i)return i;r=r.parentElement}return null}function Pe(e,t){return!(!t||!e)&&_e(t).indexOf(e)>=0}function De(e){for(var t=[],o=e.target;o;)t.push(o),o=o.parentElement;return t}function _e(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():De(t)}function Ae(e,t,o,r){var i=ve(we,o)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,o,r,i)}var Ne,Me=Object.freeze({stopPropagationForAgGrid:Ee,isStopPropagationForAgGrid:Re,isEventSupported:be,getCtrlForEvent:Te,isElementInEventPath:Pe,createEventPath:De,getEventPath:_e,addSafePassiveEventListener:Ae}),Fe=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Le=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 Z),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 r=this;if(!this.destroyed){e instanceof HTMLElement?Ae(this.getFrameworkOverrides(),e,t,o):e.addEventListener(t,o);var i=function(){return e.removeEventListener(t,o),r.destroyFunctions=r.destroyFunctions.filter((function(e){return e!==i})),null};return this.destroyFunctions.push(i),i}},e.prototype.addManagedPropertyListener=function(e,t){var o=this;if(!this.destroyed){this.gridOptionsService.addEventListener(e,t);var r=function(){return o.gridOptionsService.removeEventListener(e,t),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==r})),null};return this.destroyFunctions.push(r),r}},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",Fe([U("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Fe([U("context")],e.prototype,"context",void 0),Fe([U("eventService")],e.prototype,"eventService",void 0),Fe([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Fe([U("localeService")],e.prototype,"localeService",void 0),Fe([U("environment")],e.prototype,"environment",void 0),Fe([j],e.prototype,"destroy",null),e}(),xe=(Ne=function(e,t){return(Ne=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)},function(e,t){function o(){this.constructor=e}Ne(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),Ie=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ge=function(e,t){return function(o,r){t(o,r,e)}},He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xe(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,o){var r=new u,i=this.extractExistingTreeData(o),n=i.existingCols,s=i.existingGroups,a=i.existingColKeys;r.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,n,r,s),c=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+c);var p=this.balanceColumnTree(l,0,c,r);return this.columnUtils.depthFirstOriginalTreeSearch(null,p,(function(e,t){e instanceof se&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:p,treeDept:c}},t.prototype.extractExistingTreeData=function(e){var t=[],o=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof se){var i=e;o.push(i)}else{var n=e;r.push(n.getId()),t.push(n)}})),{existingCols:t,existingGroups:o,existingColKeys:r}},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,r=this.findDepth(e)-1;r>=0;r--){var i=new se(null,"FAKE_PATH_"+t.getId()+"}_"+r,!0,r);this.createBean(i),i.setChildren([o]),o.setOriginalParent(i),o=i}return o},t.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof se;)t++,o=o[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,o,r){for(var i=[],n=0;n<e.length;n++){var s=e[n];if(s instanceof se){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,r);a.setChildren(l),i.push(a)}else{for(var u=void 0,c=void 0,p=o-1;p>=t;p--){var d=r.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new se(h,d,!0,t);this.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(i.push(u),e.some((function(e){return e instanceof se}))){c.setChildren([s]);continue}c.setChildren(e);break}i.push(s)}}return i},t.prototype.findMaxDept=function(e,t){for(var o=t,r=0;r<e.length;r++){var i=e[r];if(i instanceof se){var n=i,s=this.findMaxDept(n.getChildren(),t+1);o<s&&(o=s)}}return o},t.prototype.recursivelyCreateColumns=function(e,t,o,r,i,n){var s=this;return(e||[]).map((function(e){return s.isColumnGroup(e)?s.createColumnGroup(o,e,t,r,i,n):s.createColumn(o,e,r,i)}))},t.prototype.createColumnGroup=function(e,t,o,r,i,n){var s,a=this.createMergedColGroupDef(t),l=i.getUniqueKey(a.groupId||null,null),u=this.findExistingGroup(t,n);u?((s=u).reset(a,o),de(n,u)):(s=new se(a,l,!1,o),this.createBean(s));var c=this.recursivelyCreateColumns(a.children,o+1,e,r,i,n);return s.setChildren(c),s},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,r){var i=this.mergeColDefs(t),n=this.findExistingColumn(t,o);if(o&&n&&de(o,n),n)n.setColDef(i,t),this.applyColumnState(n,i);else{var s=r.getUniqueKey(i.colId,i.field);n=new ie(i,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 r=n(t.width);if(null!=r)e.setActualWidth(r);else{var i=e.getActualWidth();e.setActualWidth(i)}}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 r=null!=e.colId,i=null!=e.field;return r?t.getId()===e.colId:i?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 r=e.type;r||(r=o&&o.type),r&&this.assignColumnTypes(r,t),m(t,e,!1,!0);var i=this.gridOptionsService.get("autoGroupColumnDef"),n=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&i&&n&&m(t,{sort:i.sort,initialSort:i.initialSort},!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var o=[];if(e instanceof Array){e.some((function(e){return"string"!=